AgentApplicationsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CognitiveServicesManagementClient's

<xref:agent_applications> attribute.

Constructor

AgentApplicationsOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates an Agent Application (asynchronous).

Creates or updates an Agent Application (asynchronous).

begin_delete

Delete Agent Application.

Delete Agent Application.

disable

Disables an Agent Application.

Disables an Agent Application.

enable

Enables an Agent Application.

Enables an Agent Application.

get

Gets an Agent Application by name.

Gets an Agent Application by name.

list

Lists Agent Applications in the project.

Lists Agent Applications in the project.

list_agents

Lists agents for an Agent Application.

Lists agents for an Agent Application.

begin_create_or_update

Creates or updates an Agent Application (asynchronous).

Creates or updates an Agent Application (asynchronous).

begin_create_or_update(resource_group_name: str, account_name: str, project_name: str, name: str, body: _models.AgentApplication, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.AgentApplication]

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.

name
Required
str

Name for the Agent Application. Required.

body
Required

Agent Application definition object. Is either a AgentApplication type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns AgentApplication. The AgentApplication is compatible with MutableMapping

Exceptions

Type Description

begin_delete

Delete Agent Application.

Delete Agent Application.

begin_delete(resource_group_name: str, account_name: str, project_name: str, 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.

name
Required
str

Name for the Agent Application. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

disable

Disables an Agent Application.

Disables an Agent Application.

disable(resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any) -> 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.

name
Required
str

Name for the Agent Application. Required.

Returns

Type Description

None

Exceptions

Type Description

enable

Enables an Agent Application.

Enables an Agent Application.

enable(resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any) -> 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.

name
Required
str

Name for the Agent Application. Required.

Returns

Type Description

None

Exceptions

Type Description

get

Gets an Agent Application by name.

Gets an Agent Application by name.

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

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.

name
Required
str

Name for the Agent Application. Required.

Returns

Type Description

AgentApplication. The AgentApplication is compatible with MutableMapping

Exceptions

Type Description

list

Lists Agent Applications in the project.

Lists Agent Applications in the project.

list(resource_group_name: str, account_name: str, project_name: str, *, count: int = 30, skip: int | None = None, skip_token: str | None = None, names: list[str] | None = None, search_text: str | None = None, order_by: str | None = None, order_by_asc: bool = False, **kwargs: Any) -> ItemPaged[AgentApplication]

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.

Keyword-Only Parameters

Name Description
count
int

Number of agent applications to be retrieved in a page of results. Default value is 30.

Default value: 30
skip
int

Number of agent applications to skip. Default value is None.

Default value: None
skip_token
str

Continuation token for pagination. Default value is None.

Default value: None
names

Names of agent applications to retrieve. Default value is None.

Default value: None
search_text
str

Search text for filtering agent applications. Default value is None.

Default value: None
order_by
str

Field to order by. Default value is None.

Default value: None
order_by_asc

Whether to order in ascending order. Default value is False.

Default value: False

Returns

Type Description

An iterator like instance of AgentApplication

Exceptions

Type Description

list_agents

Lists agents for an Agent Application.

Lists agents for an Agent Application.

list_agents(resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any) -> AgentReferenceResourceArmPaginatedResult

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.

name
Required
str

Name for the Agent Application. Required.

Returns

Type Description

AgentReferenceResourceArmPaginatedResult. The AgentReferenceResourceArmPaginatedResult is compatible with MutableMapping

Exceptions

Type Description