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.objectVersionsOperations
Constructor
VersionsOperations(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. |
Variables
Name | Description |
---|---|
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
Name | Description |
---|---|
app_id
Required
|
The application ID. |
version_id
Required
|
The version ID. |
version
|
The new version for the cloned model. 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 |
---|---|
str,
<xref:msrest.pipeline.ClientRawResponse>
|
str or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
delete
Deletes an application version.
delete(app_id, version_id, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
app_id
Required
|
The application ID. |
version_id
Required
|
The version ID. |
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 |
---|---|
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
Name | Description |
---|---|
app_id
Required
|
The application ID. |
version_id
Required
|
The version ID. |
utterance
Required
|
The utterance text to delete. |
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 |
---|---|
export
Exports a LUIS application to JSON format.
export(app_id, version_id, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
app_id
Required
|
The application ID. |
version_id
Required
|
The version ID. |
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>
|
LuisApp or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
app_id
Required
|
The application ID. |
version_id
Required
|
The version ID. |
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
|
callback
|
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. Default value: None
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
object or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
msrest.exceptions.HttpOperationError
|
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
Name | Description |
---|---|
app_id
Required
|
The application ID. |
version_id
Required
|
The version ID. |
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>
|
VersionInfo or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
app_id
Required
|
The application ID. |
luis_app_lu
Required
|
An LU representing the LUIS application structure. |
version_id
|
The new versionId to import. If not specified, the versionId will be read from the imported 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 |
---|---|
str,
<xref:msrest.pipeline.ClientRawResponse>
|
str or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
app_id
Required
|
The application ID. |
luis_app
Required
|
A LUIS application structure. |
version_id
|
The new versionId to import. If not specified, the versionId will be read from the imported 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 |
---|---|
str,
<xref:msrest.pipeline.ClientRawResponse>
|
str or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
app_id
Required
|
The application ID. |
luis_app_v2
Required
|
A LUIS application structure. |
version_id
|
The new versionId to import. If not specified, the versionId will be read from the imported 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 |
---|---|
str,
<xref:msrest.pipeline.ClientRawResponse>
|
str or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
app_id
Required
|
The application ID. |
skip
|
The number of entries to skip. Default value is 0. Default value: 0
|
take
|
The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100
|
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 |
---|---|
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
Name | Description |
---|---|
app_id
Required
|
The application ID. |
version_id
Required
|
The version ID. |
version
|
The new version for the cloned model. 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'>
Azure SDK for Python