Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationMetadata

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

Overview

Metadata describing an Operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1OperationMetadata

Returns a new instance of GoogleCloudApigeeV1OperationMetadata.



4819
4820
4821
# File 'lib/google/apis/apigee_v1/classes.rb', line 4819

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

Instance Attribute Details

#operation_typeString

Corresponds to the JSON property operationType

Returns:

  • (String)


4802
4803
4804
# File 'lib/google/apis/apigee_v1/classes.rb', line 4802

def operation_type
  @operation_type
end

#progressGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1OperationMetadataProgress

Information about operation progress. Corresponds to the JSON property progress



4807
4808
4809
# File 'lib/google/apis/apigee_v1/classes.rb', line 4807

def progress
  @progress
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


4812
4813
4814
# File 'lib/google/apis/apigee_v1/classes.rb', line 4812

def state
  @state
end

#target_resource_nameString

Name of the resource for which the operation is operating on. Corresponds to the JSON property targetResourceName

Returns:

  • (String)


4817
4818
4819
# File 'lib/google/apis/apigee_v1/classes.rb', line 4817

def target_resource_name
  @target_resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4824
4825
4826
4827
4828
4829
# File 'lib/google/apis/apigee_v1/classes.rb', line 4824

def update!(**args)
  @operation_type = args[:operation_type] if args.key?(:operation_type)
  @progress = args[:progress] if args.key?(:progress)
  @state = args[:state] if args.key?(:state)
  @target_resource_name = args[:target_resource_name] if args.key?(:target_resource_name)
end