class Google::Apis::JobsV4::BatchOperationMetadata

Metadata used for long running operations returned by CTS batch APIs. It's used to replace google.longrunning.Operation.metadata.

Attributes

create_time[RW]

The time when the batch operation is created. Corresponds to the JSON property `createTime` @return [String]

end_time[RW]

The time when the batch operation is finished and google.longrunning.Operation. done is set to `true`. Corresponds to the JSON property `endTime` @return [String]

failure_count[RW]

Count of failed item(s) inside an operation. Corresponds to the JSON property `failureCount` @return [Fixnum]

state[RW]

The state of a long running operation. Corresponds to the JSON property `state` @return [String]

state_description[RW]

More detailed information about operation state. Corresponds to the JSON property `stateDescription` @return [String]

success_count[RW]

Count of successful item(s) inside an operation. Corresponds to the JSON property `successCount` @return [Fixnum]

total_count[RW]

Count of total item(s) inside an operation. Corresponds to the JSON property `totalCount` @return [Fixnum]

update_time[RW]

The time when the batch operation status is updated. The metadata and the update_time is refreshed every minute otherwise cached data is returned. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/jobs_v4/classes.rb, line 192
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/jobs_v4/classes.rb, line 197
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @failure_count = args[:failure_count] if args.key?(:failure_count)
  @state = args[:state] if args.key?(:state)
  @state_description = args[:state_description] if args.key?(:state_description)
  @success_count = args[:success_count] if args.key?(:success_count)
  @total_count = args[:total_count] if args.key?(:total_count)
  @update_time = args[:update_time] if args.key?(:update_time)
end