Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
235ba28
Generated from 9d47919ae58279d1591ab79afbf885305525abff (#3036)
AutorestCI Jul 30, 2018
a408860
Generated from 7f44963d3dac6906ae99ac5fceef6110894746bd
AutorestCI Jul 30, 2018
e174313
Generated from 3dab8a0b403a6dac12f14dfd4d4f0b06435776ec
AutorestCI Jul 31, 2018
5712e88
Generated from 371cc2757ec9c41ff74140b99d9efaeb673ab3de (#3072)
AutorestCI Aug 3, 2018
599a540
[AutoPR network/resource-manager] Service Endpoint Policies Swagger (…
AutorestCI Aug 3, 2018
4638556
Generated from 984fe8d9d389c7d56f56bec3bc40b86c08dbee7e
AutorestCI Aug 6, 2018
29db7dc
Generated from 29523ef8b9a25a8de7d025364d6a67a189517405 (#3080)
AutorestCI Aug 6, 2018
d2680fb
Generated from 0dfdf472aa25b4e9809fc6c00bb5b4485dc8ee86
AutorestCI Aug 6, 2018
3893de7
Generated from fdef80e9d8d92c887fecafb1d29f6248f09f6f90
AutorestCI Aug 7, 2018
c25b6f6
[AutoPR network/resource-manager] Added global reach flag in expressR…
AutorestCI Aug 7, 2018
fce0494
Generated from 5f6d6d53398244a5e05801abc2abf1a3c82447f2
AutorestCI Aug 7, 2018
5b97608
Generated from 28bd762c73cedcd4611cef812fe3c7464bb4bf9a (#3046)
AutorestCI Aug 7, 2018
b3f5707
Generated from c1be2e6a6041b3c8373ff293b16d45df1c968480
AutorestCI Aug 7, 2018
372e5fa
Generated from 4a7061955d76c880e50d318e71148bd278e70b72 (#3094)
AutorestCI Aug 7, 2018
21122a2
Generated from 37a0eec749bebaea3384a6abfedd6c54e02b9ecc
AutorestCI Aug 10, 2018
ba5482c
Generated from 4afe6792a17605c0d4e35e7a1149145650bfabf1 (#3122)
AutorestCI Aug 10, 2018
e998f34
Generated from b6822af7ad323a493eca3a3b5f6a7d3bd5d80ba8
AutorestCI Aug 15, 2018
3533d25
Generated from 3a4b18e1cbf64d1cc61cd892d576e2596a289bf2 (#3152)
AutorestCI Aug 15, 2018
765df00
Generated from d7c69d9de80d880fbb1f9d98043cb5cc0f08b39b
AutorestCI Aug 15, 2018
727b23a
Generated from 819faf9a2be3525865cfcf6a98ce8f71f7789147 (#3155)
AutorestCI Aug 15, 2018
a843d4e
Generated from aeba0778304634319ecf7e9cde62f968d94622c6 (#3161)
AutorestCI Aug 16, 2018
7e421a5
Generated from 2ca2757c4d76b73a18a50dea2065d86fc66c2f62
AutorestCI Aug 16, 2018
72413d7
Generated from 880a1712d099f25fa2326425fd42dcfbdda3499a
AutorestCI Aug 16, 2018
b27f137
Generated from e84817da8f32e67957ec454db99b17fa7813621d (#3167)
AutorestCI Aug 16, 2018
4fbc219
Generated from 880a1712d099f25fa2326425fd42dcfbdda3499a
AutorestCI Aug 17, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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 .luis_authoring_client import LUISAuthoringClient
from .version import VERSION

__all__ = ['LUISAuthoringClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# 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.service_client import SDKClient
from msrest import Configuration, Serializer, Deserializer
from .version import VERSION
from msrest.exceptions import HttpOperationError
from .operations.features_operations import FeaturesOperations
from .operations.examples_operations import ExamplesOperations
from .operations.model_operations import ModelOperations
from .operations.apps_operations import AppsOperations
from .operations.versions_operations import VersionsOperations
from .operations.train_operations import TrainOperations
from .operations.permissions_operations import PermissionsOperations
from .operations.pattern_operations import PatternOperations
from . import models


class LUISAuthoringClientConfiguration(Configuration):
"""Configuration for LUISAuthoringClient
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):

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'

super(LUISAuthoringClientConfiguration, self).__init__(base_url)

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

self.endpoint = endpoint
self.credentials = credentials


class LUISAuthoringClient(SDKClient):
"""LUISAuthoringClient

:ivar config: Configuration for client.
:vartype config: LUISAuthoringClientConfiguration

:ivar features: Features operations
:vartype features: azure.cognitiveservices.language.luis.authoring.operations.FeaturesOperations
:ivar examples: Examples operations
:vartype examples: azure.cognitiveservices.language.luis.authoring.operations.ExamplesOperations
:ivar model: Model operations
:vartype model: azure.cognitiveservices.language.luis.authoring.operations.ModelOperations
:ivar apps: Apps operations
:vartype apps: azure.cognitiveservices.language.luis.authoring.operations.AppsOperations
:ivar versions: Versions operations
: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

: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.config = LUISAuthoringClientConfiguration(endpoint, 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)}
self.api_version = '2.0'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.features = FeaturesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.examples = ExamplesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.model = ModelOperations(
self._client, self.config, self._serialize, self._deserialize)
self.apps = AppsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.versions = VersionsOperations(
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)
Loading