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.



8156
8157
8158
# File 'lib/google/apis/apigee_v1/classes.rb', line 8156

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

Instance Attribute Details

#operation_typeString

Corresponds to the JSON property operationType

Returns:

  • (String)


8134
8135
8136
# File 'lib/google/apis/apigee_v1/classes.rb', line 8134

def operation_type
  @operation_type
end

#progressGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1OperationMetadataProgress

Information about operation progress. Corresponds to the JSON property progress



8139
8140
8141
# File 'lib/google/apis/apigee_v1/classes.rb', line 8139

def progress
  @progress
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


8144
8145
8146
# File 'lib/google/apis/apigee_v1/classes.rb', line 8144

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)


8149
8150
8151
# File 'lib/google/apis/apigee_v1/classes.rb', line 8149

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


8154
8155
8156
# File 'lib/google/apis/apigee_v1/classes.rb', line 8154

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8161
8162
8163
8164
8165
8166
8167
# File 'lib/google/apis/apigee_v1/classes.rb', line 8161

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