Skip to content

Commit

Permalink
Generated from e44af0e34f0857da90c09d521243b8e9905aa8f3 (#5580)
Browse files Browse the repository at this point in the history
chore: jsonfmt healthcareapis

Ran `jsonfmt -w "specification/healthcareapis/**/*.json"`
  • Loading branch information
AutorestCI authored and zikalino committed Jul 24, 2019
1 parent d57aa02 commit fc76536
Show file tree
Hide file tree
Showing 40 changed files with 2,542 additions and 0 deletions.
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)
Original file line number Diff line number Diff line change
@@ -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 ErrorDetailsInternal(Model):
"""Error details.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar code: The error code.
:vartype code: str
:ivar message: The error message.
:vartype message: str
:ivar target: The target of the particular error.
:vartype target: str
"""

_validation = {
'code': {'readonly': True},
'message': {'readonly': True},
'target': {'readonly': True},
}

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ErrorDetailsInternal, self).__init__(**kwargs)
self.code = None
self.message = None
self.target = None
Loading

0 comments on commit fc76536

Please sign in to comment.