Class CloudQuotasGrpc.CloudQuotasBlockingStub (0.8.0)

public static final class CloudQuotasGrpc.CloudQuotasBlockingStub extends AbstractBlockingStub<CloudQuotasGrpc.CloudQuotasBlockingStub>

A stub to allow clients to do synchronous rpc calls to service CloudQuotas.

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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > CloudQuotasGrpc.CloudQuotasBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected CloudQuotasGrpc.CloudQuotasBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
CloudQuotasGrpc.CloudQuotasBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createQuotaPreference(CreateQuotaPreferenceRequest request)

public QuotaPreference createQuotaPreference(CreateQuotaPreferenceRequest request)

Creates a new QuotaPreference that declares the desired value for a quota.

Parameter
NameDescription
requestCreateQuotaPreferenceRequest
Returns
TypeDescription
QuotaPreference

getQuotaInfo(GetQuotaInfoRequest request)

public QuotaInfo getQuotaInfo(GetQuotaInfoRequest request)

Retrieve the QuotaInfo of a quota for a project, folder or organization.

Parameter
NameDescription
requestGetQuotaInfoRequest
Returns
TypeDescription
QuotaInfo

getQuotaPreference(GetQuotaPreferenceRequest request)

public QuotaPreference getQuotaPreference(GetQuotaPreferenceRequest request)

Gets details of a single QuotaPreference.

Parameter
NameDescription
requestGetQuotaPreferenceRequest
Returns
TypeDescription
QuotaPreference

listQuotaInfos(ListQuotaInfosRequest request)

public ListQuotaInfosResponse listQuotaInfos(ListQuotaInfosRequest request)

Lists QuotaInfos of all quotas for a given project, folder or organization.

Parameter
NameDescription
requestListQuotaInfosRequest
Returns
TypeDescription
ListQuotaInfosResponse

listQuotaPreferences(ListQuotaPreferencesRequest request)

public ListQuotaPreferencesResponse listQuotaPreferences(ListQuotaPreferencesRequest request)

Lists QuotaPreferences in a given project, folder or organization.

Parameter
NameDescription
requestListQuotaPreferencesRequest
Returns
TypeDescription
ListQuotaPreferencesResponse

updateQuotaPreference(UpdateQuotaPreferenceRequest request)

public QuotaPreference updateQuotaPreference(UpdateQuotaPreferenceRequest request)

Updates the parameters of a single QuotaPreference. It can updates the config in any states, not just the ones pending approval.

Parameter
NameDescription
requestUpdateQuotaPreferenceRequest
Returns
TypeDescription
QuotaPreference