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-hybriddatamanager/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-hybriddatamanager/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-hybriddatamanager/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-hybriddatamanager%2FREADME.png
1 change: 1 addition & 0 deletions azure-mgmt-hybriddatamanager/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-hybriddatamanager/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 .hybrid_data_management_client import HybridDataManagementClient
from .version import VERSION

__all__ = ['HybridDataManagementClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# 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.data_managers_operations import DataManagersOperations
from .operations.data_services_operations import DataServicesOperations
from .operations.job_definitions_operations import JobDefinitionsOperations
from .operations.jobs_operations import JobsOperations
from .operations.data_stores_operations import DataStoresOperations
from .operations.data_store_types_operations import DataStoreTypesOperations
from .operations.public_keys_operations import PublicKeysOperations
from . import models


class HybridDataManagementClientConfiguration(AzureConfiguration):
"""Configuration for HybridDataManagementClient
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: The Subscription Id
: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(HybridDataManagementClientConfiguration, self).__init__(base_url)

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

self.credentials = credentials
self.subscription_id = subscription_id


class HybridDataManagementClient(SDKClient):
"""HybridDataManagementClient

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

:ivar operations: Operations operations
:vartype operations: azure.mgmt.hybriddatamanager.operations.Operations
:ivar data_managers: DataManagers operations
:vartype data_managers: azure.mgmt.hybriddatamanager.operations.DataManagersOperations
:ivar data_services: DataServices operations
:vartype data_services: azure.mgmt.hybriddatamanager.operations.DataServicesOperations
:ivar job_definitions: JobDefinitions operations
:vartype job_definitions: azure.mgmt.hybriddatamanager.operations.JobDefinitionsOperations
:ivar jobs: Jobs operations
:vartype jobs: azure.mgmt.hybriddatamanager.operations.JobsOperations
:ivar data_stores: DataStores operations
:vartype data_stores: azure.mgmt.hybriddatamanager.operations.DataStoresOperations
:ivar data_store_types: DataStoreTypes operations
:vartype data_store_types: azure.mgmt.hybriddatamanager.operations.DataStoreTypesOperations
:ivar public_keys: PublicKeys operations
:vartype public_keys: azure.mgmt.hybriddatamanager.operations.PublicKeysOperations

: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: The Subscription Id
:type subscription_id: str
:param str base_url: Service URL
"""

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

self.config = HybridDataManagementClientConfiguration(credentials, subscription_id, base_url)
super(HybridDataManagementClient, 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 = '2016-06-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.data_managers = DataManagersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.data_services = DataServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.job_definitions = JobDefinitionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.jobs = JobsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.data_stores = DataStoresOperations(
self._client, self.config, self._serialize, self._deserialize)
self.data_store_types = DataStoreTypesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.public_keys = PublicKeysOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# 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 .available_provider_operation_display_py3 import AvailableProviderOperationDisplay
from .available_provider_operation_py3 import AvailableProviderOperation
from .customer_secret_py3 import CustomerSecret
from .data_manager_py3 import DataManager
from .sku_py3 import Sku
from .data_manager_update_parameter_py3 import DataManagerUpdateParameter
from .data_service_py3 import DataService
from .data_store_py3 import DataStore
from .data_store_filter_py3 import DataStoreFilter
from .data_store_type_py3 import DataStoreType
from .dms_base_object_py3 import DmsBaseObject
from .error_py3 import Error
from .error_details_py3 import ErrorDetails
from .job_stages_py3 import JobStages
from .schedule_py3 import Schedule
from .job_definition_py3 import JobDefinition
from .job_details_py3 import JobDetails
from .job_py3 import Job
from .job_definition_filter_py3 import JobDefinitionFilter
from .job_filter_py3 import JobFilter
from .key_py3 import Key
from .public_key_py3 import PublicKey
from .resource_py3 import Resource
from .run_parameters_py3 import RunParameters
except (SyntaxError, ImportError):
from .available_provider_operation_display import AvailableProviderOperationDisplay
from .available_provider_operation import AvailableProviderOperation
from .customer_secret import CustomerSecret
from .data_manager import DataManager
from .sku import Sku
from .data_manager_update_parameter import DataManagerUpdateParameter
from .data_service import DataService
from .data_store import DataStore
from .data_store_filter import DataStoreFilter
from .data_store_type import DataStoreType
from .dms_base_object import DmsBaseObject
from .error import Error
from .error_details import ErrorDetails
from .job_stages import JobStages
from .schedule import Schedule
from .job_definition import JobDefinition
from .job_details import JobDetails
from .job import Job
from .job_definition_filter import JobDefinitionFilter
from .job_filter import JobFilter
from .key import Key
from .public_key import PublicKey
from .resource import Resource
from .run_parameters import RunParameters
from .available_provider_operation_paged import AvailableProviderOperationPaged
from .data_manager_paged import DataManagerPaged
from .data_service_paged import DataServicePaged
from .job_definition_paged import JobDefinitionPaged
from .job_paged import JobPaged
from .data_store_paged import DataStorePaged
from .data_store_type_paged import DataStoreTypePaged
from .public_key_paged import PublicKeyPaged
from .hybrid_data_management_client_enums import (
SupportedAlgorithm,
State,
JobStatus,
IsJobCancellable,
RunLocation,
UserConfirmation,
)

__all__ = [
'AvailableProviderOperationDisplay',
'AvailableProviderOperation',
'CustomerSecret',
'DataManager',
'Sku',
'DataManagerUpdateParameter',
'DataService',
'DataStore',
'DataStoreFilter',
'DataStoreType',
'DmsBaseObject',
'Error',
'ErrorDetails',
'JobStages',
'Schedule',
'JobDefinition',
'JobDetails',
'Job',
'JobDefinitionFilter',
'JobFilter',
'Key',
'PublicKey',
'Resource',
'RunParameters',
'AvailableProviderOperationPaged',
'DataManagerPaged',
'DataServicePaged',
'JobDefinitionPaged',
'JobPaged',
'DataStorePaged',
'DataStoreTypePaged',
'PublicKeyPaged',
'SupportedAlgorithm',
'State',
'JobStatus',
'IsJobCancellable',
'RunLocation',
'UserConfirmation',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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 AvailableProviderOperation(Model):
"""Class represents provider operation.

All required parameters must be populated in order to send to Azure.

:param name: Required. Gets or Sets Name of the operations
:type name: str
:param display: Gets or sets Display information
Contains the localized display information for this particular
operation/action
:type display:
~azure.mgmt.hybriddatamanager.models.AvailableProviderOperationDisplay
:param origin: Gets or sets Origin
The intended executor of the operation; governs the display of the
operation in the RBAC UX and the audit logs UX.
Default value is “user,system”
:type origin: str
:param properties: Gets or sets Properties
Reserved for future use
:type properties: object
"""

_validation = {
'name': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'AvailableProviderOperationDisplay'},
'origin': {'key': 'origin', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'object'},
}

def __init__(self, **kwargs):
super(AvailableProviderOperation, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.display = kwargs.get('display', None)
self.origin = kwargs.get('origin', None)
self.properties = kwargs.get('properties', None)
Loading