Class: Google::Apis::ComputeV1::Quota

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

Overview

A quotas entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Quota

Returns a new instance of Quota.



6230
6231
6232
# File 'generated/google/apis/compute_v1/classes.rb', line 6230

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

Instance Attribute Details

#limitFloat

[Output Only] Quota limit for this metric. Corresponds to the JSON property limit

Returns:

  • (Float)


6218
6219
6220
# File 'generated/google/apis/compute_v1/classes.rb', line 6218

def limit
  @limit
end

#metricString

[Output Only] Name of the quota metric. Corresponds to the JSON property metric

Returns:

  • (String)


6223
6224
6225
# File 'generated/google/apis/compute_v1/classes.rb', line 6223

def metric
  @metric
end

#usageFloat

[Output Only] Current usage of this metric. Corresponds to the JSON property usage

Returns:

  • (Float)


6228
6229
6230
# File 'generated/google/apis/compute_v1/classes.rb', line 6228

def usage
  @usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6235
6236
6237
6238
6239
# File 'generated/google/apis/compute_v1/classes.rb', line 6235

def update!(**args)
  @limit = args[:limit] if args.key?(:limit)
  @metric = args[:metric] if args.key?(:metric)
  @usage = args[:usage] if args.key?(:usage)
end