Skip to content

Commit

Permalink
CodeGen from PR 15364 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 350cb8b8ca52d093010395c52130a5723abf717e into bb530ad
  • Loading branch information
SDKAuto committed Aug 10, 2021
1 parent 03516c3 commit f19cc26
Show file tree
Hide file tree
Showing 13 changed files with 293 additions and 383 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "6a90f6641c43e273881a809bb23e058ace2162bc",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
"readme": "specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,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/authoring/v3.0-preview'
base_url = '{Endpoint}/luis/authoring/v3.0'

super(LUISAuthoringClientConfiguration, self).__init__(base_url)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from .operations import AppsOperations
from .operations import VersionsOperations
from .operations import TrainOperations
from .operations import PermissionsOperations
from .operations import PatternOperations
from .operations import SettingsOperations
from .operations import AzureAccountsOperations
Expand All @@ -45,8 +44,6 @@ class LUISAuthoringClient(SDKClient):
:vartype versions: azure.cognitiveservices.language.luis.authoring.operations.VersionsOperations
:ivar train: Train operations
:vartype train: azure.cognitiveservices.language.luis.authoring.operations.TrainOperations
:ivar permissions: Permissions operations
: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
Expand All @@ -69,7 +66,7 @@ def __init__(
super(LUISAuthoringClient, 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 = '3.0-preview'
self.api_version = '3.0'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -85,8 +82,6 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.train = TrainOperations(
self._client, self.config, self._serialize, self._deserialize)
self.permissions = PermissionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.pattern = PatternOperations(
self._client, self.config, self._serialize, self._deserialize)
self.settings = SettingsOperations(
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"
Loading

0 comments on commit f19cc26

Please sign in to comment.