Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-mgmt-storagesync/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Storage Sync 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 and 3.6.
This package has been tested with Python 2.7, 3.4, 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
21 changes: 21 additions & 0 deletions azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@

try:
from .storage_sync_error_details_py3 import StorageSyncErrorDetails
from .storage_sync_api_error_py3 import StorageSyncApiError
from .storage_sync_error_py3 import StorageSyncError, StorageSyncErrorException
from .subscription_state_py3 import SubscriptionState
from .storage_sync_service_py3 import StorageSyncService
from .sync_group_py3 import SyncGroup
from .cloud_endpoint_py3 import CloudEndpoint
from .recall_action_parameters_py3 import RecallActionParameters
from .storage_sync_service_create_parameters_py3 import StorageSyncServiceCreateParameters
from .sync_group_create_parameters_py3 import SyncGroupCreateParameters
from .cloud_endpoint_create_parameters_py3 import CloudEndpointCreateParameters
from .server_endpoint_create_parameters_py3 import ServerEndpointCreateParameters
from .registered_server_create_parameters_py3 import RegisteredServerCreateParameters
from .server_endpoint_update_parameters_py3 import ServerEndpointUpdateParameters
from .server_endpoint_py3 import ServerEndpoint
from .registered_server_py3 import RegisteredServer
Expand All @@ -39,11 +46,18 @@
from .resource_py3 import Resource
except (SyntaxError, ImportError):
from .storage_sync_error_details import StorageSyncErrorDetails
from .storage_sync_api_error import StorageSyncApiError
from .storage_sync_error import StorageSyncError, StorageSyncErrorException
from .subscription_state import SubscriptionState
from .storage_sync_service import StorageSyncService
from .sync_group import SyncGroup
from .cloud_endpoint import CloudEndpoint
from .recall_action_parameters import RecallActionParameters
from .storage_sync_service_create_parameters import StorageSyncServiceCreateParameters
from .sync_group_create_parameters import SyncGroupCreateParameters
from .cloud_endpoint_create_parameters import CloudEndpointCreateParameters
from .server_endpoint_create_parameters import ServerEndpointCreateParameters
from .registered_server_create_parameters import RegisteredServerCreateParameters
from .server_endpoint_update_parameters import ServerEndpointUpdateParameters
from .server_endpoint import ServerEndpoint
from .registered_server import RegisteredServer
Expand Down Expand Up @@ -78,11 +92,18 @@

__all__ = [
'StorageSyncErrorDetails',
'StorageSyncApiError',
'StorageSyncError', 'StorageSyncErrorException',
'SubscriptionState',
'StorageSyncService',
'SyncGroup',
'CloudEndpoint',
'RecallActionParameters',
'StorageSyncServiceCreateParameters',
'SyncGroupCreateParameters',
'CloudEndpointCreateParameters',
'ServerEndpointCreateParameters',
'RegisteredServerCreateParameters',
'ServerEndpointUpdateParameters',
'ServerEndpoint',
'RegisteredServer',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class CloudEndpoint(Resource):
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param storage_account_key: Storage Account access key.
:type storage_account_key: str
:param storage_account: Storage Account name.
:type storage_account: str
:param storage_account_resource_id: Storage Account Resource Id
:type storage_account_resource_id: str
:param storage_account_share_name: Storage Account Share name
Expand Down Expand Up @@ -61,8 +57,6 @@ class CloudEndpoint(Resource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'storage_account_key': {'key': 'properties.storageAccountKey', 'type': 'str'},
'storage_account': {'key': 'properties.storageAccount', 'type': 'str'},
'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'},
'storage_account_share_name': {'key': 'properties.storageAccountShareName', 'type': 'str'},
'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'},
Expand All @@ -76,8 +70,6 @@ class CloudEndpoint(Resource):

def __init__(self, **kwargs):
super(CloudEndpoint, self).__init__(**kwargs)
self.storage_account_key = kwargs.get('storage_account_key', None)
self.storage_account = kwargs.get('storage_account', None)
self.storage_account_resource_id = kwargs.get('storage_account_resource_id', None)
self.storage_account_share_name = kwargs.get('storage_account_share_name', None)
self.storage_account_tenant_id = kwargs.get('storage_account_tenant_id', None)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 CloudEndpointCreateParameters(Model):
"""The parameters used when creating a storage sync service.

:param location: Required. Gets or sets the location of the resource. This
will be one of the supported and registered Azure Geo Regions (e.g. West
US, East US, Southeast Asia, etc.). The geo region of a resource cannot be
changed once it is created, but if an identical geo region is specified on
update, the request will succeed.
:type location: str
:param tags: Gets or sets a list of key value pairs that describe the
resource. These tags can be used for viewing and grouping this resource
(across resource groups). A maximum of 15 tags can be provided for a
resource. Each tag must have a key with a length no greater than 128
characters and a value with a length no greater than 256 characters.
:type tags: dict[str, str]
:param storage_account_resource_id: Storage Account Resource Id
:type storage_account_resource_id: str
:param storage_account_share_name: Storage Account Share name
:type storage_account_share_name: str
:param storage_account_tenant_id: Storage Account Tenant Id
:type storage_account_tenant_id: str
"""

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'},
'storage_account_share_name': {'key': 'properties.storageAccountShareName', 'type': 'str'},
'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CloudEndpointCreateParameters, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', None)
self.storage_account_resource_id = kwargs.get('storage_account_resource_id', None)
self.storage_account_share_name = kwargs.get('storage_account_share_name', None)
self.storage_account_tenant_id = kwargs.get('storage_account_tenant_id', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 CloudEndpointCreateParameters(Model):
"""The parameters used when creating a storage sync service.

:param location: Required. Gets or sets the location of the resource. This
will be one of the supported and registered Azure Geo Regions (e.g. West
US, East US, Southeast Asia, etc.). The geo region of a resource cannot be
changed once it is created, but if an identical geo region is specified on
update, the request will succeed.
:type location: str
:param tags: Gets or sets a list of key value pairs that describe the
resource. These tags can be used for viewing and grouping this resource
(across resource groups). A maximum of 15 tags can be provided for a
resource. Each tag must have a key with a length no greater than 128
characters and a value with a length no greater than 256 characters.
:type tags: dict[str, str]
:param storage_account_resource_id: Storage Account Resource Id
:type storage_account_resource_id: str
:param storage_account_share_name: Storage Account Share name
:type storage_account_share_name: str
:param storage_account_tenant_id: Storage Account Tenant Id
:type storage_account_tenant_id: str
"""

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'},
'storage_account_share_name': {'key': 'properties.storageAccountShareName', 'type': 'str'},
'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'},
}

def __init__(self, *, location: str=None, tags=None, storage_account_resource_id: str=None, storage_account_share_name: str=None, storage_account_tenant_id: str=None, **kwargs) -> None:
super(CloudEndpointCreateParameters, self).__init__(**kwargs)
self.location = location
self.tags = tags
self.storage_account_resource_id = storage_account_resource_id
self.storage_account_share_name = storage_account_share_name
self.storage_account_tenant_id = storage_account_tenant_id
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class CloudEndpoint(Resource):
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param storage_account_key: Storage Account access key.
:type storage_account_key: str
:param storage_account: Storage Account name.
:type storage_account: str
:param storage_account_resource_id: Storage Account Resource Id
:type storage_account_resource_id: str
:param storage_account_share_name: Storage Account Share name
Expand Down Expand Up @@ -61,8 +57,6 @@ class CloudEndpoint(Resource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'storage_account_key': {'key': 'properties.storageAccountKey', 'type': 'str'},
'storage_account': {'key': 'properties.storageAccount', 'type': 'str'},
'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'},
'storage_account_share_name': {'key': 'properties.storageAccountShareName', 'type': 'str'},
'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'},
Expand All @@ -74,10 +68,8 @@ class CloudEndpoint(Resource):
'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'},
}

def __init__(self, *, storage_account_key: str=None, storage_account: str=None, storage_account_resource_id: str=None, storage_account_share_name: str=None, storage_account_tenant_id: str=None, partnership_id: str=None, friendly_name: str=None, provisioning_state: str=None, last_workflow_id: str=None, last_operation_name: str=None, **kwargs) -> None:
def __init__(self, *, storage_account_resource_id: str=None, storage_account_share_name: str=None, storage_account_tenant_id: str=None, partnership_id: str=None, friendly_name: str=None, provisioning_state: str=None, last_workflow_id: str=None, last_operation_name: str=None, **kwargs) -> None:
super(CloudEndpoint, self).__init__(**kwargs)
self.storage_account_key = storage_account_key
self.storage_account = storage_account
self.storage_account_resource_id = storage_account_resource_id
self.storage_account_share_name = storage_account_share_name
self.storage_account_tenant_id = storage_account_tenant_id
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 RecallActionParameters(Model):
"""The parameters used when calling recall action on server endpoint.

:param pattern: Pattern of the files.
:type pattern: str
:param recall_path: Recall path.
:type recall_path: str
"""

_attribute_map = {
'pattern': {'key': 'pattern', 'type': 'str'},
'recall_path': {'key': 'recallPath', 'type': 'str'},
}

def __init__(self, **kwargs):
super(RecallActionParameters, self).__init__(**kwargs)
self.pattern = kwargs.get('pattern', None)
self.recall_path = kwargs.get('recall_path', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 RecallActionParameters(Model):
"""The parameters used when calling recall action on server endpoint.

:param pattern: Pattern of the files.
:type pattern: str
:param recall_path: Recall path.
:type recall_path: str
"""

_attribute_map = {
'pattern': {'key': 'pattern', 'type': 'str'},
'recall_path': {'key': 'recallPath', 'type': 'str'},
}

def __init__(self, *, pattern: str=None, recall_path: str=None, **kwargs) -> None:
super(RecallActionParameters, self).__init__(**kwargs)
self.pattern = pattern
self.recall_path = recall_path
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,22 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from .resource import Resource


class RegisteredServer(Model):
class RegisteredServer(Resource):
"""Registered Server resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: Resource name
:ivar name: The name of the resource
:vartype name: str
:ivar type: Resource type
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param server_certificate: Registered Server Certificate
:type server_certificate: str
Expand Down Expand Up @@ -95,9 +97,6 @@ class RegisteredServer(Model):

def __init__(self, **kwargs):
super(RegisteredServer, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.server_certificate = kwargs.get('server_certificate', None)
self.agent_version = kwargs.get('agent_version', None)
self.server_os_version = kwargs.get('server_os_version', None)
Expand Down
Loading