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/Runtime] Update the default tag for LUIS Runtime #4984

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
raise ValueError("Parameter 'endpoint' must not be None.")
if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
base_url = '{Endpoint}/luis/v2.0'
base_url = '{Endpoint}/luis/v3.0-preview'

super(LUISRuntimeClientConfiguration, self).__init__(base_url)

Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(
super(LUISRuntimeClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2.0'
self.api_version = '3.0-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,40 @@
# --------------------------------------------------------------------------

try:
from .intent_model_py3 import IntentModel
from .entity_model_py3 import EntityModel
from .composite_child_model_py3 import CompositeChildModel
from .composite_entity_model_py3 import CompositeEntityModel
from .prediction_request_options_py3 import PredictionRequestOptions
from .external_entity_py3 import ExternalEntity
from .request_list_py3 import RequestList
from .dynamic_list_py3 import DynamicList
from .prediction_request_py3 import PredictionRequest
from .intent_py3 import Intent
from .sentiment_py3 import Sentiment
from .luis_result_py3 import LuisResult
from .entity_with_score_py3 import EntityWithScore
from .entity_with_resolution_py3 import EntityWithResolution
from .api_error_py3 import APIError, APIErrorException
from .prediction_py3 import Prediction
from .prediction_response_py3 import PredictionResponse
from .error_body_py3 import ErrorBody
from .error_py3 import Error, ErrorException
except (SyntaxError, ImportError):
from .intent_model import IntentModel
from .entity_model import EntityModel
from .composite_child_model import CompositeChildModel
from .composite_entity_model import CompositeEntityModel
from .prediction_request_options import PredictionRequestOptions
from .external_entity import ExternalEntity
from .request_list import RequestList
from .dynamic_list import DynamicList
from .prediction_request import PredictionRequest
from .intent import Intent
from .sentiment import Sentiment
from .luis_result import LuisResult
from .entity_with_score import EntityWithScore
from .entity_with_resolution import EntityWithResolution
from .api_error import APIError, APIErrorException
from .prediction import Prediction
from .prediction_response import PredictionResponse
from .error_body import ErrorBody
from .error import Error, ErrorException

__all__ = [
'IntentModel',
'EntityModel',
'CompositeChildModel',
'CompositeEntityModel',
'PredictionRequestOptions',
'ExternalEntity',
'RequestList',
'DynamicList',
'PredictionRequest',
'Intent',
'Sentiment',
'LuisResult',
'EntityWithScore',
'EntityWithResolution',
'APIError', 'APIErrorException',
'Prediction',
'PredictionResponse',
'ErrorBody',
'Error', 'ErrorException',
]

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 DynamicList(Model):
"""Defines an extension for a list entity.

All required parameters must be populated in order to send to Azure.

:param list_entity_name: Required. The name of the list entity to extend.
:type list_entity_name: str
:param request_lists: Required. The lists to append on the extended list
entity.
:type request_lists:
list[~azure.cognitiveservices.language.luis.runtime.models.RequestList]
"""

_validation = {
'list_entity_name': {'required': True},
'request_lists': {'required': True},
}

_attribute_map = {
'list_entity_name': {'key': 'listEntityName', 'type': 'str'},
'request_lists': {'key': 'requestLists', 'type': '[RequestList]'},
}

def __init__(self, **kwargs):
super(DynamicList, self).__init__(**kwargs)
self.list_entity_name = kwargs.get('list_entity_name', None)
self.request_lists = kwargs.get('request_lists', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 DynamicList(Model):
"""Defines an extension for a list entity.

All required parameters must be populated in order to send to Azure.

:param list_entity_name: Required. The name of the list entity to extend.
:type list_entity_name: str
:param request_lists: Required. The lists to append on the extended list
entity.
:type request_lists:
list[~azure.cognitiveservices.language.luis.runtime.models.RequestList]
"""

_validation = {
'list_entity_name': {'required': True},
'request_lists': {'required': True},
}

_attribute_map = {
'list_entity_name': {'key': 'listEntityName', 'type': 'str'},
'request_lists': {'key': 'requestLists', 'type': '[RequestList]'},
}

def __init__(self, *, list_entity_name: str, request_lists, **kwargs) -> None:
super(DynamicList, self).__init__(**kwargs)
self.list_entity_name = list_entity_name
self.request_lists = request_lists

This file was deleted.

This file was deleted.

Loading