Class: Google::Apis::ComputeBeta::ManagedInstanceLastAttempt::Errors::Error::ErrorDetail

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ErrorDetail

Returns a new instance of ErrorDetail.



20074
20075
20076
# File 'lib/google/apis/compute_beta/classes.rb', line 20074

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

Instance Attribute Details

#error_infoGoogle::Apis::ComputeBeta::ErrorInfo

Describes the cause of the error with structured details. Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: " reason": "API_DISABLED" "domain": "googleapis.com" "metadata": "resource": " projects/123", "service": "pubsub.googleapis.com" This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata" : "availableRegions": "us-central1,us-east2" Corresponds to the JSON property errorInfo



20058
20059
20060
# File 'lib/google/apis/compute_beta/classes.rb', line 20058

def error_info
  @error_info
end

#helpGoogle::Apis::ComputeBeta::Help

Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit. Corresponds to the JSON property help



20066
20067
20068
# File 'lib/google/apis/compute_beta/classes.rb', line 20066

def help
  @help
end

#localized_messageGoogle::Apis::ComputeBeta::LocalizedMessage

Provides a localized error message that is safe to return to the user which can be attached to an RPC error. Corresponds to the JSON property localizedMessage



20072
20073
20074
# File 'lib/google/apis/compute_beta/classes.rb', line 20072

def localized_message
  @localized_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20079
20080
20081
20082
20083
# File 'lib/google/apis/compute_beta/classes.rb', line 20079

def update!(**args)
  @error_info = args[:error_info] if args.key?(:error_info)
  @help = args[:help] if args.key?(:help)
  @localized_message = args[:localized_message] if args.key?(:localized_message)
end