Class: Google::Apis::ComposerV1::OperationMetadata

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/composer_v1/classes.rb,
lib/google/apis/composer_v1/representations.rb,
lib/google/apis/composer_v1/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.



846
847
848
# File 'lib/google/apis/composer_v1/classes.rb', line 846

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

Instance Attribute Details

#create_timeString

Output only. The time the operation was submitted to the server. Corresponds to the JSON property createTime

Returns:

  • (String)


817
818
819
# File 'lib/google/apis/composer_v1/classes.rb', line 817

def create_time
  @create_time
end

#end_timeString

Output only. The time when the operation terminated, regardless of its success. This field is unset if the operation is still ongoing. Corresponds to the JSON property endTime

Returns:

  • (String)


823
824
825
# File 'lib/google/apis/composer_v1/classes.rb', line 823

def end_time
  @end_time
end

#operation_typeString

Output only. The type of operation being performed. Corresponds to the JSON property operationType

Returns:

  • (String)


828
829
830
# File 'lib/google/apis/composer_v1/classes.rb', line 828

def operation_type
  @operation_type
end

#resourceString

Output only. The resource being operated on, as a relative resource name. Corresponds to the JSON property resource

Returns:

  • (String)


834
835
836
# File 'lib/google/apis/composer_v1/classes.rb', line 834

def resource
  @resource
end

#resource_uuidString

Output only. The UUID of the resource being operated on. Corresponds to the JSON property resourceUuid

Returns:

  • (String)


839
840
841
# File 'lib/google/apis/composer_v1/classes.rb', line 839

def resource_uuid
  @resource_uuid
end

#stateString

Output only. The current operation state. Corresponds to the JSON property state

Returns:

  • (String)


844
845
846
# File 'lib/google/apis/composer_v1/classes.rb', line 844

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



851
852
853
854
855
856
857
858
# File 'lib/google/apis/composer_v1/classes.rb', line 851

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @operation_type = args[:operation_type] if args.key?(:operation_type)
  @resource = args[:resource] if args.key?(:resource)
  @resource_uuid = args[:resource_uuid] if args.key?(:resource_uuid)
  @state = args[:state] if args.key?(:state)
end