Class QuotasClient
Service client instance for Quotas.
Implements
Inherited Members
Namespace: Oci.LimitsService
Assembly: OCI.DotNetSDK.Limits.dll
Syntax
public class QuotasClient : RegionalClientBase, IDisposable
Constructors
QuotasClient(IBasicAuthenticationDetailsProvider, ClientConfiguration, string)
Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. A client configuration can also be provided optionally to adjust REST client behaviors.
Declaration
public QuotasClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null)
Parameters
Type | Name | Description |
---|---|---|
IBasicAuthenticationDetailsProvider | authenticationDetailsProvider | The authentication details provider. Required. |
ClientConfiguration | clientConfiguration | The client configuration that contains settings to adjust REST client behaviors. Optional. |
string | endpoint | The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. |
Properties
Paginators
Declaration
public QuotasPaginators Paginators { get; }
Property Value
Type | Description |
---|---|
QuotasPaginators |
Waiters
Declaration
public QuotasWaiters Waiters { get; }
Property Value
Type | Description |
---|---|
QuotasWaiters |
Methods
AddQuotaLock(AddQuotaLockRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Adds a lock to a resource.
Declaration
public Task<AddQuotaLockResponse> AddQuotaLock(AddQuotaLockRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
AddQuotaLockRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<AddQuotaLockResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use AddQuotaLock API.
CreateQuota(CreateQuotaRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Creates a new quota with the details supplied.
Declaration
public Task<CreateQuotaResponse> CreateQuota(CreateQuotaRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
CreateQuotaRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<CreateQuotaResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use CreateQuota API.
DeleteQuota(DeleteQuotaRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Deletes the quota corresponding to the given OCID.
Declaration
public Task<DeleteQuotaResponse> DeleteQuota(DeleteQuotaRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
DeleteQuotaRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<DeleteQuotaResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use DeleteQuota API.
GetQuota(GetQuotaRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets the quota for the OCID specified.
Declaration
public Task<GetQuotaResponse> GetQuota(GetQuotaRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetQuotaRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<GetQuotaResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetQuota API.
ListQuotas(ListQuotasRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Lists all quotas on resources from the given compartment.
Declaration
public Task<ListQuotasResponse> ListQuotas(ListQuotasRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListQuotasRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<ListQuotasResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListQuotas API.
RemoveQuotaLock(RemoveQuotaLockRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Remove a lock from a resource.
Declaration
public Task<RemoveQuotaLockResponse> RemoveQuotaLock(RemoveQuotaLockRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
RemoveQuotaLockRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<RemoveQuotaLockResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use RemoveQuotaLock API.
UpdateQuota(UpdateQuotaRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Updates the quota corresponding to given OCID with the details supplied.
Declaration
public Task<UpdateQuotaResponse> UpdateQuota(UpdateQuotaRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
UpdateQuotaRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<UpdateQuotaResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use UpdateQuota API.