<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">On-premises or any cloud edition v1.15</button>

- [SAP BTP edition v1.1](https://docs.cloud.google.com/sap/docs/abap-sdk/btp/latest/reference/googcl_serviceusage_v1)
- [On-premises or any cloud edition v1.15](https://docs.cloud.google.com/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/reference/googcl_serviceusage_v1.md.txt)

## Class

```abap
/GOOG/CL_SERVICEUSAGE_V1
```

- Inheriting from:`/GOOG/CL_HTTP_CLIENT`
- Description:`Service Usage API v1`

For general information about a class in ABAP SDK for Google Cloud, see [API client stub](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#client_stub).

## Types

| Type | Description | Visibility |
|---|---|---|
| `TY_002` | `Api` | PUBLIC |
| `TY_003` | `AuthProvider` | PUBLIC |
| `TY_004` | `AuthRequirement` | PUBLIC |
| `TY_005` | `Authentication` | PUBLIC |
| `TY_006` | `AuthenticationRule` | PUBLIC |
| `TY_009` | `BatchEnableServicesRequest` | PUBLIC |
| `TY_010` | `BatchGetServicesResponse` | PUBLIC |
| `TY_023` | `DisableServiceRequest` | PUBLIC |
| `TY_024` | `Documentation` | PUBLIC |
| `TY_025` | `DocumentationRule` | PUBLIC |
| `TY_031` | `Endpoint` | PUBLIC |
| `TY_036` | `GoogleApiServiceusageV1Service` | PUBLIC |
| `TY_037` | `GoogleApiServiceusageV1ServiceConfig` | PUBLIC |
| `TY_042` | `JwtLocation` | PUBLIC |
| `TY_043` | `LabelDescriptor` | PUBLIC |
| `TY_044` | `ListOperationsResponse` | PUBLIC |
| `TY_045` | `ListServicesResponse` | PUBLIC |
| `TY_050` | `Method` | PUBLIC |
| `TY_054` | `MetricRule` | PUBLIC |
| `TY_055` | `Mixin` | PUBLIC |
| `TY_056` | `MonitoredResourceDescriptor` | PUBLIC |
| `TY_057` | `Monitoring` | PUBLIC |
| `TY_058` | `MonitoringDestination` | PUBLIC |
| `TY_060` | `OAuthRequirements` | PUBLIC |
| `TY_061` | `Operation` | PUBLIC |
| `TY_062` | `Option` | PUBLIC |
| `TY_063` | `Page` | PUBLIC |
| `TY_067` | `Quota` | PUBLIC |
| `TY_068` | `QuotaLimit` | PUBLIC |
| `TY_072` | `SourceContext` | PUBLIC |
| `TY_074` | `Status` | PUBLIC |
| `TY_079` | `Usage` | PUBLIC |
| `TY_080` | `UsageRule` | PUBLIC |
| `TY_T_002` | `Api` | PUBLIC |
| `TY_T_003` | `AuthProvider` | PUBLIC |
| `TY_T_004` | `AuthRequirement` | PUBLIC |
| `TY_T_006` | `AuthenticationRule` | PUBLIC |
| `TY_T_025` | `DocumentationRule` | PUBLIC |
| `TY_T_031` | `Endpoint` | PUBLIC |
| `TY_T_036` | `GoogleApiServiceusageV1Service` | PUBLIC |
| `TY_T_042` | `JwtLocation` | PUBLIC |
| `TY_T_043` | `LabelDescriptor` | PUBLIC |
| `TY_T_050` | `Method` | PUBLIC |
| `TY_T_054` | `MetricRule` | PUBLIC |
| `TY_T_055` | `Mixin` | PUBLIC |
| `TY_T_056` | `MonitoredResourceDescriptor` | PUBLIC |
| `TY_T_058` | `MonitoringDestination` | PUBLIC |
| `TY_T_061` | `Operation` | PUBLIC |
| `TY_T_062` | `Option` | PUBLIC |
| `TY_T_063` | `Page` | PUBLIC |
| `TY_T_068` | `QuotaLimit` | PUBLIC |
| `TY_T_080` | `UsageRule` | PUBLIC |
| `TY_T_STRING` | `Table of Strings` | PUBLIC |

## Constants

| Name | Type | Description | Value | Visibility |
|---|---|---|---|---|
| `C_SUPPORTED_AUTH` | `/GOOG/SUPP_AUTH` | Supported Auth Types | IJIJWW | PUBLIC |
| `C_SERVICE_NAME` | `/GOOG/SERVICE_NAME` | Google Service Name | serviceusage:v1 | PUBLIC |
| `C_ROOT_URL` | `STRING` | API Root URL | https://serviceusage.googleapis.com | PUBLIC |
| `C_REVISION_DATE` | `DATUM` | Discovery Document revision Date | 20250227 | PUBLIC |
| `C_PATH_PREFIX` | `STRING` | API Path Prefix |   | PUBLIC |
| `C_ON_PREM_VERSION` | `/GOOG/SDK_VERSION` | Lowest On-premises Version | 1.10 | PUBLIC |
| `C_CLOUD_VERSION` | `/GOOG/SDK_VERSION` | Lowest Cloud Version |   | PUBLIC |

## Methods

For general information about a method in ABAP SDK for Google Cloud, see [API method](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#api_method).

### CONSTRUCTOR

- Description: Constructor
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_KEY_NAME` | IMPORTING | `/GOOG/KEYNAME` | Google Cloud Key Name |
| `IV_LOG_OBJ` | IMPORTING | `BALOBJ_D` | Application log: Object name (Application code) |
| `IV_LOG_SUBOBJ` | IMPORTING | `BALSUBOBJ` | Application Log: Subobject |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### BATCH_ENABLE_SERVICES

- Description: serviceusage.services.batchEnable
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_V1ID` | IMPORTING | `STRING` | v1Id |
| `IV_P_V1ID1` | IMPORTING | `STRING` | v1Id1 |
| `IS_INPUT` | IMPORTING | `TY_009` | BatchEnableServicesRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_061` | Operation |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### BATCH_GET_SERVICES

- Description: serviceusage.services.batchGet
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_NAMES` | IMPORTING | `STRING` | names |
| `IV_P_V1ID` | IMPORTING | `STRING` | v1Id |
| `IV_P_V1ID1` | IMPORTING | `STRING` | v1Id1 |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_010` | BatchGetServicesResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### CANCEL_OPERATIONS

- Description: serviceusage.operations.cancel
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_OPERATIONS_ID` | IMPORTING | `STRING` | operationsId |
| `IS_INPUT` | IMPORTING | `DATA` | Input Data |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `DATA` | Output Data |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### DELETE_OPERATIONS

- Description: serviceusage.operations.delete
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_OPERATIONS_ID` | IMPORTING | `STRING` | operationsId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `DATA` | Output Data |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### DISABLE_SERVICES

- Description: serviceusage.services.disable
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_V1ID` | IMPORTING | `STRING` | v1Id |
| `IV_P_V1ID1` | IMPORTING | `STRING` | v1Id1 |
| `IV_P_SERVICES_ID` | IMPORTING | `STRING` | servicesId |
| `IS_INPUT` | IMPORTING | `TY_023` | DisableServiceRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_061` | Operation |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### ENABLE_SERVICES

- Description: serviceusage.services.enable
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_V1ID` | IMPORTING | `STRING` | v1Id |
| `IV_P_V1ID1` | IMPORTING | `STRING` | v1Id1 |
| `IV_P_SERVICES_ID` | IMPORTING | `STRING` | servicesId |
| `IS_INPUT` | IMPORTING | `DATA` | Input Data |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_061` | Operation |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### GET_OPERATIONS

- Description: serviceusage.operations.get
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_OPERATIONS_ID` | IMPORTING | `STRING` | operationsId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_061` | Operation |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### GET_SERVICES

- Description: serviceusage.services.get
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_V1ID` | IMPORTING | `STRING` | v1Id |
| `IV_P_V1ID1` | IMPORTING | `STRING` | v1Id1 |
| `IV_P_SERVICES_ID` | IMPORTING | `STRING` | servicesId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_036` | GoogleApiServiceusageV1Service |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### LIST_OPERATIONS

- Description: serviceusage.operations.list
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_FILTER` | IMPORTING | `STRING` | filter |
| `IV_Q_NAME` | IMPORTING | `STRING` | name |
| `IV_Q_PAGESIZE` | IMPORTING | `STRING` | pageSize |
| `IV_Q_PAGETOKEN` | IMPORTING | `STRING` | pageToken |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_044` | ListOperationsResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### LIST_SERVICES

- Description: serviceusage.services.list
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_FILTER` | IMPORTING | `STRING` | filter |
| `IV_Q_PAGESIZE` | IMPORTING | `STRING` | pageSize |
| `IV_Q_PAGETOKEN` | IMPORTING | `STRING` | pageToken |
| `IV_P_V1ID` | IMPORTING | `STRING` | v1Id |
| `IV_P_V1ID1` | IMPORTING | `STRING` | v1Id1 |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_045` | ListServicesResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### CLOSE

- Description: Close Connection
- Visibility: PUBLIC