Skip to content

Commit 1b48924

Browse files
author
SDKAuto
committed
CodeGen from PR 13944 in Azure/azure-rest-api-specs
Remove AML Compute File Server (Azure#13944) * Remove AML Compute File Server * update * update * update * update
1 parent eae413d commit 1b48924

17 files changed

+9087
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from ._configuration import BatchAIManagementClientConfiguration
13+
from ._batch_ai_management_client import BatchAIManagementClient
14+
__all__ = ['BatchAIManagementClient', 'BatchAIManagementClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import BatchAIManagementClientConfiguration
16+
from .operations import Operations
17+
from .operations import UsagesOperations
18+
from .operations import WorkspacesOperations
19+
from .operations import ExperimentsOperations
20+
from .operations import JobsOperations
21+
from .operations import FileServersOperations
22+
from .operations import ClustersOperations
23+
from . import models
24+
25+
26+
class BatchAIManagementClient(SDKClient):
27+
"""The Azure BatchAI Management API.
28+
29+
:ivar config: Configuration for client.
30+
:vartype config: BatchAIManagementClientConfiguration
31+
32+
:ivar operations: Operations operations
33+
:vartype operations: azure.mgmt.batchai.operations.Operations
34+
:ivar usages: Usages operations
35+
:vartype usages: azure.mgmt.batchai.operations.UsagesOperations
36+
:ivar workspaces: Workspaces operations
37+
:vartype workspaces: azure.mgmt.batchai.operations.WorkspacesOperations
38+
:ivar experiments: Experiments operations
39+
:vartype experiments: azure.mgmt.batchai.operations.ExperimentsOperations
40+
:ivar jobs: Jobs operations
41+
:vartype jobs: azure.mgmt.batchai.operations.JobsOperations
42+
:ivar file_servers: FileServers operations
43+
:vartype file_servers: azure.mgmt.batchai.operations.FileServersOperations
44+
:ivar clusters: Clusters operations
45+
:vartype clusters: azure.mgmt.batchai.operations.ClustersOperations
46+
47+
:param credentials: Credentials needed for the client to connect to Azure.
48+
:type credentials: :mod:`A msrestazure Credentials
49+
object<msrestazure.azure_active_directory>`
50+
:param subscription_id: The subscriptionID for the Azure user.
51+
:type subscription_id: str
52+
:param str base_url: Service URL
53+
"""
54+
55+
def __init__(
56+
self, credentials, subscription_id, base_url=None):
57+
58+
self.config = BatchAIManagementClientConfiguration(credentials, subscription_id, base_url)
59+
super(BatchAIManagementClient, self).__init__(self.config.credentials, self.config)
60+
61+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
62+
self.api_version = '2018-05-01'
63+
self._serialize = Serializer(client_models)
64+
self._deserialize = Deserializer(client_models)
65+
66+
self.operations = Operations(
67+
self._client, self.config, self._serialize, self._deserialize)
68+
self.usages = UsagesOperations(
69+
self._client, self.config, self._serialize, self._deserialize)
70+
self.workspaces = WorkspacesOperations(
71+
self._client, self.config, self._serialize, self._deserialize)
72+
self.experiments = ExperimentsOperations(
73+
self._client, self.config, self._serialize, self._deserialize)
74+
self.jobs = JobsOperations(
75+
self._client, self.config, self._serialize, self._deserialize)
76+
self.file_servers = FileServersOperations(
77+
self._client, self.config, self._serialize, self._deserialize)
78+
self.clusters = ClustersOperations(
79+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class BatchAIManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for BatchAIManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The subscriptionID for the Azure user.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(BatchAIManagementClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-batchai/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id

0 commit comments

Comments
 (0)