Skip to content

Commit

Permalink
Rebuild by #2071
Browse files Browse the repository at this point in the history
  • Loading branch information
AutorestCI committed Apr 20, 2018
1 parent 5bd1794 commit 4c9c663
Show file tree
Hide file tree
Showing 185 changed files with 6,324 additions and 641 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2017-11-15-preview'
self.api_version = '2018-03-15-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
276 changes: 199 additions & 77 deletions azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class ApiError(Model):
'error': {'key': 'error', 'type': 'ODataError'},
}

def __init__(self, error=None):
super(ApiError, self).__init__()
self.error = error
def __init__(self, **kwargs):
super(ApiError, self).__init__(**kwargs)
self.error = kwargs.get('error', None)


class ApiErrorException(HttpOperationError):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 msrest.serialization import Model
from msrest.exceptions import HttpOperationError


class ApiError(Model):
"""Error information.
:param error: Error information in OData format
:type error: ~azure.mgmt.datamigration.models.ODataError
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ODataError'},
}

def __init__(self, *, error=None, **kwargs) -> None:
super(ApiError, self).__init__(**kwargs)
self.error = error


class ApiErrorException(HttpOperationError):
"""Server responsed with exception of type: 'ApiError'.
:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

def __init__(self, deserialize, response, *args):

super(ApiErrorException, self).__init__(deserialize, response, 'ApiError', *args)
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class AvailableServiceSku(Model):
'capacity': {'key': 'capacity', 'type': 'AvailableServiceSkuCapacity'},
}

def __init__(self, resource_type=None, sku=None, capacity=None):
super(AvailableServiceSku, self).__init__()
self.resource_type = resource_type
self.sku = sku
self.capacity = capacity
def __init__(self, **kwargs):
super(AvailableServiceSku, self).__init__(**kwargs)
self.resource_type = kwargs.get('resource_type', None)
self.sku = kwargs.get('sku', None)
self.capacity = kwargs.get('capacity', None)
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class AvailableServiceSkuCapacity(Model):
'minimum': {'key': 'minimum', 'type': 'int'},
'maximum': {'key': 'maximum', 'type': 'int'},
'default': {'key': 'default', 'type': 'int'},
'scale_type': {'key': 'scaleType', 'type': 'ServiceScalability'},
'scale_type': {'key': 'scaleType', 'type': 'str'},
}

def __init__(self, minimum=None, maximum=None, default=None, scale_type=None):
super(AvailableServiceSkuCapacity, self).__init__()
self.minimum = minimum
self.maximum = maximum
self.default = default
self.scale_type = scale_type
def __init__(self, **kwargs):
super(AvailableServiceSkuCapacity, self).__init__(**kwargs)
self.minimum = kwargs.get('minimum', None)
self.maximum = kwargs.get('maximum', None)
self.default = kwargs.get('default', None)
self.scale_type = kwargs.get('scale_type', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 msrest.serialization import Model


class AvailableServiceSkuCapacity(Model):
"""A description of the scaling capacities of the SKU.
:param minimum: The minimum capacity, usually 0 or 1.
:type minimum: int
:param maximum: The maximum capacity
:type maximum: int
:param default: The default capacity
:type default: int
:param scale_type: The scalability approach. Possible values include:
'none', 'manual', 'automatic'
:type scale_type: str or
~azure.mgmt.datamigration.models.ServiceScalability
"""

_attribute_map = {
'minimum': {'key': 'minimum', 'type': 'int'},
'maximum': {'key': 'maximum', 'type': 'int'},
'default': {'key': 'default', 'type': 'int'},
'scale_type': {'key': 'scaleType', 'type': 'str'},
}

def __init__(self, *, minimum: int=None, maximum: int=None, default: int=None, scale_type=None, **kwargs) -> None:
super(AvailableServiceSkuCapacity, self).__init__(**kwargs)
self.minimum = minimum
self.maximum = maximum
self.default = default
self.scale_type = scale_type
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 msrest.serialization import Model


class AvailableServiceSku(Model):
"""Describes the available service SKU.
:param resource_type: The resource type, including the provider namespace
:type resource_type: str
:param sku: SKU name, tier, etc.
:type sku: ~azure.mgmt.datamigration.models.AvailableServiceSkuSku
:param capacity: A description of the scaling capacities of the SKU
:type capacity:
~azure.mgmt.datamigration.models.AvailableServiceSkuCapacity
"""

_attribute_map = {
'resource_type': {'key': 'resourceType', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'AvailableServiceSkuSku'},
'capacity': {'key': 'capacity', 'type': 'AvailableServiceSkuCapacity'},
}

def __init__(self, *, resource_type: str=None, sku=None, capacity=None, **kwargs) -> None:
super(AvailableServiceSku, self).__init__(**kwargs)
self.resource_type = resource_type
self.sku = sku
self.capacity = capacity
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class AvailableServiceSkuSku(Model):
'tier': {'key': 'tier', 'type': 'str'},
}

