Skip to main content

bindings

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

Overview​

Namebindings
TypeResource
Idgoogle.agentregistry.bindings

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringRequired. Identifier. The resource name of the Binding. Format: projects/{project}/locations/{location}/bindings/{binding}.
authProviderBindingobjectThe binding for AuthProvider. (id: AuthProviderBinding)
createTimestring (google-datetime)Output only. Timestamp when this binding was created.
descriptionstringOptional. User-defined description of a Binding. Can have a maximum length of 2048 characters.
displayNamestringOptional. User-defined display name for the Binding. Can have a maximum length of 63 characters.
sourceobjectRequired. The target Agent of the Binding. (id: Source)
targetobjectRequired. The target Agent Registry Resource of the Binding. (id: Target)
updateTimestring (google-datetime)Output only. Timestamp when this binding was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, bindingsIdGets details of a single Binding.
listselectprojectsId, locationsIdfilter, orderBy, pageSize, pageTokenLists Bindings in a given project and location.
createinsertprojectsId, locationsIdbindingId, requestIdCreates a new Binding in a given project and location.
patchupdateprojectsId, locationsId, bindingsIdrequestId, updateMaskUpdates the parameters of a single Binding.
deletedeleteprojectsId, locationsId, bindingsIdrequestIdDeletes a single Binding.

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
bindingsIdstring
locationsIdstring
projectsIdstring
bindingIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples​

Gets details of a single Binding.

SELECT
name,
authProviderBinding,
createTime,
description,
displayName,
source,
target,
updateTime
FROM google.agentregistry.bindings
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND bindingsId = '{{ bindingsId }}' -- required
;

INSERT examples​

Creates a new Binding in a given project and location.

INSERT INTO google.agentregistry.bindings (
data__authProviderBinding,
data__description,
data__displayName,
data__name,
data__source,
data__target,
projectsId,
locationsId,
bindingId,
requestId
)
SELECT
'{{ authProviderBinding }}',
'{{ description }}',
'{{ displayName }}',
'{{ name }}',
'{{ source }}',
'{{ target }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ bindingId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples​

Updates the parameters of a single Binding.

UPDATE google.agentregistry.bindings
SET
data__authProviderBinding = '{{ authProviderBinding }}',
data__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__name = '{{ name }}',
data__source = '{{ source }}',
data__target = '{{ target }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND bindingsId = '{{ bindingsId }}' --required
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples​

Deletes a single Binding.

DELETE FROM google.agentregistry.bindings
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND bindingsId = '{{ bindingsId }}' --required
AND requestId = '{{ requestId }}'
;