Class: Google::Apis::StoragetransferV1::TransferOperation

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

Overview

A description of the execution of a transfer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TransferOperation

Returns a new instance of TransferOperation.



1198
1199
1200
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1198

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

Instance Attribute Details

#countersGoogle::Apis::StoragetransferV1::TransferCounters

A collection of counters that report the progress of a transfer operation. Corresponds to the JSON property counters



1143
1144
1145
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1143

def counters
  @counters
end

#end_timeString

End time of this transfer execution. Corresponds to the JSON property endTime

Returns:

  • (String)


1148
1149
1150
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1148

def end_time
  @end_time
end

#error_breakdownsArray<Google::Apis::StoragetransferV1::ErrorSummary>

Summarizes errors encountered with sample error log entries. Corresponds to the JSON property errorBreakdowns



1153
1154
1155
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1153

def error_breakdowns
  @error_breakdowns
end

#nameString

A globally unique ID assigned by the system. Corresponds to the JSON property name

Returns:

  • (String)


1158
1159
1160
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1158

def name
  @name
end

#notification_configGoogle::Apis::StoragetransferV1::NotificationConfig

Specification to configure notifications published to Pub/Sub. Notifications are published to the customer-provided topic using the following PubsubMessage.attributes: * "eventType": one of the EventType values * " payloadFormat": one of the PayloadFormat values * "projectId": the project_id of the TransferOperation * "transferJobName": the transfer_job_name of the TransferOperation * "transferOperationName": the name of the TransferOperation The PubsubMessage.data contains a TransferOperation resource formatted according to the specified PayloadFormat . Corresponds to the JSON property notificationConfig



1171
1172
1173
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1171

def notification_config
  @notification_config
end

#project_idString

The ID of the Google Cloud Platform Project that owns the operation. Corresponds to the JSON property projectId

Returns:

  • (String)


1176
1177
1178
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1176

def project_id
  @project_id
end

#start_timeString

Start time of this transfer execution. Corresponds to the JSON property startTime

Returns:

  • (String)


1181
1182
1183
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1181

def start_time
  @start_time
end

#statusString

Status of the transfer operation. Corresponds to the JSON property status

Returns:

  • (String)


1186
1187
1188
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1186

def status
  @status
end

#transfer_job_nameString

The name of the transfer job that triggers this transfer operation. Corresponds to the JSON property transferJobName

Returns:

  • (String)


1191
1192
1193
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1191

def transfer_job_name
  @transfer_job_name
end

#transfer_specGoogle::Apis::StoragetransferV1::TransferSpec

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



1196
1197
1198
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1196

def transfer_spec
  @transfer_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1203

def update!(**args)
  @counters = args[:counters] if args.key?(:counters)
  @end_time = args[:end_time] if args.key?(:end_time)
  @error_breakdowns = args[:error_breakdowns] if args.key?(:error_breakdowns)
  @name = args[:name] if args.key?(:name)
  @notification_config = args[:notification_config] if args.key?(:notification_config)
  @project_id = args[:project_id] if args.key?(:project_id)
  @start_time = args[:start_time] if args.key?(:start_time)
  @status = args[:status] if args.key?(:status)
  @transfer_job_name = args[:transfer_job_name] if args.key?(:transfer_job_name)
  @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec)
end