diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/azure_machine_learning_workspaces.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/azure_machine_learning_workspaces.py index 7d5724562c62..5688f52b54a0 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/azure_machine_learning_workspaces.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/azure_machine_learning_workspaces.py @@ -15,6 +15,8 @@ from .version import VERSION from .operations.operations import Operations from .operations.workspaces_operations import WorkspacesOperations +from .operations.usages_operations import UsagesOperations +from .operations.virtual_machine_sizes_operations import VirtualMachineSizesOperations from .operations.machine_learning_compute_operations import MachineLearningComputeOperations from . import models @@ -61,6 +63,10 @@ class AzureMachineLearningWorkspaces(SDKClient): :vartype operations: azure.mgmt.machinelearningservices.operations.Operations :ivar workspaces: Workspaces operations :vartype workspaces: azure.mgmt.machinelearningservices.operations.WorkspacesOperations + :ivar usages: Usages operations + :vartype usages: azure.mgmt.machinelearningservices.operations.UsagesOperations + :ivar virtual_machine_sizes: VirtualMachineSizes operations + :vartype virtual_machine_sizes: azure.mgmt.machinelearningservices.operations.VirtualMachineSizesOperations :ivar machine_learning_compute: MachineLearningCompute operations :vartype machine_learning_compute: azure.mgmt.machinelearningservices.operations.MachineLearningComputeOperations @@ -79,7 +85,7 @@ def __init__( super(AzureMachineLearningWorkspaces, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2018-03-01-preview' + self.api_version = '2019-05-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -87,5 +93,9 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.workspaces = WorkspacesOperations( self._client, self.config, self._serialize, self._deserialize) + self.usages = UsagesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_machine_sizes = VirtualMachineSizesOperations( + self._client, self.config, self._serialize, self._deserialize) self.machine_learning_compute = MachineLearningComputeOperations( self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/__init__.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/__init__.py index e03d0d68a8a8..fb0e4be60e47 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/__init__.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/__init__.py @@ -14,8 +14,13 @@ from .operation_py3 import Operation from .workspace_py3 import Workspace from .workspace_update_parameters_py3 import WorkspaceUpdateParameters + from .usage_name_py3 import UsageName + from .usage_py3 import Usage + from .virtual_machine_size_py3 import VirtualMachineSize + from .virtual_machine_size_list_result_py3 import VirtualMachineSizeListResult from .identity_py3 import Identity from .resource_py3 import Resource + from .resource_id_py3 import ResourceId from .password_py3 import Password from .registry_list_credentials_result_py3 import RegistryListCredentialsResult from .list_workspace_keys_result_py3 import ListWorkspaceKeysResult @@ -26,28 +31,45 @@ from .compute_resource_py3 import ComputeResource from .system_service_py3 import SystemService from .ssl_configuration_py3 import SslConfiguration + from .aks_networking_configuration_py3 import AksNetworkingConfiguration from .aks_properties_py3 import AKSProperties from .aks_py3 import AKS from .scale_settings_py3 import ScaleSettings - from .batch_ai_properties_py3 import BatchAIProperties - from .batch_ai_py3 import BatchAI + from .user_account_credentials_py3 import UserAccountCredentials + from .node_state_counts_py3 import NodeStateCounts + from .aml_compute_properties_py3 import AmlComputeProperties + from .aml_compute_py3 import AmlCompute from .virtual_machine_ssh_credentials_py3 import VirtualMachineSshCredentials from .virtual_machine_properties_py3 import VirtualMachineProperties from .virtual_machine_py3 import VirtualMachine from .hd_insight_properties_py3 import HDInsightProperties from .hd_insight_py3 import HDInsight from .data_factory_py3 import DataFactory + from .databricks_properties_py3 import DatabricksProperties + from .databricks_py3 import Databricks + from .data_lake_analytics_properties_py3 import DataLakeAnalyticsProperties + from .data_lake_analytics_py3 import DataLakeAnalytics from .service_principal_credentials_py3 import ServicePrincipalCredentials + from .cluster_update_parameters_py3 import ClusterUpdateParameters + from .compute_nodes_information_py3 import ComputeNodesInformation + from .aml_compute_node_information_py3 import AmlComputeNodeInformation + from .aml_compute_nodes_information_py3 import AmlComputeNodesInformation from .compute_secrets_py3 import ComputeSecrets from .aks_compute_secrets_py3 import AksComputeSecrets from .virtual_machine_secrets_py3 import VirtualMachineSecrets + from .databricks_compute_secrets_py3 import DatabricksComputeSecrets except (SyntaxError, ImportError): from .operation_display import OperationDisplay from .operation import Operation from .workspace import Workspace from .workspace_update_parameters import WorkspaceUpdateParameters + from .usage_name import UsageName + from .usage import Usage + from .virtual_machine_size import VirtualMachineSize + from .virtual_machine_size_list_result import VirtualMachineSizeListResult from .identity import Identity from .resource import Resource + from .resource_id import ResourceId from .password import Password from .registry_list_credentials_result import RegistryListCredentialsResult from .list_workspace_keys_result import ListWorkspaceKeysResult @@ -58,28 +80,45 @@ from .compute_resource import ComputeResource from .system_service import SystemService from .ssl_configuration import SslConfiguration + from .aks_networking_configuration import AksNetworkingConfiguration from .aks_properties import AKSProperties from .aks import AKS from .scale_settings import ScaleSettings - from .batch_ai_properties import BatchAIProperties - from .batch_ai import BatchAI + from .user_account_credentials import UserAccountCredentials + from .node_state_counts import NodeStateCounts + from .aml_compute_properties import AmlComputeProperties + from .aml_compute import AmlCompute from .virtual_machine_ssh_credentials import VirtualMachineSshCredentials from .virtual_machine_properties import VirtualMachineProperties from .virtual_machine import VirtualMachine from .hd_insight_properties import HDInsightProperties from .hd_insight import HDInsight from .data_factory import DataFactory + from .databricks_properties import DatabricksProperties + from .databricks import Databricks + from .data_lake_analytics_properties import DataLakeAnalyticsProperties + from .data_lake_analytics import DataLakeAnalytics from .service_principal_credentials import ServicePrincipalCredentials + from .cluster_update_parameters import ClusterUpdateParameters + from .compute_nodes_information import ComputeNodesInformation + from .aml_compute_node_information import AmlComputeNodeInformation + from .aml_compute_nodes_information import AmlComputeNodesInformation from .compute_secrets import ComputeSecrets from .aks_compute_secrets import AksComputeSecrets from .virtual_machine_secrets import VirtualMachineSecrets + from .databricks_compute_secrets import DatabricksComputeSecrets from .operation_paged import OperationPaged from .workspace_paged import WorkspacePaged +from .usage_paged import UsagePaged from .compute_resource_paged import ComputeResourcePaged from .azure_machine_learning_workspaces_enums import ( ProvisioningState, + UsageUnit, ResourceIdentityType, + VmPriority, + AllocationState, ComputeType, + UnderlyingResourceAction, ) __all__ = [ @@ -87,8 +126,13 @@ 'Operation', 'Workspace', 'WorkspaceUpdateParameters', + 'UsageName', + 'Usage', + 'VirtualMachineSize', + 'VirtualMachineSizeListResult', 'Identity', 'Resource', + 'ResourceId', 'Password', 'RegistryListCredentialsResult', 'ListWorkspaceKeysResult', @@ -99,25 +143,42 @@ 'ComputeResource', 'SystemService', 'SslConfiguration', + 'AksNetworkingConfiguration', 'AKSProperties', 'AKS', 'ScaleSettings', - 'BatchAIProperties', - 'BatchAI', + 'UserAccountCredentials', + 'NodeStateCounts', + 'AmlComputeProperties', + 'AmlCompute', 'VirtualMachineSshCredentials', 'VirtualMachineProperties', 'VirtualMachine', 'HDInsightProperties', 'HDInsight', 'DataFactory', + 'DatabricksProperties', + 'Databricks', + 'DataLakeAnalyticsProperties', + 'DataLakeAnalytics', 'ServicePrincipalCredentials', + 'ClusterUpdateParameters', + 'ComputeNodesInformation', + 'AmlComputeNodeInformation', + 'AmlComputeNodesInformation', 'ComputeSecrets', 'AksComputeSecrets', 'VirtualMachineSecrets', + 'DatabricksComputeSecrets', 'OperationPaged', 'WorkspacePaged', + 'UsagePaged', 'ComputeResourcePaged', 'ProvisioningState', + 'UsageUnit', 'ResourceIdentityType', + 'VmPriority', + 'AllocationState', 'ComputeType', + 'UnderlyingResourceAction', ] diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks.py index e5d56bfa1a0b..d56f2c8a674a 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks.py @@ -34,11 +34,15 @@ class AKS(Compute): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str :param properties: AKS properties @@ -50,6 +54,7 @@ class AKS(Compute): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -61,6 +66,7 @@ class AKS(Compute): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'AKSProperties'}, } diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_networking_configuration.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_networking_configuration.py new file mode 100644 index 000000000000..29697cd661d9 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_networking_configuration.py @@ -0,0 +1,52 @@ +# 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 msrest.serialization import Model + + +class AksNetworkingConfiguration(Model): + """Advance configuration for AKS networking. + + :param subnet_id: Virtual network subnet resource ID the compute nodes + belong to + :type subnet_id: str + :param service_cidr: A CIDR notation IP range from which to assign service + cluster IPs. It must not overlap with any Subnet IP ranges. + :type service_cidr: str + :param dns_service_ip: An IP address assigned to the Kubernetes DNS + service. It must be within the Kubernetes service address range specified + in serviceCidr. + :type dns_service_ip: str + :param docker_bridge_cidr: A CIDR notation IP range assigned to the Docker + bridge network. It must not overlap with any Subnet IP ranges or the + Kubernetes service address range. + :type docker_bridge_cidr: str + """ + + _validation = { + 'service_cidr': {'pattern': r'^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$'}, + 'dns_service_ip': {'pattern': r'^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'}, + 'docker_bridge_cidr': {'pattern': r'^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$'}, + } + + _attribute_map = { + 'subnet_id': {'key': 'subnetId', 'type': 'str'}, + 'service_cidr': {'key': 'serviceCidr', 'type': 'str'}, + 'dns_service_ip': {'key': 'dnsServiceIP', 'type': 'str'}, + 'docker_bridge_cidr': {'key': 'dockerBridgeCidr', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AksNetworkingConfiguration, self).__init__(**kwargs) + self.subnet_id = kwargs.get('subnet_id', None) + self.service_cidr = kwargs.get('service_cidr', None) + self.dns_service_ip = kwargs.get('dns_service_ip', None) + self.docker_bridge_cidr = kwargs.get('docker_bridge_cidr', None) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_networking_configuration_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_networking_configuration_py3.py new file mode 100644 index 000000000000..81bb51529b27 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_networking_configuration_py3.py @@ -0,0 +1,52 @@ +# 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 msrest.serialization import Model + + +class AksNetworkingConfiguration(Model): + """Advance configuration for AKS networking. + + :param subnet_id: Virtual network subnet resource ID the compute nodes + belong to + :type subnet_id: str + :param service_cidr: A CIDR notation IP range from which to assign service + cluster IPs. It must not overlap with any Subnet IP ranges. + :type service_cidr: str + :param dns_service_ip: An IP address assigned to the Kubernetes DNS + service. It must be within the Kubernetes service address range specified + in serviceCidr. + :type dns_service_ip: str + :param docker_bridge_cidr: A CIDR notation IP range assigned to the Docker + bridge network. It must not overlap with any Subnet IP ranges or the + Kubernetes service address range. + :type docker_bridge_cidr: str + """ + + _validation = { + 'service_cidr': {'pattern': r'^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$'}, + 'dns_service_ip': {'pattern': r'^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'}, + 'docker_bridge_cidr': {'pattern': r'^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$'}, + } + + _attribute_map = { + 'subnet_id': {'key': 'subnetId', 'type': 'str'}, + 'service_cidr': {'key': 'serviceCidr', 'type': 'str'}, + 'dns_service_ip': {'key': 'dnsServiceIP', 'type': 'str'}, + 'docker_bridge_cidr': {'key': 'dockerBridgeCidr', 'type': 'str'}, + } + + def __init__(self, *, subnet_id: str=None, service_cidr: str=None, dns_service_ip: str=None, docker_bridge_cidr: str=None, **kwargs) -> None: + super(AksNetworkingConfiguration, self).__init__(**kwargs) + self.subnet_id = subnet_id + self.service_cidr = service_cidr + self.dns_service_ip = dns_service_ip + self.docker_bridge_cidr = docker_bridge_cidr diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_properties.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_properties.py index d1907b9a241c..d4be9f90b5ff 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_properties.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_properties.py @@ -15,10 +15,13 @@ class AKSProperties(Model): """AKS properties. + Variables are only populated by the server, and will be ignored when + sending a request. + :param cluster_fqdn: Cluster full qualified domain name :type cluster_fqdn: str - :param system_services: System services - :type system_services: + :ivar system_services: System services + :vartype system_services: list[~azure.mgmt.machinelearningservices.models.SystemService] :param agent_count: Number of agents :type agent_count: int @@ -27,9 +30,13 @@ class AKSProperties(Model): :param ssl_configuration: SSL configuration :type ssl_configuration: ~azure.mgmt.machinelearningservices.models.SslConfiguration + :param aks_networking_configuration: AKS networking configuration for vnet + :type aks_networking_configuration: + ~azure.mgmt.machinelearningservices.models.AksNetworkingConfiguration """ _validation = { + 'system_services': {'readonly': True}, 'agent_count': {'minimum': 1}, } @@ -39,12 +46,14 @@ class AKSProperties(Model): 'agent_count': {'key': 'agentCount', 'type': 'int'}, 'agent_vm_size': {'key': 'agentVMSize', 'type': 'str'}, 'ssl_configuration': {'key': 'sslConfiguration', 'type': 'SslConfiguration'}, + 'aks_networking_configuration': {'key': 'aksNetworkingConfiguration', 'type': 'AksNetworkingConfiguration'}, } def __init__(self, **kwargs): super(AKSProperties, self).__init__(**kwargs) self.cluster_fqdn = kwargs.get('cluster_fqdn', None) - self.system_services = kwargs.get('system_services', None) + self.system_services = None self.agent_count = kwargs.get('agent_count', None) self.agent_vm_size = kwargs.get('agent_vm_size', None) self.ssl_configuration = kwargs.get('ssl_configuration', None) + self.aks_networking_configuration = kwargs.get('aks_networking_configuration', None) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_properties_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_properties_py3.py index 35cb7ba606b7..02216713dee7 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_properties_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_properties_py3.py @@ -15,10 +15,13 @@ class AKSProperties(Model): """AKS properties. + Variables are only populated by the server, and will be ignored when + sending a request. + :param cluster_fqdn: Cluster full qualified domain name :type cluster_fqdn: str - :param system_services: System services - :type system_services: + :ivar system_services: System services + :vartype system_services: list[~azure.mgmt.machinelearningservices.models.SystemService] :param agent_count: Number of agents :type agent_count: int @@ -27,9 +30,13 @@ class AKSProperties(Model): :param ssl_configuration: SSL configuration :type ssl_configuration: ~azure.mgmt.machinelearningservices.models.SslConfiguration + :param aks_networking_configuration: AKS networking configuration for vnet + :type aks_networking_configuration: + ~azure.mgmt.machinelearningservices.models.AksNetworkingConfiguration """ _validation = { + 'system_services': {'readonly': True}, 'agent_count': {'minimum': 1}, } @@ -39,12 +46,14 @@ class AKSProperties(Model): 'agent_count': {'key': 'agentCount', 'type': 'int'}, 'agent_vm_size': {'key': 'agentVMSize', 'type': 'str'}, 'ssl_configuration': {'key': 'sslConfiguration', 'type': 'SslConfiguration'}, + 'aks_networking_configuration': {'key': 'aksNetworkingConfiguration', 'type': 'AksNetworkingConfiguration'}, } - def __init__(self, *, cluster_fqdn: str=None, system_services=None, agent_count: int=None, agent_vm_size: str=None, ssl_configuration=None, **kwargs) -> None: + def __init__(self, *, cluster_fqdn: str=None, agent_count: int=None, agent_vm_size: str=None, ssl_configuration=None, aks_networking_configuration=None, **kwargs) -> None: super(AKSProperties, self).__init__(**kwargs) self.cluster_fqdn = cluster_fqdn - self.system_services = system_services + self.system_services = None self.agent_count = agent_count self.agent_vm_size = agent_vm_size self.ssl_configuration = ssl_configuration + self.aks_networking_configuration = aks_networking_configuration diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_py3.py index 063a0677bdc1..719837ff96d4 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aks_py3.py @@ -34,11 +34,15 @@ class AKS(Compute): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str :param properties: AKS properties @@ -50,6 +54,7 @@ class AKS(Compute): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -61,6 +66,7 @@ class AKS(Compute): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'AKSProperties'}, } diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute.py new file mode 100644 index 000000000000..ea03a8c567af --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute.py @@ -0,0 +1,78 @@ +# 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 .compute import Compute + + +class AmlCompute(Compute): + """An Azure Machine Learning compute. + + 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. + + :param compute_location: Location for the underlying compute + :type compute_location: str + :ivar provisioning_state: The provision state of the cluster. Valid values + are Unknown, Updating, Provisioning, Succeeded, and Failed. Possible + values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + 'Succeeded', 'Failed', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.machinelearningservices.models.ProvisioningState + :param description: The description of the Machine Learning compute. + :type description: str + :ivar created_on: The date and time when the compute was created. + :vartype created_on: datetime + :ivar modified_on: The date and time when the compute was last modified. + :vartype modified_on: datetime + :param resource_id: ARM resource id of the underlying compute + :type resource_id: str + :ivar provisioning_errors: Errors during provisioning + :vartype provisioning_errors: + list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool + :param compute_type: Required. Constant filled by server. + :type compute_type: str + :param properties: AML Compute properties + :type properties: + ~azure.mgmt.machinelearningservices.models.AmlComputeProperties + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'created_on': {'readonly': True}, + 'modified_on': {'readonly': True}, + 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, + 'compute_type': {'required': True}, + } + + _attribute_map = { + 'compute_location': {'key': 'computeLocation', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, + 'compute_type': {'key': 'computeType', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AmlComputeProperties'}, + } + + def __init__(self, **kwargs): + super(AmlCompute, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.compute_type = 'AmlCompute' diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_node_information.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_node_information.py new file mode 100644 index 000000000000..e2e80f343e8d --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_node_information.py @@ -0,0 +1,45 @@ +# 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 msrest.serialization import Model + + +class AmlComputeNodeInformation(Model): + """Compute node information related to a AmlCompute. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar node_id: Node ID. ID of the compute node. + :vartype node_id: str + :ivar ip_address: IP address. Public IP address of the compute node. + :vartype ip_address: str + :ivar port: Port. SSH port number of the node. + :vartype port: float + """ + + _validation = { + 'node_id': {'readonly': True}, + 'ip_address': {'readonly': True}, + 'port': {'readonly': True}, + } + + _attribute_map = { + 'node_id': {'key': 'nodeId', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(AmlComputeNodeInformation, self).__init__(**kwargs) + self.node_id = None + self.ip_address = None + self.port = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_node_information_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_node_information_py3.py new file mode 100644 index 000000000000..d6f89e02fca9 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_node_information_py3.py @@ -0,0 +1,45 @@ +# 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 msrest.serialization import Model + + +class AmlComputeNodeInformation(Model): + """Compute node information related to a AmlCompute. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar node_id: Node ID. ID of the compute node. + :vartype node_id: str + :ivar ip_address: IP address. Public IP address of the compute node. + :vartype ip_address: str + :ivar port: Port. SSH port number of the node. + :vartype port: float + """ + + _validation = { + 'node_id': {'readonly': True}, + 'ip_address': {'readonly': True}, + 'port': {'readonly': True}, + } + + _attribute_map = { + 'node_id': {'key': 'nodeId', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'float'}, + } + + def __init__(self, **kwargs) -> None: + super(AmlComputeNodeInformation, self).__init__(**kwargs) + self.node_id = None + self.ip_address = None + self.port = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_nodes_information.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_nodes_information.py new file mode 100644 index 000000000000..52e65354d470 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_nodes_information.py @@ -0,0 +1,47 @@ +# 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 .compute_nodes_information import ComputeNodesInformation + + +class AmlComputeNodesInformation(ComputeNodesInformation): + """Compute node information related to a AmlCompute. + + 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 next_link: The continuation token. + :vartype next_link: str + :param compute_type: Required. Constant filled by server. + :type compute_type: str + :ivar nodes: The collection of returned AmlCompute nodes details. + :vartype nodes: + list[~azure.mgmt.machinelearningservices.models.AmlComputeNodeInformation] + """ + + _validation = { + 'next_link': {'readonly': True}, + 'compute_type': {'required': True}, + 'nodes': {'readonly': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'compute_type': {'key': 'computeType', 'type': 'str'}, + 'nodes': {'key': 'nodes', 'type': '[AmlComputeNodeInformation]'}, + } + + def __init__(self, **kwargs): + super(AmlComputeNodesInformation, self).__init__(**kwargs) + self.nodes = None + self.compute_type = 'AmlCompute' diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_nodes_information_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_nodes_information_py3.py new file mode 100644 index 000000000000..f2f73216daa6 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_nodes_information_py3.py @@ -0,0 +1,47 @@ +# 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 .compute_nodes_information_py3 import ComputeNodesInformation + + +class AmlComputeNodesInformation(ComputeNodesInformation): + """Compute node information related to a AmlCompute. + + 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 next_link: The continuation token. + :vartype next_link: str + :param compute_type: Required. Constant filled by server. + :type compute_type: str + :ivar nodes: The collection of returned AmlCompute nodes details. + :vartype nodes: + list[~azure.mgmt.machinelearningservices.models.AmlComputeNodeInformation] + """ + + _validation = { + 'next_link': {'readonly': True}, + 'compute_type': {'required': True}, + 'nodes': {'readonly': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'compute_type': {'key': 'computeType', 'type': 'str'}, + 'nodes': {'key': 'nodes', 'type': '[AmlComputeNodeInformation]'}, + } + + def __init__(self, **kwargs) -> None: + super(AmlComputeNodesInformation, self).__init__(**kwargs) + self.nodes = None + self.compute_type = 'AmlCompute' diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_properties.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_properties.py new file mode 100644 index 000000000000..5256febc3c51 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_properties.py @@ -0,0 +1,104 @@ +# 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 msrest.serialization import Model + + +class AmlComputeProperties(Model): + """AML Compute properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param vm_size: Virtual Machine Size + :type vm_size: str + :param vm_priority: Virtual Machine priority. Possible values include: + 'Dedicated', 'LowPriority' + :type vm_priority: str or + ~azure.mgmt.machinelearningservices.models.VmPriority + :param scale_settings: Scale settings for AML Compute + :type scale_settings: + ~azure.mgmt.machinelearningservices.models.ScaleSettings + :param user_account_credentials: User account credentials. Credentials for + an administrator user account that will be created on each compute node. + :type user_account_credentials: + ~azure.mgmt.machinelearningservices.models.UserAccountCredentials + :param subnet: Subnet. Virtual network subnet resource ID the compute + nodes belong to. + :type subnet: ~azure.mgmt.machinelearningservices.models.ResourceId + :ivar allocation_state: Allocation state. Allocation state of the compute. + Possible values are: steady - Indicates that the compute is not resizing. + There are no changes to the number of compute nodes in the compute in + progress. A compute enters this state when it is created and when no + operations are being performed on the compute to change the number of + compute nodes. resizing - Indicates that the compute is resizing; that is, + compute nodes are being added to or removed from the compute. Possible + values include: 'Steady', 'Resizing' + :vartype allocation_state: str or + ~azure.mgmt.machinelearningservices.models.AllocationState + :ivar allocation_state_transition_time: Allocation state transition time. + The time at which the compute entered its current allocation state. + :vartype allocation_state_transition_time: datetime + :ivar errors: Errors. Collection of errors encountered by various compute + nodes during node setup. + :vartype errors: + list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar current_node_count: Current node count. The number of compute nodes + currently assigned to the compute. + :vartype current_node_count: int + :ivar target_node_count: Target node count. The target number of compute + nodes for the compute. If the allocationState is resizing, this property + denotes the target node count for the ongoing resize operation. If the + allocationState is steady, this property denotes the target node count for + the previous resize operation. + :vartype target_node_count: int + :ivar node_state_counts: Node state counts. Counts of various node states + on the compute. + :vartype node_state_counts: + ~azure.mgmt.machinelearningservices.models.NodeStateCounts + """ + + _validation = { + 'allocation_state': {'readonly': True}, + 'allocation_state_transition_time': {'readonly': True}, + 'errors': {'readonly': True}, + 'current_node_count': {'readonly': True}, + 'target_node_count': {'readonly': True}, + 'node_state_counts': {'readonly': True}, + } + + _attribute_map = { + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'vm_priority': {'key': 'vmPriority', 'type': 'str'}, + 'scale_settings': {'key': 'scaleSettings', 'type': 'ScaleSettings'}, + 'user_account_credentials': {'key': 'userAccountCredentials', 'type': 'UserAccountCredentials'}, + 'subnet': {'key': 'subnet', 'type': 'ResourceId'}, + 'allocation_state': {'key': 'allocationState', 'type': 'str'}, + 'allocation_state_transition_time': {'key': 'allocationStateTransitionTime', 'type': 'iso-8601'}, + 'errors': {'key': 'errors', 'type': '[MachineLearningServiceError]'}, + 'current_node_count': {'key': 'currentNodeCount', 'type': 'int'}, + 'target_node_count': {'key': 'targetNodeCount', 'type': 'int'}, + 'node_state_counts': {'key': 'nodeStateCounts', 'type': 'NodeStateCounts'}, + } + + def __init__(self, **kwargs): + super(AmlComputeProperties, self).__init__(**kwargs) + self.vm_size = kwargs.get('vm_size', None) + self.vm_priority = kwargs.get('vm_priority', None) + self.scale_settings = kwargs.get('scale_settings', None) + self.user_account_credentials = kwargs.get('user_account_credentials', None) + self.subnet = kwargs.get('subnet', None) + self.allocation_state = None + self.allocation_state_transition_time = None + self.errors = None + self.current_node_count = None + self.target_node_count = None + self.node_state_counts = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_properties_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_properties_py3.py new file mode 100644 index 000000000000..9b77e544f9d6 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_properties_py3.py @@ -0,0 +1,104 @@ +# 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 msrest.serialization import Model + + +class AmlComputeProperties(Model): + """AML Compute properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param vm_size: Virtual Machine Size + :type vm_size: str + :param vm_priority: Virtual Machine priority. Possible values include: + 'Dedicated', 'LowPriority' + :type vm_priority: str or + ~azure.mgmt.machinelearningservices.models.VmPriority + :param scale_settings: Scale settings for AML Compute + :type scale_settings: + ~azure.mgmt.machinelearningservices.models.ScaleSettings + :param user_account_credentials: User account credentials. Credentials for + an administrator user account that will be created on each compute node. + :type user_account_credentials: + ~azure.mgmt.machinelearningservices.models.UserAccountCredentials + :param subnet: Subnet. Virtual network subnet resource ID the compute + nodes belong to. + :type subnet: ~azure.mgmt.machinelearningservices.models.ResourceId + :ivar allocation_state: Allocation state. Allocation state of the compute. + Possible values are: steady - Indicates that the compute is not resizing. + There are no changes to the number of compute nodes in the compute in + progress. A compute enters this state when it is created and when no + operations are being performed on the compute to change the number of + compute nodes. resizing - Indicates that the compute is resizing; that is, + compute nodes are being added to or removed from the compute. Possible + values include: 'Steady', 'Resizing' + :vartype allocation_state: str or + ~azure.mgmt.machinelearningservices.models.AllocationState + :ivar allocation_state_transition_time: Allocation state transition time. + The time at which the compute entered its current allocation state. + :vartype allocation_state_transition_time: datetime + :ivar errors: Errors. Collection of errors encountered by various compute + nodes during node setup. + :vartype errors: + list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar current_node_count: Current node count. The number of compute nodes + currently assigned to the compute. + :vartype current_node_count: int + :ivar target_node_count: Target node count. The target number of compute + nodes for the compute. If the allocationState is resizing, this property + denotes the target node count for the ongoing resize operation. If the + allocationState is steady, this property denotes the target node count for + the previous resize operation. + :vartype target_node_count: int + :ivar node_state_counts: Node state counts. Counts of various node states + on the compute. + :vartype node_state_counts: + ~azure.mgmt.machinelearningservices.models.NodeStateCounts + """ + + _validation = { + 'allocation_state': {'readonly': True}, + 'allocation_state_transition_time': {'readonly': True}, + 'errors': {'readonly': True}, + 'current_node_count': {'readonly': True}, + 'target_node_count': {'readonly': True}, + 'node_state_counts': {'readonly': True}, + } + + _attribute_map = { + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'vm_priority': {'key': 'vmPriority', 'type': 'str'}, + 'scale_settings': {'key': 'scaleSettings', 'type': 'ScaleSettings'}, + 'user_account_credentials': {'key': 'userAccountCredentials', 'type': 'UserAccountCredentials'}, + 'subnet': {'key': 'subnet', 'type': 'ResourceId'}, + 'allocation_state': {'key': 'allocationState', 'type': 'str'}, + 'allocation_state_transition_time': {'key': 'allocationStateTransitionTime', 'type': 'iso-8601'}, + 'errors': {'key': 'errors', 'type': '[MachineLearningServiceError]'}, + 'current_node_count': {'key': 'currentNodeCount', 'type': 'int'}, + 'target_node_count': {'key': 'targetNodeCount', 'type': 'int'}, + 'node_state_counts': {'key': 'nodeStateCounts', 'type': 'NodeStateCounts'}, + } + + def __init__(self, *, vm_size: str=None, vm_priority=None, scale_settings=None, user_account_credentials=None, subnet=None, **kwargs) -> None: + super(AmlComputeProperties, self).__init__(**kwargs) + self.vm_size = vm_size + self.vm_priority = vm_priority + self.scale_settings = scale_settings + self.user_account_credentials = user_account_credentials + self.subnet = subnet + self.allocation_state = None + self.allocation_state_transition_time = None + self.errors = None + self.current_node_count = None + self.target_node_count = None + self.node_state_counts = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_py3.py new file mode 100644 index 000000000000..3ba8cae30472 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/aml_compute_py3.py @@ -0,0 +1,78 @@ +# 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 .compute_py3 import Compute + + +class AmlCompute(Compute): + """An Azure Machine Learning compute. + + 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. + + :param compute_location: Location for the underlying compute + :type compute_location: str + :ivar provisioning_state: The provision state of the cluster. Valid values + are Unknown, Updating, Provisioning, Succeeded, and Failed. Possible + values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + 'Succeeded', 'Failed', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.machinelearningservices.models.ProvisioningState + :param description: The description of the Machine Learning compute. + :type description: str + :ivar created_on: The date and time when the compute was created. + :vartype created_on: datetime + :ivar modified_on: The date and time when the compute was last modified. + :vartype modified_on: datetime + :param resource_id: ARM resource id of the underlying compute + :type resource_id: str + :ivar provisioning_errors: Errors during provisioning + :vartype provisioning_errors: + list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool + :param compute_type: Required. Constant filled by server. + :type compute_type: str + :param properties: AML Compute properties + :type properties: + ~azure.mgmt.machinelearningservices.models.AmlComputeProperties + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'created_on': {'readonly': True}, + 'modified_on': {'readonly': True}, + 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, + 'compute_type': {'required': True}, + } + + _attribute_map = { + 'compute_location': {'key': 'computeLocation', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, + 'compute_type': {'key': 'computeType', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AmlComputeProperties'}, + } + + def __init__(self, *, compute_location: str=None, description: str=None, resource_id: str=None, properties=None, **kwargs) -> None: + super(AmlCompute, self).__init__(compute_location=compute_location, description=description, resource_id=resource_id, **kwargs) + self.properties = properties + self.compute_type = 'AmlCompute' diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/azure_machine_learning_workspaces_enums.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/azure_machine_learning_workspaces_enums.py index b36d430ec8dd..0e95e8e3d7ff 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/azure_machine_learning_workspaces_enums.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/azure_machine_learning_workspaces_enums.py @@ -23,15 +23,40 @@ class ProvisioningState(str, Enum): canceled = "Canceled" +class UsageUnit(str, Enum): + + count = "Count" + + class ResourceIdentityType(str, Enum): system_assigned = "SystemAssigned" +class VmPriority(str, Enum): + + dedicated = "Dedicated" + low_priority = "LowPriority" + + +class AllocationState(str, Enum): + + steady = "Steady" + resizing = "Resizing" + + class ComputeType(str, Enum): aks = "AKS" - batch_ai = "BatchAI" + aml_compute = "AmlCompute" data_factory = "DataFactory" virtual_machine = "VirtualMachine" hd_insight = "HDInsight" + databricks = "Databricks" + data_lake_analytics = "DataLakeAnalytics" + + +class UnderlyingResourceAction(str, Enum): + + delete = "Delete" + detach = "Detach" diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai_properties.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/cluster_update_parameters.py similarity index 54% rename from sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai_properties.py rename to sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/cluster_update_parameters.py index 37abd1794e4b..a7c907ccdebb 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai_properties.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/cluster_update_parameters.py @@ -12,26 +12,19 @@ from msrest.serialization import Model -class BatchAIProperties(Model): - """BatchAI properties. +class ClusterUpdateParameters(Model): + """AmlCompute update parameters. - :param vm_size: Virtual Machine Size - :type vm_size: str - :param vm_priority: Virtual Machine priority - :type vm_priority: str - :param scale_settings: Scale settings for BatchAI + :param scale_settings: Scale settings. Desired scale settings for the + amlCompute. :type scale_settings: ~azure.mgmt.machinelearningservices.models.ScaleSettings """ _attribute_map = { - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'vm_priority': {'key': 'vmPriority', 'type': 'str'}, - 'scale_settings': {'key': 'scaleSettings', 'type': 'ScaleSettings'}, + 'scale_settings': {'key': 'properties.scaleSettings', 'type': 'ScaleSettings'}, } def __init__(self, **kwargs): - super(BatchAIProperties, self).__init__(**kwargs) - self.vm_size = kwargs.get('vm_size', None) - self.vm_priority = kwargs.get('vm_priority', None) + super(ClusterUpdateParameters, self).__init__(**kwargs) self.scale_settings = kwargs.get('scale_settings', None) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai_properties_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/cluster_update_parameters_py3.py similarity index 50% rename from sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai_properties_py3.py rename to sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/cluster_update_parameters_py3.py index 16ad2e10f6f4..39033879882c 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai_properties_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/cluster_update_parameters_py3.py @@ -12,26 +12,19 @@ from msrest.serialization import Model -class BatchAIProperties(Model): - """BatchAI properties. +class ClusterUpdateParameters(Model): + """AmlCompute update parameters. - :param vm_size: Virtual Machine Size - :type vm_size: str - :param vm_priority: Virtual Machine priority - :type vm_priority: str - :param scale_settings: Scale settings for BatchAI + :param scale_settings: Scale settings. Desired scale settings for the + amlCompute. :type scale_settings: ~azure.mgmt.machinelearningservices.models.ScaleSettings """ _attribute_map = { - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'vm_priority': {'key': 'vmPriority', 'type': 'str'}, - 'scale_settings': {'key': 'scaleSettings', 'type': 'ScaleSettings'}, + 'scale_settings': {'key': 'properties.scaleSettings', 'type': 'ScaleSettings'}, } - def __init__(self, *, vm_size: str=None, vm_priority: str=None, scale_settings=None, **kwargs) -> None: - super(BatchAIProperties, self).__init__(**kwargs) - self.vm_size = vm_size - self.vm_priority = vm_priority + def __init__(self, *, scale_settings=None, **kwargs) -> None: + super(ClusterUpdateParameters, self).__init__(**kwargs) self.scale_settings = scale_settings diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute.py index 036834066c20..0b394567f159 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute.py @@ -16,7 +16,8 @@ class Compute(Model): """Machine Learning compute object. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AKS, BatchAI, VirtualMachine, HDInsight, DataFactory + sub-classes are: AKS, AmlCompute, VirtualMachine, HDInsight, DataFactory, + Databricks, DataLakeAnalytics Variables are only populated by the server, and will be ignored when sending a request. @@ -37,11 +38,15 @@ class Compute(Model): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str """ @@ -51,6 +56,7 @@ class Compute(Model): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -62,11 +68,12 @@ class Compute(Model): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, } _subtype_map = { - 'compute_type': {'AKS': 'AKS', 'BatchAI': 'BatchAI', 'VirtualMachine': 'VirtualMachine', 'HDInsight': 'HDInsight', 'DataFactory': 'DataFactory'} + 'compute_type': {'AKS': 'AKS', 'AmlCompute': 'AmlCompute', 'VirtualMachine': 'VirtualMachine', 'HDInsight': 'HDInsight', 'DataFactory': 'DataFactory', 'Databricks': 'Databricks', 'DataLakeAnalytics': 'DataLakeAnalytics'} } def __init__(self, **kwargs): @@ -78,4 +85,5 @@ def __init__(self, **kwargs): self.modified_on = None self.resource_id = kwargs.get('resource_id', None) self.provisioning_errors = None + self.is_attached_compute = None self.compute_type = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_nodes_information.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_nodes_information.py new file mode 100644 index 000000000000..0d45aec948eb --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_nodes_information.py @@ -0,0 +1,50 @@ +# 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 msrest.serialization import Model + + +class ComputeNodesInformation(Model): + """Compute nodes information related to a Machine Learning compute. Might + differ for every type of compute. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AmlComputeNodesInformation + + 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 next_link: The continuation token. + :vartype next_link: str + :param compute_type: Required. Constant filled by server. + :type compute_type: str + """ + + _validation = { + 'next_link': {'readonly': True}, + 'compute_type': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'compute_type': {'key': 'computeType', 'type': 'str'}, + } + + _subtype_map = { + 'compute_type': {'AmlCompute': 'AmlComputeNodesInformation'} + } + + def __init__(self, **kwargs): + super(ComputeNodesInformation, self).__init__(**kwargs) + self.next_link = None + self.compute_type = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_nodes_information_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_nodes_information_py3.py new file mode 100644 index 000000000000..7845fded3368 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_nodes_information_py3.py @@ -0,0 +1,50 @@ +# 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 msrest.serialization import Model + + +class ComputeNodesInformation(Model): + """Compute nodes information related to a Machine Learning compute. Might + differ for every type of compute. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AmlComputeNodesInformation + + 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 next_link: The continuation token. + :vartype next_link: str + :param compute_type: Required. Constant filled by server. + :type compute_type: str + """ + + _validation = { + 'next_link': {'readonly': True}, + 'compute_type': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'compute_type': {'key': 'computeType', 'type': 'str'}, + } + + _subtype_map = { + 'compute_type': {'AmlCompute': 'AmlComputeNodesInformation'} + } + + def __init__(self, **kwargs) -> None: + super(ComputeNodesInformation, self).__init__(**kwargs) + self.next_link = None + self.compute_type = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_py3.py index 1e4bd15aa95a..d248642c401b 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_py3.py @@ -16,7 +16,8 @@ class Compute(Model): """Machine Learning compute object. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AKS, BatchAI, VirtualMachine, HDInsight, DataFactory + sub-classes are: AKS, AmlCompute, VirtualMachine, HDInsight, DataFactory, + Databricks, DataLakeAnalytics Variables are only populated by the server, and will be ignored when sending a request. @@ -37,11 +38,15 @@ class Compute(Model): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str """ @@ -51,6 +56,7 @@ class Compute(Model): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -62,11 +68,12 @@ class Compute(Model): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, } _subtype_map = { - 'compute_type': {'AKS': 'AKS', 'BatchAI': 'BatchAI', 'VirtualMachine': 'VirtualMachine', 'HDInsight': 'HDInsight', 'DataFactory': 'DataFactory'} + 'compute_type': {'AKS': 'AKS', 'AmlCompute': 'AmlCompute', 'VirtualMachine': 'VirtualMachine', 'HDInsight': 'HDInsight', 'DataFactory': 'DataFactory', 'Databricks': 'Databricks', 'DataLakeAnalytics': 'DataLakeAnalytics'} } def __init__(self, *, compute_location: str=None, description: str=None, resource_id: str=None, **kwargs) -> None: @@ -78,4 +85,5 @@ def __init__(self, *, compute_location: str=None, description: str=None, resourc self.modified_on = None self.resource_id = resource_id self.provisioning_errors = None + self.is_attached_compute = None self.compute_type = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_secrets.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_secrets.py index be25425af2df..7ccf58fedb5b 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_secrets.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_secrets.py @@ -17,7 +17,8 @@ class ComputeSecrets(Model): of compute. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AksComputeSecrets, VirtualMachineSecrets + sub-classes are: AksComputeSecrets, VirtualMachineSecrets, + DatabricksComputeSecrets All required parameters must be populated in order to send to Azure. @@ -34,7 +35,7 @@ class ComputeSecrets(Model): } _subtype_map = { - 'compute_type': {'AKS': 'AksComputeSecrets', 'VirtualMachine': 'VirtualMachineSecrets'} + 'compute_type': {'AKS': 'AksComputeSecrets', 'VirtualMachine': 'VirtualMachineSecrets', 'Databricks': 'DatabricksComputeSecrets'} } def __init__(self, **kwargs): diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_secrets_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_secrets_py3.py index b3428cbc8e0a..c00926c51812 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_secrets_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/compute_secrets_py3.py @@ -17,7 +17,8 @@ class ComputeSecrets(Model): of compute. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AksComputeSecrets, VirtualMachineSecrets + sub-classes are: AksComputeSecrets, VirtualMachineSecrets, + DatabricksComputeSecrets All required parameters must be populated in order to send to Azure. @@ -34,7 +35,7 @@ class ComputeSecrets(Model): } _subtype_map = { - 'compute_type': {'AKS': 'AksComputeSecrets', 'VirtualMachine': 'VirtualMachineSecrets'} + 'compute_type': {'AKS': 'AksComputeSecrets', 'VirtualMachine': 'VirtualMachineSecrets', 'Databricks': 'DatabricksComputeSecrets'} } def __init__(self, **kwargs) -> None: diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_factory.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_factory.py index 0733acb2664c..a582f025658c 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_factory.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_factory.py @@ -34,11 +34,15 @@ class DataFactory(Compute): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str """ @@ -48,6 +52,7 @@ class DataFactory(Compute): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -59,6 +64,7 @@ class DataFactory(Compute): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, } diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_factory_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_factory_py3.py index 7c3501b24c10..7c2d3bbf79b3 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_factory_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_factory_py3.py @@ -34,11 +34,15 @@ class DataFactory(Compute): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str """ @@ -48,6 +52,7 @@ class DataFactory(Compute): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -59,6 +64,7 @@ class DataFactory(Compute): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, } diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics.py new file mode 100644 index 000000000000..5608b97e5b8d --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics.py @@ -0,0 +1,78 @@ +# 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 .compute import Compute + + +class DataLakeAnalytics(Compute): + """A DataLakeAnalytics compute. + + 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. + + :param compute_location: Location for the underlying compute + :type compute_location: str + :ivar provisioning_state: The provision state of the cluster. Valid values + are Unknown, Updating, Provisioning, Succeeded, and Failed. Possible + values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + 'Succeeded', 'Failed', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.machinelearningservices.models.ProvisioningState + :param description: The description of the Machine Learning compute. + :type description: str + :ivar created_on: The date and time when the compute was created. + :vartype created_on: datetime + :ivar modified_on: The date and time when the compute was last modified. + :vartype modified_on: datetime + :param resource_id: ARM resource id of the underlying compute + :type resource_id: str + :ivar provisioning_errors: Errors during provisioning + :vartype provisioning_errors: + list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool + :param compute_type: Required. Constant filled by server. + :type compute_type: str + :param properties: + :type properties: + ~azure.mgmt.machinelearningservices.models.DataLakeAnalyticsProperties + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'created_on': {'readonly': True}, + 'modified_on': {'readonly': True}, + 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, + 'compute_type': {'required': True}, + } + + _attribute_map = { + 'compute_location': {'key': 'computeLocation', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, + 'compute_type': {'key': 'computeType', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DataLakeAnalyticsProperties'}, + } + + def __init__(self, **kwargs): + super(DataLakeAnalytics, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.compute_type = 'DataLakeAnalytics' diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics_properties.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics_properties.py new file mode 100644 index 000000000000..d0ed4dacfddd --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics_properties.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class DataLakeAnalyticsProperties(Model): + """DataLakeAnalyticsProperties. + + :param data_lake_store_account_name: DataLake Store Account Name + :type data_lake_store_account_name: str + """ + + _attribute_map = { + 'data_lake_store_account_name': {'key': 'dataLakeStoreAccountName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DataLakeAnalyticsProperties, self).__init__(**kwargs) + self.data_lake_store_account_name = kwargs.get('data_lake_store_account_name', None) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics_properties_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics_properties_py3.py new file mode 100644 index 000000000000..29776c44604a --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics_properties_py3.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class DataLakeAnalyticsProperties(Model): + """DataLakeAnalyticsProperties. + + :param data_lake_store_account_name: DataLake Store Account Name + :type data_lake_store_account_name: str + """ + + _attribute_map = { + 'data_lake_store_account_name': {'key': 'dataLakeStoreAccountName', 'type': 'str'}, + } + + def __init__(self, *, data_lake_store_account_name: str=None, **kwargs) -> None: + super(DataLakeAnalyticsProperties, self).__init__(**kwargs) + self.data_lake_store_account_name = data_lake_store_account_name diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics_py3.py new file mode 100644 index 000000000000..5a36e2bd9503 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/data_lake_analytics_py3.py @@ -0,0 +1,78 @@ +# 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 .compute_py3 import Compute + + +class DataLakeAnalytics(Compute): + """A DataLakeAnalytics compute. + + 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. + + :param compute_location: Location for the underlying compute + :type compute_location: str + :ivar provisioning_state: The provision state of the cluster. Valid values + are Unknown, Updating, Provisioning, Succeeded, and Failed. Possible + values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + 'Succeeded', 'Failed', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.machinelearningservices.models.ProvisioningState + :param description: The description of the Machine Learning compute. + :type description: str + :ivar created_on: The date and time when the compute was created. + :vartype created_on: datetime + :ivar modified_on: The date and time when the compute was last modified. + :vartype modified_on: datetime + :param resource_id: ARM resource id of the underlying compute + :type resource_id: str + :ivar provisioning_errors: Errors during provisioning + :vartype provisioning_errors: + list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool + :param compute_type: Required. Constant filled by server. + :type compute_type: str + :param properties: + :type properties: + ~azure.mgmt.machinelearningservices.models.DataLakeAnalyticsProperties + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'created_on': {'readonly': True}, + 'modified_on': {'readonly': True}, + 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, + 'compute_type': {'required': True}, + } + + _attribute_map = { + 'compute_location': {'key': 'computeLocation', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, + 'compute_type': {'key': 'computeType', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DataLakeAnalyticsProperties'}, + } + + def __init__(self, *, compute_location: str=None, description: str=None, resource_id: str=None, properties=None, **kwargs) -> None: + super(DataLakeAnalytics, self).__init__(compute_location=compute_location, description=description, resource_id=resource_id, **kwargs) + self.properties = properties + self.compute_type = 'DataLakeAnalytics' diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks.py similarity index 78% rename from sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai.py rename to sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks.py index 87462f377eca..83dce66a7488 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks.py @@ -12,8 +12,8 @@ from .compute import Compute -class BatchAI(Compute): - """A Machine Learning compute based on Azure BatchAI. +class Databricks(Compute): + """A DataFactory compute. Variables are only populated by the server, and will be ignored when sending a request. @@ -34,16 +34,20 @@ class BatchAI(Compute): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str - :param properties: BatchAI properties + :param properties: :type properties: - ~azure.mgmt.machinelearningservices.models.BatchAIProperties + ~azure.mgmt.machinelearningservices.models.DatabricksProperties """ _validation = { @@ -51,6 +55,7 @@ class BatchAI(Compute): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -62,11 +67,12 @@ class BatchAI(Compute): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BatchAIProperties'}, + 'properties': {'key': 'properties', 'type': 'DatabricksProperties'}, } def __init__(self, **kwargs): - super(BatchAI, self).__init__(**kwargs) + super(Databricks, self).__init__(**kwargs) self.properties = kwargs.get('properties', None) - self.compute_type = 'BatchAI' + self.compute_type = 'Databricks' diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_compute_secrets.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_compute_secrets.py new file mode 100644 index 000000000000..57b47fa50d8d --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_compute_secrets.py @@ -0,0 +1,38 @@ +# 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 .compute_secrets import ComputeSecrets + + +class DatabricksComputeSecrets(ComputeSecrets): + """Secrets related to a Machine Learning compute based on Databricks. + + All required parameters must be populated in order to send to Azure. + + :param compute_type: Required. Constant filled by server. + :type compute_type: str + :param databricks_access_token: access token for databricks account. + :type databricks_access_token: str + """ + + _validation = { + 'compute_type': {'required': True}, + } + + _attribute_map = { + 'compute_type': {'key': 'computeType', 'type': 'str'}, + 'databricks_access_token': {'key': 'databricksAccessToken', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DatabricksComputeSecrets, self).__init__(**kwargs) + self.databricks_access_token = kwargs.get('databricks_access_token', None) + self.compute_type = 'Databricks' diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_compute_secrets_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_compute_secrets_py3.py new file mode 100644 index 000000000000..d2016415da8f --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_compute_secrets_py3.py @@ -0,0 +1,38 @@ +# 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 .compute_secrets_py3 import ComputeSecrets + + +class DatabricksComputeSecrets(ComputeSecrets): + """Secrets related to a Machine Learning compute based on Databricks. + + All required parameters must be populated in order to send to Azure. + + :param compute_type: Required. Constant filled by server. + :type compute_type: str + :param databricks_access_token: access token for databricks account. + :type databricks_access_token: str + """ + + _validation = { + 'compute_type': {'required': True}, + } + + _attribute_map = { + 'compute_type': {'key': 'computeType', 'type': 'str'}, + 'databricks_access_token': {'key': 'databricksAccessToken', 'type': 'str'}, + } + + def __init__(self, *, databricks_access_token: str=None, **kwargs) -> None: + super(DatabricksComputeSecrets, self).__init__(**kwargs) + self.databricks_access_token = databricks_access_token + self.compute_type = 'Databricks' diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_properties.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_properties.py new file mode 100644 index 000000000000..0bfc22dc8fcb --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_properties.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class DatabricksProperties(Model): + """DatabricksProperties. + + :param databricks_access_token: Databricks access token + :type databricks_access_token: str + """ + + _attribute_map = { + 'databricks_access_token': {'key': 'databricksAccessToken', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DatabricksProperties, self).__init__(**kwargs) + self.databricks_access_token = kwargs.get('databricks_access_token', None) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_properties_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_properties_py3.py new file mode 100644 index 000000000000..78612df3f269 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_properties_py3.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class DatabricksProperties(Model): + """DatabricksProperties. + + :param databricks_access_token: Databricks access token + :type databricks_access_token: str + """ + + _attribute_map = { + 'databricks_access_token': {'key': 'databricksAccessToken', 'type': 'str'}, + } + + def __init__(self, *, databricks_access_token: str=None, **kwargs) -> None: + super(DatabricksProperties, self).__init__(**kwargs) + self.databricks_access_token = databricks_access_token diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_py3.py similarity index 77% rename from sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai_py3.py rename to sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_py3.py index 796a26605720..0ffcb61e2891 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/batch_ai_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/databricks_py3.py @@ -12,8 +12,8 @@ from .compute_py3 import Compute -class BatchAI(Compute): - """A Machine Learning compute based on Azure BatchAI. +class Databricks(Compute): + """A DataFactory compute. Variables are only populated by the server, and will be ignored when sending a request. @@ -34,16 +34,20 @@ class BatchAI(Compute): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str - :param properties: BatchAI properties + :param properties: :type properties: - ~azure.mgmt.machinelearningservices.models.BatchAIProperties + ~azure.mgmt.machinelearningservices.models.DatabricksProperties """ _validation = { @@ -51,6 +55,7 @@ class BatchAI(Compute): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -62,11 +67,12 @@ class BatchAI(Compute): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BatchAIProperties'}, + 'properties': {'key': 'properties', 'type': 'DatabricksProperties'}, } def __init__(self, *, compute_location: str=None, description: str=None, resource_id: str=None, properties=None, **kwargs) -> None: - super(BatchAI, self).__init__(compute_location=compute_location, description=description, resource_id=resource_id, **kwargs) + super(Databricks, self).__init__(compute_location=compute_location, description=description, resource_id=resource_id, **kwargs) self.properties = properties - self.compute_type = 'BatchAI' + self.compute_type = 'Databricks' diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/error_response.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/error_response.py index 1eaa8f685877..93848e9922f3 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/error_response.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/error_response.py @@ -15,20 +15,22 @@ class ErrorResponse(Model): """Error response information. - All required parameters must be populated in order to send to Azure. - - :param code: Required. Error code. - :type code: str - :param message: Required. Error message. - :type message: str - :param details: An array of error detail objects. - :type details: + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error message. + :vartype message: str + :ivar details: An array of error detail objects. + :vartype details: list[~azure.mgmt.machinelearningservices.models.ErrorDetail] """ _validation = { - 'code': {'required': True}, - 'message': {'required': True}, + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'details': {'readonly': True}, } _attribute_map = { @@ -39,6 +41,6 @@ class ErrorResponse(Model): def __init__(self, **kwargs): super(ErrorResponse, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.details = kwargs.get('details', None) + self.code = None + self.message = None + self.details = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/error_response_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/error_response_py3.py index 2fc3a331d42c..b5422c170ba3 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/error_response_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/error_response_py3.py @@ -15,20 +15,22 @@ class ErrorResponse(Model): """Error response information. - All required parameters must be populated in order to send to Azure. - - :param code: Required. Error code. - :type code: str - :param message: Required. Error message. - :type message: str - :param details: An array of error detail objects. - :type details: + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error message. + :vartype message: str + :ivar details: An array of error detail objects. + :vartype details: list[~azure.mgmt.machinelearningservices.models.ErrorDetail] """ _validation = { - 'code': {'required': True}, - 'message': {'required': True}, + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'details': {'readonly': True}, } _attribute_map = { @@ -37,8 +39,8 @@ class ErrorResponse(Model): 'details': {'key': 'details', 'type': '[ErrorDetail]'}, } - def __init__(self, *, code: str, message: str, details=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(ErrorResponse, self).__init__(**kwargs) - self.code = code - self.message = message - self.details = details + self.code = None + self.message = None + self.details = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/hd_insight.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/hd_insight.py index 36e32adee0fe..d66092c4fb0b 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/hd_insight.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/hd_insight.py @@ -34,11 +34,15 @@ class HDInsight(Compute): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str :param properties: @@ -51,6 +55,7 @@ class HDInsight(Compute): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -62,6 +67,7 @@ class HDInsight(Compute): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'HDInsightProperties'}, } diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/hd_insight_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/hd_insight_py3.py index e4341660c48e..cf6cef02cd64 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/hd_insight_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/hd_insight_py3.py @@ -34,11 +34,15 @@ class HDInsight(Compute): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str :param properties: @@ -51,6 +55,7 @@ class HDInsight(Compute): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -62,6 +67,7 @@ class HDInsight(Compute): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'HDInsightProperties'}, } diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/machine_learning_service_error.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/machine_learning_service_error.py index b6e52d4d43b0..8ba848dced24 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/machine_learning_service_error.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/machine_learning_service_error.py @@ -16,17 +16,24 @@ class MachineLearningServiceError(Model): """Wrapper for error response to follow ARM guidelines. - :param error: The error response. - :type error: ~azure.mgmt.machinelearningservices.models.ErrorResponse + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error: The error response. + :vartype error: ~azure.mgmt.machinelearningservices.models.ErrorResponse """ + _validation = { + 'error': {'readonly': True}, + } + _attribute_map = { 'error': {'key': 'error', 'type': 'ErrorResponse'}, } def __init__(self, **kwargs): super(MachineLearningServiceError, self).__init__(**kwargs) - self.error = kwargs.get('error', None) + self.error = None class MachineLearningServiceErrorException(HttpOperationError): diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/machine_learning_service_error_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/machine_learning_service_error_py3.py index c8465eced88a..feb3043fb81a 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/machine_learning_service_error_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/machine_learning_service_error_py3.py @@ -16,17 +16,24 @@ class MachineLearningServiceError(Model): """Wrapper for error response to follow ARM guidelines. - :param error: The error response. - :type error: ~azure.mgmt.machinelearningservices.models.ErrorResponse + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error: The error response. + :vartype error: ~azure.mgmt.machinelearningservices.models.ErrorResponse """ + _validation = { + 'error': {'readonly': True}, + } + _attribute_map = { 'error': {'key': 'error', 'type': 'ErrorResponse'}, } - def __init__(self, *, error=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(MachineLearningServiceError, self).__init__(**kwargs) - self.error = error + self.error = None class MachineLearningServiceErrorException(HttpOperationError): diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/node_state_counts.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/node_state_counts.py new file mode 100644 index 000000000000..da1c3f67b3fc --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/node_state_counts.py @@ -0,0 +1,66 @@ +# 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 msrest.serialization import Model + + +class NodeStateCounts(Model): + """Counts of various compute node states on the amlCompute. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar idle_node_count: Idle node count. Number of compute nodes in idle + state. + :vartype idle_node_count: int + :ivar running_node_count: Running node count. Number of compute nodes + which are running jobs. + :vartype running_node_count: int + :ivar preparing_node_count: Preparing node count. Number of compute nodes + which are being prepared. + :vartype preparing_node_count: int + :ivar unusable_node_count: Unusable node count. Number of compute nodes + which are in unusable state. + :vartype unusable_node_count: int + :ivar leaving_node_count: Leaving node count. Number of compute nodes + which are leaving the amlCompute. + :vartype leaving_node_count: int + :ivar preempted_node_count: Preempted node count. Number of compute nodes + which are in preempted state. + :vartype preempted_node_count: int + """ + + _validation = { + 'idle_node_count': {'readonly': True}, + 'running_node_count': {'readonly': True}, + 'preparing_node_count': {'readonly': True}, + 'unusable_node_count': {'readonly': True}, + 'leaving_node_count': {'readonly': True}, + 'preempted_node_count': {'readonly': True}, + } + + _attribute_map = { + 'idle_node_count': {'key': 'idleNodeCount', 'type': 'int'}, + 'running_node_count': {'key': 'runningNodeCount', 'type': 'int'}, + 'preparing_node_count': {'key': 'preparingNodeCount', 'type': 'int'}, + 'unusable_node_count': {'key': 'unusableNodeCount', 'type': 'int'}, + 'leaving_node_count': {'key': 'leavingNodeCount', 'type': 'int'}, + 'preempted_node_count': {'key': 'preemptedNodeCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(NodeStateCounts, self).__init__(**kwargs) + self.idle_node_count = None + self.running_node_count = None + self.preparing_node_count = None + self.unusable_node_count = None + self.leaving_node_count = None + self.preempted_node_count = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/node_state_counts_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/node_state_counts_py3.py new file mode 100644 index 000000000000..16308578dbea --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/node_state_counts_py3.py @@ -0,0 +1,66 @@ +# 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 msrest.serialization import Model + + +class NodeStateCounts(Model): + """Counts of various compute node states on the amlCompute. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar idle_node_count: Idle node count. Number of compute nodes in idle + state. + :vartype idle_node_count: int + :ivar running_node_count: Running node count. Number of compute nodes + which are running jobs. + :vartype running_node_count: int + :ivar preparing_node_count: Preparing node count. Number of compute nodes + which are being prepared. + :vartype preparing_node_count: int + :ivar unusable_node_count: Unusable node count. Number of compute nodes + which are in unusable state. + :vartype unusable_node_count: int + :ivar leaving_node_count: Leaving node count. Number of compute nodes + which are leaving the amlCompute. + :vartype leaving_node_count: int + :ivar preempted_node_count: Preempted node count. Number of compute nodes + which are in preempted state. + :vartype preempted_node_count: int + """ + + _validation = { + 'idle_node_count': {'readonly': True}, + 'running_node_count': {'readonly': True}, + 'preparing_node_count': {'readonly': True}, + 'unusable_node_count': {'readonly': True}, + 'leaving_node_count': {'readonly': True}, + 'preempted_node_count': {'readonly': True}, + } + + _attribute_map = { + 'idle_node_count': {'key': 'idleNodeCount', 'type': 'int'}, + 'running_node_count': {'key': 'runningNodeCount', 'type': 'int'}, + 'preparing_node_count': {'key': 'preparingNodeCount', 'type': 'int'}, + 'unusable_node_count': {'key': 'unusableNodeCount', 'type': 'int'}, + 'leaving_node_count': {'key': 'leavingNodeCount', 'type': 'int'}, + 'preempted_node_count': {'key': 'preemptedNodeCount', 'type': 'int'}, + } + + def __init__(self, **kwargs) -> None: + super(NodeStateCounts, self).__init__(**kwargs) + self.idle_node_count = None + self.running_node_count = None + self.preparing_node_count = None + self.unusable_node_count = None + self.leaving_node_count = None + self.preempted_node_count = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/resource_id.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/resource_id.py new file mode 100644 index 000000000000..0985a22c02e1 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/resource_id.py @@ -0,0 +1,35 @@ +# 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 msrest.serialization import Model + + +class ResourceId(Model): + """Represents a resource ID. For example, for a subnet, it is the resource URL + for the subnet. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. The ID of the resource + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceId, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/resource_id_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/resource_id_py3.py new file mode 100644 index 000000000000..3a01a74656c3 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/resource_id_py3.py @@ -0,0 +1,35 @@ +# 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 msrest.serialization import Model + + +class ResourceId(Model): + """Represents a resource ID. For example, for a subnet, it is the resource URL + for the subnet. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. The ID of the resource + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str, **kwargs) -> None: + super(ResourceId, self).__init__(**kwargs) + self.id = id diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/scale_settings.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/scale_settings.py index 22b7378a8dca..4afccf20d8e1 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/scale_settings.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/scale_settings.py @@ -13,24 +13,31 @@ class ScaleSettings(Model): - """scale settings for BatchAI Compute. + """scale settings for AML Compute. - :param max_node_count: Max number of nodes to use + All required parameters must be populated in order to send to Azure. + + :param max_node_count: Required. Max number of nodes to use :type max_node_count: int - :param min_node_count: Min number of nodes to use + :param min_node_count: Min number of nodes to use. Default value: 0 . :type min_node_count: int - :param auto_scale_enabled: Enable or disable auto scale - :type auto_scale_enabled: bool + :param node_idle_time_before_scale_down: Node Idle Time before scaling + down amlCompute + :type node_idle_time_before_scale_down: timedelta """ + _validation = { + 'max_node_count': {'required': True}, + } + _attribute_map = { 'max_node_count': {'key': 'maxNodeCount', 'type': 'int'}, 'min_node_count': {'key': 'minNodeCount', 'type': 'int'}, - 'auto_scale_enabled': {'key': 'autoScaleEnabled', 'type': 'bool'}, + 'node_idle_time_before_scale_down': {'key': 'nodeIdleTimeBeforeScaleDown', 'type': 'duration'}, } def __init__(self, **kwargs): super(ScaleSettings, self).__init__(**kwargs) self.max_node_count = kwargs.get('max_node_count', None) - self.min_node_count = kwargs.get('min_node_count', None) - self.auto_scale_enabled = kwargs.get('auto_scale_enabled', None) + self.min_node_count = kwargs.get('min_node_count', 0) + self.node_idle_time_before_scale_down = kwargs.get('node_idle_time_before_scale_down', None) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/scale_settings_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/scale_settings_py3.py index 6a31a9d0d260..e4be2b96c06f 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/scale_settings_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/scale_settings_py3.py @@ -13,24 +13,31 @@ class ScaleSettings(Model): - """scale settings for BatchAI Compute. + """scale settings for AML Compute. - :param max_node_count: Max number of nodes to use + All required parameters must be populated in order to send to Azure. + + :param max_node_count: Required. Max number of nodes to use :type max_node_count: int - :param min_node_count: Min number of nodes to use + :param min_node_count: Min number of nodes to use. Default value: 0 . :type min_node_count: int - :param auto_scale_enabled: Enable or disable auto scale - :type auto_scale_enabled: bool + :param node_idle_time_before_scale_down: Node Idle Time before scaling + down amlCompute + :type node_idle_time_before_scale_down: timedelta """ + _validation = { + 'max_node_count': {'required': True}, + } + _attribute_map = { 'max_node_count': {'key': 'maxNodeCount', 'type': 'int'}, 'min_node_count': {'key': 'minNodeCount', 'type': 'int'}, - 'auto_scale_enabled': {'key': 'autoScaleEnabled', 'type': 'bool'}, + 'node_idle_time_before_scale_down': {'key': 'nodeIdleTimeBeforeScaleDown', 'type': 'duration'}, } - def __init__(self, *, max_node_count: int=None, min_node_count: int=None, auto_scale_enabled: bool=None, **kwargs) -> None: + def __init__(self, *, max_node_count: int, min_node_count: int=0, node_idle_time_before_scale_down=None, **kwargs) -> None: super(ScaleSettings, self).__init__(**kwargs) self.max_node_count = max_node_count self.min_node_count = min_node_count - self.auto_scale_enabled = auto_scale_enabled + self.node_idle_time_before_scale_down = node_idle_time_before_scale_down diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/ssl_configuration.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/ssl_configuration.py index ab4367782f4d..5f46c657b133 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/ssl_configuration.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/ssl_configuration.py @@ -13,9 +13,9 @@ class SslConfiguration(Model): - """The SSL configuration for scoring. + """The ssl configuration for scoring. - :param status: Enable or disable SSL for scoring. Possible values include: + :param status: Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled' :type status: str or ~azure.mgmt.machinelearningservices.models.enum :param cert: Cert data diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/ssl_configuration_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/ssl_configuration_py3.py index 4189b4f75d66..121c2d06710a 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/ssl_configuration_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/ssl_configuration_py3.py @@ -13,9 +13,9 @@ class SslConfiguration(Model): - """The SSL configuration for scoring. + """The ssl configuration for scoring. - :param status: Enable or disable SSL for scoring. Possible values include: + :param status: Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled' :type status: str or ~azure.mgmt.machinelearningservices.models.enum :param cert: Cert data diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage.py new file mode 100644 index 000000000000..378cc7b39a69 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage.py @@ -0,0 +1,61 @@ +# 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 msrest.serialization import Model + + +class Usage(Model): + """Describes AML Resource Usage. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar type: Specifies the resource type. + :vartype type: str + :ivar unit: An enum describing the unit of usage measurement. Possible + values include: 'Count' + :vartype unit: str or ~azure.mgmt.machinelearningservices.models.UsageUnit + :ivar current_value: The current usage of the resource. + :vartype current_value: long + :ivar limit: The maximum permitted usage of the resource. + :vartype limit: long + :ivar name: The name of the type of usage. + :vartype name: ~azure.mgmt.machinelearningservices.models.UsageName + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'unit': {'readonly': True}, + 'current_value': {'readonly': True}, + 'limit': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'long'}, + 'limit': {'key': 'limit', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'UsageName'}, + } + + def __init__(self, **kwargs): + super(Usage, self).__init__(**kwargs) + self.id = None + self.type = None + self.unit = None + self.current_value = None + self.limit = None + self.name = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_name.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_name.py new file mode 100644 index 000000000000..9140d61b9b98 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_name.py @@ -0,0 +1,40 @@ +# 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 msrest.serialization import Model + + +class UsageName(Model): + """The Usage Names. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The name of the resource. + :vartype value: str + :ivar localized_value: The localized name of the resource. + :vartype localized_value: str + """ + + _validation = { + 'value': {'readonly': True}, + 'localized_value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UsageName, self).__init__(**kwargs) + self.value = None + self.localized_value = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_name_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_name_py3.py new file mode 100644 index 000000000000..5b6c039f8a9a --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_name_py3.py @@ -0,0 +1,40 @@ +# 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 msrest.serialization import Model + + +class UsageName(Model): + """The Usage Names. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The name of the resource. + :vartype value: str + :ivar localized_value: The localized name of the resource. + :vartype localized_value: str + """ + + _validation = { + 'value': {'readonly': True}, + 'localized_value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(UsageName, self).__init__(**kwargs) + self.value = None + self.localized_value = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_paged.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_paged.py new file mode 100644 index 000000000000..93afee264806 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_paged.py @@ -0,0 +1,27 @@ +# 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 msrest.paging import Paged + + +class UsagePaged(Paged): + """ + A paging container for iterating over a list of :class:`Usage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Usage]'} + } + + def __init__(self, *args, **kwargs): + + super(UsagePaged, self).__init__(*args, **kwargs) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_py3.py new file mode 100644 index 000000000000..e85d3d0ddb71 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/usage_py3.py @@ -0,0 +1,61 @@ +# 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 msrest.serialization import Model + + +class Usage(Model): + """Describes AML Resource Usage. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar type: Specifies the resource type. + :vartype type: str + :ivar unit: An enum describing the unit of usage measurement. Possible + values include: 'Count' + :vartype unit: str or ~azure.mgmt.machinelearningservices.models.UsageUnit + :ivar current_value: The current usage of the resource. + :vartype current_value: long + :ivar limit: The maximum permitted usage of the resource. + :vartype limit: long + :ivar name: The name of the type of usage. + :vartype name: ~azure.mgmt.machinelearningservices.models.UsageName + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'unit': {'readonly': True}, + 'current_value': {'readonly': True}, + 'limit': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'long'}, + 'limit': {'key': 'limit', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'UsageName'}, + } + + def __init__(self, **kwargs) -> None: + super(Usage, self).__init__(**kwargs) + self.id = None + self.type = None + self.unit = None + self.current_value = None + self.limit = None + self.name = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/user_account_credentials.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/user_account_credentials.py new file mode 100644 index 000000000000..3da1fe6744d6 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/user_account_credentials.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class UserAccountCredentials(Model): + """Settings for user account that gets created on each on the nodes of a + compute. + + All required parameters must be populated in order to send to Azure. + + :param admin_user_name: Required. User name. Name of the administrator + user account which can be used to SSH to nodes. + :type admin_user_name: str + :param admin_user_ssh_public_key: SSH public key. SSH public key of the + administrator user account. + :type admin_user_ssh_public_key: str + :param admin_user_password: Password. Password of the administrator user + account. + :type admin_user_password: str + """ + + _validation = { + 'admin_user_name': {'required': True}, + } + + _attribute_map = { + 'admin_user_name': {'key': 'adminUserName', 'type': 'str'}, + 'admin_user_ssh_public_key': {'key': 'adminUserSshPublicKey', 'type': 'str'}, + 'admin_user_password': {'key': 'adminUserPassword', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UserAccountCredentials, self).__init__(**kwargs) + self.admin_user_name = kwargs.get('admin_user_name', None) + self.admin_user_ssh_public_key = kwargs.get('admin_user_ssh_public_key', None) + self.admin_user_password = kwargs.get('admin_user_password', None) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/user_account_credentials_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/user_account_credentials_py3.py new file mode 100644 index 000000000000..6d1360999ad6 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/user_account_credentials_py3.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class UserAccountCredentials(Model): + """Settings for user account that gets created on each on the nodes of a + compute. + + All required parameters must be populated in order to send to Azure. + + :param admin_user_name: Required. User name. Name of the administrator + user account which can be used to SSH to nodes. + :type admin_user_name: str + :param admin_user_ssh_public_key: SSH public key. SSH public key of the + administrator user account. + :type admin_user_ssh_public_key: str + :param admin_user_password: Password. Password of the administrator user + account. + :type admin_user_password: str + """ + + _validation = { + 'admin_user_name': {'required': True}, + } + + _attribute_map = { + 'admin_user_name': {'key': 'adminUserName', 'type': 'str'}, + 'admin_user_ssh_public_key': {'key': 'adminUserSshPublicKey', 'type': 'str'}, + 'admin_user_password': {'key': 'adminUserPassword', 'type': 'str'}, + } + + def __init__(self, *, admin_user_name: str, admin_user_ssh_public_key: str=None, admin_user_password: str=None, **kwargs) -> None: + super(UserAccountCredentials, self).__init__(**kwargs) + self.admin_user_name = admin_user_name + self.admin_user_ssh_public_key = admin_user_ssh_public_key + self.admin_user_password = admin_user_password diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine.py index b28ea14b0cb7..f4f8f8f85cdd 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine.py @@ -34,11 +34,15 @@ class VirtualMachine(Compute): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str :param properties: @@ -51,6 +55,7 @@ class VirtualMachine(Compute): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -62,6 +67,7 @@ class VirtualMachine(Compute): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'VirtualMachineProperties'}, } diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_py3.py index eb9108b0d7df..b8647a0562d1 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_py3.py @@ -34,11 +34,15 @@ class VirtualMachine(Compute): :vartype created_on: datetime :ivar modified_on: The date and time when the compute was last modified. :vartype modified_on: datetime - :param resource_id: ARM resource id of the compute + :param resource_id: ARM resource id of the underlying compute :type resource_id: str :ivar provisioning_errors: Errors during provisioning :vartype provisioning_errors: list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError] + :ivar is_attached_compute: Indicating whether the compute was provisioned + by user and brought from outside if true, or machine learning service + provisioned it if false. + :vartype is_attached_compute: bool :param compute_type: Required. Constant filled by server. :type compute_type: str :param properties: @@ -51,6 +55,7 @@ class VirtualMachine(Compute): 'created_on': {'readonly': True}, 'modified_on': {'readonly': True}, 'provisioning_errors': {'readonly': True}, + 'is_attached_compute': {'readonly': True}, 'compute_type': {'required': True}, } @@ -62,6 +67,7 @@ class VirtualMachine(Compute): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'}, + 'is_attached_compute': {'key': 'isAttachedCompute', 'type': 'bool'}, 'compute_type': {'key': 'computeType', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'VirtualMachineProperties'}, } diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size.py new file mode 100644 index 000000000000..52d7ee3a40de --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size.py @@ -0,0 +1,78 @@ +# 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 msrest.serialization import Model + + +class VirtualMachineSize(Model): + """Describes the properties of a VM size. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Virtual Machine size name. The name of the virtual machine + size. + :vartype name: str + :ivar family: Virtual Machine family name. The family name of the virtual + machine size. + :vartype family: str + :ivar v_cp_us: Number of vPUs. The number of vCPUs supported by the + virtual machine size. + :vartype v_cp_us: int + :ivar os_vhd_size_mb: OS VHD Disk size. The OS VHD disk size, in MB, + allowed by the virtual machine size. + :vartype os_vhd_size_mb: int + :ivar max_resource_volume_mb: Resource volume size. The resource volume + size, in MB, allowed by the virtual machine size. + :vartype max_resource_volume_mb: int + :ivar memory_gb: Memory size. The amount of memory, in GB, supported by + the virtual machine size. + :vartype memory_gb: float + :ivar low_priority_capable: Low priority capable. Specifies if the virtual + machine size supports low priority VMs. + :vartype low_priority_capable: bool + :ivar premium_io: Premium IO supported. Specifies if the virtual machine + size supports premium IO. + :vartype premium_io: bool + """ + + _validation = { + 'name': {'readonly': True}, + 'family': {'readonly': True}, + 'v_cp_us': {'readonly': True}, + 'os_vhd_size_mb': {'readonly': True}, + 'max_resource_volume_mb': {'readonly': True}, + 'memory_gb': {'readonly': True}, + 'low_priority_capable': {'readonly': True}, + 'premium_io': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'v_cp_us': {'key': 'vCPUs', 'type': 'int'}, + 'os_vhd_size_mb': {'key': 'osVhdSizeMB', 'type': 'int'}, + 'max_resource_volume_mb': {'key': 'maxResourceVolumeMB', 'type': 'int'}, + 'memory_gb': {'key': 'memoryGB', 'type': 'float'}, + 'low_priority_capable': {'key': 'lowPriorityCapable', 'type': 'bool'}, + 'premium_io': {'key': 'premiumIO', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(VirtualMachineSize, self).__init__(**kwargs) + self.name = None + self.family = None + self.v_cp_us = None + self.os_vhd_size_mb = None + self.max_resource_volume_mb = None + self.memory_gb = None + self.low_priority_capable = None + self.premium_io = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size_list_result.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size_list_result.py new file mode 100644 index 000000000000..fc04668a0a5b --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size_list_result.py @@ -0,0 +1,30 @@ +# 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 msrest.serialization import Model + + +class VirtualMachineSizeListResult(Model): + """The List Virtual Machine size operation response. + + :param aml_compute: The list of virtual machine sizes supported by + AmlCompute. + :type aml_compute: + list[~azure.mgmt.machinelearningservices.models.VirtualMachineSize] + """ + + _attribute_map = { + 'aml_compute': {'key': 'amlCompute', 'type': '[VirtualMachineSize]'}, + } + + def __init__(self, **kwargs): + super(VirtualMachineSizeListResult, self).__init__(**kwargs) + self.aml_compute = kwargs.get('aml_compute', None) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size_list_result_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size_list_result_py3.py new file mode 100644 index 000000000000..912dff33a72e --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size_list_result_py3.py @@ -0,0 +1,30 @@ +# 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 msrest.serialization import Model + + +class VirtualMachineSizeListResult(Model): + """The List Virtual Machine size operation response. + + :param aml_compute: The list of virtual machine sizes supported by + AmlCompute. + :type aml_compute: + list[~azure.mgmt.machinelearningservices.models.VirtualMachineSize] + """ + + _attribute_map = { + 'aml_compute': {'key': 'amlCompute', 'type': '[VirtualMachineSize]'}, + } + + def __init__(self, *, aml_compute=None, **kwargs) -> None: + super(VirtualMachineSizeListResult, self).__init__(**kwargs) + self.aml_compute = aml_compute diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size_py3.py new file mode 100644 index 000000000000..e78fde17bcfa --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/virtual_machine_size_py3.py @@ -0,0 +1,78 @@ +# 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 msrest.serialization import Model + + +class VirtualMachineSize(Model): + """Describes the properties of a VM size. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Virtual Machine size name. The name of the virtual machine + size. + :vartype name: str + :ivar family: Virtual Machine family name. The family name of the virtual + machine size. + :vartype family: str + :ivar v_cp_us: Number of vPUs. The number of vCPUs supported by the + virtual machine size. + :vartype v_cp_us: int + :ivar os_vhd_size_mb: OS VHD Disk size. The OS VHD disk size, in MB, + allowed by the virtual machine size. + :vartype os_vhd_size_mb: int + :ivar max_resource_volume_mb: Resource volume size. The resource volume + size, in MB, allowed by the virtual machine size. + :vartype max_resource_volume_mb: int + :ivar memory_gb: Memory size. The amount of memory, in GB, supported by + the virtual machine size. + :vartype memory_gb: float + :ivar low_priority_capable: Low priority capable. Specifies if the virtual + machine size supports low priority VMs. + :vartype low_priority_capable: bool + :ivar premium_io: Premium IO supported. Specifies if the virtual machine + size supports premium IO. + :vartype premium_io: bool + """ + + _validation = { + 'name': {'readonly': True}, + 'family': {'readonly': True}, + 'v_cp_us': {'readonly': True}, + 'os_vhd_size_mb': {'readonly': True}, + 'max_resource_volume_mb': {'readonly': True}, + 'memory_gb': {'readonly': True}, + 'low_priority_capable': {'readonly': True}, + 'premium_io': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'v_cp_us': {'key': 'vCPUs', 'type': 'int'}, + 'os_vhd_size_mb': {'key': 'osVhdSizeMB', 'type': 'int'}, + 'max_resource_volume_mb': {'key': 'maxResourceVolumeMB', 'type': 'int'}, + 'memory_gb': {'key': 'memoryGB', 'type': 'float'}, + 'low_priority_capable': {'key': 'lowPriorityCapable', 'type': 'bool'}, + 'premium_io': {'key': 'premiumIO', 'type': 'bool'}, + } + + def __init__(self, **kwargs) -> None: + super(VirtualMachineSize, self).__init__(**kwargs) + self.name = None + self.family = None + self.v_cp_us = None + self.os_vhd_size_mb = None + self.max_resource_volume_mb = None + self.memory_gb = None + self.low_priority_capable = None + self.premium_io = None diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/workspace.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/workspace.py index b6825cde06df..b8a2845ffeff 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/workspace.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/workspace.py @@ -40,9 +40,6 @@ class Workspace(Resource): :ivar creation_time: The creation time of the machine learning workspace in ISO8601 format. :vartype creation_time: datetime - :param batchai_workspace: ARM id of the Batch AI workspace associated with - this workspace. This cannot be changed once the workspace has been created - :type batchai_workspace: str :param key_vault: ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created :type key_vault: str @@ -89,7 +86,6 @@ class Workspace(Resource): 'description': {'key': 'properties.description', 'type': 'str'}, 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'batchai_workspace': {'key': 'properties.batchaiWorkspace', 'type': 'str'}, 'key_vault': {'key': 'properties.keyVault', 'type': 'str'}, 'application_insights': {'key': 'properties.applicationInsights', 'type': 'str'}, 'container_registry': {'key': 'properties.containerRegistry', 'type': 'str'}, @@ -104,7 +100,6 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) self.friendly_name = kwargs.get('friendly_name', None) self.creation_time = None - self.batchai_workspace = kwargs.get('batchai_workspace', None) self.key_vault = kwargs.get('key_vault', None) self.application_insights = kwargs.get('application_insights', None) self.container_registry = kwargs.get('container_registry', None) diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/workspace_py3.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/workspace_py3.py index 66c8edfd9657..ddad88bd1195 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/workspace_py3.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/workspace_py3.py @@ -40,9 +40,6 @@ class Workspace(Resource): :ivar creation_time: The creation time of the machine learning workspace in ISO8601 format. :vartype creation_time: datetime - :param batchai_workspace: ARM id of the Batch AI workspace associated with - this workspace. This cannot be changed once the workspace has been created - :type batchai_workspace: str :param key_vault: ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created :type key_vault: str @@ -89,7 +86,6 @@ class Workspace(Resource): 'description': {'key': 'properties.description', 'type': 'str'}, 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'batchai_workspace': {'key': 'properties.batchaiWorkspace', 'type': 'str'}, 'key_vault': {'key': 'properties.keyVault', 'type': 'str'}, 'application_insights': {'key': 'properties.applicationInsights', 'type': 'str'}, 'container_registry': {'key': 'properties.containerRegistry', 'type': 'str'}, @@ -98,13 +94,12 @@ class Workspace(Resource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } - def __init__(self, *, location: str=None, tags=None, description: str=None, friendly_name: str=None, batchai_workspace: str=None, key_vault: str=None, application_insights: str=None, container_registry: str=None, storage_account: str=None, discovery_url: str=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, description: str=None, friendly_name: str=None, key_vault: str=None, application_insights: str=None, container_registry: str=None, storage_account: str=None, discovery_url: str=None, **kwargs) -> None: super(Workspace, self).__init__(location=location, tags=tags, **kwargs) self.workspace_id = None self.description = description self.friendly_name = friendly_name self.creation_time = None - self.batchai_workspace = batchai_workspace self.key_vault = key_vault self.application_insights = application_insights self.container_registry = container_registry diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/__init__.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/__init__.py index 97f27ec5c277..b2d934c14b68 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/__init__.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/__init__.py @@ -11,10 +11,14 @@ from .operations import Operations from .workspaces_operations import WorkspacesOperations +from .usages_operations import UsagesOperations +from .virtual_machine_sizes_operations import VirtualMachineSizesOperations from .machine_learning_compute_operations import MachineLearningComputeOperations __all__ = [ 'Operations', 'WorkspacesOperations', + 'UsagesOperations', + 'VirtualMachineSizesOperations', 'MachineLearningComputeOperations', ] diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/machine_learning_compute_operations.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/machine_learning_compute_operations.py index af0af15ccc9e..6782df8ba856 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/machine_learning_compute_operations.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/machine_learning_compute_operations.py @@ -24,7 +24,7 @@ class MachineLearningComputeOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of Azure Machine Learning resource provider API. Constant value: "2018-03-01-preview". + :ivar api_version: Version of Azure Machine Learning resource provider API. Constant value: "2019-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01-preview" + self.api_version = "2019-05-01" self.config = config @@ -301,10 +301,12 @@ def get_long_running_output(response): create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}'} - def _delete_initial( - self, resource_group_name, workspace_name, compute_name, custom_headers=None, raw=False, **operation_config): + def _update_initial( + self, resource_group_name, workspace_name, compute_name, scale_settings=None, custom_headers=None, raw=False, **operation_config): + parameters = models.ClusterUpdateParameters(scale_settings=scale_settings) + # Construct URL - url = self.delete.metadata['url'] + url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -319,6 +321,8 @@ def _delete_initial( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -326,25 +330,31 @@ def _delete_initial( if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + # Construct body + body_content = self._serialize.body(parameters, 'ClusterUpdateParameters') + # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) + request = self._client.patch(url, query_parameters, header_parameters, body_content) response = self._client.send(request, stream=False, **operation_config) - if response.status_code not in [200, 202]: + if response.status_code not in [200]: raise models.MachineLearningServiceErrorException(self._deserialize, response) + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ComputeResource', response) + if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - } - client_raw_response.add_headers(header_dict) + client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response - def delete( - self, resource_group_name, workspace_name, compute_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes specified Machine Learning compute. + return deserialized + + def update( + self, resource_group_name, workspace_name, compute_name, scale_settings=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates properties of a compute. This call will overwrite a compute if + it exists. This is a nonrecoverable operation. :param resource_group_name: Name of the resource group in which workspace is located. @@ -353,36 +363,43 @@ def delete( :type workspace_name: str :param compute_name: Name of the Azure Machine Learning compute. :type compute_name: str + :param scale_settings: Scale settings. Desired scale settings for the + amlCompute. + :type scale_settings: + ~azure.mgmt.machinelearningservices.models.ScaleSettings :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response :param polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :return: An instance of LROPoller that returns ComputeResource or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.machinelearningservices.models.ComputeResource] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.machinelearningservices.models.ComputeResource]] :raises: :class:`MachineLearningServiceErrorException` """ - raw_result = self._delete_initial( + raw_result = self._update_initial( resource_group_name=resource_group_name, workspace_name=workspace_name, compute_name=compute_name, + scale_settings=scale_settings, custom_headers=custom_headers, raw=True, **operation_config ) def get_long_running_output(response): + deserialized = self._deserialize('ComputeResource', response) + if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - }) + client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response + return deserialized + lro_delay = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) @@ -390,13 +407,13 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}'} + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}'} - def _system_update_initial( - self, resource_group_name, workspace_name, compute_name, custom_headers=None, raw=False, **operation_config): + def _delete_initial( + self, resource_group_name, workspace_name, compute_name, underlying_resource_action, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.system_update.metadata['url'] + url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -408,6 +425,7 @@ def _system_update_initial( # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['underlyingResourceAction'] = self._serialize.query("underlying_resource_action", underlying_resource_action, 'str') # Construct headers header_parameters = {} @@ -419,7 +437,7 @@ def _system_update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) + request = self._client.delete(url, query_parameters, header_parameters) response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 202]: @@ -434,9 +452,9 @@ def _system_update_initial( client_raw_response.add_headers(header_dict) return client_raw_response - def system_update( - self, resource_group_name, workspace_name, compute_name, custom_headers=None, raw=False, polling=True, **operation_config): - """System Update On Machine Learning compute. + def delete( + self, resource_group_name, workspace_name, compute_name, underlying_resource_action, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes specified Machine Learning compute. :param resource_group_name: Name of the resource group in which workspace is located. @@ -445,6 +463,11 @@ def system_update( :type workspace_name: str :param compute_name: Name of the Azure Machine Learning compute. :type compute_name: str + :param underlying_resource_action: Delete the underlying compute if + 'Delete', or detach the underlying compute from workspace if 'Detach'. + Possible values include: 'Delete', 'Detach' + :type underlying_resource_action: str or + ~azure.mgmt.machinelearningservices.models.UnderlyingResourceAction :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -457,10 +480,11 @@ def system_update( :raises: :class:`MachineLearningServiceErrorException` """ - raw_result = self._system_update_initial( + raw_result = self._delete_initial( resource_group_name=resource_group_name, workspace_name=workspace_name, compute_name=compute_name, + underlying_resource_action=underlying_resource_action, custom_headers=custom_headers, raw=True, **operation_config @@ -482,7 +506,74 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - system_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}'} + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}'} + + def list_nodes( + self, resource_group_name, workspace_name, compute_name, custom_headers=None, raw=False, **operation_config): + """Get the details (e.g IP address, port etc) of all the compute nodes in + the compute. + + :param resource_group_name: Name of the resource group in which + workspace is located. + :type resource_group_name: str + :param workspace_name: Name of Azure Machine Learning workspace. + :type workspace_name: str + :param compute_name: Name of the Azure Machine Learning compute. + :type compute_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: AmlComputeNodesInformation or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.machinelearningservices.models.AmlComputeNodesInformation + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`MachineLearningServiceErrorException` + """ + # Construct URL + url = self.list_nodes.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str'), + 'computeName': self._serialize.url("compute_name", compute_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.MachineLearningServiceErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('AmlComputeNodesInformation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_nodes.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes'} def list_keys( self, resource_group_name, workspace_name, compute_name, custom_headers=None, raw=False, **operation_config): diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/operations.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/operations.py index d3de28914e7b..f4676047f311 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/operations.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/operations.py @@ -22,7 +22,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of Azure Machine Learning resource provider API. Constant value: "2018-03-01-preview". + :ivar api_version: Version of Azure Machine Learning resource provider API. Constant value: "2019-05-01". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01-preview" + self.api_version = "2019-05-01" self.config = config diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/usages_operations.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/usages_operations.py new file mode 100644 index 000000000000..f14f8ec1515d --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/usages_operations.py @@ -0,0 +1,106 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class UsagesOperations(object): + """UsagesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of Azure Machine Learning resource provider API. Constant value: "2019-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01" + + self.config = config + + def list( + self, location, custom_headers=None, raw=False, **operation_config): + """Gets the current usage information as well as limits for AML resources + for given subscription and location. + + :param location: The location for which resource usage is queried. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Usage + :rtype: + ~azure.mgmt.machinelearningservices.models.UsagePaged[~azure.mgmt.machinelearningservices.models.Usage] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.UsagePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.UsagePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/usages'} diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/virtual_machine_sizes_operations.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/virtual_machine_sizes_operations.py new file mode 100644 index 000000000000..527fa944c548 --- /dev/null +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/virtual_machine_sizes_operations.py @@ -0,0 +1,99 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class VirtualMachineSizesOperations(object): + """VirtualMachineSizesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of Azure Machine Learning resource provider API. Constant value: "2019-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01" + + self.config = config + + def list( + self, location, custom_headers=None, raw=False, **operation_config): + """Returns supported VM Sizes in a location. + + :param location: The location upon which virtual-machine-sizes is + queried. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VirtualMachineSizeListResult or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.machinelearningservices.models.VirtualMachineSizeListResult + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineSizeListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/vmSizes'} diff --git a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/workspaces_operations.py b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/workspaces_operations.py index eae707efcb11..00a88c281c6d 100644 --- a/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/workspaces_operations.py +++ b/sdk/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/workspaces_operations.py @@ -22,7 +22,7 @@ class WorkspacesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of Azure Machine Learning resource provider API. Constant value: "2018-03-01-preview". + :ivar api_version: Version of Azure Machine Learning resource provider API. Constant value: "2019-05-01". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01-preview" + self.api_version = "2019-05-01" self.config = config