|
| 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 | +from msrestazure import AzureConfiguration |
| 15 | +from .version import VERSION |
| 16 | +from .operations.operations import Operations |
| 17 | +from .operations.accounts_operations import AccountsOperations |
| 18 | +from .operations.pools_operations import PoolsOperations |
| 19 | +from .operations.volumes_operations import VolumesOperations |
| 20 | +from .operations.mount_targets_operations import MountTargetsOperations |
| 21 | +from .operations.snapshots_operations import SnapshotsOperations |
| 22 | +from . import models |
| 23 | + |
| 24 | + |
| 25 | +class AzureNetAppFilesManagementClientConfiguration(AzureConfiguration): |
| 26 | + """Configuration for AzureNetAppFilesManagementClient |
| 27 | + Note that all parameters used to create this instance are saved as instance |
| 28 | + attributes. |
| 29 | +
|
| 30 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 31 | + :type credentials: :mod:`A msrestazure Credentials |
| 32 | + object<msrestazure.azure_active_directory>` |
| 33 | + :param subscription_id: Subscription credentials which uniquely identify |
| 34 | + Microsoft Azure subscription. The subscription ID forms part of the URI |
| 35 | + for every service call. |
| 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 | + if credentials is None: |
| 44 | + raise ValueError("Parameter 'credentials' must not be None.") |
| 45 | + if subscription_id is None: |
| 46 | + raise ValueError("Parameter 'subscription_id' must not be None.") |
| 47 | + if not base_url: |
| 48 | + base_url = 'https://management.azure.com' |
| 49 | + |
| 50 | + super(AzureNetAppFilesManagementClientConfiguration, self).__init__(base_url) |
| 51 | + |
| 52 | + self.add_user_agent('azure-mgmt-netapp/{}'.format(VERSION)) |
| 53 | + self.add_user_agent('Azure-SDK-For-Python') |
| 54 | + |
| 55 | + self.credentials = credentials |
| 56 | + self.subscription_id = subscription_id |
| 57 | + |
| 58 | + |
| 59 | +class AzureNetAppFilesManagementClient(SDKClient): |
| 60 | + """Microsoft NetApp Azure Resource Provider specification |
| 61 | +
|
| 62 | + :ivar config: Configuration for client. |
| 63 | + :vartype config: AzureNetAppFilesManagementClientConfiguration |
| 64 | +
|
| 65 | + :ivar operations: Operations operations |
| 66 | + :vartype operations: azure.mgmt.netapp.operations.Operations |
| 67 | + :ivar accounts: Accounts operations |
| 68 | + :vartype accounts: azure.mgmt.netapp.operations.AccountsOperations |
| 69 | + :ivar pools: Pools operations |
| 70 | + :vartype pools: azure.mgmt.netapp.operations.PoolsOperations |
| 71 | + :ivar volumes: Volumes operations |
| 72 | + :vartype volumes: azure.mgmt.netapp.operations.VolumesOperations |
| 73 | + :ivar mount_targets: MountTargets operations |
| 74 | + :vartype mount_targets: azure.mgmt.netapp.operations.MountTargetsOperations |
| 75 | + :ivar snapshots: Snapshots operations |
| 76 | + :vartype snapshots: azure.mgmt.netapp.operations.SnapshotsOperations |
| 77 | +
|
| 78 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 79 | + :type credentials: :mod:`A msrestazure Credentials |
| 80 | + object<msrestazure.azure_active_directory>` |
| 81 | + :param subscription_id: Subscription credentials which uniquely identify |
| 82 | + Microsoft Azure subscription. The subscription ID forms part of the URI |
| 83 | + for every service call. |
| 84 | + :type subscription_id: str |
| 85 | + :param str base_url: Service URL |
| 86 | + """ |
| 87 | + |
| 88 | + def __init__( |
| 89 | + self, credentials, subscription_id, base_url=None): |
| 90 | + |
| 91 | + self.config = AzureNetAppFilesManagementClientConfiguration(credentials, subscription_id, base_url) |
| 92 | + super(AzureNetAppFilesManagementClient, self).__init__(self.config.credentials, self.config) |
| 93 | + |
| 94 | + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} |
| 95 | + self.api_version = '2017-08-15' |
| 96 | + self._serialize = Serializer(client_models) |
| 97 | + self._deserialize = Deserializer(client_models) |
| 98 | + |
| 99 | + self.operations = Operations( |
| 100 | + self._client, self.config, self._serialize, self._deserialize) |
| 101 | + self.accounts = AccountsOperations( |
| 102 | + self._client, self.config, self._serialize, self._deserialize) |
| 103 | + self.pools = PoolsOperations( |
| 104 | + self._client, self.config, self._serialize, self._deserialize) |
| 105 | + self.volumes = VolumesOperations( |
| 106 | + self._client, self.config, self._serialize, self._deserialize) |
| 107 | + self.mount_targets = MountTargetsOperations( |
| 108 | + self._client, self.config, self._serialize, self._deserialize) |
| 109 | + self.snapshots = SnapshotsOperations( |
| 110 | + self._client, self.config, self._serialize, self._deserialize) |
0 commit comments