AgentDeploymentsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
CognitiveServicesManagementClient's
<xref:agent_deployments> attribute.
Constructor
AgentDeploymentsOperations(*args, **kwargs)
Methods
| begin_create_or_update |
Creates or updates an Agent Deployment (asynchronous). Creates or updates an Agent Deployment (asynchronous). |
| begin_delete |
Delete Agent Deployment. Delete Agent Deployment. |
| get |
Gets an Agent Deployment by name. Gets an Agent Deployment by name. |
| list |
Lists Agent Deployments in the application. Lists Agent Deployments in the application. |
| start |
Starts an Agent Deployment. Starts an Agent Deployment. |
| stop |
Stops an Agent Deployment. Stops an Agent Deployment. |
begin_create_or_update
Creates or updates an Agent Deployment (asynchronous).
Creates or updates an Agent Deployment (asynchronous).
begin_create_or_update(resource_group_name: str, account_name: str, project_name: str, app_name: str, deployment_name: str, body: _models.AgentDeployment, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.AgentDeployment]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
The name of Cognitive Services account. Required. |
|
project_name
Required
|
The name of Cognitive Services account's project. Required. |
|
app_name
Required
|
The name of the application associated with the Cognitive Services Account. Required. |
|
deployment_name
Required
|
The name of the deployment associated with the Cognitive Services Account. Required. |
|
body
Required
|
Agent Deployment definition object. Is either a AgentDeployment type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns AgentDeployment. The AgentDeployment is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
begin_delete
Delete Agent Deployment.
Delete Agent Deployment.
begin_delete(resource_group_name: str, account_name: str, project_name: str, app_name: str, deployment_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
The name of Cognitive Services account. Required. |
|
project_name
Required
|
The name of Cognitive Services account's project. Required. |
|
app_name
Required
|
The name of the application associated with the Cognitive Services Account. Required. |
|
deployment_name
Required
|
The name of the deployment associated with the Cognitive Services Account. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns None |
Exceptions
| Type | Description |
|---|---|
get
Gets an Agent Deployment by name.
Gets an Agent Deployment by name.
get(resource_group_name: str, account_name: str, project_name: str, app_name: str, deployment_name: str, **kwargs: Any) -> AgentDeployment
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
The name of Cognitive Services account. Required. |
|
project_name
Required
|
The name of Cognitive Services account's project. Required. |
|
app_name
Required
|
The name of the application associated with the Cognitive Services Account. Required. |
|
deployment_name
Required
|
The name of the deployment associated with the Cognitive Services Account. Required. |
Returns
| Type | Description |
|---|---|
|
AgentDeployment. The AgentDeployment is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
Lists Agent Deployments in the application.
Lists Agent Deployments in the application.
list(resource_group_name: str, account_name: str, project_name: str, app_name: str, *, count: int = 30, skip_token: str | None = None, names: list[str] | None = None, order_by: str | None = None, order_by_asc: bool = False, **kwargs: Any) -> ItemPaged[AgentDeployment]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
The name of Cognitive Services account. Required. |
|
project_name
Required
|
The name of Cognitive Services account's project. Required. |
|
app_name
Required
|
The name of the application associated with the Cognitive Services Account. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
count
|
Number of agent deployments to be retrieved in a page of results. Default value is 30. Default value: 30
|
|
skip_token
|
Continuation token for pagination. Default value is None. Default value: None
|
|
names
|
Names of agent deployments to retrieve. Default value is None. Default value: None
|
|
order_by
|
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 AgentDeployment |
Exceptions
| Type | Description |
|---|---|
start
Starts an Agent Deployment.
Starts an Agent Deployment.
start(resource_group_name: str, account_name: str, project_name: str, app_name: str, deployment_name: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
The name of Cognitive Services account. Required. |
|
project_name
Required
|
The name of Cognitive Services account's project. Required. |
|
app_name
Required
|
The name of the application associated with the Cognitive Services Account. Required. |
|
deployment_name
Required
|
The name of the deployment associated with the Cognitive Services Account. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
stop
Stops an Agent Deployment.
Stops an Agent Deployment.
stop(resource_group_name: str, account_name: str, project_name: str, app_name: str, deployment_name: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
The name of Cognitive Services account. Required. |
|
project_name
Required
|
The name of Cognitive Services account's project. Required. |
|
app_name
Required
|
The name of the application associated with the Cognitive Services Account. Required. |
|
deployment_name
Required
|
The name of the deployment associated with the Cognitive Services Account. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|