Skip to content

Commit 9c2401d

Browse files
SDKAutoXi Jin
SDKAuto
and
Xi Jin
committed
CodeGen from PR 17079 in Azure/azure-rest-api-specs
Review request for Microsoft.MachineLearningServices to add version preview/2022-01-01-preview (Azure#17079) * Copy latest version 2021-07-01 to new version 2022-01-01-preview without change * apply changes for new preview API * remove unrelated changes to new preview API * address comments * fix name spell Co-authored-by: Xi Jin <[email protected]>
1 parent 3a14782 commit 9c2401d

21 files changed

+9401
-1485
lines changed

sdk/machinelearning/azure-mgmt-machinelearningservices/MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "a40eef492284ae625b87bbc4d355408d862323c4",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/machinelearningservices/resource-manager/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",
7+
"readme": "specification/machinelearningservices/resource-manager/readme.md"
8+
}

sdk/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/_azure_machine_learning_workspaces.py

+36-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717
from .operations import WorkspacesOperations
1818
from .operations import UsagesOperations
1919
from .operations import VirtualMachineSizesOperations
20-
from .operations import MachineLearningComputeOperations
20+
from .operations import QuotasOperations
21+
from .operations import ComputeOperations
22+
from .operations import PrivateEndpointConnectionsOperations
23+
from .operations import PrivateLinkResourcesOperations
24+
from .operations import WorkspaceConnectionsOperations
25+
from .operations import WorkspaceFeaturesOperations
26+
from .operations import WorkspaceSkusOperations
2127
from . import models
2228

2329

@@ -35,13 +41,25 @@ class AzureMachineLearningWorkspaces(SDKClient):
3541
:vartype usages: azure.mgmt.machinelearningservices.operations.UsagesOperations
3642
:ivar virtual_machine_sizes: VirtualMachineSizes operations
3743
:vartype virtual_machine_sizes: azure.mgmt.machinelearningservices.operations.VirtualMachineSizesOperations
38-
:ivar machine_learning_compute: MachineLearningCompute operations
39-
:vartype machine_learning_compute: azure.mgmt.machinelearningservices.operations.MachineLearningComputeOperations
44+
:ivar quotas: Quotas operations
45+
:vartype quotas: azure.mgmt.machinelearningservices.operations.QuotasOperations
46+
:ivar compute: Compute operations
47+
:vartype compute: azure.mgmt.machinelearningservices.operations.ComputeOperations
48+
:ivar private_endpoint_connections: PrivateEndpointConnections operations
49+
:vartype private_endpoint_connections: azure.mgmt.machinelearningservices.operations.PrivateEndpointConnectionsOperations
50+
:ivar private_link_resources: PrivateLinkResources operations
51+
:vartype private_link_resources: azure.mgmt.machinelearningservices.operations.PrivateLinkResourcesOperations
52+
:ivar workspace_connections: WorkspaceConnections operations
53+
:vartype workspace_connections: azure.mgmt.machinelearningservices.operations.WorkspaceConnectionsOperations
54+
:ivar workspace_features: WorkspaceFeatures operations
55+
:vartype workspace_features: azure.mgmt.machinelearningservices.operations.WorkspaceFeaturesOperations
56+
:ivar workspace_skus: WorkspaceSkus operations
57+
:vartype workspace_skus: azure.mgmt.machinelearningservices.operations.WorkspaceSkusOperations
4058
4159
:param credentials: Credentials needed for the client to connect to Azure.
4260
:type credentials: :mod:`A msrestazure Credentials
4361
object<msrestazure.azure_active_directory>`
44-
:param subscription_id: Azure subscription identifier.
62+
:param subscription_id: The ID of the target subscription.
4563
:type subscription_id: str
4664
:param str base_url: Service URL
4765
"""
@@ -53,7 +71,7 @@ def __init__(
5371
super(AzureMachineLearningWorkspaces, self).__init__(self.config.credentials, self.config)
5472

5573
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
56-
self.api_version = '2019-05-01'
74+
self.api_version = '2021-07-01'
5775
self._serialize = Serializer(client_models)
5876
self._deserialize = Deserializer(client_models)
5977

@@ -65,5 +83,17 @@ def __init__(
6583
self._client, self.config, self._serialize, self._deserialize)
6684
self.virtual_machine_sizes = VirtualMachineSizesOperations(
6785
self._client, self.config, self._serialize, self._deserialize)
68-
self.machine_learning_compute = MachineLearningComputeOperations(
86+
self.quotas = QuotasOperations(
87+
self._client, self.config, self._serialize, self._deserialize)
88+
self.compute = ComputeOperations(
89+
self._client, self.config, self._serialize, self._deserialize)
90+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
91+
self._client, self.config, self._serialize, self._deserialize)
92+
self.private_link_resources = PrivateLinkResourcesOperations(
93+
self._client, self.config, self._serialize, self._deserialize)
94+
self.workspace_connections = WorkspaceConnectionsOperations(
95+
self._client, self.config, self._serialize, self._deserialize)
96+
self.workspace_features = WorkspaceFeaturesOperations(
97+
self._client, self.config, self._serialize, self._deserialize)
98+
self.workspace_skus = WorkspaceSkusOperations(
6999
self._client, self.config, self._serialize, self._deserialize)

sdk/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/_configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AzureMachineLearningWorkspacesConfiguration(AzureConfiguration):
2121
:param credentials: Credentials needed for the client to connect to Azure.
2222
:type credentials: :mod:`A msrestazure Credentials
2323
object<msrestazure.azure_active_directory>`
24-
:param subscription_id: Azure subscription identifier.
24+
:param subscription_id: The ID of the target subscription.
2525
:type subscription_id: str
2626
:param str base_url: Service URL
2727
"""

0 commit comments

Comments
 (0)