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-healthcareapis/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-healthcareapis/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-healthcareapis/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-healthcareapis%2FREADME.png
1 change: 1 addition & 0 deletions azure-mgmt-healthcareapis/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-healthcareapis/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
18 changes: 18 additions & 0 deletions azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/__init__.py
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 .healthcare_apis_management_client import HealthcareApisManagementClient
from .version import VERSION

__all__ = ['HealthcareApisManagementClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# 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.services_operations import ServicesOperations
from .operations.operations import Operations
from .operations.operation_results_operations import OperationResultsOperations
from .operations.move_resources_status_operations import MoveResourcesStatusOperations
from . import models


class HealthcareApisManagementClientConfiguration(AzureConfiguration):
"""Configuration for HealthcareApisManagementClient
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 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(HealthcareApisManagementClientConfiguration, self).__init__(base_url)

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

self.credentials = credentials
self.subscription_id = subscription_id


class HealthcareApisManagementClient(SDKClient):
"""Azure Healthcare APIs Client

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

:ivar services: Services operations
:vartype services: azure.mgmt.healthcareapis.operations.ServicesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.healthcareapis.operations.Operations
:ivar operation_results: OperationResults operations
:vartype operation_results: azure.mgmt.healthcareapis.operations.OperationResultsOperations
:ivar move_resources_status: MoveResourcesStatus operations
:vartype move_resources_status: azure.mgmt.healthcareapis.operations.MoveResourcesStatusOperations

: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 identifier.
:type subscription_id: str
:param str base_url: Service URL
"""

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

self.config = HealthcareApisManagementClientConfiguration(credentials, subscription_id, base_url)
super(HealthcareApisManagementClient, 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-08-20-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.services = ServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.operation_results = OperationResultsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.move_resources_status = MoveResourcesStatusOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# 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 .service_access_policy_entry_py3 import ServiceAccessPolicyEntry
from .service_cosmos_db_configuration_info_py3 import ServiceCosmosDbConfigurationInfo
from .services_properties_py3 import ServicesProperties
from .services_description_py3 import ServicesDescription
from .services_patch_description_py3 import ServicesPatchDescription
from .resource_py3 import Resource
from .error_details_internal_py3 import ErrorDetailsInternal
from .error_details_py3 import ErrorDetails, ErrorDetailsException
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .check_name_availability_parameters_py3 import CheckNameAvailabilityParameters
from .services_name_availability_info_py3 import ServicesNameAvailabilityInfo
from .move_resources_parameters_py3 import MoveResourcesParameters
from .operation_results_description_py3 import OperationResultsDescription
except (SyntaxError, ImportError):
from .service_access_policy_entry import ServiceAccessPolicyEntry
from .service_cosmos_db_configuration_info import ServiceCosmosDbConfigurationInfo
from .services_properties import ServicesProperties
from .services_description import ServicesDescription
from .services_patch_description import ServicesPatchDescription
from .resource import Resource
from .error_details_internal import ErrorDetailsInternal
from .error_details import ErrorDetails, ErrorDetailsException
from .operation_display import OperationDisplay
from .operation import Operation
from .check_name_availability_parameters import CheckNameAvailabilityParameters
from .services_name_availability_info import ServicesNameAvailabilityInfo
from .move_resources_parameters import MoveResourcesParameters
from .operation_results_description import OperationResultsDescription
from .services_description_paged import ServicesDescriptionPaged
from .operation_paged import OperationPaged
from .healthcare_apis_management_client_enums import (
ProvisioningState,
ServiceNameUnavailabilityReason,
OperationResultStatus,
)

__all__ = [
'ServiceAccessPolicyEntry',
'ServiceCosmosDbConfigurationInfo',
'ServicesProperties',
'ServicesDescription',
'ServicesPatchDescription',
'Resource',
'ErrorDetailsInternal',
'ErrorDetails', 'ErrorDetailsException',
'OperationDisplay',
'Operation',
'CheckNameAvailabilityParameters',
'ServicesNameAvailabilityInfo',
'MoveResourcesParameters',
'OperationResultsDescription',
'ServicesDescriptionPaged',
'OperationPaged',
'ProvisioningState',
'ServiceNameUnavailabilityReason',
'OperationResultStatus',
]
Original file line number Diff line number Diff line change
@@ -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 CheckNameAvailabilityParameters(Model):
"""Input values.

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

:param name: Required. The name of the service instance to check.
:type name: str
:param type: Required. The fully qualified resource type which includes
provider namespace.
:type type: str
"""

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

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CheckNameAvailabilityParameters, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', None)
Original file line number Diff line number Diff line change
@@ -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 CheckNameAvailabilityParameters(Model):
"""Input values.

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

:param name: Required. The name of the service instance to check.
:type name: str
:param type: Required. The fully qualified resource type which includes
provider namespace.
:type type: str
"""

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

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, *, name: str, type: str, **kwargs) -> None:
super(CheckNameAvailabilityParameters, self).__init__(**kwargs)
self.name = name
self.type = type
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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
from msrest.exceptions import HttpOperationError


class ErrorDetails(Model):
"""Error details.

:param error: Object containing error details.
:type error: ~azure.mgmt.healthcareapis.models.ErrorDetailsInternal
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorDetailsInternal'},
}

def __init__(self, **kwargs):
super(ErrorDetails, self).__init__(**kwargs)
self.error = kwargs.get('error', None)


class ErrorDetailsException(HttpOperationError):
"""Server responsed with exception of type: 'ErrorDetails'.

:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

def __init__(self, deserialize, response, *args):

super(ErrorDetailsException, self).__init__(deserialize, response, 'ErrorDetails', *args)
Loading