def __init__(self, name=None, family=None, size=None, tier=None):
super(AvailableServiceSkuSku, self).__init__()
self.name = name
self.family = family
self.size = size
self.tier = tier
def __init__(self, **kwargs):
super(AvailableServiceSkuSku, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.family = kwargs.get('family', None)
self.size = kwargs.get('size', None)
self.tier = kwargs.get('tier', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 msrest.serialization import Model


class AvailableServiceSkuSku(Model):
"""SKU name, tier, etc.
:param name: The name of the SKU
:type name: str
:param family: SKU family
:type family: str
:param size: SKU size
:type size: str
:param tier: The tier of the SKU, such as "Free", "Basic", "Standard", or
"Premium"
:type tier: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'family': {'key': 'family', 'type': 'str'},
'size': {'key': 'size', 'type': 'str'},
'tier': {'key': 'tier', 'type': 'str'},
}

def __init__(self, *, name: str=None, family: str=None, size: str=None, tier: str=None, **kwargs) -> None:
super(AvailableServiceSkuSku, self).__init__(**kwargs)
self.name = name
self.family = family
self.size = size
self.tier = tier
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 msrest.serialization import Model


class BlobShare(Model):
"""Blob container storage information.
All required parameters must be populated in order to send to Azure.
:param sas_uri: Required. SAS URI of Azure Storage Account Container.
:type sas_uri: str
"""

_validation = {
'sas_uri': {'required': True},
}

_attribute_map = {
'sas_uri': {'key': 'sasUri', 'type': 'str'},
}

def __init__(self, **kwargs):
super(BlobShare, self).__init__(**kwargs)
self.sas_uri = kwargs.get('sas_uri', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 msrest.serialization import Model


class BlobShare(Model):
"""Blob container storage information.
All required parameters must be populated in order to send to Azure.
:param sas_uri: Required. SAS URI of Azure Storage Account Container.
:type sas_uri: str
"""

_validation = {
'sas_uri': {'required': True},
}

_attribute_map = {
'sas_uri': {'key': 'sasUri', 'type': 'str'},
}

def __init__(self, *, sas_uri: str, **kwargs) -> None:
super(BlobShare, self).__init__(**kwargs)
self.sas_uri = sas_uri
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ class ConnectToSourceSqlServerTaskInput(Model):
"""Input for the task that validates connection to SQL Server and also
validates source server requirements.
:param source_connection_info: Connection information for Source SQL
Server
All required parameters must be populated in order to send to Azure.
:param source_connection_info: Required. Connection information for Source
SQL Server
:type source_connection_info:
~azure.mgmt.datamigration.models.SqlConnectionInfo
:param check_permissions_group: Permission group for validations. Possible
Expand All @@ -32,10 +34,10 @@ class ConnectToSourceSqlServerTaskInput(Model):

_attribute_map = {
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'},
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'},
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'},
}

def __init__(self, source_connection_info, check_permissions_group=None):
super(ConnectToSourceSqlServerTaskInput, self).__init__()
self.source_connection_info = source_connection_info
self.check_permissions_group = check_permissions_group
def __init__(self, **kwargs):
super(ConnectToSourceSqlServerTaskInput, self).__init__(**kwargs)
self.source_connection_info = kwargs.get('source_connection_info', None)
self.check_permissions_group = kwargs.get('check_permissions_group', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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 msrest.serialization import Model


class ConnectToSourceSqlServerTaskInput(Model):
"""Input for the task that validates connection to SQL Server and also
validates source server requirements.
All required parameters must be populated in order to send to Azure.
:param source_connection_info: Required. Connection information for Source
SQL Server
:type source_connection_info:
~azure.mgmt.datamigration.models.SqlConnectionInfo
:param check_permissions_group: Permission group for validations. Possible
values include: 'Default', 'MigrationFromSqlServerToAzureDB'
:type check_permissions_group: str or
~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup
"""

_validation = {
'source_connection_info': {'required': True},
}

_attribute_map = {
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'},
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'},
}

def __init__(self, *, source_connection_info, check_permissions_group=None, **kwargs) -> None:
super(ConnectToSourceSqlServerTaskInput, self).__init__(**kwargs)
self.source_connection_info = source_connection_info
self.check_permissions_group = check_permissions_group
Loading

0 comments on commit 4c9c663

Please sign in to comment.