class Google::Apis::StoragetransferV1::TransferJob
This resource represents the configuration of a transfer job that runs periodically.
Attributes
This field cannot be changed by user requests. Corresponds to the JSON property `creationTime` @return [String]
This field cannot be changed by user requests. Corresponds to the JSON property `deletionTime` @return [String]
A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded. Corresponds to the JSON property `description` @return [String]
This field cannot be changed by user requests. Corresponds to the JSON property `lastModificationTime` @return [String]
A globally unique name assigned by Storage Transfer Service when the job is created. This field should be left empty in requests to create a new transfer job; otherwise, the requests result in an `INVALID_ARGUMENT` error. Corresponds to the JSON property `name` @return [String]
The ID of the Google Developers Console project that owns the job. Required. Corresponds to the JSON property `projectId` @return [String]
Transfers can be scheduled to recur or to run just once. Corresponds to the JSON property `schedule` @return [Google::Apis::StoragetransferV1::Schedule]
Status of the job. This value MUST be specified for `CreateTransferJobRequests` . NOTE: The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from `ENABLED` to `DISABLED`, and an operation spawned by the transfer is running, the status change would not affect the current operation. Corresponds to the JSON property `status` @return [String]
Configuration for running a transfer. Corresponds to the JSON property `transferSpec` @return [Google::Apis::StoragetransferV1::TransferSpec]
Public Class Methods
# File generated/google/apis/storagetransfer_v1/classes.rb, line 101 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/storagetransfer_v1/classes.rb, line 106 def update!(**args) @name = args[:name] if args.key?(:name) @description = args[:description] if args.key?(:description) @project_id = args[:project_id] if args.key?(:project_id) @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec) @schedule = args[:schedule] if args.key?(:schedule) @status = args[:status] if args.key?(:status) @creation_time = args[:creation_time] if args.key?(:creation_time) @last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time) @deletion_time = args[:deletion_time] if args.key?(:deletion_time) end