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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions azure-mgmt-machinelearningservices/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:

Release History
===============

0.1.0 (1970-01-01)
++++++++++++++++++

* Initial Release
5 changes: 5 additions & 0 deletions azure-mgmt-machinelearningservices/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

33 changes: 33 additions & 0 deletions azure-mgmt-machinelearningservices/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure MyService Management Client Library.

Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Usage
=====

For code examples, see `MyService Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


Provide Feedback
================

If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-machinelearningservices%2FREADME.png
1 change: 1 addition & 0 deletions azure-mgmt-machinelearningservices/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1 change: 1 addition & 0 deletions azure-mgmt-machinelearningservices/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
from .version import VERSION

__all__ = ['AzureMachineLearningWorkspaces']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -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.
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.operations import Operations
from .operations.workspaces_operations import WorkspacesOperations
from .operations.usages_operations import UsagesOperations
from .operations.usages_by_vm_family_operations import UsagesByVMFamilyOperations
from .operations.virtual_machine_sizes_operations import VirtualMachineSizesOperations
from .operations.machine_learning_compute_operations import MachineLearningComputeOperations
from . import models


class AzureMachineLearningWorkspacesConfiguration(AzureConfiguration):
"""Configuration for AzureMachineLearningWorkspaces
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure subscription identifier.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(AzureMachineLearningWorkspacesConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-machinelearningservices/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id


class AzureMachineLearningWorkspaces(SDKClient):
"""These APIs allow end users to operate on Azure Machine Learning Workspace resources.

:ivar config: Configuration for client.
:vartype config: AzureMachineLearningWorkspacesConfiguration

:ivar operations: Operations operations
: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 usages_by_vm_family: UsagesByVMFamily operations
:vartype usages_by_vm_family: azure.mgmt.machinelearningservices.operations.UsagesByVMFamilyOperations
: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

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure subscription identifier.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

self.config = AzureMachineLearningWorkspacesConfiguration(credentials, subscription_id, base_url)
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-11-19'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
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.usages_by_vm_family = UsagesByVMFamilyOperations(
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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

try:
from .operation_display_py3 import OperationDisplay
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 .usage_by_vm_family_py3 import UsageByVMFamily
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
from .error_detail_py3 import ErrorDetail
from .error_response_py3 import ErrorResponse
from .machine_learning_service_error_py3 import MachineLearningServiceError, MachineLearningServiceErrorException
from .compute_py3 import Compute
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 .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 .usage_by_vm_family import UsageByVMFamily
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
from .error_detail import ErrorDetail
from .error_response import ErrorResponse
from .machine_learning_service_error import MachineLearningServiceError, MachineLearningServiceErrorException
from .compute import Compute
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 .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 .usage_by_vm_family_paged import UsageByVMFamilyPaged
from .compute_resource_paged import ComputeResourcePaged
from .azure_machine_learning_workspaces_enums import (
ProvisioningState,
UsageUnit,
ResourceIdentityType,
VmPriority,
AllocationState,
ComputeType,
UnderlyingResourceAction,
)

__all__ = [
'OperationDisplay',
'Operation',
'Workspace',
'WorkspaceUpdateParameters',
'UsageName',
'Usage',
'UsageByVMFamily',
'VirtualMachineSize',
'VirtualMachineSizeListResult',
'Identity',
'Resource',
'ResourceId',
'Password',
'RegistryListCredentialsResult',
'ListWorkspaceKeysResult',
'ErrorDetail',
'ErrorResponse',
'MachineLearningServiceError', 'MachineLearningServiceErrorException',
'Compute',
'ComputeResource',
'SystemService',
'SslConfiguration',
'AksNetworkingConfiguration',
'AKSProperties',
'AKS',
'ScaleSettings',
'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',
'UsageByVMFamilyPaged',
'ComputeResourcePaged',
'ProvisioningState',
'UsageUnit',
'ResourceIdentityType',
'VmPriority',
'AllocationState',
'ComputeType',
'UnderlyingResourceAction',
]
Loading