VersionsOperations Class

VersionsOperations 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
VersionsOperations

Constructor

VersionsOperations(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.

Variables

format

Lu format extension. Constant value: "lu".

Methods

clone

Creates a new version from the selected version.

delete

Deletes an application version.

delete_unlabelled_utterance

Deleted an unlabelled utterance in a version of the application.

export

Exports a LUIS application to JSON format.

export_lu_format

Exports a LUIS application to text format.

get

Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status.

import_lu_format

Imports a new version into a LUIS application.

import_method

Imports a new version into a LUIS application.

import_v2_app

Imports a new version into a LUIS application.

list

Gets a list of versions for this application ID.

update

Updates the name or description of the application version.

clone

Creates a new version from the selected version.

clone(app_id, version_id, version=None, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

version
str
default value: None

The new version for the cloned model.

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

str or ClientRawResponse if raw=true

Return type

str,

Exceptions

delete

Deletes an application version.

delete(app_id, version_id, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

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

delete_unlabelled_utterance

Deleted an unlabelled utterance in a version of the application.

delete_unlabelled_utterance(app_id, version_id, utterance, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

utterance
str
Required

The utterance text to delete.

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

export

Exports a LUIS application to JSON format.

export(app_id, version_id, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

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

LuisApp or ClientRawResponse if raw=true

Return type

Exceptions

export_lu_format

Exports a LUIS application to text format.

export_lu_format(app_id, version_id, custom_headers=None, raw=False, callback=None, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

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

callback
<xref:Callable>[<xref:Bytes>, <xref:response=None>]
default value: None

When specified, will be called with each chunk of data that is streamed. The callback should take two arguments, the bytes of the current chunk of data and the response object. If the data is uploading, response will be None.

operation_config
Required

Operation configuration overrides.

Returns

object or ClientRawResponse if raw=true

Return type

<xref:Generator>,

Exceptions

get

Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status.

get(app_id, version_id, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

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

VersionInfo or ClientRawResponse if raw=true

Return type

Exceptions

import_lu_format

Imports a new version into a LUIS application.

import_lu_format(app_id, luis_app_lu, version_id=None, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

luis_app_lu
str
Required

An LU representing the LUIS application structure.

version_id
str
default value: None

The new versionId to import. If not specified, the versionId will be read from the imported 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

str or ClientRawResponse if raw=true

Return type

str,

Exceptions

import_method

Imports a new version into a LUIS application.

import_method(app_id, luis_app, version_id=None, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

luis_app
LuisApp
Required

A LUIS application structure.

version_id
str
default value: None

The new versionId to import. If not specified, the versionId will be read from the imported 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

str or ClientRawResponse if raw=true

Return type

str,

Exceptions

import_v2_app

Imports a new version into a LUIS application.

import_v2_app(app_id, luis_app_v2, version_id=None, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

luis_app_v2
LuisAppV2
Required

A LUIS application structure.

version_id
str
default value: None

The new versionId to import. If not specified, the versionId will be read from the imported 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

str or ClientRawResponse if raw=true

Return type

str,

Exceptions

list

Gets a list of versions for this application ID.

list(app_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

skip
int
default value: 0

The number of entries to skip. Default value is 0.

take
int
default value: 100

The number of entries to return. Maximum page size is 500. Default is 100.

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

update

Updates the name or description of the application version.

update(app_id, version_id, version=None, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

version
str
default value: None

The new version for the cloned model.

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'>