- [Resource: ServiceState](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#ServiceState)
  - [JSON representation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#ServiceState.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#State)
  - [JSON representation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#State.SCHEMA_REPRESENTATION)
- [Service](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Service)
  - [JSON representation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Service.SCHEMA_REPRESENTATION)
- [Requirements](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Requirements)
  - [JSON representation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Requirements.SCHEMA_REPRESENTATION)
- [TermsOfService](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#TermsOfService)
  - [JSON representation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#TermsOfService.SCHEMA_REPRESENTATION)
- [Documentation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Documentation)
  - [JSON representation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Documentation.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#METHODS_SUMMARY)

## Resource: ServiceState

Information about the state of a service with respect to a consumer resource.

| JSON representation |
|---|
| ``` { "name": string, "state": { object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#State`) }, "service": { object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Service`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The resource name of the service state. |
| `state` | ``object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#State`)`` Output only. The state of this service with respect to the consumer parent. |
| `service` | ``object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Service`)`` Output only. The service referenced by this state. |

## State

`State` objects represent the state of a service, group, or category with respect to a consumer.

| JSON representation |
|---|
| ``` { "name": string, "enableRules": [ { object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/EnableRule`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The resource whose state is being represented. Format: `projects/100/services/hello.googleapis.com`, `folders/101/services/hello.googleapis.com`, `organizations/102/services/hello.googleapis.com`. |
| `enableRules[]` | ``object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/EnableRule`)`` Output only. Enable rules, grouped by any associated conditions, that provide access to this resource. If the `enableRules` field is empty, then the named resource is not enabled. |

## Service

The Service object represents

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "description": string, "requirements": { object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Requirements`) }, "documentation": { object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Documentation`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the service. |
| `displayName` | `string` The display name of the service. |
| `description` | `string` The description of the service. |
| `requirements` | ``object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Requirements`)`` The requirements to use a service, such as its Terms of Service. |
| `documentation` | ``object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Documentation`)`` Documentation links providing more information about a service. |

## Requirements

Provides information about requirements to use the service.

| JSON representation |
|---|
| ``` { "tos": [ { object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#TermsOfService`) } ] } ``` |

| Fields ||
|---|---|
| `tos[]` | ``object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#TermsOfService`)`` Terms of Service required for a service. |

## TermsOfService

TermsOfService captures the metadata about a given terms of service.

| JSON representation |
|---|
| ``` { "url": string, "displayName": string } ``` |

| Fields ||
|---|---|
| `url` | `string` URL at which the terms of service can be viewed. |
| `displayName` | `string` Display name of the terms of service. |

## Documentation

Provides more detailed information about a service, such as tutorials and pricing information.

| JSON representation |
|---|
| ``` { "learnmoreUrl": string, "pricingUrl": string } ``` |

| Fields ||
|---|---|
| `learnmoreUrl` | `string` Provides a URL where service consumers can learn more about the product. |
| `pricingUrl` | `string` Provides a link to pricing information for the service, such as <https://cloud.google.com/bigquery/pricing>. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services/batchGet` | Get the details of a collection of services. |
| ### `https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services/get` | Get the details of a service. |
| ### `https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services/list` | List public services. |