Skip to content

Commit

Permalink
[AutoPR] cognitiveservices/data-plane/LUIS/Authoring (#4389)
Browse files Browse the repository at this point in the history
* [AutoPR cognitiveservices/data-plane/LUIS/Authoring] [Cogsvcs] LUIS - add text to simple entity description (#4375)

* Generated from 0fe50266ddf3f2e10f2e203fd4367222d4f79081

[Cogsvcs] LUIS - add text to simple entity description

* Packaging update of azure-cognitiveservices-language-luis

* [AutoPR cognitiveservices/data-plane/LUIS/Authoring] Revert changes in authoring (#4639)

* Generated from 26e4b3a45f476fc81fa11213eb459a361aea59b9

Revert changes in authoring

* Packaging update of azure-cognitiveservices-language-luis

* [AutoPR cognitiveservices/data-plane/LUIS/Authoring] Add ErrorResponse to "AddIntent" post (#4940)

* Generated from 58571b3e7758b12f19fec873785626ac9fe4f14f

Adjust enums of /definitions/ReadableType

- Add "Closed List Entity Extractor "to enum list
- Add "Regex Entity Extractor" to enum list

* Packaging update of azure-cognitiveservices-language-luis

* Generated from 8c91543d1c9aa00008e73aec18bad84fd597bcea (#4943)

Refactor enum list of /definitions/ReadableType 

- Remove unnecessary "Regular Expression Entity Extractor"
  • Loading branch information
AutorestCI authored and lmazuel committed Apr 24, 2019
1 parent 1590f93 commit 3953b70
Show file tree
Hide file tree
Showing 109 changed files with 1,350 additions and 463 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -317,6 +321,8 @@
'PatternAnyEntityExtractor',
'PatternRuleInfo',
'LabelTextObject',
'AppVersionSettingObject',
'AzureAccountInfoObject',
'HierarchicalChildModelUpdateObject',
'HierarchicalChildModelCreateObject',
'CompositeChildModelCreateObject',
Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading

0 comments on commit 3953b70

Please sign in to comment.