CognitiveServicesExtensions.GetCognitiveServicesCommitmentPlans Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetCognitiveServicesCommitmentPlans(ResourceGroupResource) |
Gets a collection of CognitiveServicesCommitmentPlanResources in the ResourceGroupResource. MockingTo mock this method, please mock GetCognitiveServicesCommitmentPlans() instead. |
GetCognitiveServicesCommitmentPlans(SubscriptionResource, CancellationToken) |
Returns all the resources of a particular type belonging to a subscription.
|
GetCognitiveServicesCommitmentPlans(ResourceGroupResource)
Gets a collection of CognitiveServicesCommitmentPlanResources in the ResourceGroupResource. MockingTo mock this method, please mock GetCognitiveServicesCommitmentPlans() instead.
public static Azure.ResourceManager.CognitiveServices.CognitiveServicesCommitmentPlanCollection GetCognitiveServicesCommitmentPlans (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetCognitiveServicesCommitmentPlans : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.CognitiveServices.CognitiveServicesCommitmentPlanCollection
<Extension()>
Public Function GetCognitiveServicesCommitmentPlans (resourceGroupResource As ResourceGroupResource) As CognitiveServicesCommitmentPlanCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of CognitiveServicesCommitmentPlanResources and their operations over a CognitiveServicesCommitmentPlanResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetCognitiveServicesCommitmentPlans(SubscriptionResource, CancellationToken)
Returns all the resources of a particular type belonging to a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/commitmentPlans
- Operation Id: CommitmentPlans_ListPlansBySubscription
- Default Api Version: 2023-05-01
- Resource: CognitiveServicesCommitmentPlanResource
public static Azure.Pageable<Azure.ResourceManager.CognitiveServices.CognitiveServicesCommitmentPlanResource> GetCognitiveServicesCommitmentPlans (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetCognitiveServicesCommitmentPlans : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CognitiveServices.CognitiveServicesCommitmentPlanResource>
<Extension()>
Public Function GetCognitiveServicesCommitmentPlans (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CognitiveServicesCommitmentPlanResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of CognitiveServicesCommitmentPlanResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET