Resource: Job
The storage batch operations job description.
| JSON representation |
|---|
{ "name": string, "description": string, "loggingConfig": { object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the job. Format: For example:
|
description |
Optional. A user-provided description for the job. Maximum length: 1024 bytes when unicode-encoded. |
loggingConfig |
Optional. Logging configuration. |
createTime |
Output only. The time that the job was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
scheduleTime |
Output only. The time that the job was scheduled. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
completeTime |
Output only. The time that the job was completed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
counters |
Output only. Information about the progress of the job. |
errorSummaries[] |
Output only. Summarizes errors encountered with sample error log entries. |
state |
Output only. State of the job. |
dryRun |
Optional. If true, the job runs in dry run mode, returning the total object count and, if the object configuration is a prefix list, the bytes found from source. No transformations are performed. |
isMultiBucketJob |
Output only. If true, this job operates on multiple buckets. Multi-bucket jobs are subject to different quota limits than single-bucket jobs. |
Union field source. Specifies objects to be transformed. source can be only one of the following: |
|
bucketList |
Specifies a list of buckets and their objects to be transformed. |
projectSource |
Specifies a project source and filters to identify objects to be transformed. |
Union field transformation. Operation to be performed on the objects. transformation can be only one of the following: |
|
putObjectHold |
Changes object hold status. |
deleteObject |
Delete objects. |
putMetadata |
Updates object metadata. Allows updating fixed-key and custom metadata. For example, |
rewriteObject |
Rewrite the object and updates metadata like KMS key. |
updateObjectCustomContext |
Update object custom context. |
setObjectAcls |
Updates object ACLs. |
BucketList
Describes list of buckets and their objects to be transformed.
| JSON representation |
|---|
{
"buckets": [
{
object ( |
| Fields | |
|---|---|
buckets[] |
Required. List of buckets and their objects to be transformed. You can specify only one bucket per job. If multiple buckets are specified, an error occurs. |
Bucket
Describes configuration of a single bucket and its objects to be transformed.
| JSON representation |
|---|
{ "bucket": string, // Union field |
| Fields | |
|---|---|
bucket |
Required. Bucket name for the objects to be transformed. |
Union field object_configuration. Specifies objects to be transformed. object_configuration can be only one of the following: |
|
prefixList |
Specifies objects matching a prefix set. |
manifest |
Specifies objects in a manifest file. |
LoggingConfig
Specifies the Cloud Logging behavior.
| JSON representation |
|---|
{ "logActions": [ enum ( |
| Fields | |
|---|---|
logActions[] |
Required. Specifies the actions to be logged. |
logActionStates[] |
Required. States in which Action are logged.If empty, no logs are generated. |
LoggableAction
Loggable actions types.
| Enums | |
|---|---|
LOGGABLE_ACTION_UNSPECIFIED |
Illegal value, to avoid allowing a default. |
TRANSFORM |
The corresponding transform action in this job. |
LoggableActionState
Loggable action states filter.
| Enums | |
|---|---|
LOGGABLE_ACTION_STATE_UNSPECIFIED |
Illegal value, to avoid allowing a default. |
SUCCEEDED |
LoggableAction completed successfully. SUCCEEDED actions are logged as [INFO][google.logging.type.LogSeverity.INFO]. |
FAILED |
LoggableAction terminated in an error state. FAILED actions are logged as [ERROR][google.logging.type.LogSeverity.ERROR]. |
State
Describes state of a job.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Default value. This value is unused. |
RUNNING |
In progress. |
SUCCEEDED |
Completed successfully. |
CANCELED |
Cancelled by the user. |
FAILED |
Terminated due to an unrecoverable failure. |
QUEUED |
Queued but not yet started. |
Methods |
|
|---|---|
|
Cancels a batch job. |
|
Creates a batch job. |
|
Deletes a batch job. |
|
Gets a batch job. |
|
Lists Jobs in a given project. |