class Google::Apis::ComputeV1::LocalizedMessage
Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
Attributes
locale[RW]
The locale used following the specification defined at www.rfc-editor. org/rfc/bcp/bcp47.txt. Examples are: “en-US”, “fr-CH”, “es-MX” Corresponds to the JSON property `locale` @return [String]
message[RW]
The localized error message in the above locale. Corresponds to the JSON property `message` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 18046 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 18051 def update!(**args) @locale = args[:locale] if args.key?(:locale) @message = args[:message] if args.key?(:message) end