Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR cognitiveservices/data-plane/LUIS/Authoring/cognitiveservices/data-plane/LUIS/Runtime] Luis swagger fixes #4606

Closed
wants to merge 85 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
eb9714b
Generated from 40cc597d0b6eee58e66b121bdec968341c5b26ff
AutorestCI Mar 18, 2019
49964e5
Packaging update of azure-cognitiveservices-language-luis
azuresdkci Mar 18, 2019
3c0ac79
Generated from b1a21985f5217d5569c6f3af311deea9d40c26c2
AutorestCI Mar 18, 2019
0edb02c
Packaging update of azure-mgmt-datalake-analytics
azuresdkci Mar 19, 2019
8a0655e
Packaging update of azure-mgmt-search
azuresdkci Mar 19, 2019
56debcc
Packaging update of azure-mgmt-containerregistry
azuresdkci Mar 19, 2019
fe6661c
Packaging update of azure-mgmt-resource
azuresdkci Mar 19, 2019
86b4746
Packaging update of azure-mgmt-signalr
azuresdkci Mar 19, 2019
6011f18
Packaging update of azure-mgmt-batchai
azuresdkci Mar 19, 2019
109c1ca
Packaging update of azure-cognitiveservices-search-videosearch
azuresdkci Mar 19, 2019
192fb05
Packaging update of azure-mgmt-labservices
azuresdkci Mar 19, 2019
cfdca57
Packaging update of azure-mgmt-kusto
azuresdkci Mar 19, 2019
cddd952
Packaging update of azure-mgmt-msi
azuresdkci Mar 19, 2019
2dbed21
Packaging update of azure-cognitiveservices-search-websearch
azuresdkci Mar 19, 2019
6d1be21
Packaging update of azure-mgmt-managementgroups
azuresdkci Mar 19, 2019
40903f3
Packaging update of azure-servicefabric
azuresdkci Mar 19, 2019
481a50c
Packaging update of azure-mgmt-privatedns
azuresdkci Mar 19, 2019
e8dac54
Packaging update of azure-mgmt-logic
azuresdkci Mar 19, 2019
29ba222
Packaging update of azure-mgmt-network
azuresdkci Mar 19, 2019
770b467
Packaging update of azure-mgmt-resourcegraph
azuresdkci Mar 19, 2019
54af8b6
Packaging update of azure-mgmt-iothub
azuresdkci Mar 19, 2019
f441910
Packaging update of azure-cognitiveservices-search-visualsearch
azuresdkci Mar 19, 2019
c7d6049
Packaging update of azure-mgmt-datafactory
azuresdkci Mar 19, 2019
47ac621
Packaging update of azure-mgmt-powerbiembedded
azuresdkci Mar 19, 2019
d3da11d
Packaging update of azure-cognitiveservices-search-imagesearch
azuresdkci Mar 19, 2019
b9ded91
Packaging update of azure-mgmt-servicefabric
azuresdkci Mar 19, 2019
d3ac370
Packaging update of azure-mgmt-media
azuresdkci Mar 19, 2019
09a586e
Packaging update of azure-mgmt-relay
azuresdkci Mar 19, 2019
5b1c2a7
Packaging update of azure-cognitiveservices-search-customsearch
azuresdkci Mar 19, 2019
78f3091
Packaging update of azure-mgmt-subscription
azuresdkci Mar 19, 2019
c2d4478
Packaging update of azure-mgmt-devtestlabs
azuresdkci Mar 19, 2019
a70824d
Packaging update of azure-mgmt-sqlvirtualmachine
azuresdkci Mar 19, 2019
e7124b2
Packaging update of azure-mgmt-storage
azuresdkci Mar 19, 2019
3cfa138
Packaging update of azure-mgmt-datalake-store
azuresdkci Mar 19, 2019
e731cb9
Packaging update of azure-mgmt-batch
azuresdkci Mar 19, 2019
474bf73
Packaging update of azure-cognitiveservices-search-autosuggest
azuresdkci Mar 19, 2019
88ae23c
Packaging update of azure-mgmt-reservations
azuresdkci Mar 19, 2019
60951ba
Packaging update of azure-mgmt-containerinstance
azuresdkci Mar 19, 2019
dfe458a
Packaging update of azure-mgmt-cosmosdb
azuresdkci Mar 19, 2019
f93612b
Packaging update of azure-mgmt-maps
azuresdkci Mar 19, 2019
acd3e62
Packaging update of azure-mgmt-devspaces
azuresdkci Mar 19, 2019
be88dfe
Packaging update of azure-mgmt-commerce
azuresdkci Mar 19, 2019
aaa76cf
Packaging update of azure-mgmt-hanaonazure
azuresdkci Mar 19, 2019
b5c570b
Packaging update of azure-mgmt-mixedreality
azuresdkci Mar 19, 2019
c412d50
Packaging update of azure-mgmt-managementpartner
azuresdkci Mar 19, 2019
0fbb049
Packaging update of azure-mgmt-security
azuresdkci Mar 19, 2019
b40a32e
Packaging update of azure-mgmt-loganalytics
azuresdkci Mar 19, 2019
e7f4338
Packaging update of azure-mgmt-recoveryservicesbackup
azuresdkci Mar 19, 2019
62b8ecb
Packaging update of azure-mgmt-notificationhubs
azuresdkci Mar 19, 2019
4a180cc
Packaging update of azure-cognitiveservices-search-customimagesearch
azuresdkci Mar 19, 2019
eaf6f7f
Packaging update of azure-cognitiveservices-knowledge-qnamaker
azuresdkci Mar 19, 2019
eccdbd6
Packaging update of azure-mgmt-authorization
azuresdkci Mar 19, 2019
e50c1ed
Packaging update of azure-cognitiveservices-search-entitysearch
azuresdkci Mar 19, 2019
7f649b5
Packaging update of azure-mgmt-applicationinsights
azuresdkci Mar 19, 2019
daee8c8
Packaging update of azure-mgmt-alertsmanagement
azuresdkci Mar 19, 2019
d5e6200
Packaging update of azure-mgmt-keyvault
azuresdkci Mar 19, 2019
e6ab339
Packaging update of azure-mgmt-servicebus
azuresdkci Mar 19, 2019
ab38e64
Packaging update of azure-mgmt-advisor
azuresdkci Mar 19, 2019
11416e7
Packaging update of azure-mgmt-sql
azuresdkci Mar 19, 2019
885ae11
Packaging update of azure-mgmt-iothubprovisioningservices
azuresdkci Mar 19, 2019
eef25d1
Packaging update of azure-mgmt-machinelearningcompute
azuresdkci Mar 19, 2019
2d010b2
Packaging update of azure-mgmt-billing
azuresdkci Mar 19, 2019
be36652
Packaging update of azure-cognitiveservices-vision-contentmoderator
azuresdkci Mar 19, 2019
ea8404b
Packaging update of azure-mgmt-compute
azuresdkci Mar 19, 2019
574370c
Packaging update of azure-mgmt-redis
azuresdkci Mar 19, 2019
23bc05c
Packaging update of azure-cognitiveservices-vision-customvision
azuresdkci Mar 19, 2019
4d4d58b
Packaging update of azure-applicationinsights
azuresdkci Mar 19, 2019
23d1cfb
Packaging update of azure-mgmt-trafficmanager
azuresdkci Mar 19, 2019
99cdf95
Packaging update of azure-mgmt-recoveryservices
azuresdkci Mar 19, 2019
41d526c
Packaging update of azure-template
azuresdkci Mar 19, 2019
937c0b1
Packaging update of azure-mgmt-botservice
azuresdkci Mar 19, 2019
cbf38fb
Packaging update of azure-loganalytics
azuresdkci Mar 19, 2019
bb80be4
Packaging update of azure-mgmt-web
azuresdkci Mar 19, 2019
8673223
Packaging update of azure-mgmt-consumption
azuresdkci Mar 19, 2019
818831f
Packaging update of azure-mgmt-hdinsight
azuresdkci Mar 19, 2019
74dbf26
Packaging update of azure-mgmt-dns
azuresdkci Mar 19, 2019
52f827e
Packaging update of azure-mgmt-scheduler
azuresdkci Mar 19, 2019
0f6e317
Packaging update of azure-mgmt-containerservice
azuresdkci Mar 19, 2019
f8a8438
Packaging update of azure-mgmt-servermanager
azuresdkci Mar 19, 2019
1d8fb1f
Packaging update of azure-cognitiveservices-language-spellcheck
azuresdkci Mar 19, 2019
5604fbd
Packaging update of azure-mgmt-cognitiveservices
azuresdkci Mar 19, 2019
4f025fe
Packaging update of azure-mgmt-iotcentral
azuresdkci Mar 19, 2019
181a1d3
Packaging update of azure-eventgrid
azuresdkci Mar 19, 2019
f0c4848
Packaging update of azure-mgmt-datamigration
azuresdkci Mar 19, 2019
1f11c50
Packaging update of azure-cognitiveservices-search-newssearch
azuresdkci Mar 19, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions azure-applicationinsights/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py

