Class CloudQuotasGrpc.CloudQuotasStub (0.1.0)

public static final class CloudQuotasGrpc.CloudQuotasStub extends AbstractAsyncStub<CloudQuotasGrpc.CloudQuotasStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > CloudQuotasGrpc.CloudQuotasStub

Methods

build(Channel channel, CallOptions callOptions)

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

createQuotaPreference(CreateQuotaPreferenceRequest request, StreamObserver<QuotaPreference> responseObserver)

public void createQuotaPreference(CreateQuotaPreferenceRequest request, StreamObserver<QuotaPreference> responseObserver)

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

Parameters
NameDescription
requestCreateQuotaPreferenceRequest
responseObserverio.grpc.stub.StreamObserver<QuotaPreference>

getQuotaInfo(GetQuotaInfoRequest request, StreamObserver<QuotaInfo> responseObserver)

public void getQuotaInfo(GetQuotaInfoRequest request, StreamObserver<QuotaInfo> responseObserver)

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

Parameters
NameDescription
requestGetQuotaInfoRequest
responseObserverio.grpc.stub.StreamObserver<QuotaInfo>

getQuotaPreference(GetQuotaPreferenceRequest request, StreamObserver<QuotaPreference> responseObserver)

public void getQuotaPreference(GetQuotaPreferenceRequest request, StreamObserver<QuotaPreference> responseObserver)

Gets details of a single QuotaPreference.

Parameters
NameDescription
requestGetQuotaPreferenceRequest
responseObserverio.grpc.stub.StreamObserver<QuotaPreference>

listQuotaInfos(ListQuotaInfosRequest request, StreamObserver<ListQuotaInfosResponse> responseObserver)

public void listQuotaInfos(ListQuotaInfosRequest request, StreamObserver<ListQuotaInfosResponse> responseObserver)

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

Parameters
NameDescription
requestListQuotaInfosRequest
responseObserverio.grpc.stub.StreamObserver<ListQuotaInfosResponse>

listQuotaPreferences(ListQuotaPreferencesRequest request, StreamObserver<ListQuotaPreferencesResponse> responseObserver)

public void listQuotaPreferences(ListQuotaPreferencesRequest request, StreamObserver<ListQuotaPreferencesResponse> responseObserver)

Lists QuotaPreferences in a given project, folder or organization.

Parameters
NameDescription
requestListQuotaPreferencesRequest
responseObserverio.grpc.stub.StreamObserver<ListQuotaPreferencesResponse>

updateQuotaPreference(UpdateQuotaPreferenceRequest request, StreamObserver<QuotaPreference> responseObserver)

public void updateQuotaPreference(UpdateQuotaPreferenceRequest request, StreamObserver<QuotaPreference> responseObserver)

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

Parameters
NameDescription
requestUpdateQuotaPreferenceRequest
responseObserverio.grpc.stub.StreamObserver<QuotaPreference>