Class: Fog::Google::Compute::Operation::ErrorInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/google/compute/models/operation.rb

Overview

[{:code=>"QUOTA_EXCEEDED", :error_details=> [{:quota_info=> {:dimensions=>{:region=>"us-east4", :limit=>500, :limit_name=>"SSD-TOTAL-GB-per-project-region", :metric_name=>"compute.googleapis.com/ssd_total_storage"}}], :message=>"Quota 'SSD_TOTAL_GB' exceeded. Limit: 500.0 in region us-east4."} ] }

Direct Known Subclasses

QuotaInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ErrorInfo

Returns a new instance of ErrorInfo.



47
48
49
50
51
52
# File 'lib/fog/google/compute/models/operation.rb', line 47

def initialize(attributes = {})
  @code          = attributes[:code]
  @error_details = attributes[:error_details]
  @location      = attributes[:location]
  @message       = attributes[:message]
end

Instance Attribute Details

#code ⇒ Object

Returns the value of attribute code.



42
43
44
# File 'lib/fog/google/compute/models/operation.rb', line 42

def code
  @code
end

#error_details ⇒ Object

Returns the value of attribute error_details.



43
44
45
# File 'lib/fog/google/compute/models/operation.rb', line 43

def error_details
  @error_details
end

#location ⇒ Object

Returns the value of attribute location.



44
45
46
# File 'lib/fog/google/compute/models/operation.rb', line 44

def location
  @location
end

#message ⇒ Object

Returns the value of attribute message.



45
46
47
# File 'lib/fog/google/compute/models/operation.rb', line 45

def message
  @message
end

Instance Method Details

#message_pretty ⇒ Object



54
55
56
# File 'lib/fog/google/compute/models/operation.rb', line 54

def message_pretty
  message
end