class Google::Apis::ComputeV1::Operation::Error::Error::ErrorDetail

Attributes

error_info[RW]

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` @return [Google::Apis::ComputeV1::ErrorInfo]

help[RW]

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` @return [Google::Apis::ComputeV1::Help]

localized_message[RW]

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` @return [Google::Apis::ComputeV1::LocalizedMessage]

quota_info[RW]

Additional details for quota exceeded error for resource quota. Corresponds to the JSON property `quotaInfo` @return [Google::Apis::ComputeV1::QuotaExceededInfo]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 23863
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 23868
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)
  @quota_info = args[:quota_info] if args.key?(:quota_info)
end