Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1UpdateError

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

Details on why a resource update failed in the runtime.

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

Returns a new instance of GoogleCloudApigeeV1UpdateError.


5391
5392
5393
# File 'generated/google/apis/apigee_v1/classes.rb', line 5391

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

Instance Attribute Details

#codeString

Status code. Corresponds to the JSON property code

Returns:

  • (String)

5372
5373
5374
# File 'generated/google/apis/apigee_v1/classes.rb', line 5372

def code
  @code
end

#messageString

User-friendly error message. Corresponds to the JSON property message

Returns:

  • (String)

5377
5378
5379
# File 'generated/google/apis/apigee_v1/classes.rb', line 5377

def message
  @message
end

#resourceString

The sub resource specific to this error (e.g. a proxy deployed within the EnvironmentConfig). If empty the error refers to the top level resource. Corresponds to the JSON property resource

Returns:

  • (String)

5383
5384
5385
# File 'generated/google/apis/apigee_v1/classes.rb', line 5383

def resource
  @resource
end

#typeString

A string that uniquely identifies the type of error. This provides a more reliable means to deduplicate errors across revisions and instances. Corresponds to the JSON property type

Returns:

  • (String)

5389
5390
5391
# File 'generated/google/apis/apigee_v1/classes.rb', line 5389

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5396
5397
5398
5399
5400
5401
# File 'generated/google/apis/apigee_v1/classes.rb', line 5396

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @message = args[:message] if args.key?(:message)
  @resource = args[:resource] if args.key?(:resource)
  @type = args[:type] if args.key?(:type)
end