OutboundRuleOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CognitiveServicesManagementClient's

<xref:outbound_rule> attribute.

Constructor

OutboundRuleOperations(*args, **kwargs)

Methods

begin_create_or_update

The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account.

The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account.

begin_delete

The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services account.

The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services account.

get

The GET API for retrieving a single outbound rule of the managed network associated with the cognitive services account.

The GET API for retrieving a single outbound rule of the managed network associated with the cognitive services account.

list

The GET API for retrieving the list of outbound rules of the managed network associated with the cognitive services account.

The GET API for retrieving the list of outbound rules of the managed network associated with the cognitive services account.

begin_create_or_update

The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account.

The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account.

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

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.

managed_network_name
Required
str

Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required.

rule_name
Required
str

Name of the cognitive services account managed network outbound rule. Required.

body
Required

Is either a OutboundRuleBasicResource type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services account.

The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services account.

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

managed_network_name
Required
str

Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required.

rule_name
Required
str

Name of the cognitive services account managed network outbound rule. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

get

The GET API for retrieving a single outbound rule of the managed network associated with the cognitive services account.

The GET API for retrieving a single outbound rule of the managed network associated with the cognitive services account.

get(resource_group_name: str, account_name: str, managed_network_name: str, rule_name: str, **kwargs: Any) -> OutboundRuleBasicResource

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.

managed_network_name
Required
str

Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required.

rule_name
Required
str

Name of the cognitive services account managed network outbound rule. Required.

Returns

Type Description

OutboundRuleBasicResource. The OutboundRuleBasicResource is compatible with MutableMapping

Exceptions

Type Description

list

The GET API for retrieving the list of outbound rules of the managed network associated with the cognitive services account.

The GET API for retrieving the list of outbound rules of the managed network associated with the cognitive services account.

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

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.

managed_network_name
Required
str

Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required.

Returns

Type Description

An iterator like instance of OutboundRuleBasicResource

Exceptions

Type Description