- [Resource: Service](https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#Service)
  - [JSON representation](https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#Service.SCHEMA_REPRESENTATION)
- [DocumentRequirement](https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#DocumentRequirement)
  - [JSON representation](https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#DocumentRequirement.SCHEMA_REPRESENTATION)
- [DocumentTypeRequirement](https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#DocumentTypeRequirement)
  - [JSON representation](https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#DocumentTypeRequirement.SCHEMA_REPRESENTATION)
- [RequirementLevel](https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#RequirementLevel)
- [ProductType](https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#ProductType)
- [Methods](https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#METHODS_SUMMARY)

## Resource: Service

Message describing Service resource.

| JSON representation |
|---|
| ``` { "name": string, "title": string, "documentRequirement": { object (`https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#DocumentRequirement`) }, "productType": enum (`https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#ProductType`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Name of resource. |
| `title` | `string` Output only. Title of the service. Not included for `SERVICE_VIEW_BASIC`. |
| `documentRequirement` | ``object (`https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#DocumentRequirement`)`` Output only. Document requirement for private offers on this service. Constraints that apply to every service, such as the restriction against attaching both a standard and a custom EULA, are documented on `PrivateOfferDocument` and are not represented here. |
| `productType` | ``enum (`https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#ProductType`)`` Output only. Type of the product this service commercializes. |

## DocumentRequirement

Requirements and constraints for documents attached to private offers.

| JSON representation |
|---|
| ``` { "documentTypeRequirements": [ { object (`https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#DocumentTypeRequirement`) } ] } ``` |

| Fields ||
|---|---|
| `documentTypeRequirements[]` | ``object (`https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#DocumentTypeRequirement`)`` Document requirements for private offers on this service. Each document type appears at most once. The order of entries is not significant. A document type that is not present in this list is not permitted for private offers on this service. |

## DocumentTypeRequirement

Requirement specification for a specific document type.

| JSON representation |
|---|
| ``` { "documentType": enum (`https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/DocumentType`), "requirementLevel": enum (`https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#RequirementLevel`) } ``` |

| Fields ||
|---|---|
| `documentType` | ``enum (`https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/DocumentType`)`` The document type. |
| `requirementLevel` | ``enum (`https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services#RequirementLevel`)`` The requirement level for this document type. |

## RequirementLevel

Requirement level for the document type.

| Enums ||
|---|---|
| `REQUIREMENT_LEVEL_UNSPECIFIED` | Unspecified requirement level. Do not use. |
| `REQUIRED` | The document type is mandatory for private offers on this service. Exactly one document of this type must be attached. |
| `OPTIONAL` | The document type is optional for private offers on this service. At most one document of this type may be attached. |
| `NOT_ALLOWED` | The document type is not permitted for private offers on this service. No document of this type may be attached. A document type omitted from `documentTypeRequirements` is also not permitted. This value is used to state the restriction explicitly. |

## ProductType

The type of the product this service commercializes.

Every service has a type, but only the types listed below are exposed. A service whose type is not one of the listed values reports `PRODUCT_TYPE_UNSPECIFIED`.

Values may be added over time. Clients must handle unrecognized values. When new values are added, the ProductType for an existing service may change. Clients must also be able to handle a change in ProductType.

| Enums ||
|---|---|
| `PRODUCT_TYPE_UNSPECIFIED` | The service has a type, but it is not one of the types exposed below. |
| `SOFTWARE_AS_A_SERVICE` | Represents a software-as-a-service product. See <https://docs.cloud.google.com/marketplace/docs/partners/integrated-saas> |
| `ANALYTICS_HUB_LISTING` | Represents a data product on BigQuery sharing (formerly Analytics Hub). See <https://docs.cloud.google.com/marketplace/docs/partners/data> |
| `PROFESSIONAL_SERVICES` | Represents a professional services product. See <https://docs.cloud.google.com/marketplace/docs/partners/professional-services> |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services/get` | Gets details of a single Service. |
| ### `https://docs.cloud.google.com/marketplace/docs/partners/commerce-producer-api/reference/rest/v1beta/projects.locations.services/list` | Lists Services in a given project and location. |