# Storage Batch Operations V1 API - Class Google::Cloud::StorageBatchOperations::V1::Job (v0.10.0)

0.10.0 (latest) 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Storage Batch Operations V1 API class Google::Cloud::StorageBatchOperations::V1::Job.

The Storage Batch Operations Job description.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #bucket_list

    def bucket_list() -> ::Google::Cloud::StorageBatchOperations::V1::BucketList

**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::BucketList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-BucketList)) --- Specifies a list of buckets and their objects to be transformed.

### #bucket_list=

    def bucket_list=(value) -> ::Google::Cloud::StorageBatchOperations::V1::BucketList

**Parameter**

- **value** ([::Google::Cloud::StorageBatchOperations::V1::BucketList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-BucketList)) --- Specifies a list of buckets and their objects to be transformed.
**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::BucketList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-BucketList)) --- Specifies a list of buckets and their objects to be transformed.

### #complete_time

    def complete_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time that the job was completed.

### #counters

    def counters() -> ::Google::Cloud::StorageBatchOperations::V1::Counters

**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::Counters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-Counters)) --- Output only. Information about the progress of the job.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time that the job was created.

### #delete_object

    def delete_object() -> ::Google::Cloud::StorageBatchOperations::V1::DeleteObject

**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::DeleteObject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-DeleteObject)) --- Delete objects.


  Note: The following fields are mutually exclusive: `delete_object`, `put_object_hold`, `put_metadata`, `rewrite_object`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #delete_object=

    def delete_object=(value) -> ::Google::Cloud::StorageBatchOperations::V1::DeleteObject

**Parameter**

- **value** ([::Google::Cloud::StorageBatchOperations::V1::DeleteObject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-DeleteObject)) --- Delete objects.


  Note: The following fields are mutually exclusive: `delete_object`, `put_object_hold`, `put_metadata`, `rewrite_object`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::DeleteObject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-DeleteObject)) --- Delete objects.


  Note: The following fields are mutually exclusive: `delete_object`, `put_object_hold`, `put_metadata`, `rewrite_object`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.
**Returns**

- (::String) --- Optional. A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.

### #dry_run

    def dry_run() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If true, the job will run 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 will be performed.

### #dry_run=

    def dry_run=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If true, the job will run 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 will be performed.
**Returns**

- (::Boolean) --- Optional. If true, the job will run 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 will be performed.

### #error_summaries

    def error_summaries() -> ::Array<::Google::Cloud::StorageBatchOperations::V1::ErrorSummary>

**Returns**

- (::Array\<[::Google::Cloud::StorageBatchOperations::V1::ErrorSummary](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-ErrorSummary)\>) --- Output only. Summarizes errors encountered with sample error log entries.

### #is_multi_bucket_job

    def is_multi_bucket_job() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. If true, this Job operates on multiple buckets. Multibucket jobs are subject to different quota limits than single-bucket jobs.

### #logging_config

    def logging_config() -> ::Google::Cloud::StorageBatchOperations::V1::LoggingConfig

**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::LoggingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-LoggingConfig)) --- Optional. Logging configuration.

### #logging_config=

    def logging_config=(value) -> ::Google::Cloud::StorageBatchOperations::V1::LoggingConfig

**Parameter**

- **value** ([::Google::Cloud::StorageBatchOperations::V1::LoggingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-LoggingConfig)) --- Optional. Logging configuration.
**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::LoggingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-LoggingConfig)) --- Optional. Logging configuration.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The resource name of the Job. job_id is unique within the project, that is either set by the customer or defined by the service. Format: projects/{project}/locations/global/jobs/{job_id} . For example: "projects/123456/locations/global/jobs/job01".

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The resource name of the Job. job_id is unique within the project, that is either set by the customer or defined by the service. Format: projects/{project}/locations/global/jobs/{job_id} . For example: "projects/123456/locations/global/jobs/job01".
**Returns**

- (::String) --- Identifier. The resource name of the Job. job_id is unique within the project, that is either set by the customer or defined by the service. Format: projects/{project}/locations/global/jobs/{job_id} . For example: "projects/123456/locations/global/jobs/job01".

### #put_metadata

    def put_metadata() -> ::Google::Cloud::StorageBatchOperations::V1::PutMetadata

**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::PutMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-PutMetadata)) --- Updates 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.


  Note: The following fields are mutually exclusive: `put_metadata`, `put_object_hold`, `delete_object`, `rewrite_object`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #put_metadata=

    def put_metadata=(value) -> ::Google::Cloud::StorageBatchOperations::V1::PutMetadata

**Parameter**

- **value** ([::Google::Cloud::StorageBatchOperations::V1::PutMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-PutMetadata)) --- Updates 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.


  Note: The following fields are mutually exclusive: `put_metadata`, `put_object_hold`, `delete_object`, `rewrite_object`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::PutMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-PutMetadata)) --- Updates 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.


  Note: The following fields are mutually exclusive: `put_metadata`, `put_object_hold`, `delete_object`, `rewrite_object`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #put_object_hold

    def put_object_hold() -> ::Google::Cloud::StorageBatchOperations::V1::PutObjectHold

**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::PutObjectHold](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-PutObjectHold)) --- Changes object hold status.


  Note: The following fields are mutually exclusive: `put_object_hold`, `delete_object`, `put_metadata`, `rewrite_object`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #put_object_hold=

    def put_object_hold=(value) -> ::Google::Cloud::StorageBatchOperations::V1::PutObjectHold

**Parameter**

- **value** ([::Google::Cloud::StorageBatchOperations::V1::PutObjectHold](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-PutObjectHold)) --- Changes object hold status.


  Note: The following fields are mutually exclusive: `put_object_hold`, `delete_object`, `put_metadata`, `rewrite_object`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::PutObjectHold](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-PutObjectHold)) --- Changes object hold status.


  Note: The following fields are mutually exclusive: `put_object_hold`, `delete_object`, `put_metadata`, `rewrite_object`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #rewrite_object

    def rewrite_object() -> ::Google::Cloud::StorageBatchOperations::V1::RewriteObject

**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::RewriteObject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-RewriteObject)) --- Rewrite the object and updates metadata like KMS key.


  Note: The following fields are mutually exclusive: `rewrite_object`, `put_object_hold`, `delete_object`, `put_metadata`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #rewrite_object=

    def rewrite_object=(value) -> ::Google::Cloud::StorageBatchOperations::V1::RewriteObject

**Parameter**

- **value** ([::Google::Cloud::StorageBatchOperations::V1::RewriteObject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-RewriteObject)) --- Rewrite the object and updates metadata like KMS key.


  Note: The following fields are mutually exclusive: `rewrite_object`, `put_object_hold`, `delete_object`, `put_metadata`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::RewriteObject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-RewriteObject)) --- Rewrite the object and updates metadata like KMS key.


  Note: The following fields are mutually exclusive: `rewrite_object`, `put_object_hold`, `delete_object`, `put_metadata`, `update_object_custom_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #schedule_time

    def schedule_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time that the job was scheduled.

### #state

    def state() -> ::Google::Cloud::StorageBatchOperations::V1::Job::State

**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::Job::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-Job-State)) --- Output only. State of the job.

### #update_object_custom_context

    def update_object_custom_context() -> ::Google::Cloud::StorageBatchOperations::V1::UpdateObjectCustomContext

**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::UpdateObjectCustomContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-UpdateObjectCustomContext)) --- Update object custom context.


  Note: The following fields are mutually exclusive: `update_object_custom_context`, `put_object_hold`, `delete_object`, `put_metadata`, `rewrite_object`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #update_object_custom_context=

    def update_object_custom_context=(value) -> ::Google::Cloud::StorageBatchOperations::V1::UpdateObjectCustomContext

**Parameter**

- **value** ([::Google::Cloud::StorageBatchOperations::V1::UpdateObjectCustomContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-UpdateObjectCustomContext)) --- Update object custom context.


  Note: The following fields are mutually exclusive: `update_object_custom_context`, `put_object_hold`, `delete_object`, `put_metadata`, `rewrite_object`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::UpdateObjectCustomContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-UpdateObjectCustomContext)) --- Update object custom context.


  Note: The following fields are mutually exclusive: `update_object_custom_context`, `put_object_hold`, `delete_object`, `put_metadata`, `rewrite_object`. If a field in that set is populated, all other fields in the set will automatically be cleared.