Share via


ProjectsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CognitiveServicesManagementClient's

<xref:projects> attribute.

Constructor

ProjectsOperations(*args, **kwargs)

Methods

begin_create

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.

begin_delete

Deletes a Cognitive Services project from the resource group.

begin_update

Updates a Cognitive Services Project.

get

Returns a Cognitive Services project specified by the parameters.

list

Returns all the projects in a Cognitive Services account.

begin_create

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.

begin_create(resource_group_name: str, account_name: str, project_name: str, project: _models.Project, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Project]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

project_name
Required
str

The name of Cognitive Services account's project. Required.

project
Required

The parameters to provide for the created project. Is either a Project type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either Project or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes a Cognitive Services project from the resource group.

begin_delete(resource_group_name: str, account_name: str, project_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

project_name
Required
str

The name of Cognitive Services account's project. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_update

Updates a Cognitive Services Project.

begin_update(resource_group_name: str, account_name: str, project_name: str, project: _models.Project, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Project]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

project_name
Required
str

The name of Cognitive Services account's project. Required.

project
Required

The parameters to provide for the created project. Is either a Project type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either Project or the result of cls(response)

Exceptions

Type Description

get

Returns a Cognitive Services project specified by the parameters.

get(resource_group_name: str, account_name: str, project_name: str, **kwargs: Any) -> Project

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

project_name
Required
str

The name of Cognitive Services account's project. Required.

Returns

Type Description

Project or the result of cls(response)

Exceptions

Type Description

list

Returns all the projects in a Cognitive Services account.

list(resource_group_name: str, account_name: str, **kwargs: Any) -> ItemPaged[Project]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

Returns

Type Description

An iterator like instance of either Project or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.cognitiveservices.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv86\\Lib\\site-packages\\azure\\mgmt\\cognitiveservices\\models\\__init__.py'>