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 #3362

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
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 @@ -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
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
Loading