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
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
- operation_config
Operation configuration overrides.
Returns
str or ClientRawResponse if raw=true
Return type
Exceptions
delete
Deletes an application version.
delete(app_id, version_id, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
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
- operation_config
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
- operation_config
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
- callback
- <xref:Callable>[<xref:Bytes>, <xref:response=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
Operation configuration overrides.
Returns
object or ClientRawResponse if raw=true
Return type
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
- operation_config
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
- version_id
- str
The new versionId to import. If not specified, the versionId will be read from the imported object.
- operation_config
Operation configuration overrides.
Returns
str or ClientRawResponse if raw=true
Return type
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
- version_id
- str
The new versionId to import. If not specified, the versionId will be read from the imported object.
- operation_config
Operation configuration overrides.
Returns
str or ClientRawResponse if raw=true
Return type
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
- version_id
- str
The new versionId to import. If not specified, the versionId will be read from the imported object.
- operation_config
Operation configuration overrides.
Returns
str or ClientRawResponse if raw=true
Return type
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
- take
- int
The number of entries to return. Maximum page size is 500. Default is 100.
- operation_config
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
- operation_config
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.9.12\\x64\\lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