CognitiveServicesExtensions.GetAll Method

Definition

Overloads

Name Description
GetAll(SubscriptionResource, AzureLocation, CancellationToken)

List managed compute quota usages for a subscription and location. <item> Mocking. To mock this method, please mock GetAll(AzureLocation, CancellationToken) instead. </item>

GetAll(SubscriptionResource, String, String, String, CancellationToken)

Gets the managed compute capacities for a subscription. Returns available capacity per accelerator type, including deployment size information. <item> Mocking. To mock this method, please mock GetAll(String, String, String, CancellationToken) instead. </item>

GetAll(SubscriptionResource, AzureLocation, CancellationToken)

Source:
CognitiveServicesExtensions.cs

List managed compute quota usages for a subscription and location. <item> Mocking. To mock this method, please mock GetAll(AzureLocation, CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.CognitiveServices.Models.ManagedComputeUsage> GetAll(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
static member GetAll : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CognitiveServices.Models.ManagedComputeUsage>
<Extension()>
Public Function GetAll (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ManagedComputeUsage)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The location name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ManagedComputeUsage that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to

GetAll(SubscriptionResource, String, String, String, CancellationToken)

Source:
CognitiveServicesExtensions.cs

Gets the managed compute capacities for a subscription. Returns available capacity per accelerator type, including deployment size information. <item> Mocking. To mock this method, please mock GetAll(String, String, String, CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.CognitiveServices.Models.ManagedComputeCapacity> GetAll(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string offer, string acceleratorType = default, string deploymentId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAll : Azure.ResourceManager.Resources.SubscriptionResource * string * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CognitiveServices.Models.ManagedComputeCapacity>
<Extension()>
Public Function GetAll (subscriptionResource As SubscriptionResource, offer As String, Optional acceleratorType As String = Nothing, Optional deploymentId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ManagedComputeCapacity)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

offer
String

The offer name to query capacity for (required).

acceleratorType
String

Optional accelerator type filter to narrow results to a specific accelerator type.

deploymentId
String

Optional deployment resource ID. When provided, returns capacity for the specific region where the deployment is hosted rather than the best available region.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ManagedComputeCapacity that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to