diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/luis_authoring_client.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/luis_authoring_client.py index b6563fe9d625..52df018e9a89 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/luis_authoring_client.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/luis_authoring_client.py @@ -21,6 +21,8 @@ from .operations.train_operations import TrainOperations from .operations.permissions_operations import PermissionsOperations from .operations.pattern_operations import PatternOperations +from .operations.settings_operations import SettingsOperations +from .operations.azure_accounts_operations import AzureAccountsOperations from . import models @@ -76,6 +78,10 @@ class LUISAuthoringClient(SDKClient): :vartype permissions: azure.cognitiveservices.language.luis.authoring.operations.PermissionsOperations :ivar pattern: Pattern operations :vartype pattern: azure.cognitiveservices.language.luis.authoring.operations.PatternOperations + :ivar settings: Settings operations + :vartype settings: azure.cognitiveservices.language.luis.authoring.operations.SettingsOperations + :ivar azure_accounts: AzureAccounts operations + :vartype azure_accounts: azure.cognitiveservices.language.luis.authoring.operations.AzureAccountsOperations :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). @@ -112,3 +118,7 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.pattern = PatternOperations( self._client, self.config, self._serialize, self._deserialize) + self.settings = SettingsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.azure_accounts = AzureAccountsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/__init__.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/__init__.py index ee0e09955392..ba32b6e3600a 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/__init__.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/__init__.py @@ -108,6 +108,8 @@ from .pattern_any_entity_extractor_py3 import PatternAnyEntityExtractor from .pattern_rule_info_py3 import PatternRuleInfo from .label_text_object_py3 import LabelTextObject + from .app_version_setting_object_py3 import AppVersionSettingObject + from .azure_account_info_object_py3 import AzureAccountInfoObject from .hierarchical_child_model_update_object_py3 import HierarchicalChildModelUpdateObject from .hierarchical_child_model_create_object_py3 import HierarchicalChildModelCreateObject from .composite_child_model_create_object_py3 import CompositeChildModelCreateObject @@ -210,6 +212,8 @@ from .pattern_any_entity_extractor import PatternAnyEntityExtractor from .pattern_rule_info import PatternRuleInfo from .label_text_object import LabelTextObject + from .app_version_setting_object import AppVersionSettingObject + from .azure_account_info_object import AzureAccountInfoObject from .hierarchical_child_model_update_object import HierarchicalChildModelUpdateObject from .hierarchical_child_model_create_object import HierarchicalChildModelCreateObject from .composite_child_model_create_object import CompositeChildModelCreateObject @@ -317,6 +321,8 @@ 'PatternAnyEntityExtractor', 'PatternRuleInfo', 'LabelTextObject', + 'AppVersionSettingObject', + 'AzureAccountInfoObject', 'HierarchicalChildModelUpdateObject', 'HierarchicalChildModelCreateObject', 'CompositeChildModelCreateObject', diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/app_version_setting_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/app_version_setting_object.py new file mode 100644 index 000000000000..4e2e5ff7bcb8 --- /dev/null +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/app_version_setting_object.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AppVersionSettingObject(Model): + """Object model of an application version setting. + + :param name: The application version setting name. + :type name: str + :param value: The application version setting value. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AppVersionSettingObject, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/app_version_setting_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/app_version_setting_object_py3.py new file mode 100644 index 000000000000..2aef25bb7bf8 --- /dev/null +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/app_version_setting_object_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AppVersionSettingObject(Model): + """Object model of an application version setting. + + :param name: The application version setting name. + :type name: str + :param value: The application version setting value. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: + super(AppVersionSettingObject, self).__init__(**kwargs) + self.name = name + self.value = value diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_info_response.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_info_response.py index 8bfc55762b7c..2a4b10b814f9 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_info_response.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_info_response.py @@ -21,12 +21,13 @@ class ApplicationInfoResponse(Model): :type name: str :param description: The description of the application. :type description: str - :param culture: The culture of the application. E.g.: en-us. + :param culture: The culture of the application. For example, "en-us". :type culture: str :param usage_scenario: Defines the scenario for the new application. - Optional. E.g.: IoT. + Optional. For example, IoT. :type usage_scenario: str - :param domain: The domain for the new application. Optional. E.g.: Comics. + :param domain: The domain for the new application. Optional. For example, + Comics. :type domain: str :param versions_count: Amount of model versions within the application. :type versions_count: int diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_info_response_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_info_response_py3.py index 0aa99a4257c2..00228c3562c8 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_info_response_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_info_response_py3.py @@ -21,12 +21,13 @@ class ApplicationInfoResponse(Model): :type name: str :param description: The description of the application. :type description: str - :param culture: The culture of the application. E.g.: en-us. + :param culture: The culture of the application. For example, "en-us". :type culture: str :param usage_scenario: Defines the scenario for the new application. - Optional. E.g.: IoT. + Optional. For example, IoT. :type usage_scenario: str - :param domain: The domain for the new application. Optional. E.g.: Comics. + :param domain: The domain for the new application. Optional. For example, + Comics. :type domain: str :param versions_count: Amount of model versions within the application. :type versions_count: int diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_publish_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_publish_object.py index 756b803da141..963186f835c7 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_publish_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_publish_object.py @@ -20,18 +20,14 @@ class ApplicationPublishObject(Model): :param is_staging: Indicates if the staging slot should be used, instead of the Production one. Default value: False . :type is_staging: bool - :param region: The target region that the application is published to. - :type region: str """ _attribute_map = { 'version_id': {'key': 'versionId', 'type': 'str'}, 'is_staging': {'key': 'isStaging', 'type': 'bool'}, - 'region': {'key': 'region', 'type': 'str'}, } def __init__(self, **kwargs): super(ApplicationPublishObject, self).__init__(**kwargs) self.version_id = kwargs.get('version_id', None) self.is_staging = kwargs.get('is_staging', False) - self.region = kwargs.get('region', None) diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_publish_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_publish_object_py3.py index 9064fb0e6440..3bda03edfe1a 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_publish_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_publish_object_py3.py @@ -20,18 +20,14 @@ class ApplicationPublishObject(Model): :param is_staging: Indicates if the staging slot should be used, instead of the Production one. Default value: False . :type is_staging: bool - :param region: The target region that the application is published to. - :type region: str """ _attribute_map = { 'version_id': {'key': 'versionId', 'type': 'str'}, 'is_staging': {'key': 'isStaging', 'type': 'bool'}, - 'region': {'key': 'region', 'type': 'str'}, } - def __init__(self, *, version_id: str=None, is_staging: bool=False, region: str=None, **kwargs) -> None: + def __init__(self, *, version_id: str=None, is_staging: bool=False, **kwargs) -> None: super(ApplicationPublishObject, self).__init__(**kwargs) self.version_id = version_id self.is_staging = is_staging - self.region = region diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_setting_update_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_setting_update_object.py index b5c46a828235..9ba73d4fdd44 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_setting_update_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_setting_update_object.py @@ -15,15 +15,15 @@ class ApplicationSettingUpdateObject(Model): """Object model for updating an application's settings. - :param public: Setting your application as public allows other people to - use your application's endpoint using their own keys. - :type public: bool + :param is_public: Setting your application as public allows other people + to use your application's endpoint using their own keys. + :type is_public: bool """ _attribute_map = { - 'public': {'key': 'public', 'type': 'bool'}, + 'is_public': {'key': 'public', 'type': 'bool'}, } def __init__(self, **kwargs): super(ApplicationSettingUpdateObject, self).__init__(**kwargs) - self.public = kwargs.get('public', None) + self.is_public = kwargs.get('is_public', None) diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_setting_update_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_setting_update_object_py3.py index c5bcc5001375..dbeecd1c90c4 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_setting_update_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_setting_update_object_py3.py @@ -15,15 +15,15 @@ class ApplicationSettingUpdateObject(Model): """Object model for updating an application's settings. - :param public: Setting your application as public allows other people to - use your application's endpoint using their own keys. - :type public: bool + :param is_public: Setting your application as public allows other people + to use your application's endpoint using their own keys. + :type is_public: bool """ _attribute_map = { - 'public': {'key': 'public', 'type': 'bool'}, + 'is_public': {'key': 'public', 'type': 'bool'}, } - def __init__(self, *, public: bool=None, **kwargs) -> None: + def __init__(self, *, is_public: bool=None, **kwargs) -> None: super(ApplicationSettingUpdateObject, self).__init__(**kwargs) - self.public = public + self.is_public = is_public diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_settings.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_settings.py index c43606461e68..9d75d7dceda6 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_settings.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_settings.py @@ -20,7 +20,8 @@ class ApplicationSettings(Model): :param id: Required. The application ID. :type id: str :param is_public: Required. Setting your application as public allows - other people to use your application's endpoint using their own keys. + other people to use your application's endpoint using their own keys for + billing purposes. :type is_public: bool """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_settings_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_settings_py3.py index 4f83bc503dd5..051fc16847ba 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_settings_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/application_settings_py3.py @@ -20,7 +20,8 @@ class ApplicationSettings(Model): :param id: Required. The application ID. :type id: str :param is_public: Required. Setting your application as public allows - other people to use your application's endpoint using their own keys. + other people to use your application's endpoint using their own keys for + billing purposes. :type is_public: bool """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/azure_account_info_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/azure_account_info_object.py new file mode 100644 index 000000000000..e5f48833de36 --- /dev/null +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/azure_account_info_object.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureAccountInfoObject(Model): + """Defines the Azure account information object. + + All required parameters must be populated in order to send to Azure. + + :param azure_subscription_id: Required. The id for the Azure subscription. + :type azure_subscription_id: str + :param resource_group: Required. The Azure resource group name. + :type resource_group: str + :param account_name: Required. The Azure account name. + :type account_name: str + """ + + _validation = { + 'azure_subscription_id': {'required': True}, + 'resource_group': {'required': True}, + 'account_name': {'required': True}, + } + + _attribute_map = { + 'azure_subscription_id': {'key': 'azureSubscriptionId', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'account_name': {'key': 'accountName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureAccountInfoObject, self).__init__(**kwargs) + self.azure_subscription_id = kwargs.get('azure_subscription_id', None) + self.resource_group = kwargs.get('resource_group', None) + self.account_name = kwargs.get('account_name', None) diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/azure_account_info_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/azure_account_info_object_py3.py new file mode 100644 index 000000000000..0890a94d93e9 --- /dev/null +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/azure_account_info_object_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureAccountInfoObject(Model): + """Defines the Azure account information object. + + All required parameters must be populated in order to send to Azure. + + :param azure_subscription_id: Required. The id for the Azure subscription. + :type azure_subscription_id: str + :param resource_group: Required. The Azure resource group name. + :type resource_group: str + :param account_name: Required. The Azure account name. + :type account_name: str + """ + + _validation = { + 'azure_subscription_id': {'required': True}, + 'resource_group': {'required': True}, + 'account_name': {'required': True}, + } + + _attribute_map = { + 'azure_subscription_id': {'key': 'azureSubscriptionId', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'account_name': {'key': 'accountName', 'type': 'str'}, + } + + def __init__(self, *, azure_subscription_id: str, resource_group: str, account_name: str, **kwargs) -> None: + super(AzureAccountInfoObject, self).__init__(**kwargs) + self.azure_subscription_id = azure_subscription_id + self.resource_group = resource_group + self.account_name = account_name diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/batch_label_example.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/batch_label_example.py index ef22dc4cc368..6006b6edd09d 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/batch_label_example.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/batch_label_example.py @@ -13,7 +13,7 @@ class BatchLabelExample(Model): - """Response when adding a batch of labeled examples. + """Response when adding a batch of labeled example utterances. :param value: :type value: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/batch_label_example_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/batch_label_example_py3.py index aeaaa11185eb..a75c133f5e1b 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/batch_label_example_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/batch_label_example_py3.py @@ -13,7 +13,7 @@ class BatchLabelExample(Model): - """Response when adding a batch of labeled examples. + """Response when adding a batch of labeled example utterances. :param value: :type value: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list.py index 231dada76d24..2c296a204b22 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list.py @@ -13,11 +13,11 @@ class ClosedList(Model): - """Exported Model - A Closed List. + """Exported Model - A list entity. - :param name: Name of the closed list feature. + :param name: Name of the list entity. :type name: str - :param sub_lists: Sublists for the feature. + :param sub_lists: Sublists for the list entity. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.SubClosedList] :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_entity_extractor.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_entity_extractor.py index ee8ade0fdc75..07dcc3e11bae 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_entity_extractor.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_entity_extractor.py @@ -13,7 +13,7 @@ class ClosedListEntityExtractor(Model): - """Closed List Entity Extractor. + """List Entity Extractor. All required parameters must be populated in order to send to Azure. @@ -25,15 +25,15 @@ class ClosedListEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: :type roles: list[~azure.cognitiveservices.language.luis.authoring.models.EntityRole] - :param sub_lists: List of sub-lists. + :param sub_lists: List of sublists. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.SubClosedListResponse] """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_entity_extractor_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_entity_extractor_py3.py index 42ced309b058..374d20e348c2 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_entity_extractor_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_entity_extractor_py3.py @@ -13,7 +13,7 @@ class ClosedListEntityExtractor(Model): - """Closed List Entity Extractor. + """List Entity Extractor. All required parameters must be populated in order to send to Azure. @@ -25,15 +25,15 @@ class ClosedListEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: :type roles: list[~azure.cognitiveservices.language.luis.authoring.models.EntityRole] - :param sub_lists: List of sub-lists. + :param sub_lists: List of sublists. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.SubClosedListResponse] """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_create_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_create_object.py index d420e6791575..4c564dda428f 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_create_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_create_object.py @@ -13,12 +13,12 @@ class ClosedListModelCreateObject(Model): - """Object model for creating a closed list. + """Object model for creating a list entity. :param sub_lists: Sublists for the feature. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.WordListObject] - :param name: Name of the closed list feature. + :param name: Name of the list entity. :type name: str """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_create_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_create_object_py3.py index bb71e1d40a46..75dea9e97cc5 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_create_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_create_object_py3.py @@ -13,12 +13,12 @@ class ClosedListModelCreateObject(Model): - """Object model for creating a closed list. + """Object model for creating a list entity. :param sub_lists: Sublists for the feature. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.WordListObject] - :param name: Name of the closed list feature. + :param name: Name of the list entity. :type name: str """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_patch_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_patch_object.py index d77e774cdda8..81647c3bdbd3 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_patch_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_patch_object.py @@ -13,7 +13,7 @@ class ClosedListModelPatchObject(Model): - """Object model for adding a batch of sublists to an existing closedlist. + """Object model for adding a batch of sublists to an existing list entity. :param sub_lists: Sublists to add. :type sub_lists: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_patch_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_patch_object_py3.py index cd1615f342bf..0f41d481322a 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_patch_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_patch_object_py3.py @@ -13,7 +13,7 @@ class ClosedListModelPatchObject(Model): - """Object model for adding a batch of sublists to an existing closedlist. + """Object model for adding a batch of sublists to an existing list entity. :param sub_lists: Sublists to add. :type sub_lists: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_update_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_update_object.py index c9a72314d9bf..2c8f5001f441 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_update_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_update_object.py @@ -13,12 +13,12 @@ class ClosedListModelUpdateObject(Model): - """Object model for updating a closed list. + """Object model for updating a list entity. :param sub_lists: The new sublists for the feature. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.WordListObject] - :param name: The new name of the closed list feature. + :param name: The new name of the list entity. :type name: str """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_update_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_update_object_py3.py index 8ca10a2d1d7d..47b9612681d8 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_update_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_model_update_object_py3.py @@ -13,12 +13,12 @@ class ClosedListModelUpdateObject(Model): - """Object model for updating a closed list. + """Object model for updating a list entity. :param sub_lists: The new sublists for the feature. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.WordListObject] - :param name: The new name of the closed list feature. + :param name: The new name of the list entity. :type name: str """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_py3.py index 25c22b8b77ea..817550b3fa88 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/closed_list_py3.py @@ -13,11 +13,11 @@ class ClosedList(Model): - """Exported Model - A Closed List. + """Exported Model - A list entity. - :param name: Name of the closed list feature. + :param name: Name of the list entity. :type name: str - :param sub_lists: Sublists for the feature. + :param sub_lists: Sublists for the list entity. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.SubClosedList] :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_extractor.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_extractor.py index 1ca4c346d9d9..ea33e0811a6f 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_extractor.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_extractor.py @@ -25,9 +25,9 @@ class CompositeEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_extractor_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_extractor_py3.py index 1b190fe165e2..a98da5747142 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_extractor_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_extractor_py3.py @@ -25,9 +25,9 @@ class CompositeEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_model.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_model.py index 39fdfc8fd2f4..26dbb4bc3605 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_model.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_model.py @@ -13,7 +13,7 @@ class CompositeEntityModel(Model): - """A composite entity. + """A composite entity extractor. :param children: Child entities. :type children: list[str] diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_model_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_model_py3.py index bf35849c3f7d..fdb062e171be 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_model_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/composite_entity_model_py3.py @@ -13,7 +13,7 @@ class CompositeEntityModel(Model): - """A composite entity. + """A composite entity extractor. :param children: Child entities. :type children: list[str] diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/custom_prebuilt_model.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/custom_prebuilt_model.py index f19cb9c403dd..b1f3ac731dba 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/custom_prebuilt_model.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/custom_prebuilt_model.py @@ -25,9 +25,9 @@ class CustomPrebuiltModel(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param custom_prebuilt_domain_name: The domain name. diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/custom_prebuilt_model_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/custom_prebuilt_model_py3.py index c627964e95fc..6c62acacc8e5 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/custom_prebuilt_model_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/custom_prebuilt_model_py3.py @@ -25,9 +25,9 @@ class CustomPrebuiltModel(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param custom_prebuilt_domain_name: The domain name. diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/endpoint_info.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/endpoint_info.py index be6fd40e4f7d..b856fa279c9d 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/endpoint_info.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/endpoint_info.py @@ -28,6 +28,8 @@ class EndpointInfo(Model): :type assigned_endpoint_key: str :param endpoint_region: The endpoint's region. :type endpoint_region: str + :param failed_regions: Regions where publishing failed. + :type failed_regions: str :param published_date_time: Timestamp when was last published. :type published_date_time: str """ @@ -39,6 +41,7 @@ class EndpointInfo(Model): 'region': {'key': 'region', 'type': 'str'}, 'assigned_endpoint_key': {'key': 'assignedEndpointKey', 'type': 'str'}, 'endpoint_region': {'key': 'endpointRegion', 'type': 'str'}, + 'failed_regions': {'key': 'failedRegions', 'type': 'str'}, 'published_date_time': {'key': 'publishedDateTime', 'type': 'str'}, } @@ -50,4 +53,5 @@ def __init__(self, **kwargs): self.region = kwargs.get('region', None) self.assigned_endpoint_key = kwargs.get('assigned_endpoint_key', None) self.endpoint_region = kwargs.get('endpoint_region', None) + self.failed_regions = kwargs.get('failed_regions', None) self.published_date_time = kwargs.get('published_date_time', None) diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/endpoint_info_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/endpoint_info_py3.py index 3e8f171a9067..8673ea254c98 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/endpoint_info_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/endpoint_info_py3.py @@ -28,6 +28,8 @@ class EndpointInfo(Model): :type assigned_endpoint_key: str :param endpoint_region: The endpoint's region. :type endpoint_region: str + :param failed_regions: Regions where publishing failed. + :type failed_regions: str :param published_date_time: Timestamp when was last published. :type published_date_time: str """ @@ -39,10 +41,11 @@ class EndpointInfo(Model): 'region': {'key': 'region', 'type': 'str'}, 'assigned_endpoint_key': {'key': 'assignedEndpointKey', 'type': 'str'}, 'endpoint_region': {'key': 'endpointRegion', 'type': 'str'}, + 'failed_regions': {'key': 'failedRegions', 'type': 'str'}, 'published_date_time': {'key': 'publishedDateTime', 'type': 'str'}, } - def __init__(self, *, version_id: str=None, is_staging: bool=None, endpoint_url: str=None, region: str=None, assigned_endpoint_key: str=None, endpoint_region: str=None, published_date_time: str=None, **kwargs) -> None: + def __init__(self, *, version_id: str=None, is_staging: bool=None, endpoint_url: str=None, region: str=None, assigned_endpoint_key: str=None, endpoint_region: str=None, failed_regions: str=None, published_date_time: str=None, **kwargs) -> None: super(EndpointInfo, self).__init__(**kwargs) self.version_id = version_id self.is_staging = is_staging @@ -50,4 +53,5 @@ def __init__(self, *, version_id: str=None, is_staging: bool=None, endpoint_url: self.region = region self.assigned_endpoint_key = assigned_endpoint_key self.endpoint_region = endpoint_region + self.failed_regions = failed_regions self.published_date_time = published_date_time diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entities_suggestion_example.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entities_suggestion_example.py index df07486d1d28..a81da30e5768 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entities_suggestion_example.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entities_suggestion_example.py @@ -15,7 +15,8 @@ class EntitiesSuggestionExample(Model): """Predicted/suggested entity. - :param text: The utterance. E.g.: what's the weather like in seattle? + :param text: The utterance. For example, "What's the weather like in + seattle?" :type text: str :param tokenized_text: The utterance tokenized. :type tokenized_text: list[str] diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entities_suggestion_example_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entities_suggestion_example_py3.py index 948832a55291..f5e70f1c19cb 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entities_suggestion_example_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entities_suggestion_example_py3.py @@ -15,7 +15,8 @@ class EntitiesSuggestionExample(Model): """Predicted/suggested entity. - :param text: The utterance. E.g.: what's the weather like in seattle? + :param text: The utterance. For example, "What's the weather like in + seattle?" :type text: str :param tokenized_text: The utterance tokenized. :type tokenized_text: list[str] diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_extractor.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_extractor.py index a822f047f14d..dac1a5046cdd 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_extractor.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_extractor.py @@ -25,9 +25,9 @@ class EntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_extractor_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_extractor_py3.py index 7dc4f3792f6d..f9c88d70d6b5 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_extractor_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_extractor_py3.py @@ -25,9 +25,9 @@ class EntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_model_info.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_model_info.py index 1cd4997cf66e..044062f4902f 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_model_info.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_model_info.py @@ -25,9 +25,9 @@ class EntityModelInfo(ModelInfo): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_model_info_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_model_info_py3.py index 74eec6f0838a..44f9f36db22a 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_model_info_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/entity_model_info_py3.py @@ -25,9 +25,9 @@ class EntityModelInfo(ModelInfo): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/example_label_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/example_label_object.py index a9a12a017d9c..ccb43b67a742 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/example_label_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/example_label_object.py @@ -13,14 +13,16 @@ class ExampleLabelObject(Model): - """A labeled example. + """A labeled example utterance. - :param text: The sample's utterance. + :param text: The example utterance. :type text: str - :param entity_labels: The idenfied entities within the utterance. + :param entity_labels: The identified entities within the example + utterance. :type entity_labels: list[~azure.cognitiveservices.language.luis.authoring.models.EntityLabelObject] - :param intent_name: The idenfitied intent representing the utterance. + :param intent_name: The identified intent representing the example + utterance. :type intent_name: str """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/example_label_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/example_label_object_py3.py index 6587bf9cbb17..8b144e5600ba 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/example_label_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/example_label_object_py3.py @@ -13,14 +13,16 @@ class ExampleLabelObject(Model): - """A labeled example. + """A labeled example utterance. - :param text: The sample's utterance. + :param text: The example utterance. :type text: str - :param entity_labels: The idenfied entities within the utterance. + :param entity_labels: The identified entities within the example + utterance. :type entity_labels: list[~azure.cognitiveservices.language.luis.authoring.models.EntityLabelObject] - :param intent_name: The idenfitied intent representing the utterance. + :param intent_name: The identified intent representing the example + utterance. :type intent_name: str """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item.py index 86b51aaba7c7..b8c944b359b9 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item.py @@ -13,7 +13,7 @@ class ExplicitListItem(Model): - """Explicit list item. + """Explicit (exception) list item. :param id: The explicit list item ID. :type id: long diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_create_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_create_object.py index 3aeb5af59be9..f88a89affe9c 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_create_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_create_object.py @@ -13,7 +13,7 @@ class ExplicitListItemCreateObject(Model): - """Object model for creating an explicit list item. + """Object model for creating an explicit (exception) list item. :param explicit_list_item: The explicit list item. :type explicit_list_item: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_create_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_create_object_py3.py index 7e67471f71a2..e91e49f60c2a 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_create_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_create_object_py3.py @@ -13,7 +13,7 @@ class ExplicitListItemCreateObject(Model): - """Object model for creating an explicit list item. + """Object model for creating an explicit (exception) list item. :param explicit_list_item: The explicit list item. :type explicit_list_item: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_py3.py index 36b7652da4e2..45fd86c60067 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_py3.py @@ -13,7 +13,7 @@ class ExplicitListItem(Model): - """Explicit list item. + """Explicit (exception) list item. :param id: The explicit list item ID. :type id: long diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object.py index cff018deba5a..8dba06e3bda6 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object.py @@ -13,7 +13,7 @@ class ExplicitListItemUpdateObject(Model): - """Model object for updating an explicit list item. + """Model object for updating an explicit (exception) list item. :param explicit_list_item: The explicit list item. :type explicit_list_item: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object_py3.py index 446cbfb32a55..28e0616c239c 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/explicit_list_item_update_object_py3.py @@ -13,7 +13,7 @@ class ExplicitListItemUpdateObject(Model): - """Model object for updating an explicit list item. + """Model object for updating an explicit (exception) list item. :param explicit_list_item: The explicit list item. :type explicit_list_item: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_child_entity.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_child_entity.py index 87c2fbf3f79e..7ad54728148d 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_child_entity.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_child_entity.py @@ -25,9 +25,9 @@ class HierarchicalChildEntity(ChildEntity): :type type_id: int :param readable_type: Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', - 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', - 'Regex Entity Extractor' + 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_child_entity_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_child_entity_py3.py index ee754559c193..91870f2b18bb 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_child_entity_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_child_entity_py3.py @@ -25,9 +25,9 @@ class HierarchicalChildEntity(ChildEntity): :type type_id: int :param readable_type: Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', - 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt - Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', - 'Regex Entity Extractor' + 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_extractor.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_extractor.py index a65f80e4ac0f..e88171eec9a6 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_extractor.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_extractor.py @@ -25,9 +25,9 @@ class HierarchicalEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_extractor_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_extractor_py3.py index c5900ea9cfe1..1ced30b88275 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_extractor_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_extractor_py3.py @@ -25,9 +25,9 @@ class HierarchicalEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_model.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_model.py index 86ec000a0e78..1618dff670a2 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_model.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_model.py @@ -13,7 +13,7 @@ class HierarchicalEntityModel(Model): - """A Hierarchical Entity Extractor. + """A hierarchical entity extractor. :param children: Child entities. :type children: list[str] diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_model_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_model_py3.py index 2c82cfddc4ac..4beb99061733 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_model_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/hierarchical_entity_model_py3.py @@ -13,7 +13,7 @@ class HierarchicalEntityModel(Model): - """A Hierarchical Entity Extractor. + """A hierarchical entity extractor. :param children: Child entities. :type children: list[str] diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intent_classifier.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intent_classifier.py index 88650f92a6ee..c0b71f716a4c 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intent_classifier.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intent_classifier.py @@ -25,9 +25,9 @@ class IntentClassifier(ModelInfo): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param custom_prebuilt_domain_name: The domain name. diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intent_classifier_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intent_classifier_py3.py index 91b05e3768d3..b72f4b97acd7 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intent_classifier_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intent_classifier_py3.py @@ -25,9 +25,9 @@ class IntentClassifier(ModelInfo): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param custom_prebuilt_domain_name: The domain name. diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intents_suggestion_example.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intents_suggestion_example.py index c4ba30053ab9..d42e8de5a477 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intents_suggestion_example.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intents_suggestion_example.py @@ -15,9 +15,10 @@ class IntentsSuggestionExample(Model): """Predicted/suggested intent. - :param text: The utterance. E.g.: what's the weather like in seattle? + :param text: The utterance. For example, "What's the weather like in + seattle?" :type text: str - :param tokenized_text: The utterance tokenized. + :param tokenized_text: The tokenized utterance. :type tokenized_text: list[str] :param intent_predictions: Predicted/suggested intents. :type intent_predictions: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intents_suggestion_example_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intents_suggestion_example_py3.py index da45651d4f13..a0483b225522 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intents_suggestion_example_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/intents_suggestion_example_py3.py @@ -15,9 +15,10 @@ class IntentsSuggestionExample(Model): """Predicted/suggested intent. - :param text: The utterance. E.g.: what's the weather like in seattle? + :param text: The utterance. For example, "What's the weather like in + seattle?" :type text: str - :param tokenized_text: The utterance tokenized. + :param tokenized_text: The tokenized utterance. :type tokenized_text: list[str] :param intent_predictions: Predicted/suggested intents. :type intent_predictions: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/json_model_feature.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/json_model_feature.py index 18c5fbba3192..5b27812297ba 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/json_model_feature.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/json_model_feature.py @@ -22,17 +22,14 @@ class JSONModelFeature(Model): :param words: List of comma-separated phrases that represent the Phraselist. :type words: str - :param mode: An exchangeable phrase list feature are serves as single - feature to the LUIS underlying training algorithm. It is used as a lexicon + :param mode: An interchangeable phrase list feature serves as a list of + synonyms for training. A non-exchangeable phrase list serves as separate + features for training. So, if your non-interchangeable phrase list + contains 5 phrases, they will be mapped to 5 separate features. You can + think of the non-interchangeable phrase list as an additional bag of words + to add to LUIS existing vocabulary features. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word - or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A - non-exchangeable phrase list feature has all the phrases in the list serve - as separate features to the underlying training algorithm. So, if you your - phrase list feature contains 5 phrases, they will be mapped to 5 separate - features. You can think of the non-exchangeable phrase list feature as an - additional bag of words that you are willing to add to LUIS existing - vocabulary features. Think of a non-exchangeable as set of different - words. Default value is true. + or 0 if it doesn’t. Default value is true. :type mode: bool """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/json_model_feature_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/json_model_feature_py3.py index fc26406206e0..e3cd562fb3eb 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/json_model_feature_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/json_model_feature_py3.py @@ -22,17 +22,14 @@ class JSONModelFeature(Model): :param words: List of comma-separated phrases that represent the Phraselist. :type words: str - :param mode: An exchangeable phrase list feature are serves as single - feature to the LUIS underlying training algorithm. It is used as a lexicon + :param mode: An interchangeable phrase list feature serves as a list of + synonyms for training. A non-exchangeable phrase list serves as separate + features for training. So, if your non-interchangeable phrase list + contains 5 phrases, they will be mapped to 5 separate features. You can + think of the non-interchangeable phrase list as an additional bag of words + to add to LUIS existing vocabulary features. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word - or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A - non-exchangeable phrase list feature has all the phrases in the list serve - as separate features to the underlying training algorithm. So, if you your - phrase list feature contains 5 phrases, they will be mapped to 5 separate - features. You can think of the non-exchangeable phrase list feature as an - additional bag of words that you are willing to add to LUIS existing - vocabulary features. Think of a non-exchangeable as set of different - words. Default value is true. + or 0 if it doesn’t. Default value is true. :type mode: bool """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_example_response.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_example_response.py index 2bf52c53b59a..6f1dfc9912c2 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_example_response.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_example_response.py @@ -13,9 +13,9 @@ class LabelExampleResponse(Model): - """Response when adding a labeled example. + """Response when adding a labeled example utterance. - :param utterance_text: The sample's utterance. + :param utterance_text: The example utterance. :type utterance_text: str :param example_id: The newly created sample ID. :type example_id: int diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_example_response_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_example_response_py3.py index a4a5280e1550..5897053d3e67 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_example_response_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_example_response_py3.py @@ -13,9 +13,9 @@ class LabelExampleResponse(Model): - """Response when adding a labeled example. + """Response when adding a labeled example utterance. - :param utterance_text: The sample's utterance. + :param utterance_text: The example utterance. :type utterance_text: str :param example_id: The newly created sample ID. :type example_id: int diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_text_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_text_object.py index 0c87d2f09353..942e51cd18ac 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_text_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_text_object.py @@ -13,7 +13,7 @@ class LabelTextObject(Model): - """An object containing the example's text. + """An object containing the example utterance's text. :param id: The ID of the Label. :type id: int diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_text_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_text_object_py3.py index 598047479fb2..3d17046f0c29 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_text_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_text_object_py3.py @@ -13,7 +13,7 @@ class LabelTextObject(Model): - """An object containing the example's text. + """An object containing the example utterance's text. :param id: The ID of the Label. :type id: int diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/labeled_utterance.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/labeled_utterance.py index ec41a2e0e16c..74ce49f47185 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/labeled_utterance.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/labeled_utterance.py @@ -17,7 +17,8 @@ class LabeledUtterance(Model): :param id: ID of Labeled Utterance. :type id: int - :param text: The utterance. E.g.: what's the weather like in seattle? + :param text: The utterance. For example, "What's the weather like in + seattle?" :type text: str :param tokenized_text: The utterance tokenized. :type tokenized_text: list[str] diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/labeled_utterance_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/labeled_utterance_py3.py index 880eff8a2193..4959e2e9d03f 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/labeled_utterance_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/labeled_utterance_py3.py @@ -17,7 +17,8 @@ class LabeledUtterance(Model): :param id: ID of Labeled Utterance. :type id: int - :param text: The utterance. E.g.: what's the weather like in seattle? + :param text: The utterance. For example, "What's the weather like in + seattle?" :type text: str :param tokenized_text: The utterance tokenized. :type tokenized_text: list[str] diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_app.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_app.py index aa605a52e0a8..1c77b47af788 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_app.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_app.py @@ -32,7 +32,7 @@ class LuisApp(Model): :param entities: List of entities. :type entities: list[~azure.cognitiveservices.language.luis.authoring.models.HierarchicalModel] - :param closed_lists: List of closed lists. + :param closed_lists: List of list entities. :type closed_lists: list[~azure.cognitiveservices.language.luis.authoring.models.ClosedList] :param composites: List of composite entities. @@ -56,7 +56,7 @@ class LuisApp(Model): :param patterns: List of patterns. :type patterns: list[~azure.cognitiveservices.language.luis.authoring.models.PatternRule] - :param utterances: List of sample utterances. + :param utterances: List of example utterances. :type utterances: list[~azure.cognitiveservices.language.luis.authoring.models.JSONUtterance] """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_app_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_app_py3.py index 1f2004d20a2d..b36b99ca8343 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_app_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_app_py3.py @@ -32,7 +32,7 @@ class LuisApp(Model): :param entities: List of entities. :type entities: list[~azure.cognitiveservices.language.luis.authoring.models.HierarchicalModel] - :param closed_lists: List of closed lists. + :param closed_lists: List of list entities. :type closed_lists: list[~azure.cognitiveservices.language.luis.authoring.models.ClosedList] :param composites: List of composite entities. @@ -56,7 +56,7 @@ class LuisApp(Model): :param patterns: List of patterns. :type patterns: list[~azure.cognitiveservices.language.luis.authoring.models.PatternRule] - :param utterances: List of sample utterances. + :param utterances: List of example utterances. :type utterances: list[~azure.cognitiveservices.language.luis.authoring.models.JSONUtterance] """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_authoring_client_enums.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_authoring_client_enums.py index f85ad6da8c8e..3bfeb07e7bff 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_authoring_client_enums.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/luis_authoring_client_enums.py @@ -22,4 +22,5 @@ class TrainingStatus(str, Enum): class OperationStatusType(str, Enum): failed = "Failed" + failed = "FAILED" success = "Success" diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info.py index e0c343a9962a..caa26b0a5535 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info.py @@ -25,9 +25,9 @@ class ModelInfo(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_py3.py index 1bad46dbe1ff..ed1fef17e066 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_py3.py @@ -25,9 +25,9 @@ class ModelInfo(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_response.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_response.py index 248f6804eb0c..038e897706d7 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_response.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_response.py @@ -25,9 +25,9 @@ class ModelInfoResponse(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: @@ -36,14 +36,14 @@ class ModelInfoResponse(Model): :param children: List of child entities. :type children: list[~azure.cognitiveservices.language.luis.authoring.models.ChildEntity] - :param sub_lists: List of sub-lists. + :param sub_lists: List of sublists. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.SubClosedListResponse] :param custom_prebuilt_domain_name: The domain name. :type custom_prebuilt_domain_name: str :param custom_prebuilt_model_name: The intent name or entity name. :type custom_prebuilt_model_name: str - :param regex_pattern: The Regex entity pattern. + :param regex_pattern: The Regular Expression entity pattern. :type regex_pattern: str :param explicit_list: :type explicit_list: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_response_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_response_py3.py index 71c7a76372b8..5338bcdae876 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_response_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/model_info_response_py3.py @@ -25,9 +25,9 @@ class ModelInfoResponse(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: @@ -36,14 +36,14 @@ class ModelInfoResponse(Model): :param children: List of child entities. :type children: list[~azure.cognitiveservices.language.luis.authoring.models.ChildEntity] - :param sub_lists: List of sub-lists. + :param sub_lists: List of sublists. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.SubClosedListResponse] :param custom_prebuilt_domain_name: The domain name. :type custom_prebuilt_domain_name: str :param custom_prebuilt_model_name: The intent name or entity name. :type custom_prebuilt_model_name: str - :param regex_pattern: The Regex entity pattern. + :param regex_pattern: The Regular Expression entity pattern. :type regex_pattern: str :param explicit_list: :type explicit_list: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/pattern_any_entity_extractor.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/pattern_any_entity_extractor.py index 02734b005e2f..dcc252a99c4a 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/pattern_any_entity_extractor.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/pattern_any_entity_extractor.py @@ -25,9 +25,9 @@ class PatternAnyEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/pattern_any_entity_extractor_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/pattern_any_entity_extractor_py3.py index d314c1efef96..122d9248b659 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/pattern_any_entity_extractor_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/pattern_any_entity_extractor_py3.py @@ -25,9 +25,9 @@ class PatternAnyEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/phraselist_create_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/phraselist_create_object.py index 2b6c02589ace..e9ee48f74cf8 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/phraselist_create_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/phraselist_create_object.py @@ -20,17 +20,14 @@ class PhraselistCreateObject(Model): :type phrases: str :param name: The Phraselist name. :type name: str - :param is_exchangeable: An exchangeable phrase list feature are serves as - single feature to the LUIS underlying training algorithm. It is used as a - lexicon lookup feature where its value is 1 if the lexicon contains a - given word or 0 if it doesn’t. Think of an exchangeable as a synonyms - list. A non-exchangeable phrase list feature has all the phrases in the - list serve as separate features to the underlying training algorithm. So, - if you your phrase list feature contains 5 phrases, they will be mapped to - 5 separate features. You can think of the non-exchangeable phrase list - feature as an additional bag of words that you are willing to add to LUIS - existing vocabulary features. Think of a non-exchangeable as set of - different words. Default value is true. Default value: True . + :param is_exchangeable: An interchangeable phrase list feature serves as a + list of synonyms for training. A non-exchangeable phrase list serves as + separate features for training. So, if your non-interchangeable phrase + list contains 5 phrases, they will be mapped to 5 separate features. You + can think of the non-interchangeable phrase list as an additional bag of + words to add to LUIS existing vocabulary features. It is used as a lexicon + lookup feature where its value is 1 if the lexicon contains a given word + or 0 if it doesn’t. Default value is true. Default value: True . :type is_exchangeable: bool """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/phraselist_create_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/phraselist_create_object_py3.py index d11a160ab5cf..d0a949d8e435 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/phraselist_create_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/phraselist_create_object_py3.py @@ -20,17 +20,14 @@ class PhraselistCreateObject(Model): :type phrases: str :param name: The Phraselist name. :type name: str - :param is_exchangeable: An exchangeable phrase list feature are serves as - single feature to the LUIS underlying training algorithm. It is used as a - lexicon lookup feature where its value is 1 if the lexicon contains a - given word or 0 if it doesn’t. Think of an exchangeable as a synonyms - list. A non-exchangeable phrase list feature has all the phrases in the - list serve as separate features to the underlying training algorithm. So, - if you your phrase list feature contains 5 phrases, they will be mapped to - 5 separate features. You can think of the non-exchangeable phrase list - feature as an additional bag of words that you are willing to add to LUIS - existing vocabulary features. Think of a non-exchangeable as set of - different words. Default value is true. Default value: True . + :param is_exchangeable: An interchangeable phrase list feature serves as a + list of synonyms for training. A non-exchangeable phrase list serves as + separate features for training. So, if your non-interchangeable phrase + list contains 5 phrases, they will be mapped to 5 separate features. You + can think of the non-interchangeable phrase list as an additional bag of + words to add to LUIS existing vocabulary features. It is used as a lexicon + lookup feature where its value is 1 if the lexicon contains a given word + or 0 if it doesn’t. Default value is true. Default value: True . :type is_exchangeable: bool """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/prebuilt_entity_extractor.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/prebuilt_entity_extractor.py index 97a7074ab071..1365a6ee1f95 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/prebuilt_entity_extractor.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/prebuilt_entity_extractor.py @@ -25,9 +25,9 @@ class PrebuiltEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/prebuilt_entity_extractor_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/prebuilt_entity_extractor_py3.py index b6c64eed7c91..1bf52f71e783 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/prebuilt_entity_extractor_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/prebuilt_entity_extractor_py3.py @@ -25,9 +25,9 @@ class PrebuiltEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/production_or_staging_endpoint_info.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/production_or_staging_endpoint_info.py index a51c82080aec..c7e36e53396d 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/production_or_staging_endpoint_info.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/production_or_staging_endpoint_info.py @@ -28,6 +28,8 @@ class ProductionOrStagingEndpointInfo(EndpointInfo): :type assigned_endpoint_key: str :param endpoint_region: The endpoint's region. :type endpoint_region: str + :param failed_regions: Regions where publishing failed. + :type failed_regions: str :param published_date_time: Timestamp when was last published. :type published_date_time: str """ @@ -39,6 +41,7 @@ class ProductionOrStagingEndpointInfo(EndpointInfo): 'region': {'key': 'region', 'type': 'str'}, 'assigned_endpoint_key': {'key': 'assignedEndpointKey', 'type': 'str'}, 'endpoint_region': {'key': 'endpointRegion', 'type': 'str'}, + 'failed_regions': {'key': 'failedRegions', 'type': 'str'}, 'published_date_time': {'key': 'publishedDateTime', 'type': 'str'}, } diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/production_or_staging_endpoint_info_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/production_or_staging_endpoint_info_py3.py index c6a1ee157c3e..edc0837d4135 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/production_or_staging_endpoint_info_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/production_or_staging_endpoint_info_py3.py @@ -28,6 +28,8 @@ class ProductionOrStagingEndpointInfo(EndpointInfo): :type assigned_endpoint_key: str :param endpoint_region: The endpoint's region. :type endpoint_region: str + :param failed_regions: Regions where publishing failed. + :type failed_regions: str :param published_date_time: Timestamp when was last published. :type published_date_time: str """ @@ -39,8 +41,9 @@ class ProductionOrStagingEndpointInfo(EndpointInfo): 'region': {'key': 'region', 'type': 'str'}, 'assigned_endpoint_key': {'key': 'assignedEndpointKey', 'type': 'str'}, 'endpoint_region': {'key': 'endpointRegion', 'type': 'str'}, + 'failed_regions': {'key': 'failedRegions', 'type': 'str'}, 'published_date_time': {'key': 'publishedDateTime', 'type': 'str'}, } - def __init__(self, *, version_id: str=None, is_staging: bool=None, endpoint_url: str=None, region: str=None, assigned_endpoint_key: str=None, endpoint_region: str=None, published_date_time: str=None, **kwargs) -> None: - super(ProductionOrStagingEndpointInfo, self).__init__(version_id=version_id, is_staging=is_staging, endpoint_url=endpoint_url, region=region, assigned_endpoint_key=assigned_endpoint_key, endpoint_region=endpoint_region, published_date_time=published_date_time, **kwargs) + def __init__(self, *, version_id: str=None, is_staging: bool=None, endpoint_url: str=None, region: str=None, assigned_endpoint_key: str=None, endpoint_region: str=None, failed_regions: str=None, published_date_time: str=None, **kwargs) -> None: + super(ProductionOrStagingEndpointInfo, self).__init__(version_id=version_id, is_staging=is_staging, endpoint_url=endpoint_url, region=region, assigned_endpoint_key=assigned_endpoint_key, endpoint_region=endpoint_region, failed_regions=failed_regions, published_date_time=published_date_time, **kwargs) diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_setting_update_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_setting_update_object.py index 40528595c704..fa555891f6f4 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_setting_update_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_setting_update_object.py @@ -16,7 +16,7 @@ class PublishSettingUpdateObject(Model): """Object model for updating an application's publish settings. :param sentiment_analysis: Setting sentiment analysis as true returns the - Sentiment of the input utterance along with the resopnse + Sentiment of the input utterance along with the response :type sentiment_analysis: bool :param speech: Setting speech as public enables speech priming in your app :type speech: bool diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_setting_update_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_setting_update_object_py3.py index 356e854eaa15..a9dae2e391f3 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_setting_update_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_setting_update_object_py3.py @@ -16,7 +16,7 @@ class PublishSettingUpdateObject(Model): """Object model for updating an application's publish settings. :param sentiment_analysis: Setting sentiment analysis as true returns the - Sentiment of the input utterance along with the resopnse + Sentiment of the input utterance along with the response :type sentiment_analysis: bool :param speech: Setting speech as public enables speech priming in your app :type speech: bool diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_settings.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_settings.py index 1a099987d6de..4a9ec4ee1639 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_settings.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_settings.py @@ -20,14 +20,13 @@ class PublishSettings(Model): :param id: Required. The application ID. :type id: str :param is_sentiment_analysis_enabled: Required. Setting sentiment analysis - as true returns the Sentiment of the input utterance along with the - resopnse + as true returns the sentiment of the input utterance along with the + response :type is_sentiment_analysis_enabled: bool - :param is_speech_enabled: Required. Setting speech as public enables - speech priming in your app + :param is_speech_enabled: Required. Enables speech priming in your app :type is_speech_enabled: bool - :param is_spell_checker_enabled: Required. Setting spell checker as public - enables spell checking the input utterance. + :param is_spell_checker_enabled: Required. Enables spell checking of the + utterance. :type is_spell_checker_enabled: bool """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_settings_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_settings_py3.py index 0da2f80efdad..de063e67733f 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_settings_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/publish_settings_py3.py @@ -20,14 +20,13 @@ class PublishSettings(Model): :param id: Required. The application ID. :type id: str :param is_sentiment_analysis_enabled: Required. Setting sentiment analysis - as true returns the Sentiment of the input utterance along with the - resopnse + as true returns the sentiment of the input utterance along with the + response :type is_sentiment_analysis_enabled: bool - :param is_speech_enabled: Required. Setting speech as public enables - speech priming in your app + :param is_speech_enabled: Required. Enables speech priming in your app :type is_speech_enabled: bool - :param is_spell_checker_enabled: Required. Setting spell checker as public - enables spell checking the input utterance. + :param is_spell_checker_enabled: Required. Enables spell checking of the + utterance. :type is_spell_checker_enabled: bool """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_entity_extractor.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_entity_extractor.py index 967a662542bf..50e49320567b 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_entity_extractor.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_entity_extractor.py @@ -13,7 +13,7 @@ class RegexEntityExtractor(Model): - """Regex Entity Extractor. + """Regular Expression Entity Extractor. All required parameters must be populated in order to send to Azure. @@ -25,15 +25,15 @@ class RegexEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: :type roles: list[~azure.cognitiveservices.language.luis.authoring.models.EntityRole] - :param regex_pattern: The Regex entity pattern. + :param regex_pattern: The Regular Expression entity pattern. :type regex_pattern: str """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_entity_extractor_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_entity_extractor_py3.py index 6537df3828bc..26a086979a1b 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_entity_extractor_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_entity_extractor_py3.py @@ -13,7 +13,7 @@ class RegexEntityExtractor(Model): - """Regex Entity Extractor. + """Regular Expression Entity Extractor. All required parameters must be populated in order to send to Azure. @@ -25,15 +25,15 @@ class RegexEntityExtractor(Model): :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + Extractor', 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - Extractor', 'Regex Entity Extractor' + Extractor', 'Closed List Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: :type roles: list[~azure.cognitiveservices.language.luis.authoring.models.EntityRole] - :param regex_pattern: The Regex entity pattern. + :param regex_pattern: The Regular Expression entity pattern. :type regex_pattern: str """ diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_create_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_create_object.py index 2ce2bf2070e8..11b67ed82d7c 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_create_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_create_object.py @@ -13,9 +13,9 @@ class RegexModelCreateObject(Model): - """Model object for creating a regex entity model. + """Model object for creating a regular expression entity model. - :param regex_pattern: The regex entity pattern. + :param regex_pattern: The regular expression entity pattern. :type regex_pattern: str :param name: The model name. :type name: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_create_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_create_object_py3.py index d4731ac8c7e0..0f2dd75838d3 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_create_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_create_object_py3.py @@ -13,9 +13,9 @@ class RegexModelCreateObject(Model): - """Model object for creating a regex entity model. + """Model object for creating a regular expression entity model. - :param regex_pattern: The regex entity pattern. + :param regex_pattern: The regular expression entity pattern. :type regex_pattern: str :param name: The model name. :type name: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_update_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_update_object.py index f6032fbfac58..d62abe807d90 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_update_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_update_object.py @@ -13,9 +13,9 @@ class RegexModelUpdateObject(Model): - """Model object for updating a regex entity model. + """Model object for updating a regular expression entity model. - :param regex_pattern: The regex entity pattern. + :param regex_pattern: The regular expression entity pattern. :type regex_pattern: str :param name: The model name. :type name: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_update_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_update_object_py3.py index 8ac545b33f84..835320778a40 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_update_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/regex_model_update_object_py3.py @@ -13,9 +13,9 @@ class RegexModelUpdateObject(Model): - """Model object for updating a regex entity model. + """Model object for updating a regular expression entity model. - :param regex_pattern: The regex entity pattern. + :param regex_pattern: The regular expression entity pattern. :type regex_pattern: str :param name: The model name. :type name: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list.py index a17b5ccca12f..06ae81803e88 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list.py @@ -13,7 +13,7 @@ class SubClosedList(Model): - """Sublist of items for a Closed list. + """Sublist of items for a list entity. :param canonical_form: The standard form that the list represents. :type canonical_form: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_py3.py index ebdf1743b646..fe10f781bcf8 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_py3.py @@ -13,7 +13,7 @@ class SubClosedList(Model): - """Sublist of items for a Closed list. + """Sublist of items for a list entity. :param canonical_form: The standard form that the list represents. :type canonical_form: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_response.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_response.py index c9eb9f3629e5..1110154fa89c 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_response.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_response.py @@ -13,7 +13,7 @@ class SubClosedListResponse(SubClosedList): - """Sublist of items for a Closed list. + """Sublist of items for a list entity. :param canonical_form: The standard form that the list represents. :type canonical_form: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_response_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_response_py3.py index ece19c644cdd..9d9ab84f9d86 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_response_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/sub_closed_list_response_py3.py @@ -13,7 +13,7 @@ class SubClosedListResponse(SubClosedList): - """Sublist of items for a Closed list. + """Sublist of items for a list entity. :param canonical_form: The standard form that the list represents. :type canonical_form: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_base_update_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_base_update_object.py index 23e053d2f11d..385f9ec6da9b 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_base_update_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_base_update_object.py @@ -13,7 +13,7 @@ class WordListBaseUpdateObject(Model): - """Object model for updating one of the closed list's sublists. + """Object model for updating one of the list entity's sublists. :param canonical_form: The standard form that the list represents. :type canonical_form: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_base_update_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_base_update_object_py3.py index a8125b37bbe2..26c0dce689f2 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_base_update_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_base_update_object_py3.py @@ -13,7 +13,7 @@ class WordListBaseUpdateObject(Model): - """Object model for updating one of the closed list's sublists. + """Object model for updating one of the list entity's sublists. :param canonical_form: The standard form that the list represents. :type canonical_form: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_object.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_object.py index e91704e7c45f..44f134b3d529 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_object.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_object.py @@ -13,7 +13,7 @@ class WordListObject(Model): - """Sublist of items for a Closed list. + """Sublist of items for a list entity. :param canonical_form: The standard form that the list represents. :type canonical_form: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_object_py3.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_object_py3.py index 7b739930233a..4600c305e961 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_object_py3.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/word_list_object_py3.py @@ -13,7 +13,7 @@ class WordListObject(Model): - """Sublist of items for a Closed list. + """Sublist of items for a list entity. :param canonical_form: The standard form that the list represents. :type canonical_form: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/__init__.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/__init__.py index a77faab1cd1d..4e467d3e81d4 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/__init__.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/__init__.py @@ -17,6 +17,8 @@ from .train_operations import TrainOperations from .permissions_operations import PermissionsOperations from .pattern_operations import PatternOperations +from .settings_operations import SettingsOperations +from .azure_accounts_operations import AzureAccountsOperations __all__ = [ 'FeaturesOperations', @@ -27,4 +29,6 @@ 'TrainOperations', 'PermissionsOperations', 'PatternOperations', + 'SettingsOperations', + 'AzureAccountsOperations', ] diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/apps_operations.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/apps_operations.py index 18b46100b82a..21fcca5868cb 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/apps_operations.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/apps_operations.py @@ -38,11 +38,11 @@ def add( self, application_create_object, custom_headers=None, raw=False, **operation_config): """Creates a new LUIS app. - :param application_create_object: A model containing Name, Description - (optional), Culture, Usage Scenario (optional), Domain (optional) and - initial version ID (optional) of the application. Default value for - the version ID is 0.1. Note: the culture cannot be changed after the - app is created. + :param application_create_object: An application containing Name, + Description (optional), Culture, Usage Scenario (optional), Domain + (optional) and initial version ID (optional) of the application. + Default value for the version ID is "0.1". Note: the culture cannot be + changed after the app is created. :type application_create_object: ~azure.cognitiveservices.language.luis.authoring.models.ApplicationCreateObject :param dict custom_headers: headers that will be added to the request @@ -96,7 +96,7 @@ def add( def list( self, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Lists all of the user applications. + """Lists all of the user's applications. :param skip: The number of entries to skip. Default value is 0. :type skip: int @@ -156,14 +156,15 @@ def list( def import_method( self, luis_app, app_name=None, custom_headers=None, raw=False, **operation_config): - """Imports an application to LUIS, the application's structure should be - included in in the request body. + """Imports an application to LUIS, the application's structure is included + in the request body. :param luis_app: A LUIS application structure. :type luis_app: ~azure.cognitiveservices.language.luis.authoring.models.LuisApp :param app_name: The application name to create. If not specified, the - application name will be read from the imported object. + application name will be read from the imported object. If the + application name already exists, an error is returned. :type app_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -367,7 +368,9 @@ def list_usage_scenarios( def list_supported_cultures( self, custom_headers=None, raw=False, **operation_config): - """Gets the supported application cultures. + """Gets a list of supported cultures. Cultures are equivalent to the + written language and locale. For example,"en-us" represents the U.S. + variation of English. :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -418,7 +421,7 @@ def list_supported_cultures( def download_query_logs( self, app_id, custom_headers=None, raw=False, callback=None, **operation_config): - """Gets the query logs of the past month for the application. + """Gets the logs of the past month's endpoint queries for the application. :param app_id: The application ID. :type app_id: str @@ -592,11 +595,13 @@ def update( update.metadata = {'url': '/apps/{appId}'} def delete( - self, app_id, custom_headers=None, raw=False, **operation_config): + self, app_id, force=False, custom_headers=None, raw=False, **operation_config): """Deletes an application. :param app_id: The application ID. :type app_id: str + :param force: A flag to indicate whether to force an operation. + :type force: bool :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -619,6 +624,8 @@ def delete( # Construct parameters query_parameters = {} + if force is not None: + query_parameters['force'] = self._serialize.query("force", force, 'bool') # Construct headers header_parameters = {} @@ -646,15 +653,16 @@ def delete( delete.metadata = {'url': '/apps/{appId}'} def publish( - self, app_id, application_publish_object, custom_headers=None, raw=False, **operation_config): + self, app_id, version_id=None, is_staging=False, custom_headers=None, raw=False, **operation_config): """Publishes a specific version of the application. :param app_id: The application ID. :type app_id: str - :param application_publish_object: The application publish object. The - region is the target region that the application is published to. - :type application_publish_object: - ~azure.cognitiveservices.language.luis.authoring.models.ApplicationPublishObject + :param version_id: The version ID to publish. + :type version_id: str + :param is_staging: Indicates if the staging slot should be used, + instead of the Production one. + :type is_staging: bool :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -668,6 +676,8 @@ def publish( :raises: :class:`ErrorResponseException` """ + application_publish_object = models.ApplicationPublishObject(version_id=version_id, is_staging=is_staging) + # Construct URL url = self.publish.metadata['url'] path_format_arguments = { @@ -693,13 +703,15 @@ def publish( request = self._client.post(url, query_parameters, header_parameters, body_content) response = self._client.send(request, stream=False, **operation_config) - if response.status_code not in [201]: + if response.status_code not in [201, 207]: raise models.ErrorResponseException(self._deserialize, response) deserialized = None if response.status_code == 201: deserialized = self._deserialize('ProductionOrStagingEndpointInfo', response) + if response.status_code == 207: + deserialized = self._deserialize('ProductionOrStagingEndpointInfo', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -710,7 +722,7 @@ def publish( def get_settings( self, app_id, custom_headers=None, raw=False, **operation_config): - """Get the application settings. + """Get the application settings including 'UseAllTrainingData'. :param app_id: The application ID. :type app_id: str @@ -763,14 +775,14 @@ def get_settings( get_settings.metadata = {'url': '/apps/{appId}/settings'} def update_settings( - self, app_id, public=None, custom_headers=None, raw=False, **operation_config): - """Updates the application settings. + self, app_id, is_public=None, custom_headers=None, raw=False, **operation_config): + """Updates the application settings including 'UseAllTrainingData'. :param app_id: The application ID. :type app_id: str - :param public: Setting your application as public allows other people - to use your application's endpoint using their own keys. - :type public: bool + :param is_public: Setting your application as public allows other + people to use your application's endpoint using their own keys. + :type is_public: bool :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -783,7 +795,7 @@ def update_settings( :raises: :class:`ErrorResponseException` """ - application_setting_update_object = models.ApplicationSettingUpdateObject(public=public) + application_setting_update_object = models.ApplicationSettingUpdateObject(is_public=is_public) # Construct URL url = self.update_settings.metadata['url'] @@ -827,7 +839,7 @@ def update_settings( def get_publish_settings( self, app_id, custom_headers=None, raw=False, **operation_config): - """Get the application publish settings. + """Get the application publish settings including 'UseAllTrainingData'. :param app_id: The application ID. :type app_id: str @@ -881,7 +893,8 @@ def get_publish_settings( def update_publish_settings( self, app_id, publish_setting_update_object, custom_headers=None, raw=False, **operation_config): - """Updates the application publish settings. + """Updates the application publish settings including + 'UseAllTrainingData'. :param app_id: The application ID. :type app_id: str @@ -1046,7 +1059,8 @@ def list_available_custom_prebuilt_domains( def add_custom_prebuilt_domain( self, domain_name=None, culture=None, custom_headers=None, raw=False, **operation_config): - """Adds a prebuilt domain along with its models as a new application. + """Adds a prebuilt domain along with its intent and entity models as a new + application. :param domain_name: The domain name. :type domain_name: str @@ -1105,7 +1119,7 @@ def add_custom_prebuilt_domain( def list_available_custom_prebuilt_domains_for_culture( self, culture, custom_headers=None, raw=False, **operation_config): - """Gets all the available custom prebuilt domains for a specific culture. + """Gets all the available prebuilt domains for a specific culture. :param culture: Culture. :type culture: str @@ -1156,3 +1170,131 @@ def list_available_custom_prebuilt_domains_for_culture( return deserialized list_available_custom_prebuilt_domains_for_culture.metadata = {'url': '/apps/customprebuiltdomains/{culture}'} + + def package_published_application_as_gzip( + self, app_id, slot_name, custom_headers=None, raw=False, callback=None, **operation_config): + """package - Gets published LUIS application package in binary stream GZip + format. + + Packages a published LUIS application as a GZip file to be used in the + LUIS container. + + :param app_id: The application ID. + :type app_id: str + :param slot_name: The publishing slot name. + :type slot_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param 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. + :type callback: Callable[Bytes, response=None] + :param operation_config: :ref:`Operation configuration + overrides`. + :return: object or ClientRawResponse if raw=true + :rtype: Generator or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.package_published_application_as_gzip.metadata['url'] + path_format_arguments = { + 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), + 'appId': self._serialize.url("app_id", app_id, 'str'), + 'slotName': self._serialize.url("slot_name", slot_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=True, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._client.stream_download(response, callback) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + package_published_application_as_gzip.metadata = {'url': '/package/{appId}/slot/{slotName}/gzip'} + + def package_trained_application_as_gzip( + self, app_id, version_id, custom_headers=None, raw=False, callback=None, **operation_config): + """package - Gets trained LUIS application package in binary stream GZip + format. + + Packages trained LUIS application as GZip file to be used in the LUIS + container. + + :param app_id: The application ID. + :type app_id: str + :param version_id: The version ID. + :type version_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param 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. + :type callback: Callable[Bytes, response=None] + :param operation_config: :ref:`Operation configuration + overrides`. + :return: object or ClientRawResponse if raw=true + :rtype: Generator or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.package_trained_application_as_gzip.metadata['url'] + path_format_arguments = { + 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), + 'appId': self._serialize.url("app_id", app_id, 'str'), + 'versionId': self._serialize.url("version_id", version_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=True, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._client.stream_download(response, callback) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + package_trained_application_as_gzip.metadata = {'url': '/package/{appId}/versions/{versionId}/gzip'} diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/azure_accounts_operations.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/azure_accounts_operations.py new file mode 100644 index 000000000000..c4b349962de2 --- /dev/null +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/azure_accounts_operations.py @@ -0,0 +1,278 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class AzureAccountsOperations(object): + """AzureAccountsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def assign_to_app( + self, app_id, azure_account_info_object=None, custom_headers=None, raw=False, **operation_config): + """apps - Assign a LUIS Azure account to an application. + + Assigns an Azure account to the application. + + :param app_id: The application ID. + :type app_id: str + :param azure_account_info_object: The Azure account information + object. + :type azure_account_info_object: + ~azure.cognitiveservices.language.luis.authoring.models.AzureAccountInfoObject + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: OperationStatus or ClientRawResponse if raw=true + :rtype: + ~azure.cognitiveservices.language.luis.authoring.models.OperationStatus + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.assign_to_app.metadata['url'] + path_format_arguments = { + 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), + 'appId': self._serialize.url("app_id", app_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if azure_account_info_object is not None: + body_content = self._serialize.body(azure_account_info_object, 'AzureAccountInfoObject') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [201]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('OperationStatus', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + assign_to_app.metadata = {'url': '/apps/{appId}/azureaccounts'} + + def get_assigned( + self, app_id, custom_headers=None, raw=False, **operation_config): + """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. + + :param app_id: The application ID. + :type app_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: + list[~azure.cognitiveservices.language.luis.authoring.models.AzureAccountInfoObject] + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get_assigned.metadata['url'] + path_format_arguments = { + 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), + 'appId': self._serialize.url("app_id", app_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('[AzureAccountInfoObject]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_assigned.metadata = {'url': '/apps/{appId}/azureaccounts'} + + def remove_from_app( + self, app_id, azure_account_info_object=None, custom_headers=None, raw=False, **operation_config): + """apps - Removes an assigned LUIS Azure account from an application. + + Removes assigned Azure account from the application. + + :param app_id: The application ID. + :type app_id: str + :param azure_account_info_object: The Azure account information + object. + :type azure_account_info_object: + ~azure.cognitiveservices.language.luis.authoring.models.AzureAccountInfoObject + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: OperationStatus or ClientRawResponse if raw=true + :rtype: + ~azure.cognitiveservices.language.luis.authoring.models.OperationStatus + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.remove_from_app.metadata['url'] + path_format_arguments = { + 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), + 'appId': self._serialize.url("app_id", app_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if azure_account_info_object is not None: + body_content = self._serialize.body(azure_account_info_object, 'AzureAccountInfoObject') + else: + body_content = None + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('OperationStatus', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + remove_from_app.metadata = {'url': '/apps/{appId}/azureaccounts'} + + def list_user_luis_accounts( + self, custom_headers=None, raw=False, **operation_config): + """user - Get LUIS Azure accounts. + + Gets the LUIS Azure accounts for the user using his ARM token. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: + list[~azure.cognitiveservices.language.luis.authoring.models.AzureAccountInfoObject] + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.list_user_luis_accounts.metadata['url'] + path_format_arguments = { + 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('[AzureAccountInfoObject]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_user_luis_accounts.metadata = {'url': '/azureaccounts'} diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/examples_operations.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/examples_operations.py index bf27cabcc64d..b874d3e47425 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/examples_operations.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/examples_operations.py @@ -35,14 +35,14 @@ def __init__(self, client, config, serializer, deserializer): def add( self, app_id, version_id, example_label_object, custom_headers=None, raw=False, **operation_config): - """Adds a labeled example to the application. + """Adds a labeled example utterance in a version of the application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param example_label_object: An example label with the expected intent - and entities. + :param example_label_object: A labeled example utterance with the + expected intent and entities. :type example_label_object: ~azure.cognitiveservices.language.luis.authoring.models.ExampleLabelObject :param dict custom_headers: headers that will be added to the request @@ -100,13 +100,14 @@ def add( def batch( self, app_id, version_id, example_label_object_array, custom_headers=None, raw=False, **operation_config): - """Adds a batch of labeled examples to the application. + """Adds a batch of labeled example utterances to a version of the + application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param example_label_object_array: Array of examples. + :param example_label_object_array: Array of example utterances. :type example_label_object_array: list[~azure.cognitiveservices.language.luis.authoring.models.ExampleLabelObject] :param dict custom_headers: headers that will be added to the request @@ -166,7 +167,8 @@ def batch( def list( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Returns examples to be reviewed. + """Returns example utterances to be reviewed from a version of the + application. :param app_id: The application ID. :type app_id: str @@ -232,7 +234,8 @@ def list( def delete( self, app_id, version_id, example_id, custom_headers=None, raw=False, **operation_config): - """Deletes the labeled example with the specified ID. + """Deletes the labeled example utterances with the specified ID from a + version of the application. :param app_id: The application ID. :type app_id: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/features_operations.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/features_operations.py index 9219e51591a3..351b70599331 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/features_operations.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/features_operations.py @@ -33,9 +33,76 @@ def __init__(self, client, config, serializer, deserializer): self.config = config + def list_application_version_pattern_features( + self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): + """[DEPRECATED NOTICE: This operation will soon be removed] Gets all the + pattern features. + + :param app_id: The application ID. + :type app_id: str + :param version_id: The version ID. + :type version_id: str + :param skip: The number of entries to skip. Default value is 0. + :type skip: int + :param take: The number of entries to return. Maximum page size is + 500. Default is 100. + :type take: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: + list[~azure.cognitiveservices.language.luis.authoring.models.PatternFeatureInfo] + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.list_application_version_pattern_features.metadata['url'] + path_format_arguments = { + 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), + 'appId': self._serialize.url("app_id", app_id, 'str'), + 'versionId': self._serialize.url("version_id", version_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if skip is not None: + query_parameters['skip'] = self._serialize.query("skip", skip, 'int', minimum=0) + if take is not None: + query_parameters['take'] = self._serialize.query("take", take, 'int', maximum=500, minimum=0) + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('[PatternFeatureInfo]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_application_version_pattern_features.metadata = {'url': '/apps/{appId}/versions/{versionId}/patterns'} + def add_phrase_list( self, app_id, version_id, phraselist_create_object, custom_headers=None, raw=False, **operation_config): - """Creates a new phraselist feature. + """Creates a new phraselist feature in a version of the application. :param app_id: The application ID. :type app_id: str @@ -99,7 +166,7 @@ def add_phrase_list( def list_phrase_lists( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets all the phraselist features. + """Gets all the phraselist features in a version of the application. :param app_id: The application ID. :type app_id: str @@ -165,7 +232,8 @@ def list_phrase_lists( def list( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets all the extraction features for the specified application version. + """Gets all the extraction phraselist and pattern features in a version of + the application. :param app_id: The application ID. :type app_id: str @@ -231,7 +299,7 @@ def list( def get_phrase_list( self, app_id, version_id, phraselist_id, custom_headers=None, raw=False, **operation_config): - """Gets phraselist feature info. + """Gets phraselist feature info in a version of the application. :param app_id: The application ID. :type app_id: str @@ -291,7 +359,8 @@ def get_phrase_list( def update_phrase_list( self, app_id, version_id, phraselist_id, phraselist_update_object=None, custom_headers=None, raw=False, **operation_config): - """Updates the phrases, the state and the name of the phraselist feature. + """Updates the phrases, the state and the name of the phraselist feature + in a version of the application. :param app_id: The application ID. :type app_id: str @@ -364,7 +433,7 @@ def update_phrase_list( def delete_phrase_list( self, app_id, version_id, phraselist_id, custom_headers=None, raw=False, **operation_config): - """Deletes a phraselist feature. + """Deletes a phraselist feature from a version of the application. :param app_id: The application ID. :type app_id: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/model_operations.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/model_operations.py index 12eaada5a040..6bfc0753512b 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/model_operations.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/model_operations.py @@ -10,7 +10,6 @@ # -------------------------------------------------------------------------- from msrest.pipeline import ClientRawResponse -from msrest.exceptions import HttpOperationError from .. import models @@ -36,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): def add_intent( self, app_id, version_id, name=None, custom_headers=None, raw=False, **operation_config): - """Adds an intent classifier to the application. + """Adds an intent to a version of the application. :param app_id: The application ID. :type app_id: str @@ -52,7 +51,7 @@ def add_intent( :return: str or ClientRawResponse if raw=true :rtype: str or ~msrest.pipeline.ClientRawResponse :raises: - :class:`HttpOperationError` + :class:`ErrorResponseException` """ intent_create_object = models.ModelCreateObject(name=name) @@ -83,7 +82,7 @@ def add_intent( response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [201]: - raise HttpOperationError(self._deserialize, response) + raise models.ErrorResponseException(self._deserialize, response) deserialized = None @@ -99,7 +98,8 @@ def add_intent( def list_intents( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets information about the intent models. + """Gets information about the intent models in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -165,7 +165,7 @@ def list_intents( def add_entity( self, app_id, version_id, name=None, custom_headers=None, raw=False, **operation_config): - """Adds an entity extractor to the application. + """Adds a simple entity extractor to a version of the application. :param app_id: The application ID. :type app_id: str @@ -228,7 +228,8 @@ def add_entity( def list_entities( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets information about the entity models. + """Gets information about all the simple entity models in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -294,7 +295,7 @@ def list_entities( def add_hierarchical_entity( self, app_id, version_id, children=None, name=None, custom_headers=None, raw=False, **operation_config): - """Adds a hierarchical entity extractor to the application version. + """Adds a hierarchical entity extractor to a version of the application. :param app_id: The application ID. :type app_id: str @@ -359,7 +360,8 @@ def add_hierarchical_entity( def list_hierarchical_entities( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets information about the hierarchical entity models. + """Gets information about all the hierarchical entity models in a version + of the application. :param app_id: The application ID. :type app_id: str @@ -425,7 +427,7 @@ def list_hierarchical_entities( def add_composite_entity( self, app_id, version_id, children=None, name=None, custom_headers=None, raw=False, **operation_config): - """Adds a composite entity extractor to the application. + """Adds a composite entity extractor to a version of the application. :param app_id: The application ID. :type app_id: str @@ -490,7 +492,8 @@ def add_composite_entity( def list_composite_entities( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets information about the composite entity models. + """Gets information about all the composite entity models in a version of + the application. :param app_id: The application ID. :type app_id: str @@ -556,7 +559,8 @@ def list_composite_entities( def list_closed_lists( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets information about the closedlist models. + """Gets information about all the list entity models in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -622,7 +626,7 @@ def list_closed_lists( def add_closed_list( self, app_id, version_id, sub_lists=None, name=None, custom_headers=None, raw=False, **operation_config): - """Adds a closed list model to the application. + """Adds a list entity model to a version of the application. :param app_id: The application ID. :type app_id: str @@ -631,7 +635,7 @@ def add_closed_list( :param sub_lists: Sublists for the feature. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.WordListObject] - :param name: Name of the closed list feature. + :param name: Name of the list entity. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -688,7 +692,7 @@ def add_closed_list( def add_prebuilt( self, app_id, version_id, prebuilt_extractor_names, custom_headers=None, raw=False, **operation_config): - """Adds a list of prebuilt entity extractors to the application. + """Adds a list of prebuilt entities to a version of the application. :param app_id: The application ID. :type app_id: str @@ -752,7 +756,8 @@ def add_prebuilt( def list_prebuilts( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets information about the prebuilt entity models. + """Gets information about all the prebuilt entities in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -818,7 +823,8 @@ def list_prebuilts( def list_prebuilt_entities( self, app_id, version_id, custom_headers=None, raw=False, **operation_config): - """Gets all the available prebuilt entity extractors for the application. + """Gets all the available prebuilt entities in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -875,7 +881,8 @@ def list_prebuilt_entities( def list_models( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets information about the application version models. + """Gets information about all the intent and entity models in a version of + the application. :param app_id: The application ID. :type app_id: str @@ -941,7 +948,8 @@ def list_models( def examples_method( self, app_id, version_id, model_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets the utterances for the given model in the given app version. + """Gets the example utterances for the given intent or entity model in a + version of the application. :param app_id: The application ID. :type app_id: str @@ -1010,7 +1018,8 @@ def examples_method( def get_intent( self, app_id, version_id, intent_id, custom_headers=None, raw=False, **operation_config): - """Gets information about the intent model. + """Gets information about the intent model in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -1070,7 +1079,7 @@ def get_intent( def update_intent( self, app_id, version_id, intent_id, name=None, custom_headers=None, raw=False, **operation_config): - """Updates the name of an intent classifier. + """Updates the name of an intent in a version of the application. :param app_id: The application ID. :type app_id: str @@ -1138,7 +1147,7 @@ def update_intent( def delete_intent( self, app_id, version_id, intent_id, delete_utterances=False, custom_headers=None, raw=False, **operation_config): - """Deletes an intent classifier from the application. + """Deletes an intent from a version of the application. :param app_id: The application ID. :type app_id: str @@ -1146,8 +1155,9 @@ def delete_intent( :type version_id: str :param intent_id: The intent classifier ID. :type intent_id: str - :param delete_utterances: Also delete the intent's utterances (true). - Or move the utterances to the None intent (false - the default value). + :param delete_utterances: If true, deletes the intent's example + utterances. If false, moves the example utterances to the None intent. + The default value is false. :type delete_utterances: bool :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -1203,7 +1213,7 @@ def delete_intent( def get_entity( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Gets information about the entity model. + """Gets information about an entity model in a version of the application. :param app_id: The application ID. :type app_id: str @@ -1263,7 +1273,7 @@ def get_entity( def update_entity( self, app_id, version_id, entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Updates the name of an entity extractor. + """Updates the name of an entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -1331,7 +1341,7 @@ def update_entity( def delete_entity( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Deletes an entity extractor from the application. + """Deletes an entity from a version of the application. :param app_id: The application ID. :type app_id: str @@ -1391,7 +1401,8 @@ def delete_entity( def get_hierarchical_entity( self, app_id, version_id, h_entity_id, custom_headers=None, raw=False, **operation_config): - """Gets information about the hierarchical entity model. + """Gets information about a hierarchical entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -1451,7 +1462,8 @@ def get_hierarchical_entity( def update_hierarchical_entity( self, app_id, version_id, h_entity_id, children=None, name=None, custom_headers=None, raw=False, **operation_config): - """Updates the name and children of a hierarchical entity model. + """Updates the name and children of a hierarchical entity model in a + version of the application. :param app_id: The application ID. :type app_id: str @@ -1521,7 +1533,7 @@ def update_hierarchical_entity( def delete_hierarchical_entity( self, app_id, version_id, h_entity_id, custom_headers=None, raw=False, **operation_config): - """Deletes a hierarchical entity extractor from the application version. + """Deletes a hierarchical entity from a version of the application. :param app_id: The application ID. :type app_id: str @@ -1581,7 +1593,8 @@ def delete_hierarchical_entity( def get_composite_entity( self, app_id, version_id, c_entity_id, custom_headers=None, raw=False, **operation_config): - """Gets information about the composite entity model. + """Gets information about a composite entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -1641,7 +1654,7 @@ def get_composite_entity( def update_composite_entity( self, app_id, version_id, c_entity_id, children=None, name=None, custom_headers=None, raw=False, **operation_config): - """Updates the composite entity extractor. + """Updates a composite entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -1711,7 +1724,7 @@ def update_composite_entity( def delete_composite_entity( self, app_id, version_id, c_entity_id, custom_headers=None, raw=False, **operation_config): - """Deletes a composite entity extractor from the application. + """Deletes a composite entity from a version of the application. :param app_id: The application ID. :type app_id: str @@ -1771,13 +1784,13 @@ def delete_composite_entity( def get_closed_list( self, app_id, version_id, cl_entity_id, custom_headers=None, raw=False, **operation_config): - """Gets information of a closed list model. + """Gets information about a list entity in a version of the application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param cl_entity_id: The closed list model ID. + :param cl_entity_id: The list model ID. :type cl_entity_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -1831,18 +1844,18 @@ def get_closed_list( def update_closed_list( self, app_id, version_id, cl_entity_id, sub_lists=None, name=None, custom_headers=None, raw=False, **operation_config): - """Updates the closed list model. + """Updates the list entity in a version of the application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param cl_entity_id: The closed list model ID. + :param cl_entity_id: The list model ID. :type cl_entity_id: str :param sub_lists: The new sublists for the feature. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.WordListObject] - :param name: The new name of the closed list feature. + :param name: The new name of the list entity. :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -1902,13 +1915,14 @@ def update_closed_list( def patch_closed_list( self, app_id, version_id, cl_entity_id, sub_lists=None, custom_headers=None, raw=False, **operation_config): - """Adds a batch of sublists to an existing closedlist. + """Adds a batch of sublists to an existing list entity in a version of the + application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param cl_entity_id: The closed list model ID. + :param cl_entity_id: The list entity model ID. :type cl_entity_id: str :param sub_lists: Sublists to add. :type sub_lists: @@ -1971,13 +1985,13 @@ def patch_closed_list( def delete_closed_list( self, app_id, version_id, cl_entity_id, custom_headers=None, raw=False, **operation_config): - """Deletes a closed list model from the application. + """Deletes a list entity model from a version of the application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param cl_entity_id: The closed list model ID. + :param cl_entity_id: The list entity model ID. :type cl_entity_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -2031,7 +2045,8 @@ def delete_closed_list( def get_prebuilt( self, app_id, version_id, prebuilt_id, custom_headers=None, raw=False, **operation_config): - """Gets information about the prebuilt entity model. + """Gets information about a prebuilt entity model in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -2091,7 +2106,7 @@ def get_prebuilt( def delete_prebuilt( self, app_id, version_id, prebuilt_id, custom_headers=None, raw=False, **operation_config): - """Deletes a prebuilt entity extractor from the application. + """Deletes a prebuilt entity extractor from a version of the application. :param app_id: The application ID. :type app_id: str @@ -2151,16 +2166,17 @@ def delete_prebuilt( def delete_sub_list( self, app_id, version_id, cl_entity_id, sub_list_id, custom_headers=None, raw=False, **operation_config): - """Deletes a sublist of a specific closed list model. + """Deletes a sublist of a specific list entity model from a version of the + application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param cl_entity_id: The closed list entity extractor ID. + :param cl_entity_id: The list entity extractor ID. :type cl_entity_id: str :param sub_list_id: The sublist ID. - :type sub_list_id: int + :type sub_list_id: long :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -2180,7 +2196,7 @@ def delete_sub_list( 'appId': self._serialize.url("app_id", app_id, 'str'), 'versionId': self._serialize.url("version_id", version_id, 'str'), 'clEntityId': self._serialize.url("cl_entity_id", cl_entity_id, 'str'), - 'subListId': self._serialize.url("sub_list_id", sub_list_id, 'int') + 'subListId': self._serialize.url("sub_list_id", sub_list_id, 'long') } url = self._client.format_url(url, **path_format_arguments) @@ -2214,16 +2230,17 @@ def delete_sub_list( def update_sub_list( self, app_id, version_id, cl_entity_id, sub_list_id, canonical_form=None, list=None, custom_headers=None, raw=False, **operation_config): - """Updates one of the closed list's sublists. + """Updates one of the list entity's sublists in a version of the + application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param cl_entity_id: The closed list entity extractor ID. + :param cl_entity_id: The list entity extractor ID. :type cl_entity_id: str :param sub_list_id: The sublist ID. - :type sub_list_id: int + :type sub_list_id: long :param canonical_form: The standard form that the list represents. :type canonical_form: str :param list: List of synonym words. @@ -2249,7 +2266,7 @@ def update_sub_list( 'appId': self._serialize.url("app_id", app_id, 'str'), 'versionId': self._serialize.url("version_id", version_id, 'str'), 'clEntityId': self._serialize.url("cl_entity_id", cl_entity_id, 'str'), - 'subListId': self._serialize.url("sub_list_id", sub_list_id, 'int') + 'subListId': self._serialize.url("sub_list_id", sub_list_id, 'long') } url = self._client.format_url(url, **path_format_arguments) @@ -2285,9 +2302,10 @@ def update_sub_list( return deserialized update_sub_list.metadata = {'url': '/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}'} - def get_intent_suggestions( + def list_intent_suggestions( self, app_id, version_id, intent_id, take=100, custom_headers=None, raw=False, **operation_config): - """Suggests examples that would improve the accuracy of the intent model. + """Suggests example utterances that would improve the accuracy of the + intent model in a version of the application. :param app_id: The application ID. :type app_id: str @@ -2311,7 +2329,7 @@ def get_intent_suggestions( :class:`ErrorResponseException` """ # Construct URL - url = self.get_intent_suggestions.metadata['url'] + url = self.list_intent_suggestions.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -2348,12 +2366,12 @@ def get_intent_suggestions( return client_raw_response return deserialized - get_intent_suggestions.metadata = {'url': '/apps/{appId}/versions/{versionId}/intents/{intentId}/suggest'} + list_intent_suggestions.metadata = {'url': '/apps/{appId}/versions/{versionId}/intents/{intentId}/suggest'} - def get_entity_suggestions( + def list_entity_suggestions( self, app_id, version_id, entity_id, take=100, custom_headers=None, raw=False, **operation_config): - """Get suggestion examples that would improve the accuracy of the entity - model. + """Get suggested example utterances that would improve the accuracy of the + entity model in a version of the application. :param app_id: The application ID. :type app_id: str @@ -2377,7 +2395,7 @@ def get_entity_suggestions( :class:`ErrorResponseException` """ # Construct URL - url = self.get_entity_suggestions.metadata['url'] + url = self.list_entity_suggestions.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -2414,17 +2432,18 @@ def get_entity_suggestions( return client_raw_response return deserialized - get_entity_suggestions.metadata = {'url': '/apps/{appId}/versions/{versionId}/entities/{entityId}/suggest'} + list_entity_suggestions.metadata = {'url': '/apps/{appId}/versions/{versionId}/entities/{entityId}/suggest'} def add_sub_list( self, app_id, version_id, cl_entity_id, canonical_form=None, list=None, custom_headers=None, raw=False, **operation_config): - """Adds a list to an existing closed list. + """Adds a sublist to an existing list entity in a version of the + application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param cl_entity_id: The closed list entity extractor ID. + :param cl_entity_id: The list entity extractor ID. :type cl_entity_id: str :param canonical_form: The standard form that the list represents. :type canonical_form: str @@ -2435,8 +2454,8 @@ def add_sub_list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: int or ClientRawResponse if raw=true - :rtype: int or ~msrest.pipeline.ClientRawResponse + :return: long or ClientRawResponse if raw=true + :rtype: long or ~msrest.pipeline.ClientRawResponse :raises: :class:`ErrorResponseException` """ @@ -2475,7 +2494,7 @@ def add_sub_list( deserialized = None if response.status_code == 201: - deserialized = self._deserialize('int', response) + deserialized = self._deserialize('long', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -2486,8 +2505,8 @@ def add_sub_list( def add_custom_prebuilt_domain( self, app_id, version_id, domain_name=None, custom_headers=None, raw=False, **operation_config): - """Adds a customizable prebuilt domain along with all of its models to - this application. + """Adds a customizable prebuilt domain along with all of its intent and + entity models in a version of the application. :param app_id: The application ID. :type app_id: str @@ -2550,7 +2569,8 @@ def add_custom_prebuilt_domain( def add_custom_prebuilt_intent( self, app_id, version_id, domain_name=None, model_name=None, custom_headers=None, raw=False, **operation_config): - """Adds a custom prebuilt intent model to the application. + """Adds a customizable prebuilt intent model to a version of the + application. :param app_id: The application ID. :type app_id: str @@ -2615,7 +2635,8 @@ def add_custom_prebuilt_intent( def list_custom_prebuilt_intents( self, app_id, version_id, custom_headers=None, raw=False, **operation_config): - """Gets custom prebuilt intents information of this application. + """Gets information about customizable prebuilt intents added to a version + of the application. :param app_id: The application ID. :type app_id: str @@ -2672,7 +2693,7 @@ def list_custom_prebuilt_intents( def add_custom_prebuilt_entity( self, app_id, version_id, domain_name=None, model_name=None, custom_headers=None, raw=False, **operation_config): - """Adds a custom prebuilt entity model to the application. + """Adds a prebuilt entity model to a version of the application. :param app_id: The application ID. :type app_id: str @@ -2737,7 +2758,7 @@ def add_custom_prebuilt_entity( def list_custom_prebuilt_entities( self, app_id, version_id, custom_headers=None, raw=False, **operation_config): - """Gets all custom prebuilt entities information of this application. + """Gets all prebuilt entities used in a version of the application. :param app_id: The application ID. :type app_id: str @@ -2794,7 +2815,8 @@ def list_custom_prebuilt_entities( def list_custom_prebuilt_models( self, app_id, version_id, custom_headers=None, raw=False, **operation_config): - """Gets all custom prebuilt models information of this application. + """Gets all prebuilt intent and entity model information used in a version + of this application. :param app_id: The application ID. :type app_id: str @@ -2851,7 +2873,7 @@ def list_custom_prebuilt_models( def delete_custom_prebuilt_domain( self, app_id, version_id, domain_name, custom_headers=None, raw=False, **operation_config): - """Deletes a prebuilt domain's models from the application. + """Deletes a prebuilt domain's models in a version of the application. :param app_id: The application ID. :type app_id: str @@ -2911,7 +2933,8 @@ def delete_custom_prebuilt_domain( def get_hierarchical_entity_child( self, app_id, version_id, h_entity_id, h_child_id, custom_headers=None, raw=False, **operation_config): - """Gets information about the hierarchical entity child model. + """Gets information about the child's model contained in an hierarchical + entity child model in a version of the application. :param app_id: The application ID. :type app_id: str @@ -2974,7 +2997,8 @@ def get_hierarchical_entity_child( def update_hierarchical_entity_child( self, app_id, version_id, h_entity_id, h_child_id, name=None, custom_headers=None, raw=False, **operation_config): - """Renames a single child in an existing hierarchical entity model. + """Renames a single child in an existing hierarchical entity model in a + version of the application. :param app_id: The application ID. :type app_id: str @@ -3045,7 +3069,8 @@ def update_hierarchical_entity_child( def delete_hierarchical_entity_child( self, app_id, version_id, h_entity_id, h_child_id, custom_headers=None, raw=False, **operation_config): - """Deletes a hierarchical entity extractor child from the application. + """Deletes a hierarchical entity extractor child in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -3108,7 +3133,8 @@ def delete_hierarchical_entity_child( def add_hierarchical_entity_child( self, app_id, version_id, h_entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Creates a single child in an existing hierarchical entity model. + """Creates a single child in an existing hierarchical entity model in a + version of the application. :param app_id: The application ID. :type app_id: str @@ -3174,7 +3200,8 @@ def add_hierarchical_entity_child( def add_composite_entity_child( self, app_id, version_id, c_entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Creates a single child in an existing composite entity model. + """Creates a single child in an existing composite entity model in a + version of the application. :param app_id: The application ID. :type app_id: str @@ -3240,7 +3267,8 @@ def add_composite_entity_child( def delete_composite_entity_child( self, app_id, version_id, c_entity_id, c_child_id, custom_headers=None, raw=False, **operation_config): - """Deletes a composite entity extractor child from the application. + """Deletes a composite entity extractor child from a version of the + application. :param app_id: The application ID. :type app_id: str @@ -3301,9 +3329,10 @@ def delete_composite_entity_child( return deserialized delete_composite_entity_child.metadata = {'url': '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}'} - def get_regex_entity_infos( + def list_regex_entity_infos( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets information about the regex entity models. + """Gets information about the regular expression entity models in a + version of the application. :param app_id: The application ID. :type app_id: str @@ -3327,7 +3356,7 @@ def get_regex_entity_infos( :class:`ErrorResponseException` """ # Construct URL - url = self.get_regex_entity_infos.metadata['url'] + url = self.list_regex_entity_infos.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -3365,17 +3394,17 @@ def get_regex_entity_infos( return client_raw_response return deserialized - get_regex_entity_infos.metadata = {'url': '/apps/{appId}/versions/{versionId}/regexentities'} + list_regex_entity_infos.metadata = {'url': '/apps/{appId}/versions/{versionId}/regexentities'} def create_regex_entity_model( self, app_id, version_id, regex_pattern=None, name=None, custom_headers=None, raw=False, **operation_config): - """Adds a regex entity model to the application version. + """Adds a regular expression entity model to a version of the application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param regex_pattern: The regex entity pattern. + :param regex_pattern: The regular expression entity pattern. :type regex_pattern: str :param name: The model name. :type name: str @@ -3432,9 +3461,10 @@ def create_regex_entity_model( return deserialized create_regex_entity_model.metadata = {'url': '/apps/{appId}/versions/{versionId}/regexentities'} - def get_pattern_any_entity_infos( + def list_pattern_any_entity_infos( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Get information about the Pattern.Any entity models. + """Get information about the Pattern.Any entity models in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -3458,7 +3488,7 @@ def get_pattern_any_entity_infos( :class:`ErrorResponseException` """ # Construct URL - url = self.get_pattern_any_entity_infos.metadata['url'] + url = self.list_pattern_any_entity_infos.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -3496,11 +3526,11 @@ def get_pattern_any_entity_infos( return client_raw_response return deserialized - get_pattern_any_entity_infos.metadata = {'url': '/apps/{appId}/versions/{versionId}/patternanyentities'} + list_pattern_any_entity_infos.metadata = {'url': '/apps/{appId}/versions/{versionId}/patternanyentities'} def create_pattern_any_entity_model( self, app_id, version_id, name=None, explicit_list=None, custom_headers=None, raw=False, **operation_config): - """Adds a pattern.any entity extractor to the application. + """Adds a pattern.any entity extractor to a version of the application. :param app_id: The application ID. :type app_id: str @@ -3563,9 +3593,9 @@ def create_pattern_any_entity_model( return deserialized create_pattern_any_entity_model.metadata = {'url': '/apps/{appId}/versions/{versionId}/patternanyentities'} - def get_entity_roles( + def list_entity_roles( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Get All Entity Roles for a given entity. + """Get all roles for an entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -3586,7 +3616,7 @@ def get_entity_roles( :class:`ErrorResponseException` """ # Construct URL - url = self.get_entity_roles.metadata['url'] + url = self.list_entity_roles.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -3621,11 +3651,11 @@ def get_entity_roles( return client_raw_response return deserialized - get_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles'} + list_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles'} def create_entity_role( self, app_id, version_id, entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Create an entity role for an entity in the application. + """Create an entity role in a version of the application. :param app_id: The application ID. :type app_id: str @@ -3689,9 +3719,9 @@ def create_entity_role( return deserialized create_entity_role.metadata = {'url': '/apps/{appId}/versions/{versionId}/entities/{entityId}/roles'} - def get_prebuilt_entity_roles( + def list_prebuilt_entity_roles( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Get All Entity Roles for a given entity. + """Get a prebuilt entity's roles in a version of the application. :param app_id: The application ID. :type app_id: str @@ -3712,7 +3742,7 @@ def get_prebuilt_entity_roles( :class:`ErrorResponseException` """ # Construct URL - url = self.get_prebuilt_entity_roles.metadata['url'] + url = self.list_prebuilt_entity_roles.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -3747,11 +3777,11 @@ def get_prebuilt_entity_roles( return client_raw_response return deserialized - get_prebuilt_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles'} + list_prebuilt_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles'} def create_prebuilt_entity_role( self, app_id, version_id, entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Create an entity role for an entity in the application. + """Create a role for a prebuilt entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -3815,9 +3845,9 @@ def create_prebuilt_entity_role( return deserialized create_prebuilt_entity_role.metadata = {'url': '/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles'} - def get_closed_list_entity_roles( + def list_closed_list_entity_roles( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Get All Entity Roles for a given entity. + """Get all roles for a list entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -3838,7 +3868,7 @@ def get_closed_list_entity_roles( :class:`ErrorResponseException` """ # Construct URL - url = self.get_closed_list_entity_roles.metadata['url'] + url = self.list_closed_list_entity_roles.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -3873,11 +3903,11 @@ def get_closed_list_entity_roles( return client_raw_response return deserialized - get_closed_list_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles'} + list_closed_list_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles'} def create_closed_list_entity_role( self, app_id, version_id, entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Create an entity role for an entity in the application. + """Create a role for a list entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -3941,9 +3971,10 @@ def create_closed_list_entity_role( return deserialized create_closed_list_entity_role.metadata = {'url': '/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles'} - def get_regex_entity_roles( + def list_regex_entity_roles( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Get All Entity Roles for a given entity. + """Get all roles for a regular expression entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -3964,7 +3995,7 @@ def get_regex_entity_roles( :class:`ErrorResponseException` """ # Construct URL - url = self.get_regex_entity_roles.metadata['url'] + url = self.list_regex_entity_roles.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -3999,11 +4030,12 @@ def get_regex_entity_roles( return client_raw_response return deserialized - get_regex_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles'} + list_regex_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles'} def create_regex_entity_role( self, app_id, version_id, entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Create an entity role for an entity in the application. + """Create a role for an regular expression entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -4067,9 +4099,9 @@ def create_regex_entity_role( return deserialized create_regex_entity_role.metadata = {'url': '/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles'} - def get_composite_entity_roles( + def list_composite_entity_roles( self, app_id, version_id, c_entity_id, custom_headers=None, raw=False, **operation_config): - """Get All Entity Roles for a given entity. + """Get all roles for a composite entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -4090,7 +4122,7 @@ def get_composite_entity_roles( :class:`ErrorResponseException` """ # Construct URL - url = self.get_composite_entity_roles.metadata['url'] + url = self.list_composite_entity_roles.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -4125,11 +4157,11 @@ def get_composite_entity_roles( return client_raw_response return deserialized - get_composite_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles'} + list_composite_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles'} def create_composite_entity_role( self, app_id, version_id, c_entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Create an entity role for an entity in the application. + """Create a role for a composite entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -4193,9 +4225,9 @@ def create_composite_entity_role( return deserialized create_composite_entity_role.metadata = {'url': '/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles'} - def get_pattern_any_entity_roles( + def list_pattern_any_entity_roles( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Get All Entity Roles for a given entity. + """Get all roles for a Pattern.any entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -4216,7 +4248,7 @@ def get_pattern_any_entity_roles( :class:`ErrorResponseException` """ # Construct URL - url = self.get_pattern_any_entity_roles.metadata['url'] + url = self.list_pattern_any_entity_roles.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -4251,11 +4283,12 @@ def get_pattern_any_entity_roles( return client_raw_response return deserialized - get_pattern_any_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles'} + list_pattern_any_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles'} def create_pattern_any_entity_role( self, app_id, version_id, entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Create an entity role for an entity in the application. + """Create a role for an Pattern.any entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -4319,9 +4352,10 @@ def create_pattern_any_entity_role( return deserialized create_pattern_any_entity_role.metadata = {'url': '/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles'} - def get_hierarchical_entity_roles( + def list_hierarchical_entity_roles( self, app_id, version_id, h_entity_id, custom_headers=None, raw=False, **operation_config): - """Get All Entity Roles for a given entity. + """Get all roles for a hierarchical entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -4342,7 +4376,7 @@ def get_hierarchical_entity_roles( :class:`ErrorResponseException` """ # Construct URL - url = self.get_hierarchical_entity_roles.metadata['url'] + url = self.list_hierarchical_entity_roles.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -4377,11 +4411,12 @@ def get_hierarchical_entity_roles( return client_raw_response return deserialized - get_hierarchical_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles'} + list_hierarchical_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles'} def create_hierarchical_entity_role( self, app_id, version_id, h_entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Create an entity role for an entity in the application. + """Create a role for an hierarchical entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -4445,9 +4480,9 @@ def create_hierarchical_entity_role( return deserialized create_hierarchical_entity_role.metadata = {'url': '/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles'} - def get_custom_prebuilt_entity_roles( + def list_custom_prebuilt_entity_roles( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Get All Entity Roles for a given entity. + """Get all roles for a prebuilt entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -4468,7 +4503,7 @@ def get_custom_prebuilt_entity_roles( :class:`ErrorResponseException` """ # Construct URL - url = self.get_custom_prebuilt_entity_roles.metadata['url'] + url = self.list_custom_prebuilt_entity_roles.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -4503,11 +4538,11 @@ def get_custom_prebuilt_entity_roles( return client_raw_response return deserialized - get_custom_prebuilt_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles'} + list_custom_prebuilt_entity_roles.metadata = {'url': '/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles'} def create_custom_prebuilt_entity_role( self, app_id, version_id, entity_id, name=None, custom_headers=None, raw=False, **operation_config): - """Create an entity role for an entity in the application. + """Create a role for a prebuilt entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -4573,7 +4608,8 @@ def create_custom_prebuilt_entity_role( def get_explicit_list( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Get the explicit list of the pattern.any entity. + """Get the explicit (exception) list of the pattern.any entity in a + version of the application. :param app_id: The application ID. :type app_id: str @@ -4633,7 +4669,8 @@ def get_explicit_list( def add_explicit_list_item( self, app_id, version_id, entity_id, explicit_list_item=None, custom_headers=None, raw=False, **operation_config): - """Add a new item to the explicit list for the Pattern.Any entity. + """Add a new exception to the explicit list for the Pattern.Any entity in + a version of the application. :param app_id: The application ID. :type app_id: str @@ -4699,13 +4736,14 @@ def add_explicit_list_item( def get_regex_entity_entity_info( self, app_id, version_id, regex_entity_id, custom_headers=None, raw=False, **operation_config): - """Gets information of a regex entity model. + """Gets information about a regular expression entity in a version of the + application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param regex_entity_id: The regex entity model ID. + :param regex_entity_id: The regular expression entity model ID. :type regex_entity_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -4759,15 +4797,15 @@ def get_regex_entity_entity_info( def update_regex_entity_model( self, app_id, version_id, regex_entity_id, regex_pattern=None, name=None, custom_headers=None, raw=False, **operation_config): - """Updates the regex entity model . + """Updates the regular expression entity in a version of the application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param regex_entity_id: The regex entity extractor ID. + :param regex_entity_id: The regular expression entity extractor ID. :type regex_entity_id: str - :param regex_pattern: The regex entity pattern. + :param regex_pattern: The regular expression entity pattern. :type regex_pattern: str :param name: The model name. :type name: str @@ -4829,13 +4867,13 @@ def update_regex_entity_model( def delete_regex_entity_model( self, app_id, version_id, regex_entity_id, custom_headers=None, raw=False, **operation_config): - """Deletes a regex entity model from the application. + """Deletes a regular expression entity from a version of the application. :param app_id: The application ID. :type app_id: str :param version_id: The version ID. :type version_id: str - :param regex_entity_id: The regex entity extractor ID. + :param regex_entity_id: The regular expression entity extractor ID. :type regex_entity_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -4889,7 +4927,8 @@ def delete_regex_entity_model( def get_pattern_any_entity_info( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Gets information about the application version's Pattern.Any model. + """Gets information about the Pattern.Any model in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -4949,7 +4988,8 @@ def get_pattern_any_entity_info( def update_pattern_any_entity_model( self, app_id, version_id, entity_id, name=None, explicit_list=None, custom_headers=None, raw=False, **operation_config): - """Updates the name and explicit list of a Pattern.Any entity model. + """Updates the name and explicit (exception) list of a Pattern.Any entity + model in a version of the application. :param app_id: The application ID. :type app_id: str @@ -5019,7 +5059,8 @@ def update_pattern_any_entity_model( def delete_pattern_any_entity_model( self, app_id, version_id, entity_id, custom_headers=None, raw=False, **operation_config): - """Deletes a Pattern.Any entity extractor from the application. + """Deletes a Pattern.Any entity extractor from a version of the + application. :param app_id: The application ID. :type app_id: str @@ -5079,7 +5120,7 @@ def delete_pattern_any_entity_model( def get_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Get one entity role for a given entity. + """Get one role for a given entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -5142,7 +5183,7 @@ def get_entity_role( def update_entity_role( self, app_id, version_id, entity_id, role_id, name=None, custom_headers=None, raw=False, **operation_config): - """Update an entity role for a given entity. + """Update a role for a given entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -5213,7 +5254,7 @@ def update_entity_role( def delete_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Delete an entity role. + """Delete an entity role in a version of the application. :param app_id: The application ID. :type app_id: str @@ -5276,7 +5317,8 @@ def delete_entity_role( def get_prebuilt_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Get one entity role for a given entity. + """Get one role for a given prebuilt entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -5339,7 +5381,8 @@ def get_prebuilt_entity_role( def update_prebuilt_entity_role( self, app_id, version_id, entity_id, role_id, name=None, custom_headers=None, raw=False, **operation_config): - """Update an entity role for a given entity. + """Update a role for a given prebuilt entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -5410,7 +5453,7 @@ def update_prebuilt_entity_role( def delete_prebuilt_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Delete an entity role. + """Delete a role in a prebuilt entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -5473,7 +5516,7 @@ def delete_prebuilt_entity_role( def get_closed_list_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Get one entity role for a given entity. + """Get one role for a given list entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -5536,7 +5579,7 @@ def get_closed_list_entity_role( def update_closed_list_entity_role( self, app_id, version_id, entity_id, role_id, name=None, custom_headers=None, raw=False, **operation_config): - """Update an entity role for a given entity. + """Update a role for a given list entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -5607,7 +5650,7 @@ def update_closed_list_entity_role( def delete_closed_list_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Delete an entity role. + """Delete a role for a given list entity in a version of the application. :param app_id: The application ID. :type app_id: str @@ -5670,7 +5713,8 @@ def delete_closed_list_entity_role( def get_regex_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Get one entity role for a given entity. + """Get one role for a given regular expression entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -5733,7 +5777,8 @@ def get_regex_entity_role( def update_regex_entity_role( self, app_id, version_id, entity_id, role_id, name=None, custom_headers=None, raw=False, **operation_config): - """Update an entity role for a given entity. + """Update a role for a given regular expression entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -5804,7 +5849,8 @@ def update_regex_entity_role( def delete_regex_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Delete an entity role. + """Delete a role for a given regular expression in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -5867,7 +5913,8 @@ def delete_regex_entity_role( def get_composite_entity_role( self, app_id, version_id, c_entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Get one entity role for a given entity. + """Get one role for a given composite entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -5930,7 +5977,8 @@ def get_composite_entity_role( def update_composite_entity_role( self, app_id, version_id, c_entity_id, role_id, name=None, custom_headers=None, raw=False, **operation_config): - """Update an entity role for a given entity. + """Update a role for a given composite entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6001,7 +6049,8 @@ def update_composite_entity_role( def delete_composite_entity_role( self, app_id, version_id, c_entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Delete an entity role. + """Delete a role for a given composite entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6064,7 +6113,8 @@ def delete_composite_entity_role( def get_pattern_any_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Get one entity role for a given entity. + """Get one role for a given Pattern.any entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6127,7 +6177,8 @@ def get_pattern_any_entity_role( def update_pattern_any_entity_role( self, app_id, version_id, entity_id, role_id, name=None, custom_headers=None, raw=False, **operation_config): - """Update an entity role for a given entity. + """Update a role for a given Pattern.any entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6198,7 +6249,8 @@ def update_pattern_any_entity_role( def delete_pattern_any_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Delete an entity role. + """Delete a role for a given Pattern.any entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6261,7 +6313,8 @@ def delete_pattern_any_entity_role( def get_hierarchical_entity_role( self, app_id, version_id, h_entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Get one entity role for a given entity. + """Get one role for a given hierarchical entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6324,7 +6377,8 @@ def get_hierarchical_entity_role( def update_hierarchical_entity_role( self, app_id, version_id, h_entity_id, role_id, name=None, custom_headers=None, raw=False, **operation_config): - """Update an entity role for a given entity. + """Update a role for a given hierarchical entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6395,7 +6449,8 @@ def update_hierarchical_entity_role( def delete_hierarchical_entity_role( self, app_id, version_id, h_entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Delete an entity role. + """Delete a role for a given hierarchical role in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6458,7 +6513,8 @@ def delete_hierarchical_entity_role( def get_custom_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Get one entity role for a given entity. + """Get one role for a given prebuilt entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6521,7 +6577,8 @@ def get_custom_entity_role( def update_custom_prebuilt_entity_role( self, app_id, version_id, entity_id, role_id, name=None, custom_headers=None, raw=False, **operation_config): - """Update an entity role for a given entity. + """Update a role for a given prebuilt entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6592,7 +6649,8 @@ def update_custom_prebuilt_entity_role( def delete_custom_entity_role( self, app_id, version_id, entity_id, role_id, custom_headers=None, raw=False, **operation_config): - """Delete an entity role. + """Delete a role for a given prebuilt entity in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -6655,7 +6713,8 @@ def delete_custom_entity_role( def get_explicit_list_item( self, app_id, version_id, entity_id, item_id, custom_headers=None, raw=False, **operation_config): - """Get the explicit list of the pattern.any entity. + """Get the explicit (exception) list of the pattern.any entity in a + version of the application. :param app_id: The application ID. :type app_id: str @@ -6718,7 +6777,8 @@ def get_explicit_list_item( def update_explicit_list_item( self, app_id, version_id, entity_id, item_id, explicit_list_item=None, custom_headers=None, raw=False, **operation_config): - """Updates an explicit list item for a Pattern.Any entity. + """Updates an explicit (exception) list item for a Pattern.Any entity in a + version of the application. :param app_id: The application ID. :type app_id: str @@ -6789,7 +6849,8 @@ def update_explicit_list_item( def delete_explicit_list_item( self, app_id, version_id, entity_id, item_id, custom_headers=None, raw=False, **operation_config): - """Delete the explicit list item from the Pattern.any explicit list. + """Delete an item from the explicit (exception) list for a Pattern.any + entity in a version of the application. :param app_id: The application ID. :type app_id: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/pattern_operations.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/pattern_operations.py index 1f10eca9da23..08dde91b3595 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/pattern_operations.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/pattern_operations.py @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): def add_pattern( self, app_id, version_id, pattern=None, intent=None, custom_headers=None, raw=False, **operation_config): - """Adds one pattern to the specified application. + """Adds a pattern to a version of the application. :param app_id: The application ID. :type app_id: str @@ -100,9 +100,9 @@ def add_pattern( return deserialized add_pattern.metadata = {'url': '/apps/{appId}/versions/{versionId}/patternrule'} - def get_patterns( + def list_patterns( self, app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Returns an application version's patterns. + """Gets patterns in a version of the application. :param app_id: The application ID. :type app_id: str @@ -126,7 +126,7 @@ def get_patterns( :class:`ErrorResponseException` """ # Construct URL - url = self.get_patterns.metadata['url'] + url = self.list_patterns.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -164,11 +164,11 @@ def get_patterns( return client_raw_response return deserialized - get_patterns.metadata = {'url': '/apps/{appId}/versions/{versionId}/patternrules'} + list_patterns.metadata = {'url': '/apps/{appId}/versions/{versionId}/patternrules'} def update_patterns( self, app_id, version_id, patterns, custom_headers=None, raw=False, **operation_config): - """Updates patterns. + """Updates patterns in a version of the application. :param app_id: The application ID. :type app_id: str @@ -232,7 +232,7 @@ def update_patterns( def batch_add_patterns( self, app_id, version_id, patterns, custom_headers=None, raw=False, **operation_config): - """Adds a batch of patterns to the specified application. + """Adds a batch of patterns in a version of the application. :param app_id: The application ID. :type app_id: str @@ -296,7 +296,7 @@ def batch_add_patterns( def delete_patterns( self, app_id, version_id, pattern_ids, custom_headers=None, raw=False, **operation_config): - """Deletes the patterns with the specified IDs. + """Deletes a list of patterns in a version of the application. :param app_id: The application ID. :type app_id: str @@ -359,7 +359,7 @@ def delete_patterns( def update_pattern( self, app_id, version_id, pattern_id, pattern, custom_headers=None, raw=False, **operation_config): - """Updates a pattern. + """Updates a pattern in a version of the application. :param app_id: The application ID. :type app_id: str @@ -426,7 +426,8 @@ def update_pattern( def delete_pattern( self, app_id, version_id, pattern_id, custom_headers=None, raw=False, **operation_config): - """Deletes the pattern with the specified ID. + """Deletes the pattern with the specified ID from a version of the + application.. :param app_id: The application ID. :type app_id: str @@ -484,9 +485,10 @@ def delete_pattern( return deserialized delete_pattern.metadata = {'url': '/apps/{appId}/versions/{versionId}/patternrules/{patternId}'} - def get_intent_patterns( + def list_intent_patterns( self, app_id, version_id, intent_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Returns patterns to be retrieved for the specific intent. + """Returns patterns for the specific intent in a version of the + application. :param app_id: The application ID. :type app_id: str @@ -512,7 +514,7 @@ def get_intent_patterns( :class:`ErrorResponseException` """ # Construct URL - url = self.get_intent_patterns.metadata['url'] + url = self.list_intent_patterns.metadata['url'] path_format_arguments = { 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), 'appId': self._serialize.url("app_id", app_id, 'str'), @@ -551,4 +553,4 @@ def get_intent_patterns( return client_raw_response return deserialized - get_intent_patterns.metadata = {'url': '/apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules'} + list_intent_patterns.metadata = {'url': '/apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules'} diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/permissions_operations.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/permissions_operations.py index b79917aa1207..e14a2769fc46 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/permissions_operations.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/permissions_operations.py @@ -216,8 +216,9 @@ def delete( def update( self, app_id, emails=None, custom_headers=None, raw=False, **operation_config): - """Replaces the current users access list with the one sent in the body. - If an empty list is sent, all access to other users will be removed. + """Replaces the current user access list with the new list sent in the + body. If an empty list is sent, all access to other users will be + removed. :param app_id: The application ID. :type app_id: str diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/settings_operations.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/settings_operations.py new file mode 100644 index 000000000000..8bf9fb6ab526 --- /dev/null +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/settings_operations.py @@ -0,0 +1,156 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class SettingsOperations(object): + """SettingsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def list( + self, app_id, version_id, custom_headers=None, raw=False, **operation_config): + """Gets the settings in a version of the application. + + :param app_id: The application ID. + :type app_id: str + :param version_id: The version ID. + :type version_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: + list[~azure.cognitiveservices.language.luis.authoring.models.AppVersionSettingObject] + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), + 'appId': self._serialize.url("app_id", app_id, 'str'), + 'versionId': self._serialize.url("version_id", version_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('[AppVersionSettingObject]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/apps/{appId}/versions/{versionId}/settings'} + + def update( + self, app_id, version_id, list_of_app_version_setting_object, custom_headers=None, raw=False, **operation_config): + """Updates the settings in a version of the application. + + :param app_id: The application ID. + :type app_id: str + :param version_id: The version ID. + :type version_id: str + :param list_of_app_version_setting_object: A list of the updated + application version settings. + :type list_of_app_version_setting_object: + list[~azure.cognitiveservices.language.luis.authoring.models.AppVersionSettingObject] + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: OperationStatus or ClientRawResponse if raw=true + :rtype: + ~azure.cognitiveservices.language.luis.authoring.models.OperationStatus + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), + 'appId': self._serialize.url("app_id", app_id, 'str'), + 'versionId': self._serialize.url("version_id", version_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(list_of_app_version_setting_object, '[AppVersionSettingObject]') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('OperationStatus', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/apps/{appId}/versions/{versionId}/settings'} diff --git a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/versions_operations.py b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/versions_operations.py index 45142ac03856..bc8618a7c34b 100644 --- a/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/versions_operations.py +++ b/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/operations/versions_operations.py @@ -35,8 +35,7 @@ def __init__(self, client, config, serializer, deserializer): def clone( self, app_id, version_id, version=None, custom_headers=None, raw=False, **operation_config): - """Creates a new version using the current snapshot of the selected - application version. + """Creates a new version from the selected version. :param app_id: The application ID. :type app_id: str @@ -54,9 +53,7 @@ def clone( :raises: :class:`ErrorResponseException` """ - version_clone_object = None - if version is not None: - version_clone_object = models.TaskUpdateObject(version=version) + version_clone_object = models.TaskUpdateObject(version=version) # Construct URL url = self.clone.metadata['url'] @@ -78,10 +75,7 @@ def clone( header_parameters.update(custom_headers) # Construct body - if version_clone_object is not None: - body_content = self._serialize.body(version_clone_object, 'TaskUpdateObject') - else: - body_content = None + body_content = self._serialize.body(version_clone_object, 'TaskUpdateObject') # Construct and send request request = self._client.post(url, query_parameters, header_parameters, body_content) @@ -104,7 +98,7 @@ def clone( def list( self, app_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config): - """Gets the application versions info. + """Gets a list of versions for this application ID. :param app_id: The application ID. :type app_id: str @@ -167,7 +161,9 @@ def list( def get( self, app_id, version_id, custom_headers=None, raw=False, **operation_config): - """Gets the version info. + """Gets the version information such as date created, last modified date, + endpoint URL, count of intents and entities, training and publishing + status. :param app_id: The application ID. :type app_id: str @@ -467,7 +463,7 @@ def import_method( def delete_unlabelled_utterance( self, app_id, version_id, utterance, custom_headers=None, raw=False, **operation_config): - """Deleted an unlabelled utterance. + """Deleted an unlabelled utterance in a version of the application. :param app_id: The application ID. :type app_id: str