Cloud Quotas v1 API - Class CloudQuotasClientImpl (1.1.0)

public sealed class CloudQuotasClientImpl : CloudQuotasClient

Reference documentation and code samples for the Cloud Quotas v1 API class CloudQuotasClientImpl.

CloudQuotas client wrapper implementation, for convenient use.

Inheritance

object > CloudQuotasClient > CloudQuotasClientImpl

Namespace

Google.Cloud.CloudQuotas.V1

Assembly

Google.Cloud.CloudQuotas.V1.dll

Remarks

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.

Constructors

CloudQuotasClientImpl(CloudQuotasClient, CloudQuotasSettings, ILogger)

public CloudQuotasClientImpl(CloudQuotas.CloudQuotasClient grpcClient, CloudQuotasSettings settings, ILogger logger)

Constructs a client wrapper for the CloudQuotas service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient CloudQuotasCloudQuotasClient

The underlying gRPC client.

settings CloudQuotasSettings

The base CloudQuotasSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override CloudQuotas.CloudQuotasClient GrpcClient { get; }

The underlying gRPC CloudQuotas client

Property Value
Type Description
CloudQuotasCloudQuotasClient
Overrides

Methods

CreateQuotaPreference(CreateQuotaPreferenceRequest, CallSettings)

public override QuotaPreference CreateQuotaPreference(CreateQuotaPreferenceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CreateQuotaPreferenceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
QuotaPreference

The RPC response.

Overrides

CreateQuotaPreferenceAsync(CreateQuotaPreferenceRequest, CallSettings)

public override Task<QuotaPreference> CreateQuotaPreferenceAsync(CreateQuotaPreferenceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CreateQuotaPreferenceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskQuotaPreference

A Task containing the RPC response.

Overrides

GetQuotaInfo(GetQuotaInfoRequest, CallSettings)

public override QuotaInfo GetQuotaInfo(GetQuotaInfoRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetQuotaInfoRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
QuotaInfo

The RPC response.

Overrides

GetQuotaInfoAsync(GetQuotaInfoRequest, CallSettings)

public override Task<QuotaInfo> GetQuotaInfoAsync(GetQuotaInfoRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetQuotaInfoRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskQuotaInfo

A Task containing the RPC response.

Overrides

GetQuotaPreference(GetQuotaPreferenceRequest, CallSettings)

public override QuotaPreference GetQuotaPreference(GetQuotaPreferenceRequest request, CallSettings callSettings = null)

Gets details of a single QuotaPreference.

Parameters
Name Description
request GetQuotaPreferenceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
QuotaPreference

The RPC response.

Overrides

GetQuotaPreferenceAsync(GetQuotaPreferenceRequest, CallSettings)

public override Task<QuotaPreference> GetQuotaPreferenceAsync(GetQuotaPreferenceRequest request, CallSettings callSettings = null)

Gets details of a single QuotaPreference.

Parameters
Name Description
request GetQuotaPreferenceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskQuotaPreference

A Task containing the RPC response.

Overrides

ListQuotaInfos(ListQuotaInfosRequest, CallSettings)

public override PagedEnumerable<ListQuotaInfosResponse, QuotaInfo> ListQuotaInfos(ListQuotaInfosRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListQuotaInfosRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListQuotaInfosResponseQuotaInfo

A pageable sequence of QuotaInfo resources.

Overrides

ListQuotaInfosAsync(ListQuotaInfosRequest, CallSettings)

public override PagedAsyncEnumerable<ListQuotaInfosResponse, QuotaInfo> ListQuotaInfosAsync(ListQuotaInfosRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListQuotaInfosRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListQuotaInfosResponseQuotaInfo

A pageable asynchronous sequence of QuotaInfo resources.

Overrides

ListQuotaPreferences(ListQuotaPreferencesRequest, CallSettings)

public override PagedEnumerable<ListQuotaPreferencesResponse, QuotaPreference> ListQuotaPreferences(ListQuotaPreferencesRequest request, CallSettings callSettings = null)

Lists QuotaPreferences in a given project, folder or organization.

Parameters
Name Description
request ListQuotaPreferencesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListQuotaPreferencesResponseQuotaPreference

A pageable sequence of QuotaPreference resources.

Overrides

ListQuotaPreferencesAsync(ListQuotaPreferencesRequest, CallSettings)

public override PagedAsyncEnumerable<ListQuotaPreferencesResponse, QuotaPreference> ListQuotaPreferencesAsync(ListQuotaPreferencesRequest request, CallSettings callSettings = null)

Lists QuotaPreferences in a given project, folder or organization.

Parameters
Name Description
request ListQuotaPreferencesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListQuotaPreferencesResponseQuotaPreference

A pageable asynchronous sequence of QuotaPreference resources.

Overrides

UpdateQuotaPreference(UpdateQuotaPreferenceRequest, CallSettings)

public override QuotaPreference UpdateQuotaPreference(UpdateQuotaPreferenceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request UpdateQuotaPreferenceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
QuotaPreference

The RPC response.

Overrides

UpdateQuotaPreferenceAsync(UpdateQuotaPreferenceRequest, CallSettings)

public override Task<QuotaPreference> UpdateQuotaPreferenceAsync(UpdateQuotaPreferenceRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request UpdateQuotaPreferenceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskQuotaPreference

A Task containing the RPC response.

Overrides