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

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

Overview

Metadata describing an Operation.

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

Returns a new instance of GoogleCloudApigeeV1OperationMetadata.


3624
3625
3626
# File 'generated/google/apis/apigee_v1/classes.rb', line 3624

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

Instance Attribute Details

#operation_typeString

Corresponds to the JSON property operationType

Returns:

  • (String)

3612
3613
3614
# File 'generated/google/apis/apigee_v1/classes.rb', line 3612

def operation_type
  @operation_type
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)

3617
3618
3619
# File 'generated/google/apis/apigee_v1/classes.rb', line 3617

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)

3622
3623
3624
# File 'generated/google/apis/apigee_v1/classes.rb', line 3622

def target_resource_name
  @target_resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3629
3630
3631
3632
3633
# File 'generated/google/apis/apigee_v1/classes.rb', line 3629

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