Skip to content

Commit

Permalink
Generated from e4898febbc6b7d49e046eff01fe973d108cc53ca (#5951)
Browse files Browse the repository at this point in the history
chore: jsonfmt datamigration

Ran `jsonfmt -w "specification/datamigration/**/*.json"`
  • Loading branch information
AutorestCI authored Jun 18, 2019
1 parent f604c1c commit 27008a3
Show file tree
Hide file tree
Showing 515 changed files with 23,643 additions and 29,549 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .data_migration_service_client import DataMigrationServiceClient
from .version import VERSION
from ._configuration import DataMigrationServiceClientConfiguration
from ._data_migration_service_client import DataMigrationServiceClient
__all__ = ['DataMigrationServiceClient', 'DataMigrationServiceClientConfiguration']

__all__ = ['DataMigrationServiceClient']
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 DataMigrationServiceClientConfiguration(AzureConfiguration):
"""Configuration for DataMigrationServiceClient
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: Identifier of the subscription
: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(DataMigrationServiceClientConfiguration, 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-datamigration/{}'.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,49 +11,17 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.resource_skus_operations import ResourceSkusOperations
from .operations.services_operations import ServicesOperations
from .operations.tasks_operations import TasksOperations
from .operations.service_tasks_operations import ServiceTasksOperations
from .operations.projects_operations import ProjectsOperations
from .operations.usages_operations import UsagesOperations
from .operations.operations import Operations
from .operations.files_operations import FilesOperations
from . import models


class DataMigrationServiceClientConfiguration(AzureConfiguration):
"""Configuration for DataMigrationServiceClient
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: Identifier of the subscription
: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(DataMigrationServiceClientConfiguration, self).__init__(base_url)

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

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import DataMigrationServiceClientConfiguration
from .operations import ResourceSkusOperations
from .operations import ServicesOperations
from .operations import TasksOperations
from .operations import ServiceTasksOperations
from .operations import ProjectsOperations
from .operations import UsagesOperations
from .operations import Operations
from .operations import FilesOperations
from . import models


class DataMigrationServiceClient(SDKClient):
Expand Down
Loading

0 comments on commit 27008a3

Please sign in to comment.