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, pageToken, orderBy, pageSizeLists Bindings in a given project and location.
createinsertprojectsId, locationsIdrequestId, bindingIdCreates a new Binding in a given project and location.
patchupdateprojectsId, locationsId, bindingsIdupdateMask, requestIdUpdates 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__name,
data__displayName,
data__source,
data__target,
data__description,
projectsId,
locationsId,
requestId,
bindingId
)
SELECT
'{{ authProviderBinding }}',
'{{ name }}',
'{{ displayName }}',
'{{ source }}',
'{{ target }}',
'{{ description }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ requestId }}',
'{{ bindingId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single Binding.

UPDATE google.agentregistry.bindings
SET
data__authProviderBinding = '{{ authProviderBinding }}',
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__source = '{{ source }}',
data__target = '{{ target }}',
data__description = '{{ description }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND bindingsId = '{{ bindingsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
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 }}'
;