DiscoveryToolsClient.GetComputeUsageAsync Method

Definition

Overloads

Name Description
GetComputeUsageAsync(String, RequestContext)

[Protocol Method] Examine compute usage.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetComputeUsageAsync(String, CancellationToken)

Examine compute usage.

GetComputeUsageAsync(String, RequestContext)

Source:
DiscoveryToolsClient.cs

[Protocol Method] Examine compute usage.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> GetComputeUsageAsync(string projectName, Azure.RequestContext context);
abstract member GetComputeUsageAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetComputeUsageAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetComputeUsageAsync (projectName As String, context As RequestContext) As Task(Of Response)

Parameters

projectName
String

Name of the associated Project.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

projectName is null.

projectName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetComputeUsageAsync(String, CancellationToken)

Source:
DiscoveryToolsClient.cs

Examine compute usage.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.ComputeUsage>> GetComputeUsageAsync(string projectName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetComputeUsageAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.ComputeUsage>>
override this.GetComputeUsageAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.ComputeUsage>>
Public Overridable Function GetComputeUsageAsync (projectName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ComputeUsage))

Parameters

projectName
String

Name of the associated Project.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

projectName is null.

projectName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to