Skip to content

Commit

Permalink
[AutoPR cognitiveservices/data-plane/LUIS/Authoring] Adding azure acc…
Browse files Browse the repository at this point in the history
…ounts APIs (#3869)

* Generated from 431fadac7b30b7c33b9fa6468874fce839869345

fixing build errors

* Packaging update of azure-cognitiveservices-language-luis

* Generated from 82cee8e19ad81e9d82d712cfabad1649b91b619a

Merge pull request #1 from omarelhariry/a-moghan/PublishingResponses

Adding Publishing To Regions Status

* Generated from 23a7c077da0b751b8ad2b246d8da041d0906f90d

Fixing formats

* Generated from 4289fc27afed08636bf27abb57ace4a1ff69b7ee

Fixing OAV errors

* Generated from 3b62ef631bbcf684da8597627f22d1869bb37c7d

Merge pull request #2 from omarelhariry/kayousef/Dispatch_APIs

Adding dispatch APIs

* Generated from 4289fc27afed08636bf27abb57ace4a1ff69b7ee

Fixing OAV errors

* Generated from c7d11c54fe4f164073a570f2dba2510ddbf91c76

Add application-json as a 2nd prdocues format for packaging APIs, to describe the error responses

* Generated from b8ee038af90c620395c27635c989a3a6364335a4

Updating operation ids

* Generated from 32e19a3f178eab8d32f3fd79316bbaf7569ca7c8

fix oav and remove error responses

* Update sdk_packaging.toml

* Packaging update of azure-cognitiveservices-language-luis
  • Loading branch information
AutorestCI authored Dec 13, 2018
1 parent b4875bb commit 15064fd
Show file tree
Hide file tree
Showing 25 changed files with 554 additions and 82 deletions.
5 changes: 4 additions & 1 deletion azure-cognitiveservices-language-luis/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
include *.rst
include azure_bdist_wheel.py
include azure/__init__.py
include azure/cognitiveservices/__init__.py
include azure/cognitiveservices/language/__init__.py

2 changes: 1 addition & 1 deletion azure-cognitiveservices-language-luis/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
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 @@ -79,6 +80,8 @@ class LUISAuthoringClient(SDKClient):
: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 @@ -117,3 +120,5 @@ def __init__(
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 @@ -109,6 +109,7 @@
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 @@ -212,6 +213,7 @@
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 @@ -320,6 +322,7 @@
'PatternRuleInfo',
'LabelTextObject',
'AppVersionSettingObject',
'AzureAccountInfoObject',
'HierarchicalChildModelUpdateObject',
'HierarchicalChildModelCreateObject',
'CompositeChildModelCreateObject',
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 @@ -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 @@ -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
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,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)
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PublishSettings(Model):
: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
response
:type is_sentiment_analysis_enabled: bool
:param is_speech_enabled: Required. Setting speech as public enables
speech priming in your app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PublishSettings(Model):
: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
response
:type is_sentiment_analysis_enabled: bool
:param is_speech_enabled: Required. Setting speech as public enables
speech priming in your app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .permissions_operations import PermissionsOperations
from .pattern_operations import PatternOperations
from .settings_operations import SettingsOperations
from .azure_accounts_operations import AzureAccountsOperations

__all__ = [
'FeaturesOperations',
Expand All @@ -29,4 +30,5 @@
'PermissionsOperations',
'PatternOperations',
'SettingsOperations',
'AzureAccountsOperations',
]
Loading

0 comments on commit 15064fd

Please sign in to comment.