Class: Google::Apis::ComputeAlpha::QuotaExceededInfo

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

Overview

Additional details for quota exceeded error for resource quota.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QuotaExceededInfo

Returns a new instance of QuotaExceededInfo.



34153
34154
34155
# File 'lib/google/apis/compute_alpha/classes.rb', line 34153

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

Instance Attribute Details

#dimensionsHash<String,String>

The map holding related quota dimensions. Corresponds to the JSON property dimensions

Returns:

  • (Hash<String,String>)


34135
34136
34137
# File 'lib/google/apis/compute_alpha/classes.rb', line 34135

def dimensions
  @dimensions
end

#limitFloat

Current effective quota limit. The limit's unit depends on the quota type or metric. Corresponds to the JSON property limit

Returns:

  • (Float)


34141
34142
34143
# File 'lib/google/apis/compute_alpha/classes.rb', line 34141

def limit
  @limit
end

#limit_nameString

The name of the quota limit. Corresponds to the JSON property limitName

Returns:

  • (String)


34146
34147
34148
# File 'lib/google/apis/compute_alpha/classes.rb', line 34146

def limit_name
  @limit_name
end

#metric_nameString

The Compute Engine quota metric name. Corresponds to the JSON property metricName

Returns:

  • (String)


34151
34152
34153
# File 'lib/google/apis/compute_alpha/classes.rb', line 34151

def metric_name
  @metric_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34158
34159
34160
34161
34162
34163
# File 'lib/google/apis/compute_alpha/classes.rb', line 34158

def update!(**args)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @limit = args[:limit] if args.key?(:limit)
  @limit_name = args[:limit_name] if args.key?(:limit_name)
  @metric_name = args[:metric_name] if args.key?(:metric_name)
end