aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane
diff options
context:
space:
mode:
Diffstat (limited to '.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane')
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/__init__.py18
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_azure_machine_learning_workspaces.py101
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_configuration.py76
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_patch.py31
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_vendor.py27
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_version.py9
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/__init__.py15
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_azure_machine_learning_workspaces.py94
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_configuration.py72
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_patch.py31
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/operations/__init__.py13
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/operations/_workspaces_operations.py186
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/__init__.py90
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_azure_machine_learning_workspaces_enums.py79
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_models.py1204
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_models_py3.py1311
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/operations/__init__.py13
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/operations/_workspaces_operations.py237
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/py.typed1
19 files changed, 3608 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/__init__.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/__init__.py
new file mode 100644
index 00000000..da466144
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/__init__.py
@@ -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 ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
+from ._version import VERSION
+
+__version__ = VERSION
+__all__ = ['AzureMachineLearningWorkspaces']
+
+# `._patch.py` is used for handwritten extensions to the generated code
+# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
+from ._patch import patch_sdk
+patch_sdk()
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_azure_machine_learning_workspaces.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_azure_machine_learning_workspaces.py
new file mode 100644
index 00000000..ac74b1b5
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_azure_machine_learning_workspaces.py
@@ -0,0 +1,101 @@
+# 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 copy import deepcopy
+from typing import TYPE_CHECKING
+
+from msrest import Deserializer, Serializer
+
+from azure.mgmt.core import ARMPipelineClient
+
+from . import models
+from ._configuration import AzureMachineLearningWorkspacesConfiguration
+from .operations import WorkspacesOperations
+
+if TYPE_CHECKING:
+ # pylint: disable=unused-import,ungrouped-imports
+ from typing import Any
+
+ from azure.core.credentials import TokenCredential
+ from azure.core.rest import HttpRequest, HttpResponse
+
+class AzureMachineLearningWorkspaces(object):
+ """AzureMachineLearningWorkspaces.
+
+ :ivar workspaces: WorkspacesOperations operations
+ :vartype workspaces: azure.mgmt.machinelearningservices.operations.WorkspacesOperations
+ :param credential: Credential needed for the client to connect to Azure.
+ :type credential: ~azure.core.credentials.TokenCredential
+ :param subscription_id: The ID of the target subscription.
+ :type subscription_id: str
+ :param base_url: Service URL. Default value is ''.
+ :type base_url: str
+ :keyword api_version: Api Version. The default value is "2023-06-01-preview". Note that
+ overriding this default value may result in unsupported behavior.
+ :paramtype api_version: str
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
+ Retry-After header is present.
+ """
+
+ def __init__(
+ self,
+ credential, # type: "TokenCredential"
+ subscription_id, # type: str
+ base_url="", # type: str
+ **kwargs # type: Any
+ ):
+ # type: (...) -> None
+ self._config = AzureMachineLearningWorkspacesConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
+ self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
+
+ client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
+ self._serialize = Serializer(client_models)
+ self._deserialize = Deserializer(client_models)
+ self._serialize.client_side_validation = False
+ self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
+
+
+ def _send_request(
+ self,
+ request, # type: HttpRequest
+ **kwargs # type: Any
+ ):
+ # type: (...) -> HttpResponse
+ """Runs the network request through the client's chained policies.
+
+ >>> from azure.core.rest import HttpRequest
+ >>> request = HttpRequest("GET", "https://www.example.org/")
+ <HttpRequest [GET], url: 'https://www.example.org/'>
+ >>> response = client._send_request(request)
+ <HttpResponse: 200 OK>
+
+ For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart
+
+ :param request: The network request you want to make. Required.
+ :type request: ~azure.core.rest.HttpRequest
+ :keyword bool stream: Whether the response payload will be streamed. Defaults to False.
+ :return: The response of your network call. Does not do error handling on your response.
+ :rtype: ~azure.core.rest.HttpResponse
+ """
+
+ request_copy = deepcopy(request)
+ request_copy.url = self._client.format_url(request_copy.url)
+ return self._client.send_request(request_copy, **kwargs)
+
+ def close(self):
+ # type: () -> None
+ self._client.close()
+
+ def __enter__(self):
+ # type: () -> AzureMachineLearningWorkspaces
+ self._client.__enter__()
+ return self
+
+ def __exit__(self, *exc_details):
+ # type: (Any) -> None
+ self._client.__exit__(*exc_details)
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_configuration.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_configuration.py
new file mode 100644
index 00000000..d6f47209
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_configuration.py
@@ -0,0 +1,76 @@
+# 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 typing import TYPE_CHECKING
+
+from azure.core.configuration import Configuration
+from azure.core.pipeline import policies
+from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
+
+from ._version import VERSION
+
+if TYPE_CHECKING:
+ # pylint: disable=unused-import,ungrouped-imports
+ from typing import Any
+
+ from azure.core.credentials import TokenCredential
+
+
+class AzureMachineLearningWorkspacesConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
+ """Configuration for AzureMachineLearningWorkspaces.
+
+ Note that all parameters used to create this instance are saved as instance
+ attributes.
+
+ :param credential: Credential needed for the client to connect to Azure.
+ :type credential: ~azure.core.credentials.TokenCredential
+ :param subscription_id: The ID of the target subscription.
+ :type subscription_id: str
+ :keyword api_version: Api Version. The default value is "2023-06-01-preview". Note that
+ overriding this default value may result in unsupported behavior.
+ :paramtype api_version: str
+ """
+
+ def __init__(
+ self,
+ credential, # type: "TokenCredential"
+ subscription_id, # type: str
+ **kwargs # type: Any
+ ):
+ # type: (...) -> None
+ super(AzureMachineLearningWorkspacesConfiguration, self).__init__(**kwargs)
+ api_version = kwargs.pop('api_version', "2023-06-01-preview") # type: str
+
+ if credential is None:
+ raise ValueError("Parameter 'credential' must not be None.")
+ if subscription_id is None:
+ raise ValueError("Parameter 'subscription_id' must not be None.")
+
+ self.credential = credential
+ self.subscription_id = subscription_id
+ self.api_version = api_version
+ self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
+ kwargs.setdefault('sdk_moniker', 'mgmt-machinelearningservices/{}'.format(VERSION))
+ self._configure(**kwargs)
+
+ def _configure(
+ self,
+ **kwargs # type: Any
+ ):
+ # type: (...) -> None
+ self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
+ self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
+ self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
+ self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
+ self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
+ self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
+ self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
+ self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
+ self.authentication_policy = kwargs.get('authentication_policy')
+ if self.credential and not self.authentication_policy:
+ self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_patch.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_patch.py
new file mode 100644
index 00000000..74e48ecd
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_patch.py
@@ -0,0 +1,31 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+#
+# Copyright (c) Microsoft Corporation. All rights reserved.
+#
+# The MIT License (MIT)
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the ""Software""), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+# IN THE SOFTWARE.
+#
+# --------------------------------------------------------------------------
+
+# This file is used for handwritten extensions to the generated code. Example:
+# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
+def patch_sdk():
+ pass \ No newline at end of file
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_vendor.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_vendor.py
new file mode 100644
index 00000000..138f663c
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_vendor.py
@@ -0,0 +1,27 @@
+# --------------------------------------------------------------------------
+# 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 azure.core.pipeline.transport import HttpRequest
+
+def _convert_request(request, files=None):
+ data = request.content if not files else None
+ request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data)
+ if files:
+ request.set_formdata_body(files)
+ return request
+
+def _format_url_section(template, **kwargs):
+ components = template.split("/")
+ while components:
+ try:
+ return template.format(**kwargs)
+ except KeyError as key:
+ formatted_components = template.split("/")
+ components = [
+ c for c in formatted_components if "{}".format(key.args[0]) not in c
+ ]
+ template = "/".join(components)
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_version.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_version.py
new file mode 100644
index 00000000..eae7c95b
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/_version.py
@@ -0,0 +1,9 @@
+# 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.
+# --------------------------------------------------------------------------
+
+VERSION = "0.1.0"
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/__init__.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/__init__.py
new file mode 100644
index 00000000..f67ccda9
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/__init__.py
@@ -0,0 +1,15 @@
+# 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 ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
+__all__ = ['AzureMachineLearningWorkspaces']
+
+# `._patch.py` is used for handwritten extensions to the generated code
+# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
+from ._patch import patch_sdk
+patch_sdk()
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_azure_machine_learning_workspaces.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_azure_machine_learning_workspaces.py
new file mode 100644
index 00000000..670634d2
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_azure_machine_learning_workspaces.py
@@ -0,0 +1,94 @@
+# 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 copy import deepcopy
+from typing import Any, Awaitable, TYPE_CHECKING
+
+from msrest import Deserializer, Serializer
+
+from azure.core.rest import AsyncHttpResponse, HttpRequest
+from azure.mgmt.core import AsyncARMPipelineClient
+
+from .. import models
+from ._configuration import AzureMachineLearningWorkspacesConfiguration
+from .operations import WorkspacesOperations
+
+if TYPE_CHECKING:
+ # pylint: disable=unused-import,ungrouped-imports
+ from azure.core.credentials_async import AsyncTokenCredential
+
+class AzureMachineLearningWorkspaces:
+ """AzureMachineLearningWorkspaces.
+
+ :ivar workspaces: WorkspacesOperations operations
+ :vartype workspaces: azure.mgmt.machinelearningservices.aio.operations.WorkspacesOperations
+ :param credential: Credential needed for the client to connect to Azure.
+ :type credential: ~azure.core.credentials_async.AsyncTokenCredential
+ :param subscription_id: The ID of the target subscription.
+ :type subscription_id: str
+ :param base_url: Service URL. Default value is ''.
+ :type base_url: str
+ :keyword api_version: Api Version. The default value is "2023-06-01-preview". Note that
+ overriding this default value may result in unsupported behavior.
+ :paramtype api_version: str
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
+ Retry-After header is present.
+ """
+
+ def __init__(
+ self,
+ credential: "AsyncTokenCredential",
+ subscription_id: str,
+ base_url: str = "",
+ **kwargs: Any
+ ) -> None:
+ self._config = AzureMachineLearningWorkspacesConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
+ self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
+
+ client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
+ self._serialize = Serializer(client_models)
+ self._deserialize = Deserializer(client_models)
+ self._serialize.client_side_validation = False
+ self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
+
+
+ def _send_request(
+ self,
+ request: HttpRequest,
+ **kwargs: Any
+ ) -> Awaitable[AsyncHttpResponse]:
+ """Runs the network request through the client's chained policies.
+
+ >>> from azure.core.rest import HttpRequest
+ >>> request = HttpRequest("GET", "https://www.example.org/")
+ <HttpRequest [GET], url: 'https://www.example.org/'>
+ >>> response = await client._send_request(request)
+ <AsyncHttpResponse: 200 OK>
+
+ For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart
+
+ :param request: The network request you want to make. Required.
+ :type request: ~azure.core.rest.HttpRequest
+ :keyword bool stream: Whether the response payload will be streamed. Defaults to False.
+ :return: The response of your network call. Does not do error handling on your response.
+ :rtype: ~azure.core.rest.AsyncHttpResponse
+ """
+
+ request_copy = deepcopy(request)
+ request_copy.url = self._client.format_url(request_copy.url)
+ return self._client.send_request(request_copy, **kwargs)
+
+ async def close(self) -> None:
+ await self._client.close()
+
+ async def __aenter__(self) -> "AzureMachineLearningWorkspaces":
+ await self._client.__aenter__()
+ return self
+
+ async def __aexit__(self, *exc_details) -> None:
+ await self._client.__aexit__(*exc_details)
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_configuration.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_configuration.py
new file mode 100644
index 00000000..7c536102
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_configuration.py
@@ -0,0 +1,72 @@
+# 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 typing import Any, TYPE_CHECKING
+
+from azure.core.configuration import Configuration
+from azure.core.pipeline import policies
+from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy
+
+from .._version import VERSION
+
+if TYPE_CHECKING:
+ # pylint: disable=unused-import,ungrouped-imports
+ from azure.core.credentials_async import AsyncTokenCredential
+
+
+class AzureMachineLearningWorkspacesConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
+ """Configuration for AzureMachineLearningWorkspaces.
+
+ Note that all parameters used to create this instance are saved as instance
+ attributes.
+
+ :param credential: Credential needed for the client to connect to Azure.
+ :type credential: ~azure.core.credentials_async.AsyncTokenCredential
+ :param subscription_id: The ID of the target subscription.
+ :type subscription_id: str
+ :keyword api_version: Api Version. The default value is "2023-06-01-preview". Note that
+ overriding this default value may result in unsupported behavior.
+ :paramtype api_version: str
+ """
+
+ def __init__(
+ self,
+ credential: "AsyncTokenCredential",
+ subscription_id: str,
+ **kwargs: Any
+ ) -> None:
+ super(AzureMachineLearningWorkspacesConfiguration, self).__init__(**kwargs)
+ api_version = kwargs.pop('api_version', "2023-06-01-preview") # type: str
+
+ if credential is None:
+ raise ValueError("Parameter 'credential' must not be None.")
+ if subscription_id is None:
+ raise ValueError("Parameter 'subscription_id' must not be None.")
+
+ self.credential = credential
+ self.subscription_id = subscription_id
+ self.api_version = api_version
+ self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
+ kwargs.setdefault('sdk_moniker', 'mgmt-machinelearningservices/{}'.format(VERSION))
+ self._configure(**kwargs)
+
+ def _configure(
+ self,
+ **kwargs: Any
+ ) -> None:
+ self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
+ self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
+ self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
+ self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
+ self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
+ self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs)
+ self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
+ self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs)
+ self.authentication_policy = kwargs.get('authentication_policy')
+ if self.credential and not self.authentication_policy:
+ self.authentication_policy = AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_patch.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_patch.py
new file mode 100644
index 00000000..74e48ecd
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/_patch.py
@@ -0,0 +1,31 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+#
+# Copyright (c) Microsoft Corporation. All rights reserved.
+#
+# The MIT License (MIT)
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the ""Software""), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+# IN THE SOFTWARE.
+#
+# --------------------------------------------------------------------------
+
+# This file is used for handwritten extensions to the generated code. Example:
+# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
+def patch_sdk():
+ pass \ No newline at end of file
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/operations/__init__.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/operations/__init__.py
new file mode 100644
index 00000000..21534b1a
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/operations/__init__.py
@@ -0,0 +1,13 @@
+# 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 ._workspaces_operations import WorkspacesOperations
+
+__all__ = [
+ 'WorkspacesOperations',
+]
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/operations/_workspaces_operations.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/operations/_workspaces_operations.py
new file mode 100644
index 00000000..be23e739
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/aio/operations/_workspaces_operations.py
@@ -0,0 +1,186 @@
+# pylint: disable=too-many-lines
+# 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 typing import Any, Callable, Dict, Optional, TypeVar, Union
+
+from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
+from azure.core.pipeline import PipelineResponse
+from azure.core.pipeline.transport import AsyncHttpResponse
+from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod
+from azure.core.rest import HttpRequest
+from azure.core.tracing.decorator_async import distributed_trace_async
+from azure.mgmt.core.exceptions import ARMErrorFormat
+from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling
+
+from ... import models as _models
+from ..._vendor import _convert_request
+from ...operations._workspaces_operations import build_hub_join_request_initial
+T = TypeVar('T')
+ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
+
+class WorkspacesOperations:
+ """WorkspacesOperations async operations.
+
+ You should not instantiate this class directly. Instead, you should create a Client instance that
+ instantiates it for you and attaches it as an attribute.
+
+ :ivar models: Alias to model classes used in this operation group.
+ :type models: ~azure.mgmt.machinelearningservices.models
+ :param client: Client for service requests.
+ :param config: Configuration of service client.
+ :param serializer: An object model serializer.
+ :param deserializer: An object model deserializer.
+ """
+
+ models = _models
+
+ def __init__(self, client, config, serializer, deserializer) -> None:
+ self._client = client
+ self._serialize = serializer
+ self._deserialize = deserializer
+ self._config = config
+
+ async def _hub_join_initial(
+ self,
+ resource_group_name: str,
+ workspace_name: str,
+ project_workspace_name: str,
+ body: "_models.Workspace",
+ **kwargs: Any
+ ) -> Optional["_models.Workspace"]:
+ cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Workspace"]]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+
+ api_version = kwargs.pop('api_version', "2023-06-01-preview") # type: str
+ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]
+
+ _json = self._serialize.body(body, 'Workspace')
+
+ request = build_hub_join_request_initial(
+ subscription_id=self._config.subscription_id,
+ resource_group_name=resource_group_name,
+ workspace_name=workspace_name,
+ project_workspace_name=project_workspace_name,
+ api_version=api_version,
+ content_type=content_type,
+ json=_json,
+ template_url=self._hub_join_initial.metadata['url'],
+ )
+ request = _convert_request(request)
+ request.url = self._client.format_url(request.url)
+
+ pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access
+ request,
+ stream=False,
+ **kwargs
+ )
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 202]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
+
+ deserialized = None
+ response_headers = {}
+ if response.status_code == 200:
+ deserialized = self._deserialize('Workspace', pipeline_response)
+
+ if response.status_code == 202:
+ response_headers['Location']=self._deserialize('str', response.headers.get('Location'))
+ response_headers['Retry-After']=self._deserialize('int', response.headers.get('Retry-After'))
+
+
+ if cls:
+ return cls(pipeline_response, deserialized, response_headers)
+
+ return deserialized
+
+ _hub_join_initial.metadata = {'url': "/rp/workspaces/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/join/{projectWorkspaceName}"} # type: ignore
+
+
+ @distributed_trace_async
+ async def begin_hub_join(
+ self,
+ resource_group_name: str,
+ workspace_name: str,
+ project_workspace_name: str,
+ body: "_models.Workspace",
+ **kwargs: Any
+ ) -> AsyncLROPoller["_models.Workspace"]:
+ """Create project workspace under workspaceHub's default resource group.
+
+ Create project workspace under workspaceHub's default resource group.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ :type resource_group_name: str
+ :param workspace_name: Azure Machine Learning Workspace Name.
+ :type workspace_name: str
+ :param project_workspace_name: Name of the project workspace.
+ :type project_workspace_name: str
+ :param body:
+ :type body: ~azure.mgmt.machinelearningservices.models.Workspace
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :keyword str continuation_token: A continuation token to restart a poller from a saved state.
+ :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
+ this operation to not poll, or pass in your own initialized polling object for a personal
+ polling strategy.
+ :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
+ Retry-After header is present.
+ :return: An instance of AsyncLROPoller that returns either Workspace or the result of
+ cls(response)
+ :rtype:
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.machinelearningservices.models.Workspace]
+ :raises: ~azure.core.exceptions.HttpResponseError
+ """
+ api_version = kwargs.pop('api_version', "2023-06-01-preview") # type: str
+ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]
+ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
+ cls = kwargs.pop('cls', None) # type: ClsType["_models.Workspace"]
+ lro_delay = kwargs.pop(
+ 'polling_interval',
+ self._config.polling_interval
+ )
+ cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
+ if cont_token is None:
+ raw_result = await self._hub_join_initial(
+ resource_group_name=resource_group_name,
+ workspace_name=workspace_name,
+ project_workspace_name=project_workspace_name,
+ body=body,
+ api_version=api_version,
+ content_type=content_type,
+ cls=lambda x,y,z: x,
+ **kwargs
+ )
+ kwargs.pop('error_map', None)
+
+ def get_long_running_output(pipeline_response):
+ response = pipeline_response.http_response
+ deserialized = self._deserialize('Workspace', pipeline_response)
+ if cls:
+ return cls(pipeline_response, deserialized, {})
+ return deserialized
+
+
+ if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **kwargs)
+ elif polling is False: polling_method = AsyncNoPolling()
+ else: polling_method = polling
+ if cont_token:
+ return AsyncLROPoller.from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output
+ )
+ return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
+
+ begin_hub_join.metadata = {'url': "/rp/workspaces/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/join/{projectWorkspaceName}"} # type: ignore
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/__init__.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/__init__.py
new file mode 100644
index 00000000..3461e534
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/__init__.py
@@ -0,0 +1,90 @@
+# 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.
+# --------------------------------------------------------------------------
+
+try:
+ from ._models_py3 import ComputeRuntimeDto
+ from ._models_py3 import CosmosDbSettings
+ from ._models_py3 import EncryptionProperty
+ from ._models_py3 import FeatureStoreSettings
+ from ._models_py3 import IdentityForCmk
+ from ._models_py3 import KeyVaultProperties
+ from ._models_py3 import ManagedServiceIdentity
+ from ._models_py3 import NotebookPreparationError
+ from ._models_py3 import NotebookResourceInfo
+ from ._models_py3 import PrivateEndpointConnection
+ from ._models_py3 import PrivateLinkServiceConnectionState
+ from ._models_py3 import Resource
+ from ._models_py3 import ServiceManagedResourcesSettings
+ from ._models_py3 import SharedPrivateLinkResource
+ from ._models_py3 import Sku
+ from ._models_py3 import SystemData
+ from ._models_py3 import UserAssignedIdentity
+ from ._models_py3 import Workspace
+ from ._models_py3 import WorkspaceHubConfig
+ from ._models_py3 import WorkspacePrivateEndpointResource
+except (SyntaxError, ImportError):
+ from ._models import ComputeRuntimeDto # type: ignore
+ from ._models import CosmosDbSettings # type: ignore
+ from ._models import EncryptionProperty # type: ignore
+ from ._models import FeatureStoreSettings # type: ignore
+ from ._models import IdentityForCmk # type: ignore
+ from ._models import KeyVaultProperties # type: ignore
+ from ._models import ManagedServiceIdentity # type: ignore
+ from ._models import NotebookPreparationError # type: ignore
+ from ._models import NotebookResourceInfo # type: ignore
+ from ._models import PrivateEndpointConnection # type: ignore
+ from ._models import PrivateLinkServiceConnectionState # type: ignore
+ from ._models import Resource # type: ignore
+ from ._models import ServiceManagedResourcesSettings # type: ignore
+ from ._models import SharedPrivateLinkResource # type: ignore
+ from ._models import Sku # type: ignore
+ from ._models import SystemData # type: ignore
+ from ._models import UserAssignedIdentity # type: ignore
+ from ._models import Workspace # type: ignore
+ from ._models import WorkspaceHubConfig # type: ignore
+ from ._models import WorkspacePrivateEndpointResource # type: ignore
+
+from ._azure_machine_learning_workspaces_enums import (
+ CreatedByType,
+ EncryptionStatus,
+ EndpointServiceConnectionStatus,
+ ManagedServiceIdentityType,
+ ProvisioningState,
+ PublicNetworkAccessType,
+ SkuTier,
+)
+
+__all__ = [
+ 'ComputeRuntimeDto',
+ 'CosmosDbSettings',
+ 'EncryptionProperty',
+ 'FeatureStoreSettings',
+ 'IdentityForCmk',
+ 'KeyVaultProperties',
+ 'ManagedServiceIdentity',
+ 'NotebookPreparationError',
+ 'NotebookResourceInfo',
+ 'PrivateEndpointConnection',
+ 'PrivateLinkServiceConnectionState',
+ 'Resource',
+ 'ServiceManagedResourcesSettings',
+ 'SharedPrivateLinkResource',
+ 'Sku',
+ 'SystemData',
+ 'UserAssignedIdentity',
+ 'Workspace',
+ 'WorkspaceHubConfig',
+ 'WorkspacePrivateEndpointResource',
+ 'CreatedByType',
+ 'EncryptionStatus',
+ 'EndpointServiceConnectionStatus',
+ 'ManagedServiceIdentityType',
+ 'ProvisioningState',
+ 'PublicNetworkAccessType',
+ 'SkuTier',
+]
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_azure_machine_learning_workspaces_enums.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_azure_machine_learning_workspaces_enums.py
new file mode 100644
index 00000000..0988ab6a
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_azure_machine_learning_workspaces_enums.py
@@ -0,0 +1,79 @@
+# 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 enum import Enum
+from six import with_metaclass
+from azure.core import CaseInsensitiveEnumMeta
+
+
+class CreatedByType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
+ """The type of identity that created the resource.
+ """
+
+ USER = "User"
+ APPLICATION = "Application"
+ MANAGED_IDENTITY = "ManagedIdentity"
+ KEY = "Key"
+
+class EncryptionStatus(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
+
+ ENABLED = "Enabled"
+ DISABLED = "Disabled"
+
+class EndpointServiceConnectionStatus(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
+ """Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection)
+ """
+
+ APPROVED = "Approved"
+ PENDING = "Pending"
+ REJECTED = "Rejected"
+ DISCONNECTED = "Disconnected"
+ TIMEOUT = "Timeout"
+
+class ManagedServiceIdentityType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
+ """Type of managed service identity (where both SystemAssigned and UserAssigned types are
+ allowed).
+ """
+
+ NONE = "None"
+ SYSTEM_ASSIGNED = "SystemAssigned"
+ USER_ASSIGNED = "UserAssigned"
+ SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"
+
+class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
+
+ UNKNOWN = "Unknown"
+ UPDATING = "Updating"
+ CREATING = "Creating"
+ DELETING = "Deleting"
+ SUCCEEDED = "Succeeded"
+ FAILED = "Failed"
+ CANCELED = "Canceled"
+
+class PublicNetworkAccessType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
+
+ ENABLED = "Enabled"
+ DISABLED = "Disabled"
+
+class SkuTier(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
+ """This field is required to be implemented by the Resource Provider if the service has more than
+ one tier, but is not required on a PUT.
+ """
+
+ FREE = "Free"
+ BASIC = "Basic"
+ STANDARD = "Standard"
+ PREMIUM = "Premium"
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_models.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_models.py
new file mode 100644
index 00000000..ff3295f0
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_models.py
@@ -0,0 +1,1204 @@
+# 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.
+# --------------------------------------------------------------------------
+
+import msrest.serialization
+
+
+class ComputeRuntimeDto(msrest.serialization.Model):
+ """ComputeRuntimeDto.
+
+ :ivar spark_runtime_version:
+ :vartype spark_runtime_version: str
+ """
+
+ _attribute_map = {
+ 'spark_runtime_version': {'key': 'sparkRuntimeVersion', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword spark_runtime_version:
+ :paramtype spark_runtime_version: str
+ """
+ super(ComputeRuntimeDto, self).__init__(**kwargs)
+ self.spark_runtime_version = kwargs.get('spark_runtime_version', None)
+
+
+class CosmosDbSettings(msrest.serialization.Model):
+ """CosmosDbSettings.
+
+ :ivar collections_throughput:
+ :vartype collections_throughput: int
+ """
+
+ _attribute_map = {
+ 'collections_throughput': {'key': 'collectionsThroughput', 'type': 'int'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword collections_throughput:
+ :paramtype collections_throughput: int
+ """
+ super(CosmosDbSettings, self).__init__(**kwargs)
+ self.collections_throughput = kwargs.get('collections_throughput', None)
+
+
+class EncryptionProperty(msrest.serialization.Model):
+ """EncryptionProperty.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :ivar cosmos_db_resource_id: The byok cosmosdb account that customer brings to store customer's
+ data
+ with encryption.
+ :vartype cosmos_db_resource_id: str
+ :ivar identity: Identity to be used with the keyVault.
+ :vartype identity: ~azure.mgmt.machinelearningservices.models.IdentityForCmk
+ :ivar key_vault_properties: Required. KeyVault details to do the encryption.
+ :vartype key_vault_properties: ~azure.mgmt.machinelearningservices.models.KeyVaultProperties
+ :ivar search_account_resource_id: The byok search account that customer brings to store
+ customer's data
+ with encryption.
+ :vartype search_account_resource_id: str
+ :ivar status: Required. Possible values include: "Enabled", "Disabled".
+ :vartype status: str or ~azure.mgmt.machinelearningservices.models.EncryptionStatus
+ :ivar storage_account_resource_id: The byok storage account that customer brings to store
+ customer's data
+ with encryption.
+ :vartype storage_account_resource_id: str
+ """
+
+ _validation = {
+ 'key_vault_properties': {'required': True},
+ 'status': {'required': True},
+ }
+
+ _attribute_map = {
+ 'cosmos_db_resource_id': {'key': 'cosmosDbResourceId', 'type': 'str'},
+ 'identity': {'key': 'identity', 'type': 'IdentityForCmk'},
+ 'key_vault_properties': {'key': 'keyVaultProperties', 'type': 'KeyVaultProperties'},
+ 'search_account_resource_id': {'key': 'searchAccountResourceId', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'str'},
+ 'storage_account_resource_id': {'key': 'storageAccountResourceId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword cosmos_db_resource_id: The byok cosmosdb account that customer brings to store
+ customer's data
+ with encryption.
+ :paramtype cosmos_db_resource_id: str
+ :keyword identity: Identity to be used with the keyVault.
+ :paramtype identity: ~azure.mgmt.machinelearningservices.models.IdentityForCmk
+ :keyword key_vault_properties: Required. KeyVault details to do the encryption.
+ :paramtype key_vault_properties: ~azure.mgmt.machinelearningservices.models.KeyVaultProperties
+ :keyword search_account_resource_id: The byok search account that customer brings to store
+ customer's data
+ with encryption.
+ :paramtype search_account_resource_id: str
+ :keyword status: Required. Possible values include: "Enabled", "Disabled".
+ :paramtype status: str or ~azure.mgmt.machinelearningservices.models.EncryptionStatus
+ :keyword storage_account_resource_id: The byok storage account that customer brings to store
+ customer's data
+ with encryption.
+ :paramtype storage_account_resource_id: str
+ """
+ super(EncryptionProperty, self).__init__(**kwargs)
+ self.cosmos_db_resource_id = kwargs.get('cosmos_db_resource_id', None)
+ self.identity = kwargs.get('identity', None)
+ self.key_vault_properties = kwargs['key_vault_properties']
+ self.search_account_resource_id = kwargs.get('search_account_resource_id', None)
+ self.status = kwargs['status']
+ self.storage_account_resource_id = kwargs.get('storage_account_resource_id', None)
+
+
+class FeatureStoreSettings(msrest.serialization.Model):
+ """FeatureStoreSettings.
+
+ :ivar compute_runtime:
+ :vartype compute_runtime: ~azure.mgmt.machinelearningservices.models.ComputeRuntimeDto
+ :ivar offline_store_connection_name:
+ :vartype offline_store_connection_name: str
+ :ivar online_store_connection_name:
+ :vartype online_store_connection_name: str
+ """
+
+ _attribute_map = {
+ 'compute_runtime': {'key': 'computeRuntime', 'type': 'ComputeRuntimeDto'},
+ 'offline_store_connection_name': {'key': 'offlineStoreConnectionName', 'type': 'str'},
+ 'online_store_connection_name': {'key': 'onlineStoreConnectionName', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword compute_runtime:
+ :paramtype compute_runtime: ~azure.mgmt.machinelearningservices.models.ComputeRuntimeDto
+ :keyword offline_store_connection_name:
+ :paramtype offline_store_connection_name: str
+ :keyword online_store_connection_name:
+ :paramtype online_store_connection_name: str
+ """
+ super(FeatureStoreSettings, self).__init__(**kwargs)
+ self.compute_runtime = kwargs.get('compute_runtime', None)
+ self.offline_store_connection_name = kwargs.get('offline_store_connection_name', None)
+ self.online_store_connection_name = kwargs.get('online_store_connection_name', None)
+
+
+class IdentityForCmk(msrest.serialization.Model):
+ """IdentityForCmk.
+
+ :ivar user_assigned_identity: UserAssignedIdentity to be used to fetch the encryption key from
+ keyVault.
+ :vartype user_assigned_identity: str
+ """
+
+ _attribute_map = {
+ 'user_assigned_identity': {'key': 'userAssignedIdentity', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword user_assigned_identity: UserAssignedIdentity to be used to fetch the encryption key
+ from keyVault.
+ :paramtype user_assigned_identity: str
+ """
+ super(IdentityForCmk, self).__init__(**kwargs)
+ self.user_assigned_identity = kwargs.get('user_assigned_identity', None)
+
+
+class KeyVaultProperties(msrest.serialization.Model):
+ """KeyVaultProperties.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :ivar identity_client_id: Currently, we support only SystemAssigned MSI.
+ We need this when we support UserAssignedIdentities.
+ :vartype identity_client_id: str
+ :ivar key_identifier: Required. KeyVault key identifier to encrypt the data.
+ :vartype key_identifier: str
+ :ivar key_vault_arm_id: Required. KeyVault Arm Id that contains the data encryption key.
+ :vartype key_vault_arm_id: str
+ """
+
+ _validation = {
+ 'key_identifier': {'required': True, 'min_length': 1, 'pattern': r'[a-zA-Z0-9_]'},
+ 'key_vault_arm_id': {'required': True, 'min_length': 1, 'pattern': r'[a-zA-Z0-9_]'},
+ }
+
+ _attribute_map = {
+ 'identity_client_id': {'key': 'identityClientId', 'type': 'str'},
+ 'key_identifier': {'key': 'keyIdentifier', 'type': 'str'},
+ 'key_vault_arm_id': {'key': 'keyVaultArmId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword identity_client_id: Currently, we support only SystemAssigned MSI.
+ We need this when we support UserAssignedIdentities.
+ :paramtype identity_client_id: str
+ :keyword key_identifier: Required. KeyVault key identifier to encrypt the data.
+ :paramtype key_identifier: str
+ :keyword key_vault_arm_id: Required. KeyVault Arm Id that contains the data encryption key.
+ :paramtype key_vault_arm_id: str
+ """
+ super(KeyVaultProperties, self).__init__(**kwargs)
+ self.identity_client_id = kwargs.get('identity_client_id', None)
+ self.key_identifier = kwargs['key_identifier']
+ self.key_vault_arm_id = kwargs['key_vault_arm_id']
+
+
+class ManagedServiceIdentity(msrest.serialization.Model):
+ """Managed service identity (system assigned and/or user assigned identities).
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :ivar principal_id: The service principal ID of the system assigned identity. This property
+ will only be provided for a system assigned identity.
+ :vartype principal_id: str
+ :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be
+ provided for a system assigned identity.
+ :vartype tenant_id: str
+ :ivar type: Required. Type of managed service identity (where both SystemAssigned and
+ UserAssigned types are allowed). Possible values include: "None", "SystemAssigned",
+ "UserAssigned", "SystemAssigned,UserAssigned".
+ :vartype type: str or ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentityType
+ :ivar user_assigned_identities: The set of user assigned identities associated with the
+ resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form:
+ '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
+ The dictionary values can be empty objects ({}) in requests.
+ :vartype user_assigned_identities: dict[str,
+ ~azure.mgmt.machinelearningservices.models.UserAssignedIdentity]
+ """
+
+ _validation = {
+ 'principal_id': {'readonly': True},
+ 'tenant_id': {'readonly': True},
+ 'type': {'required': True},
+ }
+
+ _attribute_map = {
+ 'principal_id': {'key': 'principalId', 'type': 'str'},
+ 'tenant_id': {'key': 'tenantId', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentity}'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword type: Required. Type of managed service identity (where both SystemAssigned and
+ UserAssigned types are allowed). Possible values include: "None", "SystemAssigned",
+ "UserAssigned", "SystemAssigned,UserAssigned".
+ :paramtype type: str or ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentityType
+ :keyword user_assigned_identities: The set of user assigned identities associated with the
+ resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form:
+ '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
+ The dictionary values can be empty objects ({}) in requests.
+ :paramtype user_assigned_identities: dict[str,
+ ~azure.mgmt.machinelearningservices.models.UserAssignedIdentity]
+ """
+ super(ManagedServiceIdentity, self).__init__(**kwargs)
+ self.principal_id = None
+ self.tenant_id = None
+ self.type = kwargs['type']
+ self.user_assigned_identities = kwargs.get('user_assigned_identities', None)
+
+
+class NotebookPreparationError(msrest.serialization.Model):
+ """NotebookPreparationError.
+
+ :ivar error_message:
+ :vartype error_message: str
+ :ivar status_code:
+ :vartype status_code: int
+ """
+
+ _attribute_map = {
+ 'error_message': {'key': 'errorMessage', 'type': 'str'},
+ 'status_code': {'key': 'statusCode', 'type': 'int'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword error_message:
+ :paramtype error_message: str
+ :keyword status_code:
+ :paramtype status_code: int
+ """
+ super(NotebookPreparationError, self).__init__(**kwargs)
+ self.error_message = kwargs.get('error_message', None)
+ self.status_code = kwargs.get('status_code', None)
+
+
+class NotebookResourceInfo(msrest.serialization.Model):
+ """NotebookResourceInfo.
+
+ :ivar fqdn:
+ :vartype fqdn: str
+ :ivar is_private_link_enabled:
+ :vartype is_private_link_enabled: bool
+ :ivar notebook_preparation_error: The error that occurs when preparing notebook.
+ :vartype notebook_preparation_error:
+ ~azure.mgmt.machinelearningservices.models.NotebookPreparationError
+ :ivar resource_id: the data plane resourceId that used to initialize notebook component.
+ :vartype resource_id: str
+ """
+
+ _attribute_map = {
+ 'fqdn': {'key': 'fqdn', 'type': 'str'},
+ 'is_private_link_enabled': {'key': 'isPrivateLinkEnabled', 'type': 'bool'},
+ 'notebook_preparation_error': {'key': 'notebookPreparationError', 'type': 'NotebookPreparationError'},
+ 'resource_id': {'key': 'resourceId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword fqdn:
+ :paramtype fqdn: str
+ :keyword is_private_link_enabled:
+ :paramtype is_private_link_enabled: bool
+ :keyword notebook_preparation_error: The error that occurs when preparing notebook.
+ :paramtype notebook_preparation_error:
+ ~azure.mgmt.machinelearningservices.models.NotebookPreparationError
+ :keyword resource_id: the data plane resourceId that used to initialize notebook component.
+ :paramtype resource_id: str
+ """
+ super(NotebookResourceInfo, self).__init__(**kwargs)
+ self.fqdn = kwargs.get('fqdn', None)
+ self.is_private_link_enabled = kwargs.get('is_private_link_enabled', None)
+ self.notebook_preparation_error = kwargs.get('notebook_preparation_error', None)
+ self.resource_id = kwargs.get('resource_id', None)
+
+
+class Resource(msrest.serialization.Model):
+ """Common fields that are returned in the response for all Azure Resource Manager resources.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype system_data: ~azure.mgmt.machinelearningservices.models.SystemData
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ 'system_data': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'system_data': {'key': 'systemData', 'type': 'SystemData'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ """
+ super(Resource, self).__init__(**kwargs)
+ self.id = None
+ self.name = None
+ self.type = None
+ self.system_data = None
+
+
+class PrivateEndpointConnection(Resource):
+ """PrivateEndpointConnection.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype system_data: ~azure.mgmt.machinelearningservices.models.SystemData
+ :ivar identity: Managed service identity (system assigned and/or user assigned identities).
+ :vartype identity: ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentity
+ :ivar location: Same as workspace location.
+ :vartype location: str
+ :ivar sku: Optional. This field is required to be implemented by the RP because AML is
+ supporting more than one tier.
+ :vartype sku: ~azure.mgmt.machinelearningservices.models.Sku
+ :ivar tags: A set of tags. Dictionary of :code:`<string>`.
+ :vartype tags: dict[str, str]
+ :ivar private_endpoint:
+ :vartype private_endpoint:
+ ~azure.mgmt.machinelearningservices.models.WorkspacePrivateEndpointResource
+ :ivar private_link_service_connection_state: The connection state.
+ :vartype private_link_service_connection_state:
+ ~azure.mgmt.machinelearningservices.models.PrivateLinkServiceConnectionState
+ :ivar provisioning_state: Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :vartype provisioning_state: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ 'system_data': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'system_data': {'key': 'systemData', 'type': 'SystemData'},
+ 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'},
+ 'location': {'key': 'location', 'type': 'str'},
+ 'sku': {'key': 'sku', 'type': 'Sku'},
+ 'tags': {'key': 'tags', 'type': '{str}'},
+ 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'WorkspacePrivateEndpointResource'},
+ 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'},
+ 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword identity: Managed service identity (system assigned and/or user assigned identities).
+ :paramtype identity: ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentity
+ :keyword location: Same as workspace location.
+ :paramtype location: str
+ :keyword sku: Optional. This field is required to be implemented by the RP because AML is
+ supporting more than one tier.
+ :paramtype sku: ~azure.mgmt.machinelearningservices.models.Sku
+ :keyword tags: A set of tags. Dictionary of :code:`<string>`.
+ :paramtype tags: dict[str, str]
+ :keyword private_endpoint:
+ :paramtype private_endpoint:
+ ~azure.mgmt.machinelearningservices.models.WorkspacePrivateEndpointResource
+ :keyword private_link_service_connection_state: The connection state.
+ :paramtype private_link_service_connection_state:
+ ~azure.mgmt.machinelearningservices.models.PrivateLinkServiceConnectionState
+ :keyword provisioning_state: Connection status of the service consumer with the service
+ provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :paramtype provisioning_state: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+ super(PrivateEndpointConnection, self).__init__(**kwargs)
+ self.identity = kwargs.get('identity', None)
+ self.location = kwargs.get('location', None)
+ self.sku = kwargs.get('sku', None)
+ self.tags = kwargs.get('tags', None)
+ self.private_endpoint = kwargs.get('private_endpoint', None)
+ self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None)
+ self.provisioning_state = kwargs.get('provisioning_state', None)
+
+
+class PrivateLinkServiceConnectionState(msrest.serialization.Model):
+ """PrivateLinkServiceConnectionState.
+
+ :ivar actions_required: Some RP chose "None". Other RPs use this for region expansion.
+ :vartype actions_required: str
+ :ivar description: User-defined message that, per NRP doc, may be used for approval-related
+ message.
+ :vartype description: str
+ :ivar status: Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :vartype status: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+
+ _attribute_map = {
+ 'actions_required': {'key': 'actionsRequired', 'type': 'str'},
+ 'description': {'key': 'description', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword actions_required: Some RP chose "None". Other RPs use this for region expansion.
+ :paramtype actions_required: str
+ :keyword description: User-defined message that, per NRP doc, may be used for approval-related
+ message.
+ :paramtype description: str
+ :keyword status: Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :paramtype status: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+ super(PrivateLinkServiceConnectionState, self).__init__(**kwargs)
+ self.actions_required = kwargs.get('actions_required', None)
+ self.description = kwargs.get('description', None)
+ self.status = kwargs.get('status', None)
+
+
+class ServiceManagedResourcesSettings(msrest.serialization.Model):
+ """ServiceManagedResourcesSettings.
+
+ :ivar cosmos_db:
+ :vartype cosmos_db: ~azure.mgmt.machinelearningservices.models.CosmosDbSettings
+ """
+
+ _attribute_map = {
+ 'cosmos_db': {'key': 'cosmosDb', 'type': 'CosmosDbSettings'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword cosmos_db:
+ :paramtype cosmos_db: ~azure.mgmt.machinelearningservices.models.CosmosDbSettings
+ """
+ super(ServiceManagedResourcesSettings, self).__init__(**kwargs)
+ self.cosmos_db = kwargs.get('cosmos_db', None)
+
+
+class SharedPrivateLinkResource(msrest.serialization.Model):
+ """SharedPrivateLinkResource.
+
+ :ivar name: Unique name of the private link.
+ :vartype name: str
+ :ivar group_id: group id of the private link.
+ :vartype group_id: str
+ :ivar private_link_resource_id: the resource id that private link links to.
+ :vartype private_link_resource_id: str
+ :ivar request_message: Request message.
+ :vartype request_message: str
+ :ivar status: Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :vartype status: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+
+ _attribute_map = {
+ 'name': {'key': 'name', 'type': 'str'},
+ 'group_id': {'key': 'properties.groupId', 'type': 'str'},
+ 'private_link_resource_id': {'key': 'properties.privateLinkResourceId', 'type': 'str'},
+ 'request_message': {'key': 'properties.requestMessage', 'type': 'str'},
+ 'status': {'key': 'properties.status', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword name: Unique name of the private link.
+ :paramtype name: str
+ :keyword group_id: group id of the private link.
+ :paramtype group_id: str
+ :keyword private_link_resource_id: the resource id that private link links to.
+ :paramtype private_link_resource_id: str
+ :keyword request_message: Request message.
+ :paramtype request_message: str
+ :keyword status: Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :paramtype status: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+ super(SharedPrivateLinkResource, self).__init__(**kwargs)
+ self.name = kwargs.get('name', None)
+ self.group_id = kwargs.get('group_id', None)
+ self.private_link_resource_id = kwargs.get('private_link_resource_id', None)
+ self.request_message = kwargs.get('request_message', None)
+ self.status = kwargs.get('status', None)
+
+
+class Sku(msrest.serialization.Model):
+ """The resource model definition representing SKU.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :ivar name: Required. The name of the SKU. Ex - P3. It is typically a letter+number code.
+ :vartype name: str
+ :ivar tier: This field is required to be implemented by the Resource Provider if the service
+ has more than one tier, but is not required on a PUT. Possible values include: "Free", "Basic",
+ "Standard", "Premium".
+ :vartype tier: str or ~azure.mgmt.machinelearningservices.models.SkuTier
+ :ivar size: The SKU size. When the name field is the combination of tier and some other value,
+ this would be the standalone code.
+ :vartype size: str
+ :ivar family: If the service has different generations of hardware, for the same SKU, then that
+ can be captured here.
+ :vartype family: str
+ :ivar capacity: If the SKU supports scale out/in then the capacity integer should be included.
+ If scale out/in is not possible for the resource this may be omitted.
+ :vartype capacity: int
+ """
+
+ _validation = {
+ 'name': {'required': True},
+ }
+
+ _attribute_map = {
+ 'name': {'key': 'name', 'type': 'str'},
+ 'tier': {'key': 'tier', 'type': 'str'},
+ 'size': {'key': 'size', 'type': 'str'},
+ 'family': {'key': 'family', 'type': 'str'},
+ 'capacity': {'key': 'capacity', 'type': 'int'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword name: Required. The name of the SKU. Ex - P3. It is typically a letter+number code.
+ :paramtype name: str
+ :keyword tier: This field is required to be implemented by the Resource Provider if the service
+ has more than one tier, but is not required on a PUT. Possible values include: "Free", "Basic",
+ "Standard", "Premium".
+ :paramtype tier: str or ~azure.mgmt.machinelearningservices.models.SkuTier
+ :keyword size: The SKU size. When the name field is the combination of tier and some other
+ value, this would be the standalone code.
+ :paramtype size: str
+ :keyword family: If the service has different generations of hardware, for the same SKU, then
+ that can be captured here.
+ :paramtype family: str
+ :keyword capacity: If the SKU supports scale out/in then the capacity integer should be
+ included. If scale out/in is not possible for the resource this may be omitted.
+ :paramtype capacity: int
+ """
+ super(Sku, self).__init__(**kwargs)
+ self.name = kwargs['name']
+ self.tier = kwargs.get('tier', None)
+ self.size = kwargs.get('size', None)
+ self.family = kwargs.get('family', None)
+ self.capacity = kwargs.get('capacity', None)
+
+
+class SystemData(msrest.serialization.Model):
+ """Metadata pertaining to creation and last modification of the resource.
+
+ :ivar created_by: The identity that created the resource.
+ :vartype created_by: str
+ :ivar created_by_type: The type of identity that created the resource. Possible values include:
+ "User", "Application", "ManagedIdentity", "Key".
+ :vartype created_by_type: str or ~azure.mgmt.machinelearningservices.models.CreatedByType
+ :ivar created_at: The timestamp of resource creation (UTC).
+ :vartype created_at: ~datetime.datetime
+ :ivar last_modified_by: The identity that last modified the resource.
+ :vartype last_modified_by: str
+ :ivar last_modified_by_type: The type of identity that last modified the resource. Possible
+ values include: "User", "Application", "ManagedIdentity", "Key".
+ :vartype last_modified_by_type: str or ~azure.mgmt.machinelearningservices.models.CreatedByType
+ :ivar last_modified_at: The timestamp of resource last modification (UTC).
+ :vartype last_modified_at: ~datetime.datetime
+ """
+
+ _attribute_map = {
+ 'created_by': {'key': 'createdBy', 'type': 'str'},
+ 'created_by_type': {'key': 'createdByType', 'type': 'str'},
+ 'created_at': {'key': 'createdAt', 'type': 'iso-8601'},
+ 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'},
+ 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'},
+ 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword created_by: The identity that created the resource.
+ :paramtype created_by: str
+ :keyword created_by_type: The type of identity that created the resource. Possible values
+ include: "User", "Application", "ManagedIdentity", "Key".
+ :paramtype created_by_type: str or ~azure.mgmt.machinelearningservices.models.CreatedByType
+ :keyword created_at: The timestamp of resource creation (UTC).
+ :paramtype created_at: ~datetime.datetime
+ :keyword last_modified_by: The identity that last modified the resource.
+ :paramtype last_modified_by: str
+ :keyword last_modified_by_type: The type of identity that last modified the resource. Possible
+ values include: "User", "Application", "ManagedIdentity", "Key".
+ :paramtype last_modified_by_type: str or
+ ~azure.mgmt.machinelearningservices.models.CreatedByType
+ :keyword last_modified_at: The timestamp of resource last modification (UTC).
+ :paramtype last_modified_at: ~datetime.datetime
+ """
+ super(SystemData, self).__init__(**kwargs)
+ self.created_by = kwargs.get('created_by', None)
+ self.created_by_type = kwargs.get('created_by_type', None)
+ self.created_at = kwargs.get('created_at', None)
+ self.last_modified_by = kwargs.get('last_modified_by', None)
+ self.last_modified_by_type = kwargs.get('last_modified_by_type', None)
+ self.last_modified_at = kwargs.get('last_modified_at', None)
+
+
+class UserAssignedIdentity(msrest.serialization.Model):
+ """User assigned identity properties.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar principal_id: The principal ID of the assigned identity.
+ :vartype principal_id: str
+ :ivar client_id: The client ID of the assigned identity.
+ :vartype client_id: str
+ """
+
+ _validation = {
+ 'principal_id': {'readonly': True},
+ 'client_id': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'principal_id': {'key': 'principalId', 'type': 'str'},
+ 'client_id': {'key': 'clientId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ """
+ super(UserAssignedIdentity, self).__init__(**kwargs)
+ self.principal_id = None
+ self.client_id = None
+
+
+class Workspace(Resource):
+ """Workspace.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype system_data: ~azure.mgmt.machinelearningservices.models.SystemData
+ :ivar identity: Managed service identity (system assigned and/or user assigned identities).
+ :vartype identity: ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentity
+ :ivar kind:
+ :vartype kind: str
+ :ivar location:
+ :vartype location: str
+ :ivar sku: Optional. This field is required to be implemented by the RP because AML is
+ supporting more than one tier.
+ :vartype sku: ~azure.mgmt.machinelearningservices.models.Sku
+ :ivar tags: A set of tags. Dictionary of :code:`<string>`.
+ :vartype tags: dict[str, str]
+ :ivar allow_public_access_when_behind_vnet: The flag to indicate whether to allow public access
+ when behind VNet.
+ :vartype allow_public_access_when_behind_vnet: bool
+ :ivar application_insights: ARM id of the application insights associated with this workspace.
+ :vartype application_insights: str
+ :ivar associated_workspaces:
+ :vartype associated_workspaces: list[str]
+ :ivar container_registries:
+ :vartype container_registries: list[str]
+ :ivar container_registry: ARM id of the container registry associated with this workspace.
+ :vartype container_registry: str
+ :ivar description: The description of this workspace.
+ :vartype description: str
+ :ivar discovery_url: Url for the discovery service to identify regional endpoints for machine
+ learning experimentation services.
+ :vartype discovery_url: str
+ :ivar enable_data_isolation:
+ :vartype enable_data_isolation: bool
+ :ivar encryption:
+ :vartype encryption: ~azure.mgmt.machinelearningservices.models.EncryptionProperty
+ :ivar existing_workspaces:
+ :vartype existing_workspaces: list[str]
+ :ivar feature_store_settings: Settings for feature store type workspace.
+ :vartype feature_store_settings:
+ ~azure.mgmt.machinelearningservices.models.FeatureStoreSettings
+ :ivar friendly_name: The friendly name for this workspace. This name in mutable.
+ :vartype friendly_name: str
+ :ivar hbi_workspace: The flag to signal HBI data in the workspace and reduce diagnostic data
+ collected by the service.
+ :vartype hbi_workspace: bool
+ :ivar hub_resource_id:
+ :vartype hub_resource_id: str
+ :ivar image_build_compute: The compute name for image build.
+ :vartype image_build_compute: str
+ :ivar key_vault: ARM id of the key vault associated with this workspace. This cannot be changed
+ once the workspace has been created.
+ :vartype key_vault: str
+ :ivar key_vaults:
+ :vartype key_vaults: list[str]
+ :ivar managed_network: Anything.
+ :vartype managed_network: any
+ :ivar ml_flow_tracking_uri: The URI associated with this workspace that machine learning flow
+ must point at to set up tracking.
+ :vartype ml_flow_tracking_uri: str
+ :ivar notebook_info: The notebook info of Azure ML workspace.
+ :vartype notebook_info: ~azure.mgmt.machinelearningservices.models.NotebookResourceInfo
+ :ivar primary_user_assigned_identity: The user assigned identity resource id that represents
+ the workspace identity.
+ :vartype primary_user_assigned_identity: str
+ :ivar private_endpoint_connections: The list of private endpoint connections in the workspace.
+ :vartype private_endpoint_connections:
+ list[~azure.mgmt.machinelearningservices.models.PrivateEndpointConnection]
+ :ivar private_link_count: Count of private connections in the workspace.
+ :vartype private_link_count: int
+ :ivar provisioning_state: The current deployment state of workspace resource. The
+ provisioningState is to indicate states for resource provisioning. Possible values include:
+ "Unknown", "Updating", "Creating", "Deleting", "Succeeded", "Failed", "Canceled".
+ :vartype provisioning_state: str or
+ ~azure.mgmt.machinelearningservices.models.ProvisioningState
+ :ivar public_network_access: Whether requests from Public Network are allowed. Possible values
+ include: "Enabled", "Disabled".
+ :vartype public_network_access: str or
+ ~azure.mgmt.machinelearningservices.models.PublicNetworkAccessType
+ :ivar service_managed_resources_settings: The service managed resource settings.
+ :vartype service_managed_resources_settings:
+ ~azure.mgmt.machinelearningservices.models.ServiceManagedResourcesSettings
+ :ivar service_provisioned_resource_group: The name of the managed resource group created by
+ workspace RP in customer subscription if the workspace is CMK workspace.
+ :vartype service_provisioned_resource_group: str
+ :ivar shared_private_link_resources: The list of shared private link resources in this
+ workspace.
+ :vartype shared_private_link_resources:
+ list[~azure.mgmt.machinelearningservices.models.SharedPrivateLinkResource]
+ :ivar soft_delete_retention_in_days: Retention time in days after workspace get soft deleted.
+ :vartype soft_delete_retention_in_days: int
+ :ivar storage_account: ARM id of the storage account associated with this workspace. This
+ cannot be changed once the workspace has been created.
+ :vartype storage_account: str
+ :ivar storage_accounts:
+ :vartype storage_accounts: list[str]
+ :ivar storage_hns_enabled: If the storage associated with the workspace has hierarchical
+ namespace(HNS) enabled.
+ :vartype storage_hns_enabled: bool
+ :ivar system_datastores_auth_mode: The auth mode used for accessing the system datastores of
+ the workspace.
+ :vartype system_datastores_auth_mode: str
+ :ivar tenant_id: The tenant id associated with this workspace.
+ :vartype tenant_id: str
+ :ivar v1_legacy_mode: Enabling v1_legacy_mode may prevent you from using features provided by
+ the v2 API.
+ :vartype v1_legacy_mode: bool
+ :ivar workspace_hub_config:
+ :vartype workspace_hub_config: ~azure.mgmt.machinelearningservices.models.WorkspaceHubConfig
+ :ivar workspace_id: The immutable id associated with this workspace.
+ :vartype workspace_id: str
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ 'system_data': {'readonly': True},
+ 'ml_flow_tracking_uri': {'readonly': True},
+ 'notebook_info': {'readonly': True},
+ 'private_endpoint_connections': {'readonly': True},
+ 'private_link_count': {'readonly': True},
+ 'provisioning_state': {'readonly': True},
+ 'service_provisioned_resource_group': {'readonly': True},
+ 'storage_hns_enabled': {'readonly': True},
+ 'tenant_id': {'readonly': True},
+ 'workspace_id': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'system_data': {'key': 'systemData', 'type': 'SystemData'},
+ 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'location': {'key': 'location', 'type': 'str'},
+ 'sku': {'key': 'sku', 'type': 'Sku'},
+ 'tags': {'key': 'tags', 'type': '{str}'},
+ 'allow_public_access_when_behind_vnet': {'key': 'properties.allowPublicAccessWhenBehindVnet', 'type': 'bool'},
+ 'application_insights': {'key': 'properties.applicationInsights', 'type': 'str'},
+ 'associated_workspaces': {'key': 'properties.associatedWorkspaces', 'type': '[str]'},
+ 'container_registries': {'key': 'properties.containerRegistries', 'type': '[str]'},
+ 'container_registry': {'key': 'properties.containerRegistry', 'type': 'str'},
+ 'description': {'key': 'properties.description', 'type': 'str'},
+ 'discovery_url': {'key': 'properties.discoveryUrl', 'type': 'str'},
+ 'enable_data_isolation': {'key': 'properties.enableDataIsolation', 'type': 'bool'},
+ 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperty'},
+ 'existing_workspaces': {'key': 'properties.existingWorkspaces', 'type': '[str]'},
+ 'feature_store_settings': {'key': 'properties.featureStoreSettings', 'type': 'FeatureStoreSettings'},
+ 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
+ 'hbi_workspace': {'key': 'properties.hbiWorkspace', 'type': 'bool'},
+ 'hub_resource_id': {'key': 'properties.hubResourceId', 'type': 'str'},
+ 'image_build_compute': {'key': 'properties.imageBuildCompute', 'type': 'str'},
+ 'key_vault': {'key': 'properties.keyVault', 'type': 'str'},
+ 'key_vaults': {'key': 'properties.keyVaults', 'type': '[str]'},
+ 'managed_network': {'key': 'properties.managedNetwork', 'type': 'object'},
+ 'ml_flow_tracking_uri': {'key': 'properties.mlFlowTrackingUri', 'type': 'str'},
+ 'notebook_info': {'key': 'properties.notebookInfo', 'type': 'NotebookResourceInfo'},
+ 'primary_user_assigned_identity': {'key': 'properties.primaryUserAssignedIdentity', 'type': 'str'},
+ 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'},
+ 'private_link_count': {'key': 'properties.privateLinkCount', 'type': 'int'},
+ 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
+ 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
+ 'service_managed_resources_settings': {'key': 'properties.serviceManagedResourcesSettings', 'type': 'ServiceManagedResourcesSettings'},
+ 'service_provisioned_resource_group': {'key': 'properties.serviceProvisionedResourceGroup', 'type': 'str'},
+ 'shared_private_link_resources': {'key': 'properties.sharedPrivateLinkResources', 'type': '[SharedPrivateLinkResource]'},
+ 'soft_delete_retention_in_days': {'key': 'properties.softDeleteRetentionInDays', 'type': 'int'},
+ 'storage_account': {'key': 'properties.storageAccount', 'type': 'str'},
+ 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[str]'},
+ 'storage_hns_enabled': {'key': 'properties.storageHnsEnabled', 'type': 'bool'},
+ 'system_datastores_auth_mode': {'key': 'properties.systemDatastoresAuthMode', 'type': 'str'},
+ 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'},
+ 'v1_legacy_mode': {'key': 'properties.v1LegacyMode', 'type': 'bool'},
+ 'workspace_hub_config': {'key': 'properties.workspaceHubConfig', 'type': 'WorkspaceHubConfig'},
+ 'workspace_id': {'key': 'properties.workspaceId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword identity: Managed service identity (system assigned and/or user assigned identities).
+ :paramtype identity: ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentity
+ :keyword kind:
+ :paramtype kind: str
+ :keyword location:
+ :paramtype location: str
+ :keyword sku: Optional. This field is required to be implemented by the RP because AML is
+ supporting more than one tier.
+ :paramtype sku: ~azure.mgmt.machinelearningservices.models.Sku
+ :keyword tags: A set of tags. Dictionary of :code:`<string>`.
+ :paramtype tags: dict[str, str]
+ :keyword allow_public_access_when_behind_vnet: The flag to indicate whether to allow public
+ access when behind VNet.
+ :paramtype allow_public_access_when_behind_vnet: bool
+ :keyword application_insights: ARM id of the application insights associated with this
+ workspace.
+ :paramtype application_insights: str
+ :keyword associated_workspaces:
+ :paramtype associated_workspaces: list[str]
+ :keyword container_registries:
+ :paramtype container_registries: list[str]
+ :keyword container_registry: ARM id of the container registry associated with this workspace.
+ :paramtype container_registry: str
+ :keyword description: The description of this workspace.
+ :paramtype description: str
+ :keyword discovery_url: Url for the discovery service to identify regional endpoints for
+ machine learning experimentation services.
+ :paramtype discovery_url: str
+ :keyword enable_data_isolation:
+ :paramtype enable_data_isolation: bool
+ :keyword encryption:
+ :paramtype encryption: ~azure.mgmt.machinelearningservices.models.EncryptionProperty
+ :keyword existing_workspaces:
+ :paramtype existing_workspaces: list[str]
+ :keyword feature_store_settings: Settings for feature store type workspace.
+ :paramtype feature_store_settings:
+ ~azure.mgmt.machinelearningservices.models.FeatureStoreSettings
+ :keyword friendly_name: The friendly name for this workspace. This name in mutable.
+ :paramtype friendly_name: str
+ :keyword hbi_workspace: The flag to signal HBI data in the workspace and reduce diagnostic data
+ collected by the service.
+ :paramtype hbi_workspace: bool
+ :keyword hub_resource_id:
+ :paramtype hub_resource_id: str
+ :keyword image_build_compute: The compute name for image build.
+ :paramtype image_build_compute: str
+ :keyword key_vault: ARM id of the key vault associated with this workspace. This cannot be
+ changed once the workspace has been created.
+ :paramtype key_vault: str
+ :keyword key_vaults:
+ :paramtype key_vaults: list[str]
+ :keyword managed_network: Anything.
+ :paramtype managed_network: any
+ :keyword primary_user_assigned_identity: The user assigned identity resource id that represents
+ the workspace identity.
+ :paramtype primary_user_assigned_identity: str
+ :keyword public_network_access: Whether requests from Public Network are allowed. Possible
+ values include: "Enabled", "Disabled".
+ :paramtype public_network_access: str or
+ ~azure.mgmt.machinelearningservices.models.PublicNetworkAccessType
+ :keyword service_managed_resources_settings: The service managed resource settings.
+ :paramtype service_managed_resources_settings:
+ ~azure.mgmt.machinelearningservices.models.ServiceManagedResourcesSettings
+ :keyword shared_private_link_resources: The list of shared private link resources in this
+ workspace.
+ :paramtype shared_private_link_resources:
+ list[~azure.mgmt.machinelearningservices.models.SharedPrivateLinkResource]
+ :keyword soft_delete_retention_in_days: Retention time in days after workspace get soft
+ deleted.
+ :paramtype soft_delete_retention_in_days: int
+ :keyword storage_account: ARM id of the storage account associated with this workspace. This
+ cannot be changed once the workspace has been created.
+ :paramtype storage_account: str
+ :keyword storage_accounts:
+ :paramtype storage_accounts: list[str]
+ :keyword system_datastores_auth_mode: The auth mode used for accessing the system datastores of
+ the workspace.
+ :paramtype system_datastores_auth_mode: str
+ :keyword v1_legacy_mode: Enabling v1_legacy_mode may prevent you from using features provided
+ by the v2 API.
+ :paramtype v1_legacy_mode: bool
+ :keyword workspace_hub_config:
+ :paramtype workspace_hub_config: ~azure.mgmt.machinelearningservices.models.WorkspaceHubConfig
+ """
+ super(Workspace, self).__init__(**kwargs)
+ self.identity = kwargs.get('identity', None)
+ self.kind = kwargs.get('kind', None)
+ self.location = kwargs.get('location', None)
+ self.sku = kwargs.get('sku', None)
+ self.tags = kwargs.get('tags', None)
+ self.allow_public_access_when_behind_vnet = kwargs.get('allow_public_access_when_behind_vnet', None)
+ self.application_insights = kwargs.get('application_insights', None)
+ self.associated_workspaces = kwargs.get('associated_workspaces', None)
+ self.container_registries = kwargs.get('container_registries', None)
+ self.container_registry = kwargs.get('container_registry', None)
+ self.description = kwargs.get('description', None)
+ self.discovery_url = kwargs.get('discovery_url', None)
+ self.enable_data_isolation = kwargs.get('enable_data_isolation', None)
+ self.encryption = kwargs.get('encryption', None)
+ self.existing_workspaces = kwargs.get('existing_workspaces', None)
+ self.feature_store_settings = kwargs.get('feature_store_settings', None)
+ self.friendly_name = kwargs.get('friendly_name', None)
+ self.hbi_workspace = kwargs.get('hbi_workspace', None)
+ self.hub_resource_id = kwargs.get('hub_resource_id', None)
+ self.image_build_compute = kwargs.get('image_build_compute', None)
+ self.key_vault = kwargs.get('key_vault', None)
+ self.key_vaults = kwargs.get('key_vaults', None)
+ self.managed_network = kwargs.get('managed_network', None)
+ self.ml_flow_tracking_uri = None
+ self.notebook_info = None
+ self.primary_user_assigned_identity = kwargs.get('primary_user_assigned_identity', None)
+ self.private_endpoint_connections = None
+ self.private_link_count = None
+ self.provisioning_state = None
+ self.public_network_access = kwargs.get('public_network_access', None)
+ self.service_managed_resources_settings = kwargs.get('service_managed_resources_settings', None)
+ self.service_provisioned_resource_group = None
+ self.shared_private_link_resources = kwargs.get('shared_private_link_resources', None)
+ self.soft_delete_retention_in_days = kwargs.get('soft_delete_retention_in_days', None)
+ self.storage_account = kwargs.get('storage_account', None)
+ self.storage_accounts = kwargs.get('storage_accounts', None)
+ self.storage_hns_enabled = None
+ self.system_datastores_auth_mode = kwargs.get('system_datastores_auth_mode', None)
+ self.tenant_id = None
+ self.v1_legacy_mode = kwargs.get('v1_legacy_mode', None)
+ self.workspace_hub_config = kwargs.get('workspace_hub_config', None)
+ self.workspace_id = None
+
+
+class WorkspaceHubConfig(msrest.serialization.Model):
+ """WorkspaceHubConfig.
+
+ :ivar additional_workspace_storage_accounts:
+ :vartype additional_workspace_storage_accounts: list[str]
+ :ivar default_workspace_resource_group:
+ :vartype default_workspace_resource_group: str
+ """
+
+ _attribute_map = {
+ 'additional_workspace_storage_accounts': {'key': 'additionalWorkspaceStorageAccounts', 'type': '[str]'},
+ 'default_workspace_resource_group': {'key': 'defaultWorkspaceResourceGroup', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ :keyword additional_workspace_storage_accounts:
+ :paramtype additional_workspace_storage_accounts: list[str]
+ :keyword default_workspace_resource_group:
+ :paramtype default_workspace_resource_group: str
+ """
+ super(WorkspaceHubConfig, self).__init__(**kwargs)
+ self.additional_workspace_storage_accounts = kwargs.get('additional_workspace_storage_accounts', None)
+ self.default_workspace_resource_group = kwargs.get('default_workspace_resource_group', None)
+
+
+class WorkspacePrivateEndpointResource(msrest.serialization.Model):
+ """WorkspacePrivateEndpointResource.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id: e.g.
+ /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}.
+ :vartype id: str
+ :ivar subnet_arm_id: The subnetId that the private endpoint is connected to.
+ :vartype subnet_arm_id: str
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'subnet_arm_id': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'subnet_arm_id': {'key': 'subnetArmId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ """
+ super(WorkspacePrivateEndpointResource, self).__init__(**kwargs)
+ self.id = None
+ self.subnet_arm_id = None
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_models_py3.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_models_py3.py
new file mode 100644
index 00000000..3256c37f
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/models/_models_py3.py
@@ -0,0 +1,1311 @@
+# 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.
+# --------------------------------------------------------------------------
+
+import datetime
+from typing import Any, Dict, List, Optional, Union
+
+import msrest.serialization
+
+from ._azure_machine_learning_workspaces_enums import *
+
+
+class ComputeRuntimeDto(msrest.serialization.Model):
+ """ComputeRuntimeDto.
+
+ :ivar spark_runtime_version:
+ :vartype spark_runtime_version: str
+ """
+
+ _attribute_map = {
+ 'spark_runtime_version': {'key': 'sparkRuntimeVersion', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ spark_runtime_version: Optional[str] = None,
+ **kwargs
+ ):
+ """
+ :keyword spark_runtime_version:
+ :paramtype spark_runtime_version: str
+ """
+ super(ComputeRuntimeDto, self).__init__(**kwargs)
+ self.spark_runtime_version = spark_runtime_version
+
+
+class CosmosDbSettings(msrest.serialization.Model):
+ """CosmosDbSettings.
+
+ :ivar collections_throughput:
+ :vartype collections_throughput: int
+ """
+
+ _attribute_map = {
+ 'collections_throughput': {'key': 'collectionsThroughput', 'type': 'int'},
+ }
+
+ def __init__(
+ self,
+ *,
+ collections_throughput: Optional[int] = None,
+ **kwargs
+ ):
+ """
+ :keyword collections_throughput:
+ :paramtype collections_throughput: int
+ """
+ super(CosmosDbSettings, self).__init__(**kwargs)
+ self.collections_throughput = collections_throughput
+
+
+class EncryptionProperty(msrest.serialization.Model):
+ """EncryptionProperty.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :ivar cosmos_db_resource_id: The byok cosmosdb account that customer brings to store customer's
+ data
+ with encryption.
+ :vartype cosmos_db_resource_id: str
+ :ivar identity: Identity to be used with the keyVault.
+ :vartype identity: ~azure.mgmt.machinelearningservices.models.IdentityForCmk
+ :ivar key_vault_properties: Required. KeyVault details to do the encryption.
+ :vartype key_vault_properties: ~azure.mgmt.machinelearningservices.models.KeyVaultProperties
+ :ivar search_account_resource_id: The byok search account that customer brings to store
+ customer's data
+ with encryption.
+ :vartype search_account_resource_id: str
+ :ivar status: Required. Possible values include: "Enabled", "Disabled".
+ :vartype status: str or ~azure.mgmt.machinelearningservices.models.EncryptionStatus
+ :ivar storage_account_resource_id: The byok storage account that customer brings to store
+ customer's data
+ with encryption.
+ :vartype storage_account_resource_id: str
+ """
+
+ _validation = {
+ 'key_vault_properties': {'required': True},
+ 'status': {'required': True},
+ }
+
+ _attribute_map = {
+ 'cosmos_db_resource_id': {'key': 'cosmosDbResourceId', 'type': 'str'},
+ 'identity': {'key': 'identity', 'type': 'IdentityForCmk'},
+ 'key_vault_properties': {'key': 'keyVaultProperties', 'type': 'KeyVaultProperties'},
+ 'search_account_resource_id': {'key': 'searchAccountResourceId', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'str'},
+ 'storage_account_resource_id': {'key': 'storageAccountResourceId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ key_vault_properties: "KeyVaultProperties",
+ status: Union[str, "EncryptionStatus"],
+ cosmos_db_resource_id: Optional[str] = None,
+ identity: Optional["IdentityForCmk"] = None,
+ search_account_resource_id: Optional[str] = None,
+ storage_account_resource_id: Optional[str] = None,
+ **kwargs
+ ):
+ """
+ :keyword cosmos_db_resource_id: The byok cosmosdb account that customer brings to store
+ customer's data
+ with encryption.
+ :paramtype cosmos_db_resource_id: str
+ :keyword identity: Identity to be used with the keyVault.
+ :paramtype identity: ~azure.mgmt.machinelearningservices.models.IdentityForCmk
+ :keyword key_vault_properties: Required. KeyVault details to do the encryption.
+ :paramtype key_vault_properties: ~azure.mgmt.machinelearningservices.models.KeyVaultProperties
+ :keyword search_account_resource_id: The byok search account that customer brings to store
+ customer's data
+ with encryption.
+ :paramtype search_account_resource_id: str
+ :keyword status: Required. Possible values include: "Enabled", "Disabled".
+ :paramtype status: str or ~azure.mgmt.machinelearningservices.models.EncryptionStatus
+ :keyword storage_account_resource_id: The byok storage account that customer brings to store
+ customer's data
+ with encryption.
+ :paramtype storage_account_resource_id: str
+ """
+ super(EncryptionProperty, self).__init__(**kwargs)
+ self.cosmos_db_resource_id = cosmos_db_resource_id
+ self.identity = identity
+ self.key_vault_properties = key_vault_properties
+ self.search_account_resource_id = search_account_resource_id
+ self.status = status
+ self.storage_account_resource_id = storage_account_resource_id
+
+
+class FeatureStoreSettings(msrest.serialization.Model):
+ """FeatureStoreSettings.
+
+ :ivar compute_runtime:
+ :vartype compute_runtime: ~azure.mgmt.machinelearningservices.models.ComputeRuntimeDto
+ :ivar offline_store_connection_name:
+ :vartype offline_store_connection_name: str
+ :ivar online_store_connection_name:
+ :vartype online_store_connection_name: str
+ """
+
+ _attribute_map = {
+ 'compute_runtime': {'key': 'computeRuntime', 'type': 'ComputeRuntimeDto'},
+ 'offline_store_connection_name': {'key': 'offlineStoreConnectionName', 'type': 'str'},
+ 'online_store_connection_name': {'key': 'onlineStoreConnectionName', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ compute_runtime: Optional["ComputeRuntimeDto"] = None,
+ offline_store_connection_name: Optional[str] = None,
+ online_store_connection_name: Optional[str] = None,
+ **kwargs
+ ):
+ """
+ :keyword compute_runtime:
+ :paramtype compute_runtime: ~azure.mgmt.machinelearningservices.models.ComputeRuntimeDto
+ :keyword offline_store_connection_name:
+ :paramtype offline_store_connection_name: str
+ :keyword online_store_connection_name:
+ :paramtype online_store_connection_name: str
+ """
+ super(FeatureStoreSettings, self).__init__(**kwargs)
+ self.compute_runtime = compute_runtime
+ self.offline_store_connection_name = offline_store_connection_name
+ self.online_store_connection_name = online_store_connection_name
+
+
+class IdentityForCmk(msrest.serialization.Model):
+ """IdentityForCmk.
+
+ :ivar user_assigned_identity: UserAssignedIdentity to be used to fetch the encryption key from
+ keyVault.
+ :vartype user_assigned_identity: str
+ """
+
+ _attribute_map = {
+ 'user_assigned_identity': {'key': 'userAssignedIdentity', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ user_assigned_identity: Optional[str] = None,
+ **kwargs
+ ):
+ """
+ :keyword user_assigned_identity: UserAssignedIdentity to be used to fetch the encryption key
+ from keyVault.
+ :paramtype user_assigned_identity: str
+ """
+ super(IdentityForCmk, self).__init__(**kwargs)
+ self.user_assigned_identity = user_assigned_identity
+
+
+class KeyVaultProperties(msrest.serialization.Model):
+ """KeyVaultProperties.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :ivar identity_client_id: Currently, we support only SystemAssigned MSI.
+ We need this when we support UserAssignedIdentities.
+ :vartype identity_client_id: str
+ :ivar key_identifier: Required. KeyVault key identifier to encrypt the data.
+ :vartype key_identifier: str
+ :ivar key_vault_arm_id: Required. KeyVault Arm Id that contains the data encryption key.
+ :vartype key_vault_arm_id: str
+ """
+
+ _validation = {
+ 'key_identifier': {'required': True, 'min_length': 1, 'pattern': r'[a-zA-Z0-9_]'},
+ 'key_vault_arm_id': {'required': True, 'min_length': 1, 'pattern': r'[a-zA-Z0-9_]'},
+ }
+
+ _attribute_map = {
+ 'identity_client_id': {'key': 'identityClientId', 'type': 'str'},
+ 'key_identifier': {'key': 'keyIdentifier', 'type': 'str'},
+ 'key_vault_arm_id': {'key': 'keyVaultArmId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ key_identifier: str,
+ key_vault_arm_id: str,
+ identity_client_id: Optional[str] = None,
+ **kwargs
+ ):
+ """
+ :keyword identity_client_id: Currently, we support only SystemAssigned MSI.
+ We need this when we support UserAssignedIdentities.
+ :paramtype identity_client_id: str
+ :keyword key_identifier: Required. KeyVault key identifier to encrypt the data.
+ :paramtype key_identifier: str
+ :keyword key_vault_arm_id: Required. KeyVault Arm Id that contains the data encryption key.
+ :paramtype key_vault_arm_id: str
+ """
+ super(KeyVaultProperties, self).__init__(**kwargs)
+ self.identity_client_id = identity_client_id
+ self.key_identifier = key_identifier
+ self.key_vault_arm_id = key_vault_arm_id
+
+
+class ManagedServiceIdentity(msrest.serialization.Model):
+ """Managed service identity (system assigned and/or user assigned identities).
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :ivar principal_id: The service principal ID of the system assigned identity. This property
+ will only be provided for a system assigned identity.
+ :vartype principal_id: str
+ :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be
+ provided for a system assigned identity.
+ :vartype tenant_id: str
+ :ivar type: Required. Type of managed service identity (where both SystemAssigned and
+ UserAssigned types are allowed). Possible values include: "None", "SystemAssigned",
+ "UserAssigned", "SystemAssigned,UserAssigned".
+ :vartype type: str or ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentityType
+ :ivar user_assigned_identities: The set of user assigned identities associated with the
+ resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form:
+ '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
+ The dictionary values can be empty objects ({}) in requests.
+ :vartype user_assigned_identities: dict[str,
+ ~azure.mgmt.machinelearningservices.models.UserAssignedIdentity]
+ """
+
+ _validation = {
+ 'principal_id': {'readonly': True},
+ 'tenant_id': {'readonly': True},
+ 'type': {'required': True},
+ }
+
+ _attribute_map = {
+ 'principal_id': {'key': 'principalId', 'type': 'str'},
+ 'tenant_id': {'key': 'tenantId', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentity}'},
+ }
+
+ def __init__(
+ self,
+ *,
+ type: Union[str, "ManagedServiceIdentityType"],
+ user_assigned_identities: Optional[Dict[str, "UserAssignedIdentity"]] = None,
+ **kwargs
+ ):
+ """
+ :keyword type: Required. Type of managed service identity (where both SystemAssigned and
+ UserAssigned types are allowed). Possible values include: "None", "SystemAssigned",
+ "UserAssigned", "SystemAssigned,UserAssigned".
+ :paramtype type: str or ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentityType
+ :keyword user_assigned_identities: The set of user assigned identities associated with the
+ resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form:
+ '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
+ The dictionary values can be empty objects ({}) in requests.
+ :paramtype user_assigned_identities: dict[str,
+ ~azure.mgmt.machinelearningservices.models.UserAssignedIdentity]
+ """
+ super(ManagedServiceIdentity, self).__init__(**kwargs)
+ self.principal_id = None
+ self.tenant_id = None
+ self.type = type
+ self.user_assigned_identities = user_assigned_identities
+
+
+class NotebookPreparationError(msrest.serialization.Model):
+ """NotebookPreparationError.
+
+ :ivar error_message:
+ :vartype error_message: str
+ :ivar status_code:
+ :vartype status_code: int
+ """
+
+ _attribute_map = {
+ 'error_message': {'key': 'errorMessage', 'type': 'str'},
+ 'status_code': {'key': 'statusCode', 'type': 'int'},
+ }
+
+ def __init__(
+ self,
+ *,
+ error_message: Optional[str] = None,
+ status_code: Optional[int] = None,
+ **kwargs
+ ):
+ """
+ :keyword error_message:
+ :paramtype error_message: str
+ :keyword status_code:
+ :paramtype status_code: int
+ """
+ super(NotebookPreparationError, self).__init__(**kwargs)
+ self.error_message = error_message
+ self.status_code = status_code
+
+
+class NotebookResourceInfo(msrest.serialization.Model):
+ """NotebookResourceInfo.
+
+ :ivar fqdn:
+ :vartype fqdn: str
+ :ivar is_private_link_enabled:
+ :vartype is_private_link_enabled: bool
+ :ivar notebook_preparation_error: The error that occurs when preparing notebook.
+ :vartype notebook_preparation_error:
+ ~azure.mgmt.machinelearningservices.models.NotebookPreparationError
+ :ivar resource_id: the data plane resourceId that used to initialize notebook component.
+ :vartype resource_id: str
+ """
+
+ _attribute_map = {
+ 'fqdn': {'key': 'fqdn', 'type': 'str'},
+ 'is_private_link_enabled': {'key': 'isPrivateLinkEnabled', 'type': 'bool'},
+ 'notebook_preparation_error': {'key': 'notebookPreparationError', 'type': 'NotebookPreparationError'},
+ 'resource_id': {'key': 'resourceId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ fqdn: Optional[str] = None,
+ is_private_link_enabled: Optional[bool] = None,
+ notebook_preparation_error: Optional["NotebookPreparationError"] = None,
+ resource_id: Optional[str] = None,
+ **kwargs
+ ):
+ """
+ :keyword fqdn:
+ :paramtype fqdn: str
+ :keyword is_private_link_enabled:
+ :paramtype is_private_link_enabled: bool
+ :keyword notebook_preparation_error: The error that occurs when preparing notebook.
+ :paramtype notebook_preparation_error:
+ ~azure.mgmt.machinelearningservices.models.NotebookPreparationError
+ :keyword resource_id: the data plane resourceId that used to initialize notebook component.
+ :paramtype resource_id: str
+ """
+ super(NotebookResourceInfo, self).__init__(**kwargs)
+ self.fqdn = fqdn
+ self.is_private_link_enabled = is_private_link_enabled
+ self.notebook_preparation_error = notebook_preparation_error
+ self.resource_id = resource_id
+
+
+class Resource(msrest.serialization.Model):
+ """Common fields that are returned in the response for all Azure Resource Manager resources.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype system_data: ~azure.mgmt.machinelearningservices.models.SystemData
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ 'system_data': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'system_data': {'key': 'systemData', 'type': 'SystemData'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ """
+ super(Resource, self).__init__(**kwargs)
+ self.id = None
+ self.name = None
+ self.type = None
+ self.system_data = None
+
+
+class PrivateEndpointConnection(Resource):
+ """PrivateEndpointConnection.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype system_data: ~azure.mgmt.machinelearningservices.models.SystemData
+ :ivar identity: Managed service identity (system assigned and/or user assigned identities).
+ :vartype identity: ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentity
+ :ivar location: Same as workspace location.
+ :vartype location: str
+ :ivar sku: Optional. This field is required to be implemented by the RP because AML is
+ supporting more than one tier.
+ :vartype sku: ~azure.mgmt.machinelearningservices.models.Sku
+ :ivar tags: A set of tags. Dictionary of :code:`<string>`.
+ :vartype tags: dict[str, str]
+ :ivar private_endpoint:
+ :vartype private_endpoint:
+ ~azure.mgmt.machinelearningservices.models.WorkspacePrivateEndpointResource
+ :ivar private_link_service_connection_state: The connection state.
+ :vartype private_link_service_connection_state:
+ ~azure.mgmt.machinelearningservices.models.PrivateLinkServiceConnectionState
+ :ivar provisioning_state: Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :vartype provisioning_state: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ 'system_data': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'system_data': {'key': 'systemData', 'type': 'SystemData'},
+ 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'},
+ 'location': {'key': 'location', 'type': 'str'},
+ 'sku': {'key': 'sku', 'type': 'Sku'},
+ 'tags': {'key': 'tags', 'type': '{str}'},
+ 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'WorkspacePrivateEndpointResource'},
+ 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'},
+ 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ identity: Optional["ManagedServiceIdentity"] = None,
+ location: Optional[str] = None,
+ sku: Optional["Sku"] = None,
+ tags: Optional[Dict[str, str]] = None,
+ private_endpoint: Optional["WorkspacePrivateEndpointResource"] = None,
+ private_link_service_connection_state: Optional["PrivateLinkServiceConnectionState"] = None,
+ provisioning_state: Optional[Union[str, "EndpointServiceConnectionStatus"]] = None,
+ **kwargs
+ ):
+ """
+ :keyword identity: Managed service identity (system assigned and/or user assigned identities).
+ :paramtype identity: ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentity
+ :keyword location: Same as workspace location.
+ :paramtype location: str
+ :keyword sku: Optional. This field is required to be implemented by the RP because AML is
+ supporting more than one tier.
+ :paramtype sku: ~azure.mgmt.machinelearningservices.models.Sku
+ :keyword tags: A set of tags. Dictionary of :code:`<string>`.
+ :paramtype tags: dict[str, str]
+ :keyword private_endpoint:
+ :paramtype private_endpoint:
+ ~azure.mgmt.machinelearningservices.models.WorkspacePrivateEndpointResource
+ :keyword private_link_service_connection_state: The connection state.
+ :paramtype private_link_service_connection_state:
+ ~azure.mgmt.machinelearningservices.models.PrivateLinkServiceConnectionState
+ :keyword provisioning_state: Connection status of the service consumer with the service
+ provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :paramtype provisioning_state: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+ super(PrivateEndpointConnection, self).__init__(**kwargs)
+ self.identity = identity
+ self.location = location
+ self.sku = sku
+ self.tags = tags
+ self.private_endpoint = private_endpoint
+ self.private_link_service_connection_state = private_link_service_connection_state
+ self.provisioning_state = provisioning_state
+
+
+class PrivateLinkServiceConnectionState(msrest.serialization.Model):
+ """PrivateLinkServiceConnectionState.
+
+ :ivar actions_required: Some RP chose "None". Other RPs use this for region expansion.
+ :vartype actions_required: str
+ :ivar description: User-defined message that, per NRP doc, may be used for approval-related
+ message.
+ :vartype description: str
+ :ivar status: Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :vartype status: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+
+ _attribute_map = {
+ 'actions_required': {'key': 'actionsRequired', 'type': 'str'},
+ 'description': {'key': 'description', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ actions_required: Optional[str] = None,
+ description: Optional[str] = None,
+ status: Optional[Union[str, "EndpointServiceConnectionStatus"]] = None,
+ **kwargs
+ ):
+ """
+ :keyword actions_required: Some RP chose "None". Other RPs use this for region expansion.
+ :paramtype actions_required: str
+ :keyword description: User-defined message that, per NRP doc, may be used for approval-related
+ message.
+ :paramtype description: str
+ :keyword status: Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :paramtype status: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+ super(PrivateLinkServiceConnectionState, self).__init__(**kwargs)
+ self.actions_required = actions_required
+ self.description = description
+ self.status = status
+
+
+class ServiceManagedResourcesSettings(msrest.serialization.Model):
+ """ServiceManagedResourcesSettings.
+
+ :ivar cosmos_db:
+ :vartype cosmos_db: ~azure.mgmt.machinelearningservices.models.CosmosDbSettings
+ """
+
+ _attribute_map = {
+ 'cosmos_db': {'key': 'cosmosDb', 'type': 'CosmosDbSettings'},
+ }
+
+ def __init__(
+ self,
+ *,
+ cosmos_db: Optional["CosmosDbSettings"] = None,
+ **kwargs
+ ):
+ """
+ :keyword cosmos_db:
+ :paramtype cosmos_db: ~azure.mgmt.machinelearningservices.models.CosmosDbSettings
+ """
+ super(ServiceManagedResourcesSettings, self).__init__(**kwargs)
+ self.cosmos_db = cosmos_db
+
+
+class SharedPrivateLinkResource(msrest.serialization.Model):
+ """SharedPrivateLinkResource.
+
+ :ivar name: Unique name of the private link.
+ :vartype name: str
+ :ivar group_id: group id of the private link.
+ :vartype group_id: str
+ :ivar private_link_resource_id: the resource id that private link links to.
+ :vartype private_link_resource_id: str
+ :ivar request_message: Request message.
+ :vartype request_message: str
+ :ivar status: Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :vartype status: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+
+ _attribute_map = {
+ 'name': {'key': 'name', 'type': 'str'},
+ 'group_id': {'key': 'properties.groupId', 'type': 'str'},
+ 'private_link_resource_id': {'key': 'properties.privateLinkResourceId', 'type': 'str'},
+ 'request_message': {'key': 'properties.requestMessage', 'type': 'str'},
+ 'status': {'key': 'properties.status', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ name: Optional[str] = None,
+ group_id: Optional[str] = None,
+ private_link_resource_id: Optional[str] = None,
+ request_message: Optional[str] = None,
+ status: Optional[Union[str, "EndpointServiceConnectionStatus"]] = None,
+ **kwargs
+ ):
+ """
+ :keyword name: Unique name of the private link.
+ :paramtype name: str
+ :keyword group_id: group id of the private link.
+ :paramtype group_id: str
+ :keyword private_link_resource_id: the resource id that private link links to.
+ :paramtype private_link_resource_id: str
+ :keyword request_message: Request message.
+ :paramtype request_message: str
+ :keyword status: Connection status of the service consumer with the service provider
+ Possible state transitions
+ Pending -> Approved (Service provider approves the connection request)
+ Pending -> Rejected (Service provider rejects the connection request)
+ Pending -> Disconnected (Service provider deletes the connection)
+ Approved -> Rejected (Service provider rejects the approved connection)
+ Approved -> Disconnected (Service provider deletes the connection)
+ Rejected -> Pending (Service consumer re-initiates the connection request that was rejected)
+ Rejected -> Disconnected (Service provider deletes the connection). Possible values include:
+ "Approved", "Pending", "Rejected", "Disconnected", "Timeout".
+ :paramtype status: str or
+ ~azure.mgmt.machinelearningservices.models.EndpointServiceConnectionStatus
+ """
+ super(SharedPrivateLinkResource, self).__init__(**kwargs)
+ self.name = name
+ self.group_id = group_id
+ self.private_link_resource_id = private_link_resource_id
+ self.request_message = request_message
+ self.status = status
+
+
+class Sku(msrest.serialization.Model):
+ """The resource model definition representing SKU.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :ivar name: Required. The name of the SKU. Ex - P3. It is typically a letter+number code.
+ :vartype name: str
+ :ivar tier: This field is required to be implemented by the Resource Provider if the service
+ has more than one tier, but is not required on a PUT. Possible values include: "Free", "Basic",
+ "Standard", "Premium".
+ :vartype tier: str or ~azure.mgmt.machinelearningservices.models.SkuTier
+ :ivar size: The SKU size. When the name field is the combination of tier and some other value,
+ this would be the standalone code.
+ :vartype size: str
+ :ivar family: If the service has different generations of hardware, for the same SKU, then that
+ can be captured here.
+ :vartype family: str
+ :ivar capacity: If the SKU supports scale out/in then the capacity integer should be included.
+ If scale out/in is not possible for the resource this may be omitted.
+ :vartype capacity: int
+ """
+
+ _validation = {
+ 'name': {'required': True},
+ }
+
+ _attribute_map = {
+ 'name': {'key': 'name', 'type': 'str'},
+ 'tier': {'key': 'tier', 'type': 'str'},
+ 'size': {'key': 'size', 'type': 'str'},
+ 'family': {'key': 'family', 'type': 'str'},
+ 'capacity': {'key': 'capacity', 'type': 'int'},
+ }
+
+ def __init__(
+ self,
+ *,
+ name: str,
+ tier: Optional[Union[str, "SkuTier"]] = None,
+ size: Optional[str] = None,
+ family: Optional[str] = None,
+ capacity: Optional[int] = None,
+ **kwargs
+ ):
+ """
+ :keyword name: Required. The name of the SKU. Ex - P3. It is typically a letter+number code.
+ :paramtype name: str
+ :keyword tier: This field is required to be implemented by the Resource Provider if the service
+ has more than one tier, but is not required on a PUT. Possible values include: "Free", "Basic",
+ "Standard", "Premium".
+ :paramtype tier: str or ~azure.mgmt.machinelearningservices.models.SkuTier
+ :keyword size: The SKU size. When the name field is the combination of tier and some other
+ value, this would be the standalone code.
+ :paramtype size: str
+ :keyword family: If the service has different generations of hardware, for the same SKU, then
+ that can be captured here.
+ :paramtype family: str
+ :keyword capacity: If the SKU supports scale out/in then the capacity integer should be
+ included. If scale out/in is not possible for the resource this may be omitted.
+ :paramtype capacity: int
+ """
+ super(Sku, self).__init__(**kwargs)
+ self.name = name
+ self.tier = tier
+ self.size = size
+ self.family = family
+ self.capacity = capacity
+
+
+class SystemData(msrest.serialization.Model):
+ """Metadata pertaining to creation and last modification of the resource.
+
+ :ivar created_by: The identity that created the resource.
+ :vartype created_by: str
+ :ivar created_by_type: The type of identity that created the resource. Possible values include:
+ "User", "Application", "ManagedIdentity", "Key".
+ :vartype created_by_type: str or ~azure.mgmt.machinelearningservices.models.CreatedByType
+ :ivar created_at: The timestamp of resource creation (UTC).
+ :vartype created_at: ~datetime.datetime
+ :ivar last_modified_by: The identity that last modified the resource.
+ :vartype last_modified_by: str
+ :ivar last_modified_by_type: The type of identity that last modified the resource. Possible
+ values include: "User", "Application", "ManagedIdentity", "Key".
+ :vartype last_modified_by_type: str or ~azure.mgmt.machinelearningservices.models.CreatedByType
+ :ivar last_modified_at: The timestamp of resource last modification (UTC).
+ :vartype last_modified_at: ~datetime.datetime
+ """
+
+ _attribute_map = {
+ 'created_by': {'key': 'createdBy', 'type': 'str'},
+ 'created_by_type': {'key': 'createdByType', 'type': 'str'},
+ 'created_at': {'key': 'createdAt', 'type': 'iso-8601'},
+ 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'},
+ 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'},
+ 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'},
+ }
+
+ def __init__(
+ self,
+ *,
+ created_by: Optional[str] = None,
+ created_by_type: Optional[Union[str, "CreatedByType"]] = None,
+ created_at: Optional[datetime.datetime] = None,
+ last_modified_by: Optional[str] = None,
+ last_modified_by_type: Optional[Union[str, "CreatedByType"]] = None,
+ last_modified_at: Optional[datetime.datetime] = None,
+ **kwargs
+ ):
+ """
+ :keyword created_by: The identity that created the resource.
+ :paramtype created_by: str
+ :keyword created_by_type: The type of identity that created the resource. Possible values
+ include: "User", "Application", "ManagedIdentity", "Key".
+ :paramtype created_by_type: str or ~azure.mgmt.machinelearningservices.models.CreatedByType
+ :keyword created_at: The timestamp of resource creation (UTC).
+ :paramtype created_at: ~datetime.datetime
+ :keyword last_modified_by: The identity that last modified the resource.
+ :paramtype last_modified_by: str
+ :keyword last_modified_by_type: The type of identity that last modified the resource. Possible
+ values include: "User", "Application", "ManagedIdentity", "Key".
+ :paramtype last_modified_by_type: str or
+ ~azure.mgmt.machinelearningservices.models.CreatedByType
+ :keyword last_modified_at: The timestamp of resource last modification (UTC).
+ :paramtype last_modified_at: ~datetime.datetime
+ """
+ super(SystemData, self).__init__(**kwargs)
+ self.created_by = created_by
+ self.created_by_type = created_by_type
+ self.created_at = created_at
+ self.last_modified_by = last_modified_by
+ self.last_modified_by_type = last_modified_by_type
+ self.last_modified_at = last_modified_at
+
+
+class UserAssignedIdentity(msrest.serialization.Model):
+ """User assigned identity properties.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar principal_id: The principal ID of the assigned identity.
+ :vartype principal_id: str
+ :ivar client_id: The client ID of the assigned identity.
+ :vartype client_id: str
+ """
+
+ _validation = {
+ 'principal_id': {'readonly': True},
+ 'client_id': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'principal_id': {'key': 'principalId', 'type': 'str'},
+ 'client_id': {'key': 'clientId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ """
+ super(UserAssignedIdentity, self).__init__(**kwargs)
+ self.principal_id = None
+ self.client_id = None
+
+
+class Workspace(Resource):
+ """Workspace.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype system_data: ~azure.mgmt.machinelearningservices.models.SystemData
+ :ivar identity: Managed service identity (system assigned and/or user assigned identities).
+ :vartype identity: ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentity
+ :ivar kind:
+ :vartype kind: str
+ :ivar location:
+ :vartype location: str
+ :ivar sku: Optional. This field is required to be implemented by the RP because AML is
+ supporting more than one tier.
+ :vartype sku: ~azure.mgmt.machinelearningservices.models.Sku
+ :ivar tags: A set of tags. Dictionary of :code:`<string>`.
+ :vartype tags: dict[str, str]
+ :ivar allow_public_access_when_behind_vnet: The flag to indicate whether to allow public access
+ when behind VNet.
+ :vartype allow_public_access_when_behind_vnet: bool
+ :ivar application_insights: ARM id of the application insights associated with this workspace.
+ :vartype application_insights: str
+ :ivar associated_workspaces:
+ :vartype associated_workspaces: list[str]
+ :ivar container_registries:
+ :vartype container_registries: list[str]
+ :ivar container_registry: ARM id of the container registry associated with this workspace.
+ :vartype container_registry: str
+ :ivar description: The description of this workspace.
+ :vartype description: str
+ :ivar discovery_url: Url for the discovery service to identify regional endpoints for machine
+ learning experimentation services.
+ :vartype discovery_url: str
+ :ivar enable_data_isolation:
+ :vartype enable_data_isolation: bool
+ :ivar encryption:
+ :vartype encryption: ~azure.mgmt.machinelearningservices.models.EncryptionProperty
+ :ivar existing_workspaces:
+ :vartype existing_workspaces: list[str]
+ :ivar feature_store_settings: Settings for feature store type workspace.
+ :vartype feature_store_settings:
+ ~azure.mgmt.machinelearningservices.models.FeatureStoreSettings
+ :ivar friendly_name: The friendly name for this workspace. This name in mutable.
+ :vartype friendly_name: str
+ :ivar hbi_workspace: The flag to signal HBI data in the workspace and reduce diagnostic data
+ collected by the service.
+ :vartype hbi_workspace: bool
+ :ivar hub_resource_id:
+ :vartype hub_resource_id: str
+ :ivar image_build_compute: The compute name for image build.
+ :vartype image_build_compute: str
+ :ivar key_vault: ARM id of the key vault associated with this workspace. This cannot be changed
+ once the workspace has been created.
+ :vartype key_vault: str
+ :ivar key_vaults:
+ :vartype key_vaults: list[str]
+ :ivar managed_network: Anything.
+ :vartype managed_network: any
+ :ivar ml_flow_tracking_uri: The URI associated with this workspace that machine learning flow
+ must point at to set up tracking.
+ :vartype ml_flow_tracking_uri: str
+ :ivar notebook_info: The notebook info of Azure ML workspace.
+ :vartype notebook_info: ~azure.mgmt.machinelearningservices.models.NotebookResourceInfo
+ :ivar primary_user_assigned_identity: The user assigned identity resource id that represents
+ the workspace identity.
+ :vartype primary_user_assigned_identity: str
+ :ivar private_endpoint_connections: The list of private endpoint connections in the workspace.
+ :vartype private_endpoint_connections:
+ list[~azure.mgmt.machinelearningservices.models.PrivateEndpointConnection]
+ :ivar private_link_count: Count of private connections in the workspace.
+ :vartype private_link_count: int
+ :ivar provisioning_state: The current deployment state of workspace resource. The
+ provisioningState is to indicate states for resource provisioning. Possible values include:
+ "Unknown", "Updating", "Creating", "Deleting", "Succeeded", "Failed", "Canceled".
+ :vartype provisioning_state: str or
+ ~azure.mgmt.machinelearningservices.models.ProvisioningState
+ :ivar public_network_access: Whether requests from Public Network are allowed. Possible values
+ include: "Enabled", "Disabled".
+ :vartype public_network_access: str or
+ ~azure.mgmt.machinelearningservices.models.PublicNetworkAccessType
+ :ivar service_managed_resources_settings: The service managed resource settings.
+ :vartype service_managed_resources_settings:
+ ~azure.mgmt.machinelearningservices.models.ServiceManagedResourcesSettings
+ :ivar service_provisioned_resource_group: The name of the managed resource group created by
+ workspace RP in customer subscription if the workspace is CMK workspace.
+ :vartype service_provisioned_resource_group: str
+ :ivar shared_private_link_resources: The list of shared private link resources in this
+ workspace.
+ :vartype shared_private_link_resources:
+ list[~azure.mgmt.machinelearningservices.models.SharedPrivateLinkResource]
+ :ivar soft_delete_retention_in_days: Retention time in days after workspace get soft deleted.
+ :vartype soft_delete_retention_in_days: int
+ :ivar storage_account: ARM id of the storage account associated with this workspace. This
+ cannot be changed once the workspace has been created.
+ :vartype storage_account: str
+ :ivar storage_accounts:
+ :vartype storage_accounts: list[str]
+ :ivar storage_hns_enabled: If the storage associated with the workspace has hierarchical
+ namespace(HNS) enabled.
+ :vartype storage_hns_enabled: bool
+ :ivar system_datastores_auth_mode: The auth mode used for accessing the system datastores of
+ the workspace.
+ :vartype system_datastores_auth_mode: str
+ :ivar tenant_id: The tenant id associated with this workspace.
+ :vartype tenant_id: str
+ :ivar v1_legacy_mode: Enabling v1_legacy_mode may prevent you from using features provided by
+ the v2 API.
+ :vartype v1_legacy_mode: bool
+ :ivar workspace_hub_config:
+ :vartype workspace_hub_config: ~azure.mgmt.machinelearningservices.models.WorkspaceHubConfig
+ :ivar workspace_id: The immutable id associated with this workspace.
+ :vartype workspace_id: str
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ 'system_data': {'readonly': True},
+ 'ml_flow_tracking_uri': {'readonly': True},
+ 'notebook_info': {'readonly': True},
+ 'private_endpoint_connections': {'readonly': True},
+ 'private_link_count': {'readonly': True},
+ 'provisioning_state': {'readonly': True},
+ 'service_provisioned_resource_group': {'readonly': True},
+ 'storage_hns_enabled': {'readonly': True},
+ 'tenant_id': {'readonly': True},
+ 'workspace_id': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'system_data': {'key': 'systemData', 'type': 'SystemData'},
+ 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'location': {'key': 'location', 'type': 'str'},
+ 'sku': {'key': 'sku', 'type': 'Sku'},
+ 'tags': {'key': 'tags', 'type': '{str}'},
+ 'allow_public_access_when_behind_vnet': {'key': 'properties.allowPublicAccessWhenBehindVnet', 'type': 'bool'},
+ 'application_insights': {'key': 'properties.applicationInsights', 'type': 'str'},
+ 'associated_workspaces': {'key': 'properties.associatedWorkspaces', 'type': '[str]'},
+ 'container_registries': {'key': 'properties.containerRegistries', 'type': '[str]'},
+ 'container_registry': {'key': 'properties.containerRegistry', 'type': 'str'},
+ 'description': {'key': 'properties.description', 'type': 'str'},
+ 'discovery_url': {'key': 'properties.discoveryUrl', 'type': 'str'},
+ 'enable_data_isolation': {'key': 'properties.enableDataIsolation', 'type': 'bool'},
+ 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperty'},
+ 'existing_workspaces': {'key': 'properties.existingWorkspaces', 'type': '[str]'},
+ 'feature_store_settings': {'key': 'properties.featureStoreSettings', 'type': 'FeatureStoreSettings'},
+ 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
+ 'hbi_workspace': {'key': 'properties.hbiWorkspace', 'type': 'bool'},
+ 'hub_resource_id': {'key': 'properties.hubResourceId', 'type': 'str'},
+ 'image_build_compute': {'key': 'properties.imageBuildCompute', 'type': 'str'},
+ 'key_vault': {'key': 'properties.keyVault', 'type': 'str'},
+ 'key_vaults': {'key': 'properties.keyVaults', 'type': '[str]'},
+ 'managed_network': {'key': 'properties.managedNetwork', 'type': 'object'},
+ 'ml_flow_tracking_uri': {'key': 'properties.mlFlowTrackingUri', 'type': 'str'},
+ 'notebook_info': {'key': 'properties.notebookInfo', 'type': 'NotebookResourceInfo'},
+ 'primary_user_assigned_identity': {'key': 'properties.primaryUserAssignedIdentity', 'type': 'str'},
+ 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'},
+ 'private_link_count': {'key': 'properties.privateLinkCount', 'type': 'int'},
+ 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
+ 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
+ 'service_managed_resources_settings': {'key': 'properties.serviceManagedResourcesSettings', 'type': 'ServiceManagedResourcesSettings'},
+ 'service_provisioned_resource_group': {'key': 'properties.serviceProvisionedResourceGroup', 'type': 'str'},
+ 'shared_private_link_resources': {'key': 'properties.sharedPrivateLinkResources', 'type': '[SharedPrivateLinkResource]'},
+ 'soft_delete_retention_in_days': {'key': 'properties.softDeleteRetentionInDays', 'type': 'int'},
+ 'storage_account': {'key': 'properties.storageAccount', 'type': 'str'},
+ 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[str]'},
+ 'storage_hns_enabled': {'key': 'properties.storageHnsEnabled', 'type': 'bool'},
+ 'system_datastores_auth_mode': {'key': 'properties.systemDatastoresAuthMode', 'type': 'str'},
+ 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'},
+ 'v1_legacy_mode': {'key': 'properties.v1LegacyMode', 'type': 'bool'},
+ 'workspace_hub_config': {'key': 'properties.workspaceHubConfig', 'type': 'WorkspaceHubConfig'},
+ 'workspace_id': {'key': 'properties.workspaceId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ identity: Optional["ManagedServiceIdentity"] = None,
+ kind: Optional[str] = None,
+ location: Optional[str] = None,
+ sku: Optional["Sku"] = None,
+ tags: Optional[Dict[str, str]] = None,
+ allow_public_access_when_behind_vnet: Optional[bool] = None,
+ application_insights: Optional[str] = None,
+ associated_workspaces: Optional[List[str]] = None,
+ container_registries: Optional[List[str]] = None,
+ container_registry: Optional[str] = None,
+ description: Optional[str] = None,
+ discovery_url: Optional[str] = None,
+ enable_data_isolation: Optional[bool] = None,
+ encryption: Optional["EncryptionProperty"] = None,
+ existing_workspaces: Optional[List[str]] = None,
+ feature_store_settings: Optional["FeatureStoreSettings"] = None,
+ friendly_name: Optional[str] = None,
+ hbi_workspace: Optional[bool] = None,
+ hub_resource_id: Optional[str] = None,
+ image_build_compute: Optional[str] = None,
+ key_vault: Optional[str] = None,
+ key_vaults: Optional[List[str]] = None,
+ managed_network: Optional[Any] = None,
+ primary_user_assigned_identity: Optional[str] = None,
+ public_network_access: Optional[Union[str, "PublicNetworkAccessType"]] = None,
+ service_managed_resources_settings: Optional["ServiceManagedResourcesSettings"] = None,
+ shared_private_link_resources: Optional[List["SharedPrivateLinkResource"]] = None,
+ soft_delete_retention_in_days: Optional[int] = None,
+ storage_account: Optional[str] = None,
+ storage_accounts: Optional[List[str]] = None,
+ system_datastores_auth_mode: Optional[str] = None,
+ v1_legacy_mode: Optional[bool] = None,
+ workspace_hub_config: Optional["WorkspaceHubConfig"] = None,
+ **kwargs
+ ):
+ """
+ :keyword identity: Managed service identity (system assigned and/or user assigned identities).
+ :paramtype identity: ~azure.mgmt.machinelearningservices.models.ManagedServiceIdentity
+ :keyword kind:
+ :paramtype kind: str
+ :keyword location:
+ :paramtype location: str
+ :keyword sku: Optional. This field is required to be implemented by the RP because AML is
+ supporting more than one tier.
+ :paramtype sku: ~azure.mgmt.machinelearningservices.models.Sku
+ :keyword tags: A set of tags. Dictionary of :code:`<string>`.
+ :paramtype tags: dict[str, str]
+ :keyword allow_public_access_when_behind_vnet: The flag to indicate whether to allow public
+ access when behind VNet.
+ :paramtype allow_public_access_when_behind_vnet: bool
+ :keyword application_insights: ARM id of the application insights associated with this
+ workspace.
+ :paramtype application_insights: str
+ :keyword associated_workspaces:
+ :paramtype associated_workspaces: list[str]
+ :keyword container_registries:
+ :paramtype container_registries: list[str]
+ :keyword container_registry: ARM id of the container registry associated with this workspace.
+ :paramtype container_registry: str
+ :keyword description: The description of this workspace.
+ :paramtype description: str
+ :keyword discovery_url: Url for the discovery service to identify regional endpoints for
+ machine learning experimentation services.
+ :paramtype discovery_url: str
+ :keyword enable_data_isolation:
+ :paramtype enable_data_isolation: bool
+ :keyword encryption:
+ :paramtype encryption: ~azure.mgmt.machinelearningservices.models.EncryptionProperty
+ :keyword existing_workspaces:
+ :paramtype existing_workspaces: list[str]
+ :keyword feature_store_settings: Settings for feature store type workspace.
+ :paramtype feature_store_settings:
+ ~azure.mgmt.machinelearningservices.models.FeatureStoreSettings
+ :keyword friendly_name: The friendly name for this workspace. This name in mutable.
+ :paramtype friendly_name: str
+ :keyword hbi_workspace: The flag to signal HBI data in the workspace and reduce diagnostic data
+ collected by the service.
+ :paramtype hbi_workspace: bool
+ :keyword hub_resource_id:
+ :paramtype hub_resource_id: str
+ :keyword image_build_compute: The compute name for image build.
+ :paramtype image_build_compute: str
+ :keyword key_vault: ARM id of the key vault associated with this workspace. This cannot be
+ changed once the workspace has been created.
+ :paramtype key_vault: str
+ :keyword key_vaults:
+ :paramtype key_vaults: list[str]
+ :keyword managed_network: Anything.
+ :paramtype managed_network: any
+ :keyword primary_user_assigned_identity: The user assigned identity resource id that represents
+ the workspace identity.
+ :paramtype primary_user_assigned_identity: str
+ :keyword public_network_access: Whether requests from Public Network are allowed. Possible
+ values include: "Enabled", "Disabled".
+ :paramtype public_network_access: str or
+ ~azure.mgmt.machinelearningservices.models.PublicNetworkAccessType
+ :keyword service_managed_resources_settings: The service managed resource settings.
+ :paramtype service_managed_resources_settings:
+ ~azure.mgmt.machinelearningservices.models.ServiceManagedResourcesSettings
+ :keyword shared_private_link_resources: The list of shared private link resources in this
+ workspace.
+ :paramtype shared_private_link_resources:
+ list[~azure.mgmt.machinelearningservices.models.SharedPrivateLinkResource]
+ :keyword soft_delete_retention_in_days: Retention time in days after workspace get soft
+ deleted.
+ :paramtype soft_delete_retention_in_days: int
+ :keyword storage_account: ARM id of the storage account associated with this workspace. This
+ cannot be changed once the workspace has been created.
+ :paramtype storage_account: str
+ :keyword storage_accounts:
+ :paramtype storage_accounts: list[str]
+ :keyword system_datastores_auth_mode: The auth mode used for accessing the system datastores of
+ the workspace.
+ :paramtype system_datastores_auth_mode: str
+ :keyword v1_legacy_mode: Enabling v1_legacy_mode may prevent you from using features provided
+ by the v2 API.
+ :paramtype v1_legacy_mode: bool
+ :keyword workspace_hub_config:
+ :paramtype workspace_hub_config: ~azure.mgmt.machinelearningservices.models.WorkspaceHubConfig
+ """
+ super(Workspace, self).__init__(**kwargs)
+ self.identity = identity
+ self.kind = kind
+ self.location = location
+ self.sku = sku
+ self.tags = tags
+ self.allow_public_access_when_behind_vnet = allow_public_access_when_behind_vnet
+ self.application_insights = application_insights
+ self.associated_workspaces = associated_workspaces
+ self.container_registries = container_registries
+ self.container_registry = container_registry
+ self.description = description
+ self.discovery_url = discovery_url
+ self.enable_data_isolation = enable_data_isolation
+ self.encryption = encryption
+ self.existing_workspaces = existing_workspaces
+ self.feature_store_settings = feature_store_settings
+ self.friendly_name = friendly_name
+ self.hbi_workspace = hbi_workspace
+ self.hub_resource_id = hub_resource_id
+ self.image_build_compute = image_build_compute
+ self.key_vault = key_vault
+ self.key_vaults = key_vaults
+ self.managed_network = managed_network
+ self.ml_flow_tracking_uri = None
+ self.notebook_info = None
+ self.primary_user_assigned_identity = primary_user_assigned_identity
+ self.private_endpoint_connections = None
+ self.private_link_count = None
+ self.provisioning_state = None
+ self.public_network_access = public_network_access
+ self.service_managed_resources_settings = service_managed_resources_settings
+ self.service_provisioned_resource_group = None
+ self.shared_private_link_resources = shared_private_link_resources
+ self.soft_delete_retention_in_days = soft_delete_retention_in_days
+ self.storage_account = storage_account
+ self.storage_accounts = storage_accounts
+ self.storage_hns_enabled = None
+ self.system_datastores_auth_mode = system_datastores_auth_mode
+ self.tenant_id = None
+ self.v1_legacy_mode = v1_legacy_mode
+ self.workspace_hub_config = workspace_hub_config
+ self.workspace_id = None
+
+
+class WorkspaceHubConfig(msrest.serialization.Model):
+ """WorkspaceHubConfig.
+
+ :ivar additional_workspace_storage_accounts:
+ :vartype additional_workspace_storage_accounts: list[str]
+ :ivar default_workspace_resource_group:
+ :vartype default_workspace_resource_group: str
+ """
+
+ _attribute_map = {
+ 'additional_workspace_storage_accounts': {'key': 'additionalWorkspaceStorageAccounts', 'type': '[str]'},
+ 'default_workspace_resource_group': {'key': 'defaultWorkspaceResourceGroup', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ additional_workspace_storage_accounts: Optional[List[str]] = None,
+ default_workspace_resource_group: Optional[str] = None,
+ **kwargs
+ ):
+ """
+ :keyword additional_workspace_storage_accounts:
+ :paramtype additional_workspace_storage_accounts: list[str]
+ :keyword default_workspace_resource_group:
+ :paramtype default_workspace_resource_group: str
+ """
+ super(WorkspaceHubConfig, self).__init__(**kwargs)
+ self.additional_workspace_storage_accounts = additional_workspace_storage_accounts
+ self.default_workspace_resource_group = default_workspace_resource_group
+
+
+class WorkspacePrivateEndpointResource(msrest.serialization.Model):
+ """WorkspacePrivateEndpointResource.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id: e.g.
+ /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}.
+ :vartype id: str
+ :ivar subnet_arm_id: The subnetId that the private endpoint is connected to.
+ :vartype subnet_arm_id: str
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'subnet_arm_id': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'subnet_arm_id': {'key': 'subnetArmId', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ """
+ """
+ super(WorkspacePrivateEndpointResource, self).__init__(**kwargs)
+ self.id = None
+ self.subnet_arm_id = None
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/operations/__init__.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/operations/__init__.py
new file mode 100644
index 00000000..21534b1a
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/operations/__init__.py
@@ -0,0 +1,13 @@
+# 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 ._workspaces_operations import WorkspacesOperations
+
+__all__ = [
+ 'WorkspacesOperations',
+]
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/operations/_workspaces_operations.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/operations/_workspaces_operations.py
new file mode 100644
index 00000000..e1a7fd65
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/operations/_workspaces_operations.py
@@ -0,0 +1,237 @@
+# pylint: disable=too-many-lines
+# 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 typing import TYPE_CHECKING
+
+from msrest import Serializer
+
+from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
+from azure.core.pipeline import PipelineResponse
+from azure.core.pipeline.transport import HttpResponse
+from azure.core.polling import LROPoller, NoPolling, PollingMethod
+from azure.core.rest import HttpRequest
+from azure.core.tracing.decorator import distributed_trace
+from azure.mgmt.core.exceptions import ARMErrorFormat
+from azure.mgmt.core.polling.arm_polling import ARMPolling
+
+from .. import models as _models
+from .._vendor import _convert_request, _format_url_section
+
+if TYPE_CHECKING:
+ # pylint: disable=unused-import,ungrouped-imports
+ from typing import Any, Callable, Dict, Optional, TypeVar, Union
+ T = TypeVar('T')
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
+
+_SERIALIZER = Serializer()
+_SERIALIZER.client_side_validation = False
+# fmt: off
+
+def build_hub_join_request_initial(
+ subscription_id, # type: str
+ resource_group_name, # type: str
+ workspace_name, # type: str
+ project_workspace_name, # type: str
+ **kwargs # type: Any
+):
+ # type: (...) -> HttpRequest
+ api_version = kwargs.pop('api_version', "2023-06-01-preview") # type: str
+ content_type = kwargs.pop('content_type', None) # type: Optional[str]
+
+ accept = "application/json"
+ # Construct URL
+ _url = kwargs.pop("template_url", "/rp/workspaces/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/join/{projectWorkspaceName}") # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1),
+ "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
+ "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str', pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$'),
+ "projectWorkspaceName": _SERIALIZER.url("project_workspace_name", project_workspace_name, 'str'),
+ }
+
+ _url = _format_url_section(_url, **path_format_arguments)
+
+ # Construct parameters
+ _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any]
+ _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str')
+
+ # Construct headers
+ _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any]
+ if content_type is not None:
+ _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str')
+ _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str')
+
+ return HttpRequest(
+ method="PUT",
+ url=_url,
+ params=_query_parameters,
+ headers=_header_parameters,
+ **kwargs
+ )
+
+# fmt: on
+class WorkspacesOperations(object):
+ """WorkspacesOperations operations.
+
+ You should not instantiate this class directly. Instead, you should create a Client instance that
+ instantiates it for you and attaches it as an attribute.
+
+ :ivar models: Alias to model classes used in this operation group.
+ :type models: ~azure.mgmt.machinelearningservices.models
+ :param client: Client for service requests.
+ :param config: Configuration of service client.
+ :param serializer: An object model serializer.
+ :param deserializer: An object model deserializer.
+ """
+
+ models = _models
+
+ def __init__(self, client, config, serializer, deserializer):
+ self._client = client
+ self._serialize = serializer
+ self._deserialize = deserializer
+ self._config = config
+
+ def _hub_join_initial(
+ self,
+ resource_group_name, # type: str
+ workspace_name, # type: str
+ project_workspace_name, # type: str
+ body, # type: "_models.Workspace"
+ **kwargs # type: Any
+ ):
+ # type: (...) -> Optional["_models.Workspace"]
+ cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Workspace"]]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+
+ api_version = kwargs.pop('api_version', "2023-06-01-preview") # type: str
+ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]
+
+ _json = self._serialize.body(body, 'Workspace')
+
+ request = build_hub_join_request_initial(
+ subscription_id=self._config.subscription_id,
+ resource_group_name=resource_group_name,
+ workspace_name=workspace_name,
+ project_workspace_name=project_workspace_name,
+ api_version=api_version,
+ content_type=content_type,
+ json=_json,
+ template_url=self._hub_join_initial.metadata['url'],
+ )
+ request = _convert_request(request)
+ request.url = self._client.format_url(request.url)
+
+ pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access
+ request,
+ stream=False,
+ **kwargs
+ )
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 202]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, error_format=ARMErrorFormat)
+
+ deserialized = None
+ response_headers = {}
+ if response.status_code == 200:
+ deserialized = self._deserialize('Workspace', pipeline_response)
+
+ if response.status_code == 202:
+ response_headers['Location']=self._deserialize('str', response.headers.get('Location'))
+ response_headers['Retry-After']=self._deserialize('int', response.headers.get('Retry-After'))
+
+
+ if cls:
+ return cls(pipeline_response, deserialized, response_headers)
+
+ return deserialized
+
+ _hub_join_initial.metadata = {'url': "/rp/workspaces/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/join/{projectWorkspaceName}"} # type: ignore
+
+
+ @distributed_trace
+ def begin_hub_join(
+ self,
+ resource_group_name, # type: str
+ workspace_name, # type: str
+ project_workspace_name, # type: str
+ body, # type: "_models.Workspace"
+ **kwargs # type: Any
+ ):
+ # type: (...) -> LROPoller["_models.Workspace"]
+ """Create project workspace under workspaceHub's default resource group.
+
+ Create project workspace under workspaceHub's default resource group.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ :type resource_group_name: str
+ :param workspace_name: Azure Machine Learning Workspace Name.
+ :type workspace_name: str
+ :param project_workspace_name: Name of the project workspace.
+ :type project_workspace_name: str
+ :param body:
+ :type body: ~azure.mgmt.machinelearningservices.models.Workspace
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :keyword str continuation_token: A continuation token to restart a poller from a saved state.
+ :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
+ operation to not poll, or pass in your own initialized polling object for a personal polling
+ strategy.
+ :paramtype polling: bool or ~azure.core.polling.PollingMethod
+ :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
+ Retry-After header is present.
+ :return: An instance of LROPoller that returns either Workspace or the result of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.machinelearningservices.models.Workspace]
+ :raises: ~azure.core.exceptions.HttpResponseError
+ """
+ api_version = kwargs.pop('api_version', "2023-06-01-preview") # type: str
+ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]
+ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
+ cls = kwargs.pop('cls', None) # type: ClsType["_models.Workspace"]
+ lro_delay = kwargs.pop(
+ 'polling_interval',
+ self._config.polling_interval
+ )
+ cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
+ if cont_token is None:
+ raw_result = self._hub_join_initial(
+ resource_group_name=resource_group_name,
+ workspace_name=workspace_name,
+ project_workspace_name=project_workspace_name,
+ body=body,
+ api_version=api_version,
+ content_type=content_type,
+ cls=lambda x,y,z: x,
+ **kwargs
+ )
+ kwargs.pop('error_map', None)
+
+ def get_long_running_output(pipeline_response):
+ response = pipeline_response.http_response
+ deserialized = self._deserialize('Workspace', pipeline_response)
+ if cls:
+ return cls(pipeline_response, deserialized, {})
+ return deserialized
+
+
+ if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **kwargs)
+ elif polling is False: polling_method = NoPolling()
+ else: polling_method = polling
+ if cont_token:
+ return LROPoller.from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output
+ )
+ return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
+
+ begin_hub_join.metadata = {'url': "/rp/workspaces/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/join/{projectWorkspaceName}"} # type: ignore
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/py.typed b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/py.typed
new file mode 100644
index 00000000..e5aff4f8
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_restclient/workspace_dataplane/py.typed
@@ -0,0 +1 @@
+# Marker file for PEP 561. \ No newline at end of file