Class: Google::Apis::StoragetransferV1::TransferJob

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/storagetransfer_v1/classes.rb,
generated/google/apis/storagetransfer_v1/representations.rb,
generated/google/apis/storagetransfer_v1/representations.rb

Overview

This resource represents the configuration of a transfer job that runs periodically.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TransferJob

Returns a new instance of TransferJob



739
740
741
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 739

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creation_timeString

This field cannot be changed by user requests. Corresponds to the JSON property creationTime

Returns:

  • (String)


737
738
739
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 737

def creation_time
  @creation_time
end

#deletion_timeString

This field cannot be changed by user requests. Corresponds to the JSON property deletionTime

Returns:

  • (String)


702
703
704
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 702

def deletion_time
  @deletion_time
end

#descriptionString

A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded. Corresponds to the JSON property description

Returns:

  • (String)


727
728
729
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 727

def description
  @description
end

#last_modification_timeString

This field cannot be changed by user requests. Corresponds to the JSON property lastModificationTime

Returns:

  • (String)


715
716
717
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 715

def last_modification_time
  @last_modification_time
end

#nameString

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

Returns:

  • (String)


710
711
712
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 710

def name
  @name
end

#project_idString

The ID of the Google Cloud Platform Console project that owns the job. Required. Corresponds to the JSON property projectId

Returns:

  • (String)


721
722
723
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 721

def project_id
  @project_id
end

#scheduleGoogle::Apis::StoragetransferV1::Schedule

Transfers can be scheduled to recur or to run just once. Corresponds to the JSON property schedule



697
698
699
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 697

def schedule
  @schedule
end

#statusString

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

Returns:

  • (String)


692
693
694
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 692

def status
  @status
end

#transfer_specGoogle::Apis::StoragetransferV1::TransferSpec

Configuration for running a transfer. Corresponds to the JSON property transferSpec



732
733
734
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 732

def transfer_spec
  @transfer_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



744
745
746
747
748
749
750
751
752
753
754
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 744

def update!(**args)
  @status = args[:status] if args.key?(:status)
  @schedule = args[:schedule] if args.key?(:schedule)
  @deletion_time = args[:deletion_time] if args.key?(:deletion_time)
  @name = args[:name] if args.key?(:name)
  @last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time)
  @project_id = args[:project_id] if args.key?(:project_id)
  @description = args[:description] if args.key?(:description)
  @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
end