Skip navigation links

@Generated(value="by gapic-generator-java")

Package com.google.api.cloudquotas.v1beta

A client to Cloud Quotas API The interfaces provided are listed below, along with usage samples.

See: Description

Package com.google.api.cloudquotas.v1beta Description

A client to Cloud Quotas API

The interfaces provided are listed below, along with usage samples.

======================= CloudQuotasClient =======================

Service Description: The Cloud Quotas API is an infrastructure service for Google Cloud that lets service consumers list and manage their resource usage limits.

- List/Get the metadata and current status of the quotas for a service. - Create/Update quota preferencess that declare the preferred quota values. - Check the status of a quota preference request. - List/Get pending and historical quota preference.

Sample for CloudQuotasClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (CloudQuotasClient cloudQuotasClient = CloudQuotasClient.create()) {
   QuotaInfoName name =
       QuotaInfoName.ofProjectLocationServiceQuotaInfoName(
           "[PROJECT]", "[LOCATION]", "[SERVICE]", "[QUOTA_INFO]");
   QuotaInfo response = cloudQuotasClient.getQuotaInfo(name);
 }
 

======================= QuotaAdjusterSettingsManagerClient =======================

Service Description: The Quotas Adjuster Settings API is an infrastructure service for Google Cloud that lets service consumers view and update their quota adjuster settings.

- Update quota adjuster settings. - Get the name of the configurations.

Sample for QuotaAdjusterSettingsManagerClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (QuotaAdjusterSettingsManagerClient quotaAdjusterSettingsManagerClient =
     QuotaAdjusterSettingsManagerClient.create()) {
   QuotaAdjusterSettings quotaAdjusterSettings = QuotaAdjusterSettings.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   QuotaAdjusterSettings response =
       quotaAdjusterSettingsManagerClient.updateQuotaAdjusterSettings(
           quotaAdjusterSettings, updateMask);
 }
 
Skip navigation links

Copyright © 2025 Google LLC. All rights reserved.