Skip to content

Commit

Permalink
[AutoPR cognitiveservices/data-plane/LUIS/Authoring] [Cogsvcs] LUIS -…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
AutorestCI authored Feb 19, 2019
1 parent f68c120 commit 46d8657
Show file tree
Hide file tree
Showing 27 changed files with 784 additions and 48 deletions.
4 changes: 4 additions & 0 deletions azure-cognitiveservices-language-luis/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
include *.rst
include azure/__init__.py
include azure/cognitiveservices/__init__.py
include azure/cognitiveservices/language/__init__.py

19 changes: 0 additions & 19 deletions azure-cognitiveservices-language-luis/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,6 @@ This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell
pip freeze
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell
pip uninstall azure
Usage
=====

Expand Down
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 @@ -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
@@ -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 @@ -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
"""
Expand All @@ -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'},
}

Expand All @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand All @@ -39,15 +41,17 @@ 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
self.endpoint_url = 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
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class ExampleLabelObject(Model):
:param text: The sample's utterance.
:type text: str
:param entity_labels: The idenfied entities within the utterance.
:param entity_labels: The identified entities within the 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 utterance.
:type intent_name: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class ExampleLabelObject(Model):
:param text: The sample's utterance.
:type text: str
:param entity_labels: The idenfied entities within the utterance.
:param entity_labels: The identified entities within the 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 utterance.
:type intent_name: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ class TrainingStatus(str, Enum):
class OperationStatusType(str, Enum):

failed = "Failed"
failed = "FAILED"
success = "Success"
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand All @@ -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'},
}

Expand Down
Loading

0 comments on commit 46d8657

Please sign in to comment.