Skip to content

Commit

Permalink
[AutoRelease] t2-machinelearningservices-2023-05-12-76717(can only be…
Browse files Browse the repository at this point in the history
… merged by SDK owner) (#30376)

* code and test

* Update CHANGELOG.md

* Update _version.py

---------

Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Yuchao Yan <[email protected]>
  • Loading branch information
azure-sdk and msyyc authored May 12, 2023
1 parent 7049d61 commit 12142fd
Show file tree
Hide file tree
Showing 277 changed files with 31,336 additions and 3,889 deletions.
139 changes: 139 additions & 0 deletions sdk/machinelearning/azure-mgmt-machinelearningservices/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,144 @@
# Release History

## 2.0.0b2 (2023-05-12)

### Features Added

- Added operation PrivateEndpointConnectionsOperations.create_or_update
- Added operation PrivateEndpointConnectionsOperations.delete
- Added operation PrivateEndpointConnectionsOperations.list
- Added operation PrivateLinkResourcesOperations.list
- Added operation WorkspacesOperations.begin_diagnose
- Added operation WorkspacesOperations.begin_prepare_notebook
- Added operation WorkspacesOperations.list_notebook_access_token
- Added operation WorkspacesOperations.list_notebook_keys
- Added operation WorkspacesOperations.list_outbound_network_dependencies_endpoints
- Added operation WorkspacesOperations.list_storage_account_keys
- Added operation group BatchDeploymentsOperations
- Added operation group BatchEndpointsOperations
- Added operation group CodeContainersOperations
- Added operation group CodeVersionsOperations
- Added operation group ComponentContainersOperations
- Added operation group ComponentVersionsOperations
- Added operation group ComputeOperations
- Added operation group DataContainersOperations
- Added operation group DataVersionsOperations
- Added operation group DatastoresOperations
- Added operation group EnvironmentContainersOperations
- Added operation group EnvironmentVersionsOperations
- Added operation group JobsOperations
- Added operation group ModelContainersOperations
- Added operation group ModelVersionsOperations
- Added operation group OnlineDeploymentsOperations
- Added operation group OnlineEndpointsOperations
- Added operation group RegistriesOperations
- Added operation group RegistryCodeContainersOperations
- Added operation group RegistryCodeVersionsOperations
- Added operation group RegistryComponentContainersOperations
- Added operation group RegistryComponentVersionsOperations
- Added operation group RegistryDataContainersOperations
- Added operation group RegistryDataVersionsOperations
- Added operation group RegistryEnvironmentContainersOperations
- Added operation group RegistryEnvironmentVersionsOperations
- Added operation group RegistryModelContainersOperations
- Added operation group RegistryModelVersionsOperations
- Added operation group SchedulesOperations
- Model AKS has a new parameter disable_local_auth
- Model AmlCompute has a new parameter disable_local_auth
- Model AmlComputeProperties has a new parameter enable_node_public_ip
- Model AmlComputeProperties has a new parameter isolated_network
- Model AmlComputeProperties has a new parameter os_type
- Model AmlComputeProperties has a new parameter property_bag
- Model AmlComputeProperties has a new parameter virtual_machine_image
- Model ClusterUpdateParameters has a new parameter properties
- Model Compute has a new parameter disable_local_auth
- Model ComputeInstance has a new parameter disable_local_auth
- Model ComputeInstanceLastOperation has a new parameter operation_trigger
- Model ComputeInstanceProperties has a new parameter compute_instance_authorization_type
- Model ComputeInstanceProperties has a new parameter containers
- Model ComputeInstanceProperties has a new parameter custom_services
- Model ComputeInstanceProperties has a new parameter data_disks
- Model ComputeInstanceProperties has a new parameter data_mounts
- Model ComputeInstanceProperties has a new parameter enable_node_public_ip
- Model ComputeInstanceProperties has a new parameter os_image_metadata
- Model ComputeInstanceProperties has a new parameter personal_compute_instance_settings
- Model ComputeInstanceProperties has a new parameter schedules
- Model ComputeInstanceProperties has a new parameter setup_scripts
- Model ComputeInstanceProperties has a new parameter versions
- Model ComputeResource has a new parameter system_data
- Model DataFactory has a new parameter disable_local_auth
- Model DataLakeAnalytics has a new parameter disable_local_auth
- Model Databricks has a new parameter disable_local_auth
- Model DatabricksProperties has a new parameter workspace_url
- Model EncryptionProperty has a new parameter identity
- Model ErrorDetail has a new parameter additional_info
- Model ErrorDetail has a new parameter details
- Model ErrorDetail has a new parameter target
- Model ErrorResponse has a new parameter error
- Model HDInsight has a new parameter disable_local_auth
- Model PrivateEndpointConnection has a new parameter identity
- Model PrivateEndpointConnection has a new parameter location
- Model PrivateEndpointConnection has a new parameter sku
- Model PrivateEndpointConnection has a new parameter system_data
- Model PrivateEndpointConnection has a new parameter tags
- Model PrivateLinkResource has a new parameter system_data
- Model QuotaUpdateParameters has a new parameter location
- Model Resource has a new parameter system_data
- Model ResourceQuota has a new parameter aml_workspace_location
- Model Sku has a new parameter capacity
- Model Sku has a new parameter family
- Model Sku has a new parameter size
- Model SslConfiguration has a new parameter leaf_domain_label
- Model SslConfiguration has a new parameter overwrite_existing_domain
- Model Usage has a new parameter aml_workspace_location
- Model VirtualMachine has a new parameter disable_local_auth
- Model VirtualMachineSizeListResult has a new parameter value
- Model Workspace has a new parameter ml_flow_tracking_uri
- Model Workspace has a new parameter primary_user_assigned_identity
- Model Workspace has a new parameter public_network_access
- Model Workspace has a new parameter service_managed_resources_settings
- Model Workspace has a new parameter storage_hns_enabled
- Model Workspace has a new parameter system_data
- Model Workspace has a new parameter tenant_id
- Model Workspace has a new parameter v1_legacy_mode
- Model WorkspaceUpdateParameters has a new parameter application_insights
- Model WorkspaceUpdateParameters has a new parameter container_registry
- Model WorkspaceUpdateParameters has a new parameter identity
- Model WorkspaceUpdateParameters has a new parameter image_build_compute
- Model WorkspaceUpdateParameters has a new parameter primary_user_assigned_identity
- Model WorkspaceUpdateParameters has a new parameter public_network_access
- Model WorkspaceUpdateParameters has a new parameter service_managed_resources_settings
- Operation WorkspacesOperations.list_by_resource_group has a new optional parameter skip
- Operation WorkspacesOperations.list_by_subscription has a new optional parameter skip

### Breaking Changes

- Client name is changed from `AzureMachineLearningWorkspaces` to `MachineLearningServicesMgmtClient`
- Model AmlComputeNodesInformation no longer has parameter compute_type
- Model ClusterUpdateParameters no longer has parameter scale_settings
- Model ErrorResponse no longer has parameter code
- Model ErrorResponse no longer has parameter details
- Model ErrorResponse no longer has parameter message
- Model Resource no longer has parameter identity
- Model Resource no longer has parameter location
- Model Resource no longer has parameter sku
- Model Resource no longer has parameter tags
- Model VirtualMachineSizeListResult no longer has parameter aml_compute
- Model Workspace no longer has parameter creation_time
- Operation VirtualMachineSizesOperations.list no longer has parameter compute_type
- Operation VirtualMachineSizesOperations.list no longer has parameter recommended
- Operation WorkspacesOperations.list_by_resource_group no longer has parameter skiptoken
- Operation WorkspacesOperations.list_by_subscription no longer has parameter skiptoken
- Parameter name of model Sku is now required
- Removed operation PrivateEndpointConnectionsOperations.begin_delete
- Removed operation PrivateEndpointConnectionsOperations.put
- Removed operation PrivateLinkResourcesOperations.list_by_workspace
- Removed operation group AzureMachineLearningWorkspacesOperationsMixin
- Removed operation group MachineLearningComputeOperations
- Removed operation group NotebooksOperations
- Renamed operation WorkspacesOperations.resync_keys to WorkspacesOperations.begin_resync_keys
- Renamed operation WorkspacesOperations.update to WorkspacesOperations.begin_update

## 2.0.0b1 (2022-11-17)

### Features Added
Expand Down
50 changes: 43 additions & 7 deletions sdk/machinelearning/azure-mgmt-machinelearningservices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,53 @@ For a more complete view of Azure libraries, see the [azure sdk python release](

_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_

# Usage
## Getting started

### Prerequisites

To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)

For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
Code samples for this package can be found at [Machine Learning Services Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/machinelearningservices)
- Python 3.7+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package

# Provide Feedback
```bash
pip install azure-mgmt-machinelearningservices
pip install azure-identity
```

### Authentication

By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, client can be authenticated by following code:

```python
from azure.identity import DefaultAzureCredential
from azure.mgmt.machinelearningservices import MachineLearningServicesMgmtClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = MachineLearningServicesMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
```

## Examples

Code samples for this package can be found at:
- [Search Machine Learning Services Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)


## Troubleshooting

## Next steps

## Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "b32e1896f30e6ea155449cb49719a6286e32b961",
"commit": "c7daa3d35baaaabece0dbc6f731eadbe426973b9",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.2.7",
"@autorest/python@6.4.12",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/machinelearningservices/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/machinelearningservices/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.12 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"readme": "specification/machinelearningservices/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

import sys
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
Expand All @@ -15,11 +14,6 @@

from ._version import VERSION

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential
Expand All @@ -35,14 +29,14 @@ class MachineLearningServicesMgmtClientConfiguration(Configuration): # pylint:
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(MachineLearningServicesMgmtClientConfiguration, self).__init__(**kwargs)
api_version: Literal["2022-10-01"] = kwargs.pop("api_version", "2022-10-01")
api_version: str = kwargs.pop("api_version", "2023-04-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Loading

0 comments on commit 12142fd

Please sign in to comment.