# Cloud Quotas V1BETA API - Class Google::Cloud::CloudQuotas::V1beta::CloudQuotas::Rest::ServiceStub (v0.9.0)

0.9.0 (latest) 0.8.0 0.7.0 0.6.2 0.5.0 0.4.0 0.3.2 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Quotas V1BETA API class Google::Cloud::CloudQuotas::V1beta::CloudQuotas::Rest::ServiceStub.

REST service stub for the CloudQuotas service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #create_quota_preference

    def create_quota_preference(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CloudQuotas::V1beta::QuotaPreference

Baseline implementation for the create_quota_preference REST call
**Parameters**

- **request_pb** ([::Google::Cloud::CloudQuotas::V1beta::CreateQuotaPreferenceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-CreateQuotaPreferenceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudQuotas::V1beta::QuotaPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-QuotaPreference))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudQuotas::V1beta::QuotaPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-QuotaPreference)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_quota_info

    def get_quota_info(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CloudQuotas::V1beta::QuotaInfo

Baseline implementation for the get_quota_info REST call
**Parameters**

- **request_pb** ([::Google::Cloud::CloudQuotas::V1beta::GetQuotaInfoRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-GetQuotaInfoRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudQuotas::V1beta::QuotaInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-QuotaInfo))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudQuotas::V1beta::QuotaInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-QuotaInfo)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_quota_preference

    def get_quota_preference(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CloudQuotas::V1beta::QuotaPreference

Baseline implementation for the get_quota_preference REST call
**Parameters**

- **request_pb** ([::Google::Cloud::CloudQuotas::V1beta::GetQuotaPreferenceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-GetQuotaPreferenceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudQuotas::V1beta::QuotaPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-QuotaPreference))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudQuotas::V1beta::QuotaPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-QuotaPreference)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_quota_infos

    def list_quota_infos(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CloudQuotas::V1beta::ListQuotaInfosResponse

Baseline implementation for the list_quota_infos REST call
**Parameters**

- **request_pb** ([::Google::Cloud::CloudQuotas::V1beta::ListQuotaInfosRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-ListQuotaInfosRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudQuotas::V1beta::ListQuotaInfosResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-ListQuotaInfosResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudQuotas::V1beta::ListQuotaInfosResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-ListQuotaInfosResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_quota_preferences

    def list_quota_preferences(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CloudQuotas::V1beta::ListQuotaPreferencesResponse

Baseline implementation for the list_quota_preferences REST call
**Parameters**

- **request_pb** ([::Google::Cloud::CloudQuotas::V1beta::ListQuotaPreferencesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-ListQuotaPreferencesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudQuotas::V1beta::ListQuotaPreferencesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-ListQuotaPreferencesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudQuotas::V1beta::ListQuotaPreferencesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-ListQuotaPreferencesResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_quota_preference

    def update_quota_preference(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CloudQuotas::V1beta::QuotaPreference

Baseline implementation for the update_quota_preference REST call
**Parameters**

- **request_pb** ([::Google::Cloud::CloudQuotas::V1beta::UpdateQuotaPreferenceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-UpdateQuotaPreferenceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudQuotas::V1beta::QuotaPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-QuotaPreference))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudQuotas::V1beta::QuotaPreference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_quotas-v1beta/latest/Google-Cloud-CloudQuotas-V1beta-QuotaPreference)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)