Cloud Quotas v1 API - Class CloudQuotasClientImpl (1.0.0-beta01)

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
NameDescription
grpcClientCloudQuotasCloudQuotasClient

The underlying gRPC client.

settingsCloudQuotasSettings

The base CloudQuotasSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override CloudQuotas.CloudQuotasClient GrpcClient { get; }

The underlying gRPC CloudQuotas client

Property Value
TypeDescription
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
NameDescription
requestCreateQuotaPreferenceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateQuotaPreferenceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetQuotaInfoRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetQuotaInfoRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetQuotaPreferenceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetQuotaPreferenceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListQuotaInfosRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListQuotaInfosRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListQuotaPreferencesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListQuotaPreferencesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateQuotaPreferenceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateQuotaPreferenceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskQuotaPreference

A Task containing the RPC response.

Overrides