Class: Google::Apis::TpuV2::OperationMetadata

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

Overview

Metadata describing an Operation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationMetadata

Returns a new instance of OperationMetadata.



821
822
823
# File 'lib/google/apis/tpu_v2/classes.rb', line 821

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

Instance Attribute Details

#api_versionString

API version. Corresponds to the JSON property apiVersion

Returns:

  • (String)


787
788
789
# File 'lib/google/apis/tpu_v2/classes.rb', line 787

def api_version
  @api_version
end

#cancel_requestedBoolean Also known as: cancel_requested?

Specifies if cancellation was requested for the operation. Corresponds to the JSON property cancelRequested

Returns:

  • (Boolean)


792
793
794
# File 'lib/google/apis/tpu_v2/classes.rb', line 792

def cancel_requested
  @cancel_requested
end

#create_timeString

The time the operation was created. Corresponds to the JSON property createTime

Returns:

  • (String)


798
799
800
# File 'lib/google/apis/tpu_v2/classes.rb', line 798

def create_time
  @create_time
end

#end_timeString

The time the operation finished running. Corresponds to the JSON property endTime

Returns:

  • (String)


803
804
805
# File 'lib/google/apis/tpu_v2/classes.rb', line 803

def end_time
  @end_time
end

#status_detailString

Human-readable status of the operation, if any. Corresponds to the JSON property statusDetail

Returns:

  • (String)


808
809
810
# File 'lib/google/apis/tpu_v2/classes.rb', line 808

def status_detail
  @status_detail
end

#targetString

Target of the operation - for example projects/project-1/connectivityTests/ test-1 Corresponds to the JSON property target

Returns:

  • (String)


814
815
816
# File 'lib/google/apis/tpu_v2/classes.rb', line 814

def target
  @target
end

#verbString

Name of the verb executed by the operation. Corresponds to the JSON property verb

Returns:

  • (String)


819
820
821
# File 'lib/google/apis/tpu_v2/classes.rb', line 819

def verb
  @verb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



826
827
828
829
830
831
832
833
834
# File 'lib/google/apis/tpu_v2/classes.rb', line 826

def update!(**args)
  @api_version = args[:api_version] if args.key?(:api_version)
  @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
  @create_time = args[:create_time] if args.key?(:create_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @status_detail = args[:status_detail] if args.key?(:status_detail)
  @target = args[:target] if args.key?(:target)
  @verb = args[:verb] if args.key?(:verb)
end