Skip to content

Commit 51dd8c9

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] edgegateway/resource-manager (Azure#4131)
* [AutoPR edgegateway/resource-manager] Swagger and examples for Microsoft.DataBoxEdge RP (Azure#4116) * Generated from 9fd537119a0fa74ec60d08f5b16facaf32c15b08 Corrected typo in swagger file name * Packaging update of azure-mgmt-edgegateway * [AutoPR edgegateway/resource-manager] Update API version, update data contract for Order APIs (Azure#4368) * Generated from bea5e969329c0fe7fc44310e46f0640252e810df Deleted older version of APIs, updated the examples * Packaging update of azure-mgmt-edgegateway * [AutoPR edgegateway/resource-manager] Microsoft.DataBoxEdge RP: Corrected comments of trigger and extendedinfo APIs, corrected examples (Azure#4545) * Generated from 86db25b75a0bedae1cb2576e43056c51faefa427 Corrected parameter description in order API * Packaging update of azure-mgmt-edgegateway * Generated from 93dec3bb474cf411388c9839b430b299ecabc135 (Azure#4561) typo: upto -> up to * Update HISTORY.rst * Update version.py * Update sdk_packaging.toml * Packaging update of azure-mgmt-edgegateway
1 parent 4667dd3 commit 51dd8c9

File tree

142 files changed

+11367
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+11367
-0
lines changed

azure-mgmt-edgegateway/HISTORY.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
0.1.0 (2019-04-01)
7+
++++++++++++++++++
8+
9+
* Initial Release

azure-mgmt-edgegateway/MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
recursive-include tests *.py *.yaml
2+
include *.rst
3+
include azure/__init__.py
4+
include azure/mgmt/__init__.py
5+

azure-mgmt-edgegateway/README.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Microsoft Azure SDK for Python
2+
==============================
3+
4+
This is the Microsoft Azure Data Box Edge / Data Box Gateway Client Library.
5+
6+
Azure Resource Manager (ARM) is the next generation of management APIs that
7+
replace the old Azure Service Management (ASM).
8+
9+
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
10+
11+
For the older Azure Service Management (ASM) libraries, see
12+
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
13+
14+
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
15+
16+
17+
Usage
18+
=====
19+
20+
For code examples, see `Data Box Edge / Data Box Gateway
21+
<https://docs.microsoft.com/python/api/overview/azure/>`__
22+
on docs.microsoft.com.
23+
24+
25+
Provide Feedback
26+
================
27+
28+
If you encounter any bugs or have suggestions, please file an issue in the
29+
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
30+
section of the project.
31+
32+
33+
.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-edgegateway%2FREADME.png
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 .data_box_edge_management_client import DataBoxEdgeManagementClient
13+
from .version import VERSION
14+
15+
__all__ = ['DataBoxEdgeManagementClient']
16+
17+
__version__ = VERSION
18+
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
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

Comments
 (0)