Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-machinelearningservices] Addressed comments, added x-ms-long-running-operation to a patch call #2427

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "b32e1896f30e6ea155449cb49719a6286e32b961",
"commit": "49c2c5db0e83b80873b2759d456172dd85d15f3c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.2.7",
"@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.2.7 --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 @@ -35,14 +35,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 "2022-12-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: Literal["2022-12-01-preview"] = kwargs.pop("api_version", "2022-12-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 @@ -29,6 +29,7 @@
EnvironmentContainersOperations,
EnvironmentVersionsOperations,
JobsOperations,
LabelingJobsOperations,
ModelContainersOperations,
ModelVersionsOperations,
OnlineDeploymentsOperations,
Expand All @@ -37,6 +38,15 @@
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
QuotasOperations,
RegistriesOperations,
RegistryCodeContainersOperations,
RegistryCodeVersionsOperations,
RegistryComponentContainersOperations,
RegistryComponentVersionsOperations,
RegistryEnvironmentContainersOperations,
RegistryEnvironmentVersionsOperations,
RegistryModelContainersOperations,
RegistryModelVersionsOperations,
SchedulesOperations,
UsagesOperations,
VirtualMachineSizesOperations,
Expand Down Expand Up @@ -75,6 +85,30 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
:ivar workspace_connections: WorkspaceConnectionsOperations operations
:vartype workspace_connections:
azure.mgmt.machinelearningservices.operations.WorkspaceConnectionsOperations
: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_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 @@ -107,6 +141,8 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
azure.mgmt.machinelearningservices.operations.EnvironmentVersionsOperations
: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 +156,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 +167,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 "2022-12-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 Down Expand Up @@ -169,6 +207,30 @@ def __init__(
self.workspace_connections = WorkspaceConnectionsOperations(
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_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 @@ -191,6 +253,7 @@ def __init__(
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 +265,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
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.0.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ class MachineLearningServicesMgmtClientConfiguration(Configuration): # pylint:
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
: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 "2022-12-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(MachineLearningServicesMgmtClientConfiguration, self).__init__(**kwargs)
api_version: Literal["2022-10-01"] = kwargs.pop("api_version", "2022-10-01")
api_version: Literal["2022-12-01-preview"] = kwargs.pop("api_version", "2022-12-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 @@ -29,6 +29,7 @@
EnvironmentContainersOperations,
EnvironmentVersionsOperations,
JobsOperations,
LabelingJobsOperations,
ModelContainersOperations,
ModelVersionsOperations,
OnlineDeploymentsOperations,
Expand All @@ -37,6 +38,15 @@
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
QuotasOperations,
RegistriesOperations,
RegistryCodeContainersOperations,
RegistryCodeVersionsOperations,
RegistryComponentContainersOperations,
RegistryComponentVersionsOperations,
RegistryEnvironmentContainersOperations,
RegistryEnvironmentVersionsOperations,
RegistryModelContainersOperations,
RegistryModelVersionsOperations,
SchedulesOperations,
UsagesOperations,
VirtualMachineSizesOperations,
Expand Down Expand Up @@ -75,6 +85,30 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
:ivar workspace_connections: WorkspaceConnectionsOperations operations
:vartype workspace_connections:
azure.mgmt.machinelearningservices.aio.operations.WorkspaceConnectionsOperations
:ivar registry_code_containers: RegistryCodeContainersOperations operations
:vartype registry_code_containers:
azure.mgmt.machinelearningservices.aio.operations.RegistryCodeContainersOperations
:ivar registry_code_versions: RegistryCodeVersionsOperations operations
:vartype registry_code_versions:
azure.mgmt.machinelearningservices.aio.operations.RegistryCodeVersionsOperations
:ivar registry_component_containers: RegistryComponentContainersOperations operations
:vartype registry_component_containers:
azure.mgmt.machinelearningservices.aio.operations.RegistryComponentContainersOperations
:ivar registry_component_versions: RegistryComponentVersionsOperations operations
:vartype registry_component_versions:
azure.mgmt.machinelearningservices.aio.operations.RegistryComponentVersionsOperations
:ivar registry_environment_containers: RegistryEnvironmentContainersOperations operations
:vartype registry_environment_containers:
azure.mgmt.machinelearningservices.aio.operations.RegistryEnvironmentContainersOperations
:ivar registry_environment_versions: RegistryEnvironmentVersionsOperations operations
:vartype registry_environment_versions:
azure.mgmt.machinelearningservices.aio.operations.RegistryEnvironmentVersionsOperations
:ivar registry_model_containers: RegistryModelContainersOperations operations
:vartype registry_model_containers:
azure.mgmt.machinelearningservices.aio.operations.RegistryModelContainersOperations
:ivar registry_model_versions: RegistryModelVersionsOperations operations
:vartype registry_model_versions:
azure.mgmt.machinelearningservices.aio.operations.RegistryModelVersionsOperations
:ivar batch_endpoints: BatchEndpointsOperations operations
:vartype batch_endpoints:
azure.mgmt.machinelearningservices.aio.operations.BatchEndpointsOperations
Expand Down Expand Up @@ -109,6 +143,9 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
azure.mgmt.machinelearningservices.aio.operations.EnvironmentVersionsOperations
:ivar jobs: JobsOperations operations
:vartype jobs: azure.mgmt.machinelearningservices.aio.operations.JobsOperations
:ivar labeling_jobs: LabelingJobsOperations operations
:vartype labeling_jobs:
azure.mgmt.machinelearningservices.aio.operations.LabelingJobsOperations
:ivar model_containers: ModelContainersOperations operations
:vartype model_containers:
azure.mgmt.machinelearningservices.aio.operations.ModelContainersOperations
Expand All @@ -123,6 +160,8 @@ class MachineLearningServicesMgmtClient: # pylint: disable=client-accepts-api-v
azure.mgmt.machinelearningservices.aio.operations.OnlineDeploymentsOperations
:ivar schedules: SchedulesOperations operations
:vartype schedules: azure.mgmt.machinelearningservices.aio.operations.SchedulesOperations
:ivar registries: RegistriesOperations operations
:vartype registries: azure.mgmt.machinelearningservices.aio.operations.RegistriesOperations
:ivar workspace_features: WorkspaceFeaturesOperations operations
:vartype workspace_features:
azure.mgmt.machinelearningservices.aio.operations.WorkspaceFeaturesOperations
Expand All @@ -132,8 +171,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 "2022-12-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 Down Expand Up @@ -172,6 +211,30 @@ def __init__(
self.workspace_connections = WorkspaceConnectionsOperations(
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_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 @@ -194,6 +257,7 @@ def __init__(
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 @@ -205,6 +269,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
Loading