19 changes: 0 additions & 19 deletions azure-applicationinsights/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
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
1 change: 1 addition & 0 deletions azure-applicationinsights/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
]),
install_requires=[
'msrest>=0.5.0',
'msrestazure>=0.4.32,<2.0.0',
'azure-common~=1.1',
],
extras_require={
Expand Down
1 change: 1 addition & 0 deletions azure-cognitiveservices-knowledge-qnamaker/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/cognitiveservices/__init__.py
Expand Down
21 changes: 1 addition & 20 deletions azure-cognitiveservices-knowledge-qnamaker/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,11 @@ 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
=====

For code examples, see `QnA Maker
<https://github.com/Azure-Samples/cognitive-services-python-sdk-samples/tree/master/samples/knowledge>`__
<https://docs.microsoft.com/python/api/overview/azure/cognitive-services>`__
on docs.microsoft.com.


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 All @@ -29,28 +31,22 @@ class LUISAuthoringClientConfiguration(Configuration):
Note that all parameters used to create this instance are saved as instance
attributes.

:param endpoint: Supported Cognitive Services endpoints (protocol and
hostname, for example: https://westus.api.cognitive.microsoft.com).
:type endpoint: str
:param credentials: Subscription credentials which uniquely identify
client subscription.
:type credentials: None
"""

def __init__(
self, endpoint, credentials):
self, credentials):

if endpoint is None:
raise ValueError("Parameter 'endpoint' must not be None.")
if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
base_url = '{Endpoint}/luis/api/v2.0'
base_url = 'http://{AzureRegion}.api.cognitive.microsoft.{AzureCloud}/luis/api/v2.0'

super(LUISAuthoringClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-cognitiveservices-language-luis/{}'.format(VERSION))

self.endpoint = endpoint
self.credentials = credentials


Expand All @@ -76,19 +72,20 @@ 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).
:type endpoint: str
:param credentials: Subscription credentials which uniquely identify
client subscription.
:type credentials: None
"""

def __init__(
self, endpoint, credentials):
self, credentials):

self.config = LUISAuthoringClientConfiguration(endpoint, credentials)
self.config = LUISAuthoringClientConfiguration(credentials)
super(LUISAuthoringClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
Expand All @@ -112,3 +109,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,12 +212,16 @@
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
from .luis_authoring_client_enums import (
TrainingStatus,
OperationStatusType,
AzureRegions,
AzureClouds,
)

__all__ = [
Expand Down Expand Up @@ -317,9 +323,13 @@
'PatternAnyEntityExtractor',
'PatternRuleInfo',
'LabelTextObject',
'AppVersionSettingObject',
'AzureAccountInfoObject',
'HierarchicalChildModelUpdateObject',
'HierarchicalChildModelCreateObject',
'CompositeChildModelCreateObject',
'TrainingStatus',
'OperationStatusType',
'AzureRegions',
'AzureClouds',
]
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)
Loading