Skip to content

Commit

Permalink
CodeGen from PR 23449 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Release machinelearningservices microsoft.machine learning services 2023 04 01 preview (Azure#23449)

* Adds base for updating Microsoft.MachineLearningServices from version preview/2023-02-01-preview to version 2023-04-01-preview

* Updates readme

* Updates API version in new specs and examples

* [Preview] Bring Back Scheduled Shutdown MLC models (Azure#23040)

* [Preview] Bring Back Scheduled Shutdown MLC models

* update example json

---------

Co-authored-by: Naman Agarwal <naagarw@microsoft.com>

* add minLength:1 prop to required strings (Azure#23108)

* add parameter enableDataIsolation to workspace properties (Azure#23061)

* add parameter enableDataIsolation to workspace properties

* minor change to re-run the test pipelines

* minor comment change to trigger the test pipeline again

---------

Co-authored-by: Mingwei He <mingweihe@microsoft.com>

* expose connection expiryTime in 2023-04-01-preview swagger (Azure#23118)

* Add Workspace Managed Network Swagger (Azure#23283)

* add managed network swagger

* fix validation errors

* address ARM comments

* fix example

* do not flatten outbound rules, need nested props

---------

Co-authored-by: Josh Harrington <joharrington@microsoft.com>

* Add Registries 2023-04-01-Preview Swagger (Azure#23163)

* x

* fix spellcheck

* update preview examples

* update examples

* fix for swagger modelvalidation gate

* examples should be in camelCase

* more fixes for pr gates

* fix syntax

* add registryNameParameter

* addressing comments

* fix one more location property

* address comments

* update PrivateEndpointConnectionProperties

* git didn't push all of my changes

* fix circular dependency

* update

* PATCH operation should have sku, identity properties

---------

Co-authored-by: Komal Yadav <komalyadav@microsoft.com>

* MFE April-preview 2023 staging (Azure#23165)

* update mfe.json to latest

* update preview examples

* make it pretty

* createOrUpload example touch-ups

* pretty check

* POST pendingUpload lint violation, description, and array

* spell check fixes

* featurestore updates + notification patch updates to align with jobs

* fix feature examples

* rename PendingUpload -> startPendingUpload + better description

* prettier feature get/list.json

* update Job-Update example

* update descriptions

* x-ms-secret-true, remove wasbs and pattern for registries

* update examples to remove wasbsUri

* update registry refrence and add pattern to featuresetname

* temporarily add in registry reference

* one more pattern add-on for featuresetname

* remove wasbs since that is no longer a part of PR

* bump

* add empty secrets to examples - can show object but hide secret itself

* original-uri -> azure-async-operation

* createOrGetPendingUpload -> createOrGetStartPendingUpload

* add ms-secret to uri to keep it from breaking relative to GA

---------

Co-authored-by: Kayla Ames <kaseager@microsoft.com>

* [HUB] update team configuration related properties (Azure#23285)

* [HUB] update team configuration related properties

* Update description

* fix merge issue

* update workspace get operation example with managenetwork included (Azure#23411)

* custom words merge

* swap to original-uri

* v5->v3

* registryRenames

* mlc update to align with v3 types

* finish updating examples

---------

Co-authored-by: Naman Agarwal <namanag16@gmail.com>
Co-authored-by: Naman Agarwal <naagarw@microsoft.com>
Co-authored-by: Teddy Todorov <thtodoro@microsoft.com>
Co-authored-by: Ming <hemingwei2017@gmail.com>
Co-authored-by: Mingwei He <mingweihe@microsoft.com>
Co-authored-by: jiewe <127981966+jiewe@users.noreply.github.com>
Co-authored-by: Josh Harrington <53531213+joshharrin@users.noreply.github.com>
Co-authored-by: Josh Harrington <joharrington@microsoft.com>
Co-authored-by: Komal Yadav <23komal.yadav23@gmail.com>
Co-authored-by: Komal Yadav <komalyadav@microsoft.com>
Co-authored-by: Kayla Ames <kaseager@microsoft.com>
Co-authored-by: ZhidaLiu <zhili@microsoft.com>
  • Loading branch information
13 people committed Apr 18, 2023
1 parent 4376081 commit a828fed
Show file tree
Hide file tree
Showing 165 changed files with 53,013 additions and 8,039 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "b32e1896f30e6ea155449cb49719a6286e32b961",
"commit": "4b17bff0ac8be6195cedad3cb98fb32e88d0f7bb",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.2.7",
"@autorest/python@6.4.8",
"@autorest/modelerfour@4.24.3"
],
"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/modelerfour@4.24.3 --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=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.4.8 --use=@autorest/modelerfour@4.24.3 --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
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-04-01-preview". 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-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@
DatastoresOperations,
EnvironmentContainersOperations,
EnvironmentVersionsOperations,
FeaturesOperations,
FeaturesetContainersOperations,
FeaturesetVersionsOperations,
FeaturestoreEntityContainersOperations,
FeaturestoreEntityVersionsOperations,
JobsOperations,
LabelingJobsOperations,
ManagedNetworkProvisionsOperations,
ManagedNetworkSettingsRuleOperations,
ModelContainersOperations,
ModelVersionsOperations,
OnlineDeploymentsOperations,
Expand All @@ -37,6 +45,17 @@
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
QuotasOperations,
RegistriesOperations,
RegistryCodeContainersOperations,
RegistryCodeVersionsOperations,
RegistryComponentContainersOperations,
RegistryComponentVersionsOperations,
RegistryDataContainersOperations,
RegistryDataVersionsOperations,
RegistryEnvironmentContainersOperations,
RegistryEnvironmentVersionsOperations,
RegistryModelContainersOperations,
RegistryModelVersionsOperations,
SchedulesOperations,
UsagesOperations,
VirtualMachineSizesOperations,
Expand Down Expand Up @@ -75,6 +94,42 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
:ivar workspace_connections: WorkspaceConnectionsOperations operations
:vartype workspace_connections:
azure.mgmt.machinelearningservices.operations.WorkspaceConnectionsOperations
:ivar managed_network_settings_rule: ManagedNetworkSettingsRuleOperations operations
:vartype managed_network_settings_rule:
azure.mgmt.machinelearningservices.operations.ManagedNetworkSettingsRuleOperations
:ivar managed_network_provisions: ManagedNetworkProvisionsOperations operations
:vartype managed_network_provisions:
azure.mgmt.machinelearningservices.operations.ManagedNetworkProvisionsOperations
:ivar registry_code_containers: RegistryCodeContainersOperations operations
:vartype registry_code_containers:
azure.mgmt.machinelearningservices.operations.RegistryCodeContainersOperations
:ivar registry_code_versions: RegistryCodeVersionsOperations operations
:vartype registry_code_versions:
azure.mgmt.machinelearningservices.operations.RegistryCodeVersionsOperations
:ivar registry_component_containers: RegistryComponentContainersOperations operations
:vartype registry_component_containers:
azure.mgmt.machinelearningservices.operations.RegistryComponentContainersOperations
:ivar registry_component_versions: RegistryComponentVersionsOperations operations
:vartype registry_component_versions:
azure.mgmt.machinelearningservices.operations.RegistryComponentVersionsOperations
:ivar registry_data_containers: RegistryDataContainersOperations operations
:vartype registry_data_containers:
azure.mgmt.machinelearningservices.operations.RegistryDataContainersOperations
:ivar registry_data_versions: RegistryDataVersionsOperations operations
:vartype registry_data_versions:
azure.mgmt.machinelearningservices.operations.RegistryDataVersionsOperations
:ivar registry_environment_containers: RegistryEnvironmentContainersOperations operations
:vartype registry_environment_containers:
azure.mgmt.machinelearningservices.operations.RegistryEnvironmentContainersOperations
:ivar registry_environment_versions: RegistryEnvironmentVersionsOperations operations
:vartype registry_environment_versions:
azure.mgmt.machinelearningservices.operations.RegistryEnvironmentVersionsOperations
:ivar registry_model_containers: RegistryModelContainersOperations operations
:vartype registry_model_containers:
azure.mgmt.machinelearningservices.operations.RegistryModelContainersOperations
:ivar registry_model_versions: RegistryModelVersionsOperations operations
:vartype registry_model_versions:
azure.mgmt.machinelearningservices.operations.RegistryModelVersionsOperations
:ivar batch_endpoints: BatchEndpointsOperations operations
:vartype batch_endpoints:
azure.mgmt.machinelearningservices.operations.BatchEndpointsOperations
Expand Down Expand Up @@ -105,8 +160,24 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
:ivar environment_versions: EnvironmentVersionsOperations operations
:vartype environment_versions:
azure.mgmt.machinelearningservices.operations.EnvironmentVersionsOperations
:ivar featureset_containers: FeaturesetContainersOperations operations
:vartype featureset_containers:
azure.mgmt.machinelearningservices.operations.FeaturesetContainersOperations
:ivar features: FeaturesOperations operations
:vartype features: azure.mgmt.machinelearningservices.operations.FeaturesOperations
:ivar featureset_versions: FeaturesetVersionsOperations operations
:vartype featureset_versions:
azure.mgmt.machinelearningservices.operations.FeaturesetVersionsOperations
:ivar featurestore_entity_containers: FeaturestoreEntityContainersOperations operations
:vartype featurestore_entity_containers:
azure.mgmt.machinelearningservices.operations.FeaturestoreEntityContainersOperations
:ivar featurestore_entity_versions: FeaturestoreEntityVersionsOperations operations
:vartype featurestore_entity_versions:
azure.mgmt.machinelearningservices.operations.FeaturestoreEntityVersionsOperations
:ivar jobs: JobsOperations operations
:vartype jobs: azure.mgmt.machinelearningservices.operations.JobsOperations
:ivar labeling_jobs: LabelingJobsOperations operations
:vartype labeling_jobs: azure.mgmt.machinelearningservices.operations.LabelingJobsOperations
:ivar model_containers: ModelContainersOperations operations
:vartype model_containers:
azure.mgmt.machinelearningservices.operations.ModelContainersOperations
Expand All @@ -120,6 +191,8 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
azure.mgmt.machinelearningservices.operations.OnlineDeploymentsOperations
:ivar schedules: SchedulesOperations operations
:vartype schedules: azure.mgmt.machinelearningservices.operations.SchedulesOperations
:ivar registries: RegistriesOperations operations
:vartype registries: azure.mgmt.machinelearningservices.operations.RegistriesOperations
:ivar workspace_features: WorkspaceFeaturesOperations operations
:vartype workspace_features:
azure.mgmt.machinelearningservices.operations.WorkspaceFeaturesOperations
Expand All @@ -129,8 +202,8 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-04-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.
Expand All @@ -146,7 +219,7 @@ def __init__(
self._config = MachineLearningServicesMgmtClientConfiguration(
credential=credential, subscription_id=subscription_id, **kwargs
)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
self._client: ARMPipelineClient = 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)
Expand All @@ -169,6 +242,42 @@ def __init__(
self.workspace_connections = WorkspaceConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.managed_network_settings_rule = ManagedNetworkSettingsRuleOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.managed_network_provisions = ManagedNetworkProvisionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_code_containers = RegistryCodeContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_code_versions = RegistryCodeVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_component_containers = RegistryComponentContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_component_versions = RegistryComponentVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_data_containers = RegistryDataContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_data_versions = RegistryDataVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_environment_containers = RegistryEnvironmentContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_environment_versions = RegistryEnvironmentVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_model_containers = RegistryModelContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.registry_model_versions = RegistryModelVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.batch_endpoints = BatchEndpointsOperations(self._client, self._config, self._serialize, self._deserialize)
self.batch_deployments = BatchDeploymentsOperations(
self._client, self._config, self._serialize, self._deserialize
Expand All @@ -190,7 +299,21 @@ def __init__(
self.environment_versions = EnvironmentVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.featureset_containers = FeaturesetContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.features = FeaturesOperations(self._client, self._config, self._serialize, self._deserialize)
self.featureset_versions = FeaturesetVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.featurestore_entity_containers = FeaturestoreEntityContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.featurestore_entity_versions = FeaturestoreEntityVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.labeling_jobs = LabelingJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.model_containers = ModelContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -202,6 +325,7 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.schedules = SchedulesOperations(self._client, self._config, self._serialize, self._deserialize)
self.registries = RegistriesOperations(self._client, self._config, self._serialize, self._deserialize)
self.workspace_features = WorkspaceFeaturesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -235,5 +359,5 @@ def __enter__(self) -> "MachineLearningServicesMgmtClient":
self._client.__enter__()
return self

def __exit__(self, *exc_details) -> None:
def __exit__(self, *exc_details: Any) -> None:
self._client.__exit__(*exc_details)
Loading

0 comments on commit a828fed

Please sign in to comment.