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.



5674
5675
5676
# File 'lib/google/apis/apigee_v1/classes.rb', line 5674

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

Instance Attribute Details

#operation_typeString

Corresponds to the JSON property operationType

Returns:

  • (String)


5652
5653
5654
# File 'lib/google/apis/apigee_v1/classes.rb', line 5652

def operation_type
  @operation_type
end

#progressGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1OperationMetadataProgress

Information about operation progress. Corresponds to the JSON property progress



5657
5658
5659
# File 'lib/google/apis/apigee_v1/classes.rb', line 5657

def progress
  @progress
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


5662
5663
5664
# File 'lib/google/apis/apigee_v1/classes.rb', line 5662

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)


5667
5668
5669
# File 'lib/google/apis/apigee_v1/classes.rb', line 5667

def target_resource_name
  @target_resource_name
end

#warningsArray<String>

Warnings encountered while executing the operation. Corresponds to the JSON property warnings

Returns:

  • (Array<String>)


5672
5673
5674
# File 'lib/google/apis/apigee_v1/classes.rb', line 5672

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5679
5680
5681
5682
5683
5684
5685
# File 'lib/google/apis/apigee_v1/classes.rb', line 5679

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)
  @warnings = args[:warnings] if args.key?(:warnings)
end