Class: Google::Apis::VisionV1::BatchOperationMetadata

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

Overview

Metadata for the batch operations such as the current state. This is included in the metadata field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.

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) ⇒ BatchOperationMetadata

Returns a new instance of BatchOperationMetadata.



572
573
574
# File 'generated/google/apis/vision_v1/classes.rb', line 572

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

Instance Attribute Details

#end_timeString

The time when the batch request is finished and google.longrunning.Operation.done is set to true. Corresponds to the JSON property endTime

Returns:

  • (String)


560
561
562
# File 'generated/google/apis/vision_v1/classes.rb', line 560

def end_time
  @end_time
end

#stateString

The current state of the batch operation. Corresponds to the JSON property state

Returns:

  • (String)


565
566
567
# File 'generated/google/apis/vision_v1/classes.rb', line 565

def state
  @state
end

#submit_timeString

The time when the batch request was submitted to the server. Corresponds to the JSON property submitTime

Returns:

  • (String)


570
571
572
# File 'generated/google/apis/vision_v1/classes.rb', line 570

def submit_time
  @submit_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



577
578
579
580
581
# File 'generated/google/apis/vision_v1/classes.rb', line 577

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @state = args[:state] if args.key?(:state)
  @submit_time = args[:submit_time] if args.key?(:submit_time)
end