Class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaBucket

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

Overview

A quota bucket is a quota provisioning unit for a specific set of dimensions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ V1Beta1QuotaBucket

Returns a new instance of V1Beta1QuotaBucket.



3259
3260
3261
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3259

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

Instance Attribute Details

#admin_overrideGoogle::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride

A quota override Corresponds to the JSON property adminOverride



3224
3225
3226
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3224

def admin_override
  @admin_override
end

#consumer_overrideGoogle::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride

A quota override Corresponds to the JSON property consumerOverride



3229
3230
3231
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3229

def consumer_override
  @consumer_override
end

#default_limitFixnum

The default limit of this quota bucket, as specified by the service configuration. Corresponds to the JSON property defaultLimit

Returns:

  • (Fixnum)


3235
3236
3237
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3235

def default_limit
  @default_limit
end

#dimensionsHash<String,String>

The dimensions of this quota bucket. If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific override. If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map. For example, if the map has key "region" and value "us-east-1", then the specified effective limit is only effective in that region, and the specified overrides apply only in that region. Corresponds to the JSON property dimensions

Returns:

  • (Hash<String,String>)


3246
3247
3248
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3246

def dimensions
  @dimensions
end

#effective_limitFixnum

The effective limit of this quota bucket. Equal to default_limit if there are no overrides. Corresponds to the JSON property effectiveLimit

Returns:

  • (Fixnum)


3252
3253
3254
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3252

def effective_limit
  @effective_limit
end

#producer_overrideGoogle::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride

A quota override Corresponds to the JSON property producerOverride



3257
3258
3259
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3257

def producer_override
  @producer_override
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3264
3265
3266
3267
3268
3269
3270
3271
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3264

def update!(**args)
  @admin_override = args[:admin_override] if args.key?(:admin_override)
  @consumer_override = args[:consumer_override] if args.key?(:consumer_override)
  @default_limit = args[:default_limit] if args.key?(:default_limit)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @effective_limit = args[:effective_limit] if args.key?(:effective_limit)
  @producer_override = args[:producer_override] if args.key?(:producer_override)
end