Class: Google::Apis::ComputeBeta::Operation::Error::Error

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

Defined Under Namespace

Classes: ErrorDetail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Error

Returns a new instance of Error.



27233
27234
27235
# File 'lib/google/apis/compute_beta/classes.rb', line 27233

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

Instance Attribute Details

#codeString

[Output Only] The error type identifier for this error. Corresponds to the JSON property code

Returns:

  • (String)


27212
27213
27214
# File 'lib/google/apis/compute_beta/classes.rb', line 27212

def code
  @code
end

#error_detailsArray<Google::Apis::ComputeBeta::Operation::Error::Error::ErrorDetail>

[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. Corresponds to the JSON property errorDetails



27220
27221
27222
# File 'lib/google/apis/compute_beta/classes.rb', line 27220

def error_details
  @error_details
end

#locationString

[Output Only] Indicates the field in the request that caused the error. This property is optional. Corresponds to the JSON property location

Returns:

  • (String)


27226
27227
27228
# File 'lib/google/apis/compute_beta/classes.rb', line 27226

def location
  @location
end

#messageString

[Output Only] An optional, human-readable error message. Corresponds to the JSON property message

Returns:

  • (String)


27231
27232
27233
# File 'lib/google/apis/compute_beta/classes.rb', line 27231

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27238
27239
27240
27241
27242
27243
# File 'lib/google/apis/compute_beta/classes.rb', line 27238

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