|
| 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.devices_operations import DevicesOperations |
| 18 | +from .operations.alerts_operations import AlertsOperations |
| 19 | +from .operations.bandwidth_schedules_operations import BandwidthSchedulesOperations |
| 20 | +from .operations.jobs_operations import JobsOperations |
| 21 | +from .operations.operations_status_operations import OperationsStatusOperations |
| 22 | +from .operations.orders_operations import OrdersOperations |
| 23 | +from .operations.roles_operations import RolesOperations |
| 24 | +from .operations.shares_operations import SharesOperations |
| 25 | +from .operations.storage_account_credentials_operations import StorageAccountCredentialsOperations |
| 26 | +from .operations.triggers_operations import TriggersOperations |
| 27 | +from .operations.users_operations import UsersOperations |
| 28 | +from . import models |
| 29 | + |
| 30 | + |
| 31 | +class DataBoxEdgeManagementClientConfiguration(AzureConfiguration): |
| 32 | + """Configuration for DataBoxEdgeManagementClient |
| 33 | + Note that all parameters used to create this instance are saved as instance |
| 34 | + attributes. |
| 35 | +
|
| 36 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 37 | + :type credentials: :mod:`A msrestazure Credentials |
| 38 | + object<msrestazure.azure_active_directory>` |
| 39 | + :param subscription_id: The subscription ID. |
| 40 | + :type subscription_id: str |
| 41 | + :param str base_url: Service URL |
| 42 | + """ |
| 43 | + |
| 44 | + def __init__( |
| 45 | + self, credentials, subscription_id, base_url=None): |
| 46 | + |
| 47 | + if credentials is None: |
| 48 | + raise ValueError("Parameter 'credentials' must not be None.") |
| 49 | + if subscription_id is None: |
| 50 | + raise ValueError("Parameter 'subscription_id' must not be None.") |
| 51 | + if not base_url: |
| 52 | + base_url = 'https://management.azure.com' |
| 53 | + |
| 54 | + super(DataBoxEdgeManagementClientConfiguration, self).__init__(base_url) |
| 55 | + |
| 56 | + self.add_user_agent('azure-mgmt-edgegateway/{}'.format(VERSION)) |
| 57 | + self.add_user_agent('Azure-SDK-For-Python') |
| 58 | + |
| 59 | + self.credentials = credentials |
| 60 | + self.subscription_id = subscription_id |
| 61 | + |
| 62 | + |
| 63 | +class DataBoxEdgeManagementClient(SDKClient): |
| 64 | + """DataBoxEdgeManagementClient |
| 65 | +
|
| 66 | + :ivar config: Configuration for client. |
| 67 | + :vartype config: DataBoxEdgeManagementClientConfiguration |
| 68 | +
|
| 69 | + :ivar operations: Operations operations |
| 70 | + :vartype operations: azure.mgmt.edgegateway.operations.Operations |
| 71 | + :ivar devices: Devices operations |
| 72 | + :vartype devices: azure.mgmt.edgegateway.operations.DevicesOperations |
| 73 | + :ivar alerts: Alerts operations |
| 74 | + :vartype alerts: azure.mgmt.edgegateway.operations.AlertsOperations |
| 75 | + :ivar bandwidth_schedules: BandwidthSchedules operations |
| 76 | + :vartype bandwidth_schedules: azure.mgmt.edgegateway.operations.BandwidthSchedulesOperations |
| 77 | + :ivar jobs: Jobs operations |
| 78 | + :vartype jobs: azure.mgmt.edgegateway.operations.JobsOperations |
| 79 | + :ivar operations_status: OperationsStatus operations |
| 80 | + :vartype operations_status: azure.mgmt.edgegateway.operations.OperationsStatusOperations |
| 81 | + :ivar orders: Orders operations |
| 82 | + :vartype orders: azure.mgmt.edgegateway.operations.OrdersOperations |
| 83 | + :ivar roles: Roles operations |
| 84 | + :vartype roles: azure.mgmt.edgegateway.operations.RolesOperations |
| 85 | + :ivar shares: Shares operations |
| 86 | + :vartype shares: azure.mgmt.edgegateway.operations.SharesOperations |
| 87 | + :ivar storage_account_credentials: StorageAccountCredentials operations |
| 88 | + :vartype storage_account_credentials: azure.mgmt.edgegateway.operations.StorageAccountCredentialsOperations |
| 89 | + :ivar triggers: Triggers operations |
| 90 | + :vartype triggers: azure.mgmt.edgegateway.operations.TriggersOperations |
| 91 | + :ivar users: Users operations |
| 92 | + :vartype users: azure.mgmt.edgegateway.operations.UsersOperations |
| 93 | +
|
| 94 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 95 | + :type credentials: :mod:`A msrestazure Credentials |
| 96 | + object<msrestazure.azure_active_directory>` |
| 97 | + :param subscription_id: The subscription ID. |
| 98 | + :type subscription_id: str |
| 99 | + :param str base_url: Service URL |
| 100 | + """ |
| 101 | + |
| 102 | + def __init__( |
| 103 | + self, credentials, subscription_id, base_url=None): |
| 104 | + |
| 105 | + self.config = DataBoxEdgeManagementClientConfiguration(credentials, subscription_id, base_url) |
| 106 | + super(DataBoxEdgeManagementClient, self).__init__(self.config.credentials, self.config) |
| 107 | + |
| 108 | + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} |
| 109 | + self.api_version = '2019-03-01' |
| 110 | + self._serialize = Serializer(client_models) |
| 111 | + self._deserialize = Deserializer(client_models) |
| 112 | + |
| 113 | + self.operations = Operations( |
| 114 | + self._client, self.config, self._serialize, self._deserialize) |
| 115 | + self.devices = DevicesOperations( |
| 116 | + self._client, self.config, self._serialize, self._deserialize) |
| 117 | + self.alerts = AlertsOperations( |
| 118 | + self._client, self.config, self._serialize, self._deserialize) |
| 119 | + self.bandwidth_schedules = BandwidthSchedulesOperations( |
| 120 | + self._client, self.config, self._serialize, self._deserialize) |
| 121 | + self.jobs = JobsOperations( |
| 122 | + self._client, self.config, self._serialize, self._deserialize) |
| 123 | + self.operations_status = OperationsStatusOperations( |
| 124 | + self._client, self.config, self._serialize, self._deserialize) |
| 125 | + self.orders = OrdersOperations( |
| 126 | + self._client, self.config, self._serialize, self._deserialize) |
| 127 | + self.roles = RolesOperations( |
| 128 | + self._client, self.config, self._serialize, self._deserialize) |
| 129 | + self.shares = SharesOperations( |
| 130 | + self._client, self.config, self._serialize, self._deserialize) |
| 131 | + self.storage_account_credentials = StorageAccountCredentialsOperations( |
| 132 | + self._client, self.config, self._serialize, self._deserialize) |
| 133 | + self.triggers = TriggersOperations( |
| 134 | + self._client, self.config, self._serialize, self._deserialize) |
| 135 | + self.users = UsersOperations( |
| 136 | + self._client, self.config, self._serialize, self._deserialize) |
0 commit comments