Skip to main content

producer_extensions

Creates, updates, deletes, gets or lists a producer_extensions resource.

Overview​

Nameproducer_extensions
TypeResource
Idgoogle.networkservices.producer_extensions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the ProducerExtension resource in the following format: projects/{project}/locations/{location}/producerExtensions/{producer_extension}.
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
descriptionstringOptional. A human-readable description of the resource.
etagstringOptional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
extensionSettingsobjectRequired. The configuration for the service that this ProducerExtension offers. (id: ProducerExtensionExtensionSettings)
labelsobjectOptional. 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).
phasestringRequired. The phase in which this ProducerExtension should execute. (PHASE_UNSPECIFIED, TRAFFIC, AUTHZ)
updateTimestring (google-datetime)Output only. The timestamp when the resource was updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, producerExtensionsIdGets details of the specified ProducerExtension resource.
listselectprojectsId, locationsIdpageSize, pageTokenLists ProducerExtension resources in a given project and location.
createinsertprojectsId, locationsIdproducerExtensionIdCreates a new ProducerExtension resource in a given project and location.
deletedeleteprojectsId, locationsId, producerExtensionsIdetagDeletes the specified ProducerExtension resource.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
producerExtensionsIdstring
projectsIdstring
etagstring
pageSizeinteger (int32)
pageTokenstring
producerExtensionIdstring

SELECT examples​

Gets details of the specified ProducerExtension resource.

SELECT
name,
createTime,
description,
etag,
extensionSettings,
labels,
phase,
updateTime
FROM google.networkservices.producer_extensions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND producerExtensionsId = '{{ producerExtensionsId }}' -- required
;

INSERT examples​

Creates a new ProducerExtension resource in a given project and location.

INSERT INTO google.networkservices.producer_extensions (
data__description,
data__etag,
data__extensionSettings,
data__labels,
data__name,
data__phase,
projectsId,
locationsId,
producerExtensionId
)
SELECT
'{{ description }}',
'{{ etag }}',
'{{ extensionSettings }}',
'{{ labels }}',
'{{ name }}',
'{{ phase }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ producerExtensionId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples​

Deletes the specified ProducerExtension resource.

DELETE FROM google.networkservices.producer_extensions
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND producerExtensionsId = '{{ producerExtensionsId }}' --required
AND etag = '{{ etag }}'
;