Reference documentation and code samples for the Cloud Quotas V1BETA API class Google::Cloud::CloudQuotas::V1beta::QuotaPreference.
QuotaPreference represents the preferred quota configuration specified for a project, folder or organization. There is only one QuotaPreference resource for a quota value targeting a unique set of dimensions.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#contact_email
def contact_email() -> ::String
-
(::String) — Input only. An email address that can be used to contact the user, in case
Google Cloud needs more information to make a decision before additional
quota can be granted.
When requesting a quota increase, the email address is required. When requesting a quota decrease, the email address is optional. For example, the email address is optional when the
QuotaConfig.preferred_value
is smaller than theQuotaDetails.reset_value
.
#contact_email=
def contact_email=(value) -> ::String
-
value (::String) — Input only. An email address that can be used to contact the user, in case
Google Cloud needs more information to make a decision before additional
quota can be granted.
When requesting a quota increase, the email address is required. When requesting a quota decrease, the email address is optional. For example, the email address is optional when the
QuotaConfig.preferred_value
is smaller than theQuotaDetails.reset_value
.
-
(::String) — Input only. An email address that can be used to contact the user, in case
Google Cloud needs more information to make a decision before additional
quota can be granted.
When requesting a quota increase, the email address is required. When requesting a quota decrease, the email address is optional. For example, the email address is optional when the
QuotaConfig.preferred_value
is smaller than theQuotaDetails.reset_value
.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Create time stamp
#dimensions
def dimensions() -> ::Google::Protobuf::Map{::String => ::String}
-
(::Google::Protobuf::Map{::String => ::String}) — Immutable. The dimensions that this quota preference applies to. The key of
the map entry is the name of a dimension, such as
region
,zone
,network_id
, and the value of the map entry is the dimension value.If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.
Note: QuotaPreferences can only be applied across all values of
user
andresource
dimension. Do not set values foruser
orresource
in the dimension map.For example:
{"provider" : "Example Organization"}
whereprovider
is a service-specific quota dimension andExample Organization
is the provider name.
#dimensions=
def dimensions=(value) -> ::Google::Protobuf::Map{::String => ::String}
-
value (::Google::Protobuf::Map{::String => ::String}) — Immutable. The dimensions that this quota preference applies to. The key of
the map entry is the name of a dimension, such as
region
,zone
,network_id
, and the value of the map entry is the dimension value.If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.
Note: QuotaPreferences can only be applied across all values of
user
andresource
dimension. Do not set values foruser
orresource
in the dimension map.For example:
{"provider" : "Example Organization"}
whereprovider
is a service-specific quota dimension andExample Organization
is the provider name.
-
(::Google::Protobuf::Map{::String => ::String}) — Immutable. The dimensions that this quota preference applies to. The key of
the map entry is the name of a dimension, such as
region
,zone
,network_id
, and the value of the map entry is the dimension value.If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.
Note: QuotaPreferences can only be applied across all values of
user
andresource
dimension. Do not set values foruser
orresource
in the dimension map.For example:
{"provider" : "Example Organization"}
whereprovider
is a service-specific quota dimension andExample Organization
is the provider name.
#etag
def etag() -> ::String
- (::String) — Optional. The current etag of the quota preference. If an etag is provided on update and does not match the current server's etag of the quota preference, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.
#etag=
def etag=(value) -> ::String
- value (::String) — Optional. The current etag of the quota preference. If an etag is provided on update and does not match the current server's etag of the quota preference, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.
- (::String) — Optional. The current etag of the quota preference. If an etag is provided on update and does not match the current server's etag of the quota preference, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.
#justification
def justification() -> ::String
- (::String) — The reason / justification for this quota preference.
#justification=
def justification=(value) -> ::String
- value (::String) — The reason / justification for this quota preference.
- (::String) — The reason / justification for this quota preference.
#name
def name() -> ::String
-
(::String) — Required except in the CREATE requests.
The resource name of the quota preference.
The path that follows
/locations
must be/global
. For example:projects/123/locations/global/quotaPreferences/my-config-for-us-east1
#name=
def name=(value) -> ::String
-
value (::String) — Required except in the CREATE requests.
The resource name of the quota preference.
The path that follows
/locations
must be/global
. For example:projects/123/locations/global/quotaPreferences/my-config-for-us-east1
-
(::String) — Required except in the CREATE requests.
The resource name of the quota preference.
The path that follows
/locations
must be/global
. For example:projects/123/locations/global/quotaPreferences/my-config-for-us-east1
#quota_config
def quota_config() -> ::Google::Cloud::CloudQuotas::V1beta::QuotaConfig
- (::Google::Cloud::CloudQuotas::V1beta::QuotaConfig) — Required. Preferred quota configuration.
#quota_config=
def quota_config=(value) -> ::Google::Cloud::CloudQuotas::V1beta::QuotaConfig
- value (::Google::Cloud::CloudQuotas::V1beta::QuotaConfig) — Required. Preferred quota configuration.
- (::Google::Cloud::CloudQuotas::V1beta::QuotaConfig) — Required. Preferred quota configuration.
#quota_id
def quota_id() -> ::String
-
(::String) — Required. The id of the quota to which the quota preference is applied. A
quota name is unique in the service. For example,
CpusPerProjectPerRegion
#quota_id=
def quota_id=(value) -> ::String
-
value (::String) — Required. The id of the quota to which the quota preference is applied. A
quota name is unique in the service. For example,
CpusPerProjectPerRegion
-
(::String) — Required. The id of the quota to which the quota preference is applied. A
quota name is unique in the service. For example,
CpusPerProjectPerRegion
#reconciling
def reconciling() -> ::Boolean
- (::Boolean) — Output only. Is the quota preference pending Google Cloud approval and fulfillment.
#service
def service() -> ::String
- (::String) — Required. The name of the service to which the quota preference is applied.
#service=
def service=(value) -> ::String
- value (::String) — Required. The name of the service to which the quota preference is applied.
- (::String) — Required. The name of the service to which the quota preference is applied.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Update time stamp