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

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

app_id
str
Required

The application ID.

arm_token
str
default value: None

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

azure_account_info_object
AzureAccountInfoObject
default value: None

The Azure account information object.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

OperationStatus or ClientRawResponse if raw=true

Return type

Exceptions

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

app_id
str
Required

The application ID.

arm_token
str
default value: None

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

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

list or ClientRawResponse if raw=true

Return type

Exceptions

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

arm_token
str
default value: None

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

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

list or ClientRawResponse if raw=true

Return type

Exceptions

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

app_id
str
Required

The application ID.

arm_token
str
default value: None

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

azure_account_info_object
AzureAccountInfoObject
default value: None

The Azure account information object.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

OperationStatus or ClientRawResponse if raw=true

Return type

Exceptions

Attributes

models

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