Поделиться через


CognitiveServicesProjectCollection Class

Definition

A class representing a collection of CognitiveServicesProjectResource and their operations. Each CognitiveServicesProjectResource in the collection will belong to the same instance of CognitiveServicesAccountResource. To get a CognitiveServicesProjectCollection instance call the GetCognitiveServicesProjects method from an instance of CognitiveServicesAccountResource.

public class CognitiveServicesProjectCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.CognitiveServices.CognitiveServicesProjectResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CognitiveServices.CognitiveServicesProjectResource>
type CognitiveServicesProjectCollection = class
    inherit ArmCollection
    interface seq<CognitiveServicesProjectResource>
    interface IEnumerable
    interface IAsyncEnumerable<CognitiveServicesProjectResource>
Public Class CognitiveServicesProjectCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of CognitiveServicesProjectResource), IEnumerable(Of CognitiveServicesProjectResource)
Inheritance
CognitiveServicesProjectCollection
Implements

Constructors

CognitiveServicesProjectCollection()

Initializes a new instance of the CognitiveServicesProjectCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, CognitiveServicesProjectData, CancellationToken)

Create Cognitive Services Account's Project. Project is a sub-resource of an account which give AI developer it's individual container to work on.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}
  • Operation Id: Projects_Create
  • Default Api Version: 2025-06-01
  • Resource: CognitiveServicesProjectResource
CreateOrUpdateAsync(WaitUntil, String, CognitiveServicesProjectData, CancellationToken)

Create Cognitive Services Account's Project. Project is a sub-resource of an account which give AI developer it's individual container to work on.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}
  • Operation Id: Projects_Create
  • Default Api Version: 2025-06-01
  • Resource: CognitiveServicesProjectResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}
  • Operation Id: Projects_Get
  • Default Api Version: 2025-06-01
  • Resource: CognitiveServicesProjectResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}
  • Operation Id: Projects_Get
  • Default Api Version: 2025-06-01
  • Resource: CognitiveServicesProjectResource
Get(String, CancellationToken)

Returns a Cognitive Services project specified by the parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}
  • Operation Id: Projects_Get
  • Default Api Version: 2025-06-01
  • Resource: CognitiveServicesProjectResource
GetAll(CancellationToken)

Returns all the projects in a Cognitive Services account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects
  • Operation Id: Projects_List
  • Default Api Version: 2025-06-01
  • Resource: CognitiveServicesProjectResource
GetAllAsync(CancellationToken)

Returns all the projects in a Cognitive Services account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects
  • Operation Id: Projects_List
  • Default Api Version: 2025-06-01
  • Resource: CognitiveServicesProjectResource
GetAsync(String, CancellationToken)

Returns a Cognitive Services project specified by the parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}
  • Operation Id: Projects_Get
  • Default Api Version: 2025-06-01
  • Resource: CognitiveServicesProjectResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}
  • Operation Id: Projects_Get
  • Default Api Version: 2025-06-01
  • Resource: CognitiveServicesProjectResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}
  • Operation Id: Projects_Get
  • Default Api Version: 2025-06-01
  • Resource: CognitiveServicesProjectResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<CognitiveServicesProjectResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<CognitiveServicesProjectResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to