-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5bd1794
commit 4c9c663
Showing
185 changed files
with
6,324 additions
and
641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
276 changes: 199 additions & 77 deletions
276
azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
azure-mgmt-datamigration/azure/mgmt/datamigration/models/api_error_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_capacity_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
37 changes: 37 additions & 0 deletions
37
azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
34 changes: 34 additions & 0 deletions
34
azure-mgmt-datamigration/azure/mgmt/datamigration/models/blob_share.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
34 changes: 34 additions & 0 deletions
34
azure-mgmt-datamigration/azure/mgmt/datamigration/models/blob_share_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...amigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.