|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from msrest.service_client import SDKClient |
| 13 | +from msrest import Serializer, Deserializer |
| 14 | + |
| 15 | +from ._configuration import AttestationManagementClientConfiguration |
| 16 | +from .operations import Operations |
| 17 | +from .operations import AttestationProvidersOperations |
| 18 | +from . import models |
| 19 | + |
| 20 | + |
| 21 | +class AttestationManagementClient(SDKClient): |
| 22 | + """Various APIs for managing resources in attestation service. This primarily encompasses per-tenant instance management. |
| 23 | +
|
| 24 | + :ivar config: Configuration for client. |
| 25 | + :vartype config: AttestationManagementClientConfiguration |
| 26 | +
|
| 27 | + :ivar operations: Operations operations |
| 28 | + :vartype operations: azure.mgmt.attestation.operations.Operations |
| 29 | + :ivar attestation_providers: AttestationProviders operations |
| 30 | + :vartype attestation_providers: azure.mgmt.attestation.operations.AttestationProvidersOperations |
| 31 | +
|
| 32 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 33 | + :type credentials: :mod:`A msrestazure Credentials |
| 34 | + object<msrestazure.azure_active_directory>` |
| 35 | + :param subscription_id: The ID of the target subscription. |
| 36 | + :type subscription_id: str |
| 37 | + :param str base_url: Service URL |
| 38 | + """ |
| 39 | + |
| 40 | + def __init__( |
| 41 | + self, credentials, subscription_id, base_url=None): |
| 42 | + |
| 43 | + self.config = AttestationManagementClientConfiguration(credentials, subscription_id, base_url) |
| 44 | + super(AttestationManagementClient, self).__init__(self.config.credentials, self.config) |
| 45 | + |
| 46 | + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} |
| 47 | + self.api_version = '2018-09-01-preview' |
| 48 | + self._serialize = Serializer(client_models) |
| 49 | + self._deserialize = Deserializer(client_models) |
| 50 | + |
| 51 | + self.operations = Operations( |
| 52 | + self._client, self.config, self._serialize, self._deserialize) |
| 53 | + self.attestation_providers = AttestationProvidersOperations( |
| 54 | + self._client, self.config, self._serialize, self._deserialize) |
0 commit comments