Skip to content

Commit 784dd04

Browse files
authored
Adding machine learning extension (#8905)
* Adding machine learning extension * adding azure-ai-ml * removing azure-mgmt-resource * fixing linting issues * fixing more linting issues * linting * linting * linting * linting * linting * linting * linting * linting * linting * linting * linting * linting * linting * linting * linting * flake fix * flake fixes * flake * more flake and linting * fixing backward compatability issue * more fixes for linting and backward support * updating version * add history * updating version with last released version * correcting version * removing sensitive info from recording * removing all sensitive information * pointing to existing versin * upgrading to next minor version * fixing MIT license header for all the missing files * fixing license check for missing files * fixing test cases * fixing secrets and comments
1 parent e515ca5 commit 784dd04

File tree

1,279 files changed

+771949
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,279 files changed

+771949
-0
lines changed

src/machinelearningservices/CHANGELOG.rst

Lines changed: 421 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
2.38.0
7+
++++++
8+
* Fix a bug compute update which caused Enable SSO property to reset.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Azure CLI ml extension
2+
==============================================================================
3+
4+
.. contents::
5+
:depth: 1
6+
:local:
7+
8+
Overview
9+
------------------------------------------------------------------------------
10+
This is the extension for ml
11+
12+
13+
Get started with Azure CLI ml extension
14+
------------------------------------------------------------------------------
15+
16+
Install this extension using the below CLI command:
17+
18+
.. code-block:: bash
19+
20+
az extension add --name ml
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
11+
from azure.cli.core import AzCommandsLoader
12+
13+
from azext_mlv2.generated._help import helps # pylint: disable=unused-import
14+
15+
try:
16+
from azext_mlv2.manual._help import helps # pylint: disable=reimported
17+
except ImportError as e:
18+
print(e)
19+
20+
21+
class AzureMachineLearningWorkspacesCommandsLoader(AzCommandsLoader):
22+
def __init__(self, cli_ctx=None):
23+
from azext_mlv2.generated._client_factory import cf_ml_cl
24+
25+
from azure.cli.core.commands import CliCommandType
26+
27+
ml_custom = CliCommandType(operations_tmpl="azext_mlv2.custom#{}", client_factory=cf_ml_cl)
28+
parent = super(AzureMachineLearningWorkspacesCommandsLoader, self)
29+
parent.__init__(cli_ctx=cli_ctx, custom_command_type=ml_custom)
30+
31+
def load_command_table(self, args):
32+
from azext_mlv2.generated.commands import load_command_table
33+
34+
load_command_table(self, args)
35+
try:
36+
from azext_mlv2.manual.commands import load_command_table as load_command_table_manual
37+
38+
load_command_table_manual(self, args)
39+
except ImportError:
40+
pass
41+
return self.command_table
42+
43+
def load_arguments(self, command):
44+
from azext_mlv2.generated._params import load_arguments
45+
46+
load_arguments(self, command)
47+
try:
48+
from azext_mlv2.manual._params import load_arguments as load_arguments_manual
49+
50+
load_arguments_manual(self, command)
51+
except ImportError:
52+
pass
53+
54+
55+
COMMAND_LOADER_CLS = AzureMachineLearningWorkspacesCommandsLoader
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
# pylint: disable=wildcard-import
11+
# pylint: disable=unused-wildcard-import
12+
13+
from .generated.action import * # noqa: F403
14+
15+
try:
16+
from .manual.action import * # noqa: F403
17+
except ImportError:
18+
pass
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"azext.minCliCoreVersion": "2.15.0"
3+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
# pylint: disable=wildcard-import
11+
# pylint: disable=unused-wildcard-import
12+
13+
from .generated.custom import * # noqa: F403
14+
15+
try:
16+
from .manual.custom import * # noqa: F403
17+
except ImportError:
18+
pass
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
11+
12+
def cf_ml_cl(cli_ctx, *_):
13+
from azext_mlv2.manual.custom.utils import _get_cloud_information_from_cli
14+
15+
# the client used here doesn't matter since it isn't used by any command
16+
from azure.ai.ml._restclient.v2022_02_01_preview import AzureMachineLearningWorkspaces
17+
from azure.cli.core.commands.client_factory import get_mgmt_service_client
18+
19+
kwargs = _get_cloud_information_from_cli(cli_ctx=cli_ctx)
20+
return get_mgmt_service_client(cli_ctx, AzureMachineLearningWorkspaces, **kwargs)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
# pylint: disable=too-many-lines
11+
12+
from knack.help_files import helps

0 commit comments

Comments
 (0)