Skip to content

Commit 667999a

Browse files
AutorestCInschonni
andauthored
[AutoPR devtestlabs/resource-manager] [Hub Generated] Review request for Microsoft.DevTestLab to add version stable/2018-09-15 (#6359)
* Generated from c64177b58d5905986be6a16e270986ccfad08d25 Modification of PATCH description, plus minor fixes * Packaging update of azure-mgmt-devtestlabs * Generated from c2786532a6bf80ceb9cddda5e2c8b8abc09d6b30 Update specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json Co-Authored-By: Nick Schonning <[email protected]>
1 parent 9e62733 commit 667999a

File tree

351 files changed

+12450
-16124
lines changed

Some content is hidden

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

351 files changed

+12450
-16124
lines changed

sdk/devtestlabs/azure-mgmt-devtestlabs/MANIFEST.in

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

sdk/devtestlabs/azure-mgmt-devtestlabs/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is the Microsoft Azure DevTestLabs Management Client Library.
66
Azure Resource Manager (ARM) is the next generation of management APIs that
77
replace the old Azure Service Management (ASM).
88

9-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
9+
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
1010

1111
For the older Azure Service Management (ASM) libraries, see
1212
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .dev_test_labs_client import DevTestLabsClient
13-
from .version import VERSION
12+
from ._configuration import DevTestLabsClientConfiguration
13+
from ._dev_test_labs_client import DevTestLabsClient
14+
__all__ = ['DevTestLabsClient', 'DevTestLabsClientConfiguration']
1415

15-
__all__ = ['DevTestLabsClient']
16+
from .version import VERSION
1617

1718
__version__ = VERSION
1819

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class DevTestLabsClientConfiguration(AzureConfiguration):
17+
"""Configuration for DevTestLabsClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The subscription ID.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(DevTestLabsClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-devtestlabs/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id

sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/dev_test_labs_client.py renamed to sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/_dev_test_labs_client.py

Lines changed: 27 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -11,66 +11,34 @@
1111

1212
from msrest.service_client import SDKClient
1313
from msrest import Serializer, Deserializer
14-
from msrestazure import AzureConfiguration
15-
from .version import VERSION
16-
from .operations.provider_operations import ProviderOperations
17-
from .operations.labs_operations import LabsOperations
18-
from .operations.operations import Operations
19-
from .operations.global_schedules_operations import GlobalSchedulesOperations
20-
from .operations.artifact_sources_operations import ArtifactSourcesOperations
21-
from .operations.arm_templates_operations import ArmTemplatesOperations
22-
from .operations.artifacts_operations import ArtifactsOperations
23-
from .operations.costs_operations import CostsOperations
24-
from .operations.custom_images_operations import CustomImagesOperations
25-
from .operations.formulas_operations import FormulasOperations
26-
from .operations.gallery_images_operations import GalleryImagesOperations
27-
from .operations.notification_channels_operations import NotificationChannelsOperations
28-
from .operations.policy_sets_operations import PolicySetsOperations
29-
from .operations.policies_operations import PoliciesOperations
30-
from .operations.schedules_operations import SchedulesOperations
31-
from .operations.service_runners_operations import ServiceRunnersOperations
32-
from .operations.users_operations import UsersOperations
33-
from .operations.disks_operations import DisksOperations
34-
from .operations.environments_operations import EnvironmentsOperations
35-
from .operations.secrets_operations import SecretsOperations
36-
from .operations.service_fabrics_operations import ServiceFabricsOperations
37-
from .operations.service_fabric_schedules_operations import ServiceFabricSchedulesOperations
38-
from .operations.virtual_machines_operations import VirtualMachinesOperations
39-
from .operations.virtual_machine_schedules_operations import VirtualMachineSchedulesOperations
40-
from .operations.virtual_networks_operations import VirtualNetworksOperations
41-
from . import models
42-
43-
44-
class DevTestLabsClientConfiguration(AzureConfiguration):
45-
"""Configuration for DevTestLabsClient
46-
Note that all parameters used to create this instance are saved as instance
47-
attributes.
48-
49-
:param credentials: Credentials needed for the client to connect to Azure.
50-
:type credentials: :mod:`A msrestazure Credentials
51-
object<msrestazure.azure_active_directory>`
52-
:param subscription_id: The subscription ID.
53-
:type subscription_id: str
54-
:param str base_url: Service URL
55-
"""
56-
57-
def __init__(
58-
self, credentials, subscription_id, base_url=None):
5914

60-
if credentials is None:
61-
raise ValueError("Parameter 'credentials' must not be None.")
62-
if subscription_id is None:
63-
raise ValueError("Parameter 'subscription_id' must not be None.")
64-
if not base_url:
65-
base_url = 'https://management.azure.com'
66-
67-
super(DevTestLabsClientConfiguration, self).__init__(base_url)
68-
69-
self.add_user_agent('azure-mgmt-devtestlabs/{}'.format(VERSION))
70-
self.add_user_agent('Azure-SDK-For-Python')
71-
72-
self.credentials = credentials
73-
self.subscription_id = subscription_id
15+
from ._configuration import DevTestLabsClientConfiguration
16+
from .operations import ProviderOperations
17+
from .operations import LabsOperations
18+
from .operations import Operations
19+
from .operations import GlobalSchedulesOperations
20+
from .operations import ArtifactSourcesOperations
21+
from .operations import ArmTemplatesOperations
22+
from .operations import ArtifactsOperations
23+
from .operations import CostsOperations
24+
from .operations import CustomImagesOperations
25+
from .operations import FormulasOperations
26+
from .operations import GalleryImagesOperations
27+
from .operations import NotificationChannelsOperations
28+
from .operations import PolicySetsOperations
29+
from .operations import PoliciesOperations
30+
from .operations import SchedulesOperations
31+
from .operations import ServiceRunnersOperations
32+
from .operations import UsersOperations
33+
from .operations import DisksOperations
34+
from .operations import EnvironmentsOperations
35+
from .operations import SecretsOperations
36+
from .operations import ServiceFabricsOperations
37+
from .operations import ServiceFabricSchedulesOperations
38+
from .operations import VirtualMachinesOperations
39+
from .operations import VirtualMachineSchedulesOperations
40+
from .operations import VirtualNetworksOperations
41+
from . import models
7442

7543

7644
class DevTestLabsClient(SDKClient):

0 commit comments

Comments
 (0)