- [Resource: ProducerExtension](https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions#ProducerExtension)
  - [JSON representation](https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions#ProducerExtension.SCHEMA_REPRESENTATION)
- [Phase](https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions#Phase)
- [ExtensionSettings](https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions#ExtensionSettings)
  - [JSON representation](https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions#ExtensionSettings.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions#METHODS_SUMMARY)

## Resource: ProducerExtension

`ProducerExtension` is a resource that represents a producer-defined configuration for its service extension.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "description": string, "labels": { string: string, ... }, "etag": string, "phase": enum (`https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions#Phase`), "extensionSettings": { object (`https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions#ExtensionSettings`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Name of the `ProducerExtension` resource in the following format: `projects/{project}/locations/{location}/producerExtensions/{producerExtension}`. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the resource was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the resource was updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `description` | `string` Optional. A human-readable description of the resource. |
| `labels` | `map (key: string, value: string)` Optional. Set of labels associated with the `ProducerExtension` resource. The format must comply with [the following requirements](https://cloud.google.com/compute/docs/labeling-resources#requirements). An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `etag` | `string` Optional. ETag of the resource. If this is provided, it must match the server's ETag. If the provided ETag doesn't match the server's ETag, then the request fails with a `409 ABORTED` error. |
| `phase` | ``enum (`https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions#Phase`)`` Required. The phase in which this `ProducerExtension` runs. |
| `extensionSettings` | ``object (`https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions#ExtensionSettings`)`` Required. The configuration for the service that this `ProducerExtension` offers. |

## Phase

The phase of a `ProducerExtension` determines when it runs.

| Enums ||
|---|---|
| `PHASE_UNSPECIFIED` | Unspecified phase. |
| `TRAFFIC` | Not supported. |
| `AUTHZ` | The `ProducerExtension` will be executed during the authorization phase. |

## ExtensionSettings

The configuration for the service that this `ProducerExtension` offers.

| JSON representation |
|---|
| ``` { "service": string, "authority": string, "supportedEvents": [ enum (`https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/EventType`) ] } ``` |

| Fields ||
|---|---|
| `service` | `string` Required. The URI of the Private Service Connect (PSC) attachment. |
| `authority` | `string` Optional. The `:authority` header in the request sent to the extension service. |
| `supportedEvents[]` | ``enum (`https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/EventType`)`` Required. The event types supported by the extension. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions/create` | Creates a new `ProducerExtension` resource in a given project and location. |
| ### `https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions/delete` | Deletes the specified `ProducerExtension` resource. |
| ### `https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions/get` | Gets details of the specified `ProducerExtension` resource. |
| ### `https://docs.cloud.google.com/service-extensions/docs/reference/rest/v1alpha1/projects.locations.producerExtensions/list` | Lists `ProducerExtension` resources in a given project and location. |