Skip to content

Commit

Permalink
Restapi auto cognitiveservices data plane luis (#4945)
Browse files Browse the repository at this point in the history
* [AutoPR] cognitiveservices/data-plane/LUIS/Runtime (#4260)

* [AutoPR cognitiveservices/data-plane/LUIS/Runtime] Add dispatch child to LUIS Runtime response (#4245)

* Generated from 59e0c9edb7b7859abb45c76c118343b7998eb5c0

Add dispatch child to LUIS Runtime response

* Packaging update of azure-cognitiveservices-language-luis

* [AutoPR cognitiveservices/data-plane/LUIS/Runtime] LUIS runtime changes (#4611)

* Generated from faaca6c0dec3efe45b35a48607afa09ed360645a

LUIS runtime changes

* Packaging update of azure-cognitiveservices-language-luis

* Generated from 1e7415ddfdb783e444a35846cf77aeedce475373

Reverting some changes

* Packaging update of azure-cognitiveservices-language-luis

* [AutoPR] cognitiveservices/data-plane/LUIS/Authoring (#4389)

* [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"

* Manually fix LUIS

* ChangeLog
  • Loading branch information
lmazuel authored Apr 26, 2019
1 parent e8350ce commit b8fac94
Show file tree
Hide file tree
Showing 116 changed files with 1,428 additions and 487 deletions.
57 changes: 57 additions & 0 deletions azure-cognitiveservices-language-luis/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,63 @@
Release History
===============

0.2.0 (2019-04-26)
++++++++++++++++++

*Authoring*

**Features**

- Model ProductionOrStagingEndpointInfo has a new parameter failed_regions
- Model EndpointInfo has a new parameter failed_regions
- Added operation PatternOperations.list_patterns
- Added operation PatternOperations.list_intent_patterns
- Added operation ModelOperations.list_pattern_any_entity_roles
- Added operation ModelOperations.list_regex_entity_infos
- Added operation ModelOperations.list_pattern_any_entity_infos
- Added operation ModelOperations.list_composite_entity_roles
- Added operation ModelOperations.list_entity_suggestions
- Added operation ModelOperations.list_hierarchical_entity_roles
- Added operation ModelOperations.list_prebuilt_entity_roles
- Added operation ModelOperations.list_entity_roles
- Added operation ModelOperations.list_regex_entity_roles
- Added operation ModelOperations.list_intent_suggestions
- Added operation ModelOperations.list_custom_prebuilt_entity_roles
- Added operation ModelOperations.list_closed_list_entity_roles
- Added operation FeaturesOperations.list_application_version_pattern_features
- Added operation AppsOperations.package_published_application_as_gzip
- Added operation AppsOperations.package_trained_application_as_gzip
- Added operation group SettingsOperations
- Added operation group AzureAccountsOperations

**Breaking changes**

- Operation AppsOperations.update_settings has a new signature
- Operation AppsOperations.delete has a new signature
- Operation AppsOperations.publish has a new signature
- Model ApplicationPublishObject no longer has parameter region
- Removed operation PatternOperations.get_intent_patterns
- Removed operation PatternOperations.get_patterns
- Removed operation ModelOperations.get_regex_entity_roles
- Removed operation ModelOperations.get_custom_prebuilt_entity_roles
- Removed operation ModelOperations.get_pattern_any_entity_infos
- Removed operation ModelOperations.get_prebuilt_entity_roles
- Removed operation ModelOperations.get_composite_entity_roles
- Removed operation ModelOperations.get_pattern_any_entity_roles
- Removed operation ModelOperations.get_entity_roles
- Removed operation ModelOperations.get_regex_entity_infos
- Removed operation ModelOperations.get_entity_suggestions
- Removed operation ModelOperations.get_closed_list_entity_roles
- Removed operation ModelOperations.get_intent_suggestions
- Removed operation ModelOperations.get_hierarchical_entity_roles
- Model ApplicationSettingUpdateObject has a new signature

*Runtime*

**Features**

- Model LuisResult has a new parameter connected_service_result

0.1.0 (2018-08-15)
++++++++++++++++++

Expand Down
5 changes: 5 additions & 0 deletions azure-cognitiveservices-language-luis/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
recursive-include tests *.py *.yaml
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 @@ -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)
Loading

0 comments on commit b8fac94

Please sign in to comment.