public class CloudQuotas.CloudQuotasClient : ClientBase<CloudQuotas.CloudQuotasClient>Reference documentation and code samples for the Cloud Quotas v1 API class CloudQuotas.CloudQuotasClient.
Client for CloudQuotas
Inheritance
object > ClientBase > ClientBaseCloudQuotasCloudQuotasClient > CloudQuotas.CloudQuotasClientNamespace
Google.Cloud.CloudQuotas.V1Assembly
Google.Cloud.CloudQuotas.V1.dll
Constructors
CloudQuotasClient()
protected CloudQuotasClient()Protected parameterless constructor to allow creation of test doubles.
CloudQuotasClient(CallInvoker)
public CloudQuotasClient(CallInvoker callInvoker)Creates a new client for CloudQuotas that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
CloudQuotasClient(ChannelBase)
public CloudQuotasClient(ChannelBase channel)Creates a new client for CloudQuotas
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
CloudQuotasClient(ClientBaseConfiguration)
protected CloudQuotasClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
CreateQuotaPreference(CreateQuotaPreferenceRequest, CallOptions)
public virtual QuotaPreference CreateQuotaPreference(CreateQuotaPreferenceRequest request, CallOptions options)Creates a new QuotaPreference that declares the desired value for a quota.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateQuotaPreferenceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
QuotaPreference |
The response received from the server. |
CreateQuotaPreference(CreateQuotaPreferenceRequest, Metadata, DateTime?, CancellationToken)
public virtual QuotaPreference CreateQuotaPreference(CreateQuotaPreferenceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Creates a new QuotaPreference that declares the desired value for a quota.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateQuotaPreferenceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
QuotaPreference |
The response received from the server. |
CreateQuotaPreferenceAsync(CreateQuotaPreferenceRequest, CallOptions)
public virtual AsyncUnaryCall<QuotaPreference> CreateQuotaPreferenceAsync(CreateQuotaPreferenceRequest request, CallOptions options)Creates a new QuotaPreference that declares the desired value for a quota.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateQuotaPreferenceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallQuotaPreference |
The call object. |
CreateQuotaPreferenceAsync(CreateQuotaPreferenceRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<QuotaPreference> CreateQuotaPreferenceAsync(CreateQuotaPreferenceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Creates a new QuotaPreference that declares the desired value for a quota.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateQuotaPreferenceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallQuotaPreference |
The call object. |
GetQuotaInfo(GetQuotaInfoRequest, CallOptions)
public virtual QuotaInfo GetQuotaInfo(GetQuotaInfoRequest request, CallOptions options)Retrieve the QuotaInfo of a quota for a project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaInfoRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
QuotaInfo |
The response received from the server. |
GetQuotaInfo(GetQuotaInfoRequest, Metadata, DateTime?, CancellationToken)
public virtual QuotaInfo GetQuotaInfo(GetQuotaInfoRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Retrieve the QuotaInfo of a quota for a project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaInfoRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
QuotaInfo |
The response received from the server. |
GetQuotaInfoAsync(GetQuotaInfoRequest, CallOptions)
public virtual AsyncUnaryCall<QuotaInfo> GetQuotaInfoAsync(GetQuotaInfoRequest request, CallOptions options)Retrieve the QuotaInfo of a quota for a project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaInfoRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallQuotaInfo |
The call object. |
GetQuotaInfoAsync(GetQuotaInfoRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<QuotaInfo> GetQuotaInfoAsync(GetQuotaInfoRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Retrieve the QuotaInfo of a quota for a project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaInfoRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallQuotaInfo |
The call object. |
GetQuotaPreference(GetQuotaPreferenceRequest, CallOptions)
public virtual QuotaPreference GetQuotaPreference(GetQuotaPreferenceRequest request, CallOptions options)Gets details of a single QuotaPreference.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaPreferenceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
QuotaPreference |
The response received from the server. |
GetQuotaPreference(GetQuotaPreferenceRequest, Metadata, DateTime?, CancellationToken)
public virtual QuotaPreference GetQuotaPreference(GetQuotaPreferenceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets details of a single QuotaPreference.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaPreferenceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
QuotaPreference |
The response received from the server. |
GetQuotaPreferenceAsync(GetQuotaPreferenceRequest, CallOptions)
public virtual AsyncUnaryCall<QuotaPreference> GetQuotaPreferenceAsync(GetQuotaPreferenceRequest request, CallOptions options)Gets details of a single QuotaPreference.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaPreferenceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallQuotaPreference |
The call object. |
GetQuotaPreferenceAsync(GetQuotaPreferenceRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<QuotaPreference> GetQuotaPreferenceAsync(GetQuotaPreferenceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets details of a single QuotaPreference.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaPreferenceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallQuotaPreference |
The call object. |
ListQuotaInfos(ListQuotaInfosRequest, CallOptions)
public virtual ListQuotaInfosResponse ListQuotaInfos(ListQuotaInfosRequest request, CallOptions options)Lists QuotaInfos of all quotas for a given project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
ListQuotaInfosRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ListQuotaInfosResponse |
The response received from the server. |
ListQuotaInfos(ListQuotaInfosRequest, Metadata, DateTime?, CancellationToken)
public virtual ListQuotaInfosResponse ListQuotaInfos(ListQuotaInfosRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Lists QuotaInfos of all quotas for a given project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
ListQuotaInfosRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
ListQuotaInfosResponse |
The response received from the server. |
ListQuotaInfosAsync(ListQuotaInfosRequest, CallOptions)
public virtual AsyncUnaryCall<ListQuotaInfosResponse> ListQuotaInfosAsync(ListQuotaInfosRequest request, CallOptions options)Lists QuotaInfos of all quotas for a given project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
ListQuotaInfosRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallListQuotaInfosResponse |
The call object. |
ListQuotaInfosAsync(ListQuotaInfosRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListQuotaInfosResponse> ListQuotaInfosAsync(ListQuotaInfosRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Lists QuotaInfos of all quotas for a given project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
ListQuotaInfosRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallListQuotaInfosResponse |
The call object. |
ListQuotaPreferences(ListQuotaPreferencesRequest, CallOptions)
public virtual ListQuotaPreferencesResponse ListQuotaPreferences(ListQuotaPreferencesRequest request, CallOptions options)Lists QuotaPreferences in a given project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
ListQuotaPreferencesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ListQuotaPreferencesResponse |
The response received from the server. |
ListQuotaPreferences(ListQuotaPreferencesRequest, Metadata, DateTime?, CancellationToken)
public virtual ListQuotaPreferencesResponse ListQuotaPreferences(ListQuotaPreferencesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Lists QuotaPreferences in a given project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
ListQuotaPreferencesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
ListQuotaPreferencesResponse |
The response received from the server. |
ListQuotaPreferencesAsync(ListQuotaPreferencesRequest, CallOptions)
public virtual AsyncUnaryCall<ListQuotaPreferencesResponse> ListQuotaPreferencesAsync(ListQuotaPreferencesRequest request, CallOptions options)Lists QuotaPreferences in a given project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
ListQuotaPreferencesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallListQuotaPreferencesResponse |
The call object. |
ListQuotaPreferencesAsync(ListQuotaPreferencesRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListQuotaPreferencesResponse> ListQuotaPreferencesAsync(ListQuotaPreferencesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Lists QuotaPreferences in a given project, folder or organization.
| Parameters | |
|---|---|
| Name | Description |
request |
ListQuotaPreferencesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallListQuotaPreferencesResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override CloudQuotas.CloudQuotasClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
CloudQuotasCloudQuotasClient |
|
UpdateQuotaPreference(UpdateQuotaPreferenceRequest, CallOptions)
public virtual QuotaPreference UpdateQuotaPreference(UpdateQuotaPreferenceRequest request, CallOptions options)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 |
UpdateQuotaPreferenceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
QuotaPreference |
The response received from the server. |
UpdateQuotaPreference(UpdateQuotaPreferenceRequest, Metadata, DateTime?, CancellationToken)
public virtual QuotaPreference UpdateQuotaPreference(UpdateQuotaPreferenceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)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 |
UpdateQuotaPreferenceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
QuotaPreference |
The response received from the server. |
UpdateQuotaPreferenceAsync(UpdateQuotaPreferenceRequest, CallOptions)
public virtual AsyncUnaryCall<QuotaPreference> UpdateQuotaPreferenceAsync(UpdateQuotaPreferenceRequest request, CallOptions options)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 |
UpdateQuotaPreferenceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallQuotaPreference |
The call object. |
UpdateQuotaPreferenceAsync(UpdateQuotaPreferenceRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<QuotaPreference> UpdateQuotaPreferenceAsync(UpdateQuotaPreferenceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)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 |
UpdateQuotaPreferenceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallQuotaPreference |
The call object. |