Skip to main content

objects

Creates, updates, deletes, gets or lists an objects resource.

Overview

Nameobjects
TypeResource
Idgoogle.datastream.objects

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The object resource's name.
backfillJobobjectThe latest backfill job that was initiated for the stream object. (id: BackfillJob)
createTimestring (google-datetime)Output only. The creation time of the object.
displayNamestringRequired. Display name.
errorsarrayOutput only. Active errors on the object.
sourceObjectobjectThe object identifier in the data source. (id: SourceObjectIdentifier)
updateTimestring (google-datetime)Output only. The last update time of the object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, streamsId, objectsIdUse this method to get details about a stream object.
listselectprojectsId, locationsId, streamsIdpageSize, pageTokenUse this method to list the objects of a specific stream.
lookupexecprojectsId, locationsId, streamsIdUse this method to look up a stream object by its source object identifier.
start_backfill_jobexecprojectsId, locationsId, streamsId, objectsIdUse this method to start a backfill job for the specified stream object.
stop_backfill_jobexecprojectsId, locationsId, streamsId, objectsIdUse this method to stop a backfill job for the specified stream object.

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
objectsIdstring
projectsIdstring
streamsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Use this method to get details about a stream object.

SELECT
name,
backfillJob,
createTime,
displayName,
errors,
sourceObject,
updateTime
FROM google.datastream.objects
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND streamsId = '{{ streamsId }}' -- required
AND objectsId = '{{ objectsId }}' -- required;

Lifecycle Methods

Use this method to look up a stream object by its source object identifier.

EXEC google.datastream.objects.lookup 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@streamsId='{{ streamsId }}' --required
@@json=
'{
"sourceObjectIdentifier": "{{ sourceObjectIdentifier }}"
}';