Skip to main content

bucket_operations

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

Overview

Namebucket_operations
TypeResource
Idgoogle.storagebatchoperations.bucket_operations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the BucketOperation. This is defined by the service. Format: projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
bucketNamestringThe bucket name of the objects to be transformed in the BucketOperation.
completeTimestring (google-datetime)Output only. The time that the BucketOperation was completed.
countersobjectOutput only. Information about the progress of the bucket operation. (id: Counters)
createTimestring (google-datetime)Output only. The time that the BucketOperation was created.
deleteObjectobjectDelete objects. (id: DeleteObject)
errorSummariesarrayOutput only. Summarizes errors encountered with sample error log entries.
manifestobjectSpecifies objects in a manifest file. (id: Manifest)
prefixListobjectSpecifies objects matching a prefix set. (id: PrefixList)
projectSourceobjectSpecifies objects matching the object filters in a project source. (id: ProjectSource)
putMetadataobjectUpdates object metadata. Allows updating fixed-key and custom metadata and fixed-key metadata i.e. Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Type, Custom-Time. (id: PutMetadata)
putObjectHoldobjectChanges object hold status. (id: PutObjectHold)
rewriteObjectobjectRewrite the object and updates metadata like KMS key. (id: RewriteObject)
setObjectAclsobjectUpdates object ACLs. (id: SetObjectAcls)
startTimestring (google-datetime)Output only. The time that the BucketOperation was started.
statestringOutput only. State of the BucketOperation. (STATE_UNSPECIFIED, QUEUED, RUNNING, SUCCEEDED, CANCELED, FAILED)
updateObjectCustomContextobjectUpdate object custom context. (id: UpdateObjectCustomContext)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, jobsId, bucketOperationsIdGets a BucketOperation.
listselectprojectsId, locationsId, jobsIdfilter, pageSize, orderBy, pageTokenLists BucketOperations in a given project and job.

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
bucketOperationsIdstring
jobsIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a BucketOperation.

SELECT
name,
bucketName,
completeTime,
counters,
createTime,
deleteObject,
errorSummaries,
manifest,
prefixList,
projectSource,
putMetadata,
putObjectHold,
rewriteObject,
setObjectAcls,
startTime,
state,
updateObjectCustomContext
FROM google.storagebatchoperations.bucket_operations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND jobsId = '{{ jobsId }}' -- required
AND bucketOperationsId = '{{ bucketOperationsId }}' -- required
;