Freigeben über


AzureAccountsOperations Class

AzureAccountsOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Inheritance
builtins.object
AzureAccountsOperations

Constructor

AzureAccountsOperations(client, config, serializer, deserializer)

Parameters

Name Description
client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Methods

assign_to_app

apps - Assign a LUIS Azure account to an application.

Assigns an Azure account to the application.

get_assigned

apps - Get LUIS Azure accounts assigned to the application.

Gets the LUIS Azure accounts assigned to the application for the user using his ARM token.

list_user_luis_accounts

user - Get LUIS Azure accounts.

Gets the LUIS Azure accounts for the user using his ARM token.

remove_from_app

apps - Removes an assigned LUIS Azure account from an application.

Removes assigned Azure account from the application.

assign_to_app

apps - Assign a LUIS Azure account to an application.

Assigns an Azure account to the application.

assign_to_app(app_id, arm_token=None, azure_account_info_object=None, custom_headers=None, raw=False, **operation_config)

Parameters

Name Description
app_id
Required
str

The application ID.

arm_token
str

The custom arm token header to use; containing the user's ARM token used to validate azure accounts information.

Default value: None
azure_account_info_object

The Azure account information object.

Default value: None
custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

OperationStatus or ClientRawResponse if raw=true

Exceptions

Type Description

get_assigned

apps - Get LUIS Azure accounts assigned to the application.

Gets the LUIS Azure accounts assigned to the application for the user using his ARM token.

get_assigned(app_id, arm_token=None, custom_headers=None, raw=False, **operation_config)

Parameters

Name Description
app_id
Required
str

The application ID.

arm_token
str

The custom arm token header to use; containing the user's ARM token used to validate azure accounts information.

Default value: None
custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

list or ClientRawResponse if raw=true

Exceptions

Type Description

list_user_luis_accounts

user - Get LUIS Azure accounts.

Gets the LUIS Azure accounts for the user using his ARM token.

list_user_luis_accounts(arm_token=None, custom_headers=None, raw=False, **operation_config)

Parameters

Name Description
arm_token
str

The custom arm token header to use; containing the user's ARM token used to validate azure accounts information.

Default value: None
custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

list or ClientRawResponse if raw=true

Exceptions

Type Description

remove_from_app

apps - Removes an assigned LUIS Azure account from an application.

Removes assigned Azure account from the application.

remove_from_app(app_id, arm_token=None, azure_account_info_object=None, custom_headers=None, raw=False, **operation_config)

Parameters

Name Description
app_id
Required
str

The application ID.

arm_token
str

The custom arm token header to use; containing the user's ARM token used to validate azure accounts information.

Default value: None
azure_account_info_object

The Azure account information object.

Default value: None
custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

OperationStatus or ClientRawResponse if raw=true

Exceptions

Type Description

Attributes

models

models = <module 'azure.cognitiveservices.language.luis.authoring.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>