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
1 change: 0 additions & 1 deletion azure-mgmt-storagesync/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include *.rst
include azure_bdist_wheel.py
2 changes: 1 addition & 1 deletion azure-mgmt-storagesync/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion azure-mgmt-storagesync/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
14 changes: 8 additions & 6 deletions azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
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 .trigger_rollover_request_py3 import TriggerRolloverRequest
from .registered_server_create_parameters_py3 import RegisteredServerCreateParameters
from .server_endpoint_update_parameters_py3 import ServerEndpointUpdateParameters
from .server_endpoint_py3 import ServerEndpoint
Expand All @@ -38,12 +39,11 @@
from .pre_restore_request_py3 import PreRestoreRequest
from .backup_request_py3 import BackupRequest
from .post_backup_response_py3 import PostBackupResponse
from .workflow_array_py3 import WorkflowArray
from .storage_sync_service_update_parameters_py3 import StorageSyncServiceUpdateParameters
from .proxy_resource_py3 import ProxyResource
from .tracked_resource_py3 import TrackedResource
from .azure_entity_resource_py3 import AzureEntityResource
from .resource_py3 import Resource
from .proxy_resource_py3 import ProxyResource
except (SyntaxError, ImportError):
from .storage_sync_error_details import StorageSyncErrorDetails
from .storage_sync_api_error import StorageSyncApiError
Expand All @@ -57,6 +57,7 @@
from .sync_group_create_parameters import SyncGroupCreateParameters
from .cloud_endpoint_create_parameters import CloudEndpointCreateParameters
from .server_endpoint_create_parameters import ServerEndpointCreateParameters
from .trigger_rollover_request import TriggerRolloverRequest
from .registered_server_create_parameters import RegisteredServerCreateParameters
from .server_endpoint_update_parameters import ServerEndpointUpdateParameters
from .server_endpoint import ServerEndpoint
Expand All @@ -73,18 +74,18 @@
from .pre_restore_request import PreRestoreRequest
from .backup_request import BackupRequest
from .post_backup_response import PostBackupResponse
from .workflow_array import WorkflowArray
from .storage_sync_service_update_parameters import StorageSyncServiceUpdateParameters
from .proxy_resource import ProxyResource
from .tracked_resource import TrackedResource
from .azure_entity_resource import AzureEntityResource
from .resource import Resource
from .proxy_resource import ProxyResource
from .operation_entity_paged import OperationEntityPaged
from .storage_sync_service_paged import StorageSyncServicePaged
from .sync_group_paged import SyncGroupPaged
from .cloud_endpoint_paged import CloudEndpointPaged
from .server_endpoint_paged import ServerEndpointPaged
from .registered_server_paged import RegisteredServerPaged
from .workflow_paged import WorkflowPaged
from .storage_sync_management_client_enums import (
Reason,
NameAvailabilityReason,
Expand All @@ -103,6 +104,7 @@
'SyncGroupCreateParameters',
'CloudEndpointCreateParameters',
'ServerEndpointCreateParameters',
'TriggerRolloverRequest',
'RegisteredServerCreateParameters',
'ServerEndpointUpdateParameters',
'ServerEndpoint',
Expand All @@ -119,18 +121,18 @@
'PreRestoreRequest',
'BackupRequest',
'PostBackupResponse',
'WorkflowArray',
'StorageSyncServiceUpdateParameters',
'ProxyResource',
'TrackedResource',
'AzureEntityResource',
'Resource',
'ProxyResource',
'OperationEntityPaged',
'StorageSyncServicePaged',
'SyncGroupPaged',
'CloudEndpointPaged',
'ServerEndpointPaged',
'RegisteredServerPaged',
'WorkflowPaged',
'Reason',
'NameAvailabilityReason',
]
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .proxy_resource import ProxyResource


class CloudEndpoint(Resource):
class CloudEndpoint(ProxyResource):
"""Cloud Endpoint object.

Variables are only populated by the server, and will be ignored when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,23 @@
# 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]
from .proxy_resource import ProxyResource


class CloudEndpointCreateParameters(ProxyResource):
"""The parameters used when creating a cloud endpoint.

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

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: 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 All @@ -35,18 +34,23 @@ class CloudEndpointCreateParameters(Model):
:type storage_account_tenant_id: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', '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
Expand Up @@ -9,24 +9,23 @@
# 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]
from .proxy_resource_py3 import ProxyResource


class CloudEndpointCreateParameters(ProxyResource):
"""The parameters used when creating a cloud endpoint.

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

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: 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 All @@ -35,18 +34,23 @@ class CloudEndpointCreateParameters(Model):
:type storage_account_tenant_id: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', '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:
def __init__(self, *, 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 @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource_py3 import Resource
from .proxy_resource_py3 import ProxyResource


class CloudEndpoint(Resource):
class CloudEndpoint(ProxyResource):
"""Cloud Endpoint object.

Variables are only populated by the server, and will be ignored when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .proxy_resource import ProxyResource


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

Variables are only populated by the server, and will be ignored when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,23 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from .proxy_resource import ProxyResource


class RegisteredServerCreateParameters(Model):
"""The parameters used when creating a storage sync service.
class RegisteredServerCreateParameters(ProxyResource):
"""The parameters used when creating a registered server.

: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]
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
: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
:param agent_version: Registered Server Agent Version
Expand All @@ -47,9 +46,16 @@ class RegisteredServerCreateParameters(Model):
:type friendly_name: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'server_certificate': {'key': 'properties.serverCertificate', 'type': 'str'},
'agent_version': {'key': 'properties.agentVersion', 'type': 'str'},
'server_os_version': {'key': 'properties.serverOSVersion', 'type': 'str'},
Expand All @@ -63,8 +69,6 @@ class RegisteredServerCreateParameters(Model):

def __init__(self, **kwargs):
super(RegisteredServerCreateParameters, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', 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