Skip to content

Commit

Permalink
[AutoPR devtestlabs/resource-manager] [Hub Generated] Review request …
Browse files Browse the repository at this point in the history
…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 <nschonni@gmail.com>
  • Loading branch information
AutorestCI and nschonni authored Jul 19, 2019
1 parent 9e62733 commit 667999a
Show file tree
Hide file tree
Showing 351 changed files with 12,450 additions and 16,124 deletions.
1 change: 1 addition & 0 deletions sdk/devtestlabs/azure-mgmt-devtestlabs/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
2 changes: 1 addition & 1 deletion sdk/devtestlabs/azure-mgmt-devtestlabs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure DevTestLabs Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .dev_test_labs_client import DevTestLabsClient
from .version import VERSION
from ._configuration import DevTestLabsClientConfiguration
from ._dev_test_labs_client import DevTestLabsClient
__all__ = ['DevTestLabsClient', 'DevTestLabsClientConfiguration']

__all__ = ['DevTestLabsClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class DevTestLabsClientConfiguration(AzureConfiguration):
"""Configuration for DevTestLabsClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(DevTestLabsClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-devtestlabs/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
Expand Up @@ -11,66 +11,34 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.provider_operations import ProviderOperations
from .operations.labs_operations import LabsOperations
from .operations.operations import Operations
from .operations.global_schedules_operations import GlobalSchedulesOperations
from .operations.artifact_sources_operations import ArtifactSourcesOperations
from .operations.arm_templates_operations import ArmTemplatesOperations
from .operations.artifacts_operations import ArtifactsOperations
from .operations.costs_operations import CostsOperations
from .operations.custom_images_operations import CustomImagesOperations
from .operations.formulas_operations import FormulasOperations
from .operations.gallery_images_operations import GalleryImagesOperations
from .operations.notification_channels_operations import NotificationChannelsOperations
from .operations.policy_sets_operations import PolicySetsOperations
from .operations.policies_operations import PoliciesOperations
from .operations.schedules_operations import SchedulesOperations
from .operations.service_runners_operations import ServiceRunnersOperations
from .operations.users_operations import UsersOperations
from .operations.disks_operations import DisksOperations
from .operations.environments_operations import EnvironmentsOperations
from .operations.secrets_operations import SecretsOperations
from .operations.service_fabrics_operations import ServiceFabricsOperations
from .operations.service_fabric_schedules_operations import ServiceFabricSchedulesOperations
from .operations.virtual_machines_operations import VirtualMachinesOperations
from .operations.virtual_machine_schedules_operations import VirtualMachineSchedulesOperations
from .operations.virtual_networks_operations import VirtualNetworksOperations
from . import models


class DevTestLabsClientConfiguration(AzureConfiguration):
"""Configuration for DevTestLabsClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(DevTestLabsClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-devtestlabs/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import DevTestLabsClientConfiguration
from .operations import ProviderOperations
from .operations import LabsOperations
from .operations import Operations
from .operations import GlobalSchedulesOperations
from .operations import ArtifactSourcesOperations
from .operations import ArmTemplatesOperations
from .operations import ArtifactsOperations
from .operations import CostsOperations
from .operations import CustomImagesOperations
from .operations import FormulasOperations
from .operations import GalleryImagesOperations
from .operations import NotificationChannelsOperations
from .operations import PolicySetsOperations
from .operations import PoliciesOperations
from .operations import SchedulesOperations
from .operations import ServiceRunnersOperations
from .operations import UsersOperations
from .operations import DisksOperations
from .operations import EnvironmentsOperations
from .operations import SecretsOperations
from .operations import ServiceFabricsOperations
from .operations import ServiceFabricSchedulesOperations
from .operations import VirtualMachinesOperations
from .operations import VirtualMachineSchedulesOperations
from .operations import VirtualNetworksOperations
from . import models


class DevTestLabsClient(SDKClient):
Expand Down
Loading

0 comments on commit 667999a

Please sign in to comment.