From d05c9110ad00e86e3f8317218084240eef2e0ecd Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 9 Sep 2019 21:35:14 +0000 Subject: [PATCH 1/2] Generated from 2d3d8bf3f3da41f1f7cbb828e954f35931e871e9 introduce cloud tiering and recall status --- .../azure/mgmt/storagesync/__init__.py | 7 +- .../azure/mgmt/storagesync/_configuration.py | 48 + ....py => _storage_sync_management_client.py} | 57 +- .../azure/mgmt/storagesync/models/__init__.py | 245 +-- .../azure/mgmt/storagesync/models/_models.py | 1818 +++++++++++++++++ .../mgmt/storagesync/models/_models_py3.py | 1818 +++++++++++++++++ .../mgmt/storagesync/models/_paged_models.py | 105 + ... _storage_sync_management_client_enums.py} | 6 + .../models/azure_entity_resource.py | 50 - .../models/azure_entity_resource_py3.py | 50 - .../mgmt/storagesync/models/backup_request.py | 28 - .../storagesync/models/backup_request_py3.py | 28 - .../check_name_availability_parameters.py | 45 - .../check_name_availability_parameters_py3.py | 45 - .../models/check_name_availability_result.py | 51 - .../check_name_availability_result_py3.py | 51 - .../mgmt/storagesync/models/cloud_endpoint.py | 81 - .../cloud_endpoint_create_parameters.py | 56 - .../cloud_endpoint_create_parameters_py3.py | 56 - .../models/cloud_endpoint_paged.py | 27 - .../storagesync/models/cloud_endpoint_py3.py | 81 - .../models/files_not_syncing_error.py | 47 - .../models/files_not_syncing_error_py3.py | 47 - .../models/operation_display_info.py | 41 - .../models/operation_display_info_py3.py | 41 - .../models/operation_display_resource.py | 40 - .../models/operation_display_resource_py3.py | 40 - .../storagesync/models/operation_entity.py | 36 - .../models/operation_entity_paged.py | 27 - .../models/operation_entity_py3.py | 36 - .../models/post_backup_response.py | 35 - .../models/post_backup_response_py3.py | 35 - .../models/post_restore_request.py | 58 - .../models/post_restore_request_py3.py | 58 - .../storagesync/models/pre_restore_request.py | 64 - .../models/pre_restore_request_py3.py | 64 - .../mgmt/storagesync/models/proxy_resource.py | 45 - .../storagesync/models/proxy_resource_py3.py | 45 - .../models/recall_action_parameters.py | 32 - .../models/recall_action_parameters_py3.py | 32 - .../storagesync/models/registered_server.py | 121 -- .../registered_server_create_parameters.py | 80 - ...registered_server_create_parameters_py3.py | 80 - .../models/registered_server_paged.py | 27 - .../models/registered_server_py3.py | 121 -- .../azure/mgmt/storagesync/models/resource.py | 47 - .../mgmt/storagesync/models/resource_py3.py | 47 - .../storagesync/models/resources_move_info.py | 32 - .../models/resources_move_info_py3.py | 32 - .../storagesync/models/restore_file_spec.py | 39 - .../models/restore_file_spec_py3.py | 39 - .../storagesync/models/server_endpoint.py | 113 - .../server_endpoint_create_parameters.py | 80 - .../server_endpoint_create_parameters_py3.py | 80 - .../models/server_endpoint_paged.py | 27 - .../storagesync/models/server_endpoint_py3.py | 113 - .../models/server_endpoint_sync_status.py | 97 - .../models/server_endpoint_sync_status_py3.py | 97 - .../server_endpoint_update_parameters.py | 51 - .../server_endpoint_update_parameters_py3.py | 51 - .../models/storage_sync_api_error.py | 40 - .../models/storage_sync_api_error_py3.py | 40 - .../storagesync/models/storage_sync_error.py | 45 - .../models/storage_sync_error_details.py | 36 - .../models/storage_sync_error_details_py3.py | 36 - .../models/storage_sync_error_py3.py | 45 - .../models/storage_sync_service.py | 63 - .../storage_sync_service_create_parameters.py | 50 - ...rage_sync_service_create_parameters_py3.py | 50 - .../models/storage_sync_service_paged.py | 27 - .../models/storage_sync_service_py3.py | 63 - .../storage_sync_service_update_parameters.py | 33 - ...rage_sync_service_update_parameters_py3.py | 33 - .../storagesync/models/subscription_state.py | 44 - .../models/subscription_state_py3.py | 44 - .../models/sync_activity_status.py | 60 - .../models/sync_activity_status_py3.py | 60 - .../mgmt/storagesync/models/sync_group.py | 53 - .../models/sync_group_create_parameters.py | 48 - .../sync_group_create_parameters_py3.py | 48 - .../storagesync/models/sync_group_paged.py | 27 - .../mgmt/storagesync/models/sync_group_py3.py | 53 - .../storagesync/models/sync_session_status.py | 69 - .../models/sync_session_status_py3.py | 69 - .../storagesync/models/tracked_resource.py | 55 - .../models/tracked_resource_py3.py | 55 - .../models/trigger_rollover_request.py | 28 - .../models/trigger_rollover_request_py3.py | 28 - .../azure/mgmt/storagesync/models/workflow.py | 66 - .../mgmt/storagesync/models/workflow_paged.py | 27 - .../mgmt/storagesync/models/workflow_py3.py | 66 - .../mgmt/storagesync/operations/__init__.py | 16 +- ...ions.py => _cloud_endpoints_operations.py} | 131 +- .../_operation_status_operations.py | 112 + .../{operations.py => _operations.py} | 20 +- ...s.py => _registered_servers_operations.py} | 23 +- ...ons.py => _server_endpoints_operations.py} | 23 +- ...y => _storage_sync_services_operations.py} | 42 +- ...erations.py => _sync_groups_operations.py} | 26 +- ...operations.py => _workflows_operations.py} | 23 +- 100 files changed, 4274 insertions(+), 4553 deletions(-) create mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_configuration.py rename sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/{storage_sync_management_client.py => _storage_sync_management_client.py} (65%) create mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py create mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models_py3.py create mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_paged_models.py rename sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/{storage_sync_management_client_enums.py => _storage_sync_management_client_enums.py} (89%) delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/azure_entity_resource.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/azure_entity_resource_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/backup_request.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/backup_request_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_parameters.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_parameters_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_result.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_result_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_create_parameters.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_create_parameters_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_paged.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/files_not_syncing_error.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/files_not_syncing_error_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_info.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_info_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_resource.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_resource_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity_paged.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_backup_response.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_backup_response_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_restore_request.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_restore_request_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/pre_restore_request.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/pre_restore_request_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/proxy_resource.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/proxy_resource_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/recall_action_parameters.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/recall_action_parameters_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_create_parameters.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_create_parameters_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_paged.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resource.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resource_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resources_move_info.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resources_move_info_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/restore_file_spec.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/restore_file_spec_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_create_parameters.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_create_parameters_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_paged.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_sync_status.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_sync_status_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_update_parameters.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_update_parameters_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_api_error.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_api_error_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_details.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_details_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_create_parameters.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_create_parameters_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_paged.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_update_parameters.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_update_parameters_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/subscription_state.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/subscription_state_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_activity_status.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_activity_status_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_create_parameters.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_create_parameters_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_paged.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_session_status.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_session_status_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/tracked_resource.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/tracked_resource_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/trigger_rollover_request.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/trigger_rollover_request_py3.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow_paged.py delete mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow_py3.py rename sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/{cloud_endpoints_operations.py => _cloud_endpoints_operations.py} (88%) create mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operation_status_operations.py rename sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/{operations.py => _operations.py} (88%) rename sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/{registered_servers_operations.py => _registered_servers_operations.py} (98%) rename sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/{server_endpoints_operations.py => _server_endpoints_operations.py} (98%) rename sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/{storage_sync_services_operations.py => _storage_sync_services_operations.py} (97%) rename sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/{sync_groups_operations.py => _sync_groups_operations.py} (97%) rename sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/{workflows_operations.py => _workflows_operations.py} (96%) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/__init__.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/__init__.py index 247ac4b4938c..b123b2f457a8 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/__init__.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .storage_sync_management_client import StorageSyncManagementClient -from .version import VERSION +from ._configuration import StorageSyncManagementClientConfiguration +from ._storage_sync_management_client import StorageSyncManagementClient +__all__ = ['StorageSyncManagementClient', 'StorageSyncManagementClientConfiguration'] -__all__ = ['StorageSyncManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_configuration.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_configuration.py new file mode 100644 index 000000000000..4583b00c3ef5 --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_configuration.py @@ -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 StorageSyncManagementClientConfiguration(AzureConfiguration): + """Configuration for StorageSyncManagementClient + 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` + :param subscription_id: The ID of the target 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(StorageSyncManagementClientConfiguration, 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-storagesync/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/storage_sync_management_client.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_storage_sync_management_client.py similarity index 65% rename from sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/storage_sync_management_client.py rename to sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_storage_sync_management_client.py index da0b709553ec..f5713284dc7c 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/storage_sync_management_client.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_storage_sync_management_client.py @@ -11,48 +11,17 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.operations import Operations -from .operations.storage_sync_services_operations import StorageSyncServicesOperations -from .operations.sync_groups_operations import SyncGroupsOperations -from .operations.cloud_endpoints_operations import CloudEndpointsOperations -from .operations.server_endpoints_operations import ServerEndpointsOperations -from .operations.registered_servers_operations import RegisteredServersOperations -from .operations.workflows_operations import WorkflowsOperations -from . import models - - -class StorageSyncManagementClientConfiguration(AzureConfiguration): - """Configuration for StorageSyncManagementClient - 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` - :param subscription_id: The ID of the target 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(StorageSyncManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-storagesync/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import StorageSyncManagementClientConfiguration +from .operations import Operations +from .operations import StorageSyncServicesOperations +from .operations import SyncGroupsOperations +from .operations import CloudEndpointsOperations +from .operations import ServerEndpointsOperations +from .operations import RegisteredServersOperations +from .operations import WorkflowsOperations +from .operations import OperationStatusOperations +from . import models class StorageSyncManagementClient(SDKClient): @@ -75,6 +44,8 @@ class StorageSyncManagementClient(SDKClient): :vartype registered_servers: azure.mgmt.storagesync.operations.RegisteredServersOperations :ivar workflows: Workflows operations :vartype workflows: azure.mgmt.storagesync.operations.WorkflowsOperations + :ivar operation_status: OperationStatus operations + :vartype operation_status: azure.mgmt.storagesync.operations.OperationStatusOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -91,7 +62,7 @@ def __init__( super(StorageSyncManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2019-02-01' + self.api_version = '2019-06-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -109,3 +80,5 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.workflows = WorkflowsOperations( self._client, self.config, self._serialize, self._deserialize) + self.operation_status = OperationStatusOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py index d702a79ff889..60a4df781d88 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py @@ -10,134 +10,150 @@ # -------------------------------------------------------------------------- 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 .trigger_rollover_request_py3 import TriggerRolloverRequest - from .registered_server_create_parameters_py3 import RegisteredServerCreateParameters - from .server_endpoint_update_parameters_py3 import ServerEndpointUpdateParameters - from .files_not_syncing_error_py3 import FilesNotSyncingError - from .sync_session_status_py3 import SyncSessionStatus - from .sync_activity_status_py3 import SyncActivityStatus - from .server_endpoint_sync_status_py3 import ServerEndpointSyncStatus - from .server_endpoint_py3 import ServerEndpoint - from .registered_server_py3 import RegisteredServer - from .resources_move_info_py3 import ResourcesMoveInfo - from .workflow_py3 import Workflow - from .operation_display_info_py3 import OperationDisplayInfo - from .operation_entity_py3 import OperationEntity - from .operation_display_resource_py3 import OperationDisplayResource - from .check_name_availability_parameters_py3 import CheckNameAvailabilityParameters - from .check_name_availability_result_py3 import CheckNameAvailabilityResult - from .restore_file_spec_py3 import RestoreFileSpec - from .post_restore_request_py3 import PostRestoreRequest - from .pre_restore_request_py3 import PreRestoreRequest - from .backup_request_py3 import BackupRequest - from .post_backup_response_py3 import PostBackupResponse - from .storage_sync_service_update_parameters_py3 import StorageSyncServiceUpdateParameters - from .tracked_resource_py3 import TrackedResource - from .azure_entity_resource_py3 import AzureEntityResource - from .resource_py3 import Resource - from .proxy_resource_py3 import ProxyResource + from ._models_py3 import AzureEntityResource + from ._models_py3 import BackupRequest + from ._models_py3 import CheckNameAvailabilityParameters + from ._models_py3 import CheckNameAvailabilityResult + from ._models_py3 import CloudEndpoint + from ._models_py3 import CloudEndpointCreateParameters + from ._models_py3 import OperationDisplayInfo + from ._models_py3 import OperationDisplayResource + from ._models_py3 import OperationEntity + from ._models_py3 import OperationStatus + from ._models_py3 import PostBackupResponse + from ._models_py3 import PostRestoreRequest + from ._models_py3 import PreRestoreRequest + from ._models_py3 import ProxyResource + from ._models_py3 import RecallActionParameters + from ._models_py3 import RegisteredServer + from ._models_py3 import RegisteredServerCreateParameters + from ._models_py3 import Resource + from ._models_py3 import ResourcesMoveInfo + from ._models_py3 import RestoreFileSpec + from ._models_py3 import ServerEndpoint + from ._models_py3 import ServerEndpointCloudTieringStatus + from ._models_py3 import ServerEndpointCreateParameters + from ._models_py3 import ServerEndpointFilesNotSyncingError + from ._models_py3 import ServerEndpointRecallError + from ._models_py3 import ServerEndpointRecallStatus + from ._models_py3 import ServerEndpointSyncActivityStatus + from ._models_py3 import ServerEndpointSyncSessionStatus + from ._models_py3 import ServerEndpointSyncStatus + from ._models_py3 import ServerEndpointUpdateParameters + from ._models_py3 import StorageSyncApiError + from ._models_py3 import StorageSyncError, StorageSyncErrorException + from ._models_py3 import StorageSyncErrorDetails + from ._models_py3 import StorageSyncService + from ._models_py3 import StorageSyncServiceCreateParameters + from ._models_py3 import StorageSyncServiceUpdateParameters + from ._models_py3 import SubscriptionState + from ._models_py3 import SyncGroup + from ._models_py3 import SyncGroupCreateParameters + from ._models_py3 import TrackedResource + from ._models_py3 import TriggerChangeDetectionParameters + from ._models_py3 import TriggerRolloverRequest + from ._models_py3 import Workflow 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 .trigger_rollover_request import TriggerRolloverRequest - from .registered_server_create_parameters import RegisteredServerCreateParameters - from .server_endpoint_update_parameters import ServerEndpointUpdateParameters - from .files_not_syncing_error import FilesNotSyncingError - from .sync_session_status import SyncSessionStatus - from .sync_activity_status import SyncActivityStatus - from .server_endpoint_sync_status import ServerEndpointSyncStatus - from .server_endpoint import ServerEndpoint - from .registered_server import RegisteredServer - from .resources_move_info import ResourcesMoveInfo - from .workflow import Workflow - from .operation_display_info import OperationDisplayInfo - from .operation_entity import OperationEntity - from .operation_display_resource import OperationDisplayResource - from .check_name_availability_parameters import CheckNameAvailabilityParameters - from .check_name_availability_result import CheckNameAvailabilityResult - from .restore_file_spec import RestoreFileSpec - from .post_restore_request import PostRestoreRequest - from .pre_restore_request import PreRestoreRequest - from .backup_request import BackupRequest - from .post_backup_response import PostBackupResponse - from .storage_sync_service_update_parameters import StorageSyncServiceUpdateParameters - 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 ( + from ._models import AzureEntityResource + from ._models import BackupRequest + from ._models import CheckNameAvailabilityParameters + from ._models import CheckNameAvailabilityResult + from ._models import CloudEndpoint + from ._models import CloudEndpointCreateParameters + from ._models import OperationDisplayInfo + from ._models import OperationDisplayResource + from ._models import OperationEntity + from ._models import OperationStatus + from ._models import PostBackupResponse + from ._models import PostRestoreRequest + from ._models import PreRestoreRequest + from ._models import ProxyResource + from ._models import RecallActionParameters + from ._models import RegisteredServer + from ._models import RegisteredServerCreateParameters + from ._models import Resource + from ._models import ResourcesMoveInfo + from ._models import RestoreFileSpec + from ._models import ServerEndpoint + from ._models import ServerEndpointCloudTieringStatus + from ._models import ServerEndpointCreateParameters + from ._models import ServerEndpointFilesNotSyncingError + from ._models import ServerEndpointRecallError + from ._models import ServerEndpointRecallStatus + from ._models import ServerEndpointSyncActivityStatus + from ._models import ServerEndpointSyncSessionStatus + from ._models import ServerEndpointSyncStatus + from ._models import ServerEndpointUpdateParameters + from ._models import StorageSyncApiError + from ._models import StorageSyncError, StorageSyncErrorException + from ._models import StorageSyncErrorDetails + from ._models import StorageSyncService + from ._models import StorageSyncServiceCreateParameters + from ._models import StorageSyncServiceUpdateParameters + from ._models import SubscriptionState + from ._models import SyncGroup + from ._models import SyncGroupCreateParameters + from ._models import TrackedResource + from ._models import TriggerChangeDetectionParameters + from ._models import TriggerRolloverRequest + from ._models import Workflow +from ._paged_models import CloudEndpointPaged +from ._paged_models import OperationEntityPaged +from ._paged_models import RegisteredServerPaged +from ._paged_models import ServerEndpointPaged +from ._paged_models import StorageSyncServicePaged +from ._paged_models import SyncGroupPaged +from ._paged_models import WorkflowPaged +from ._storage_sync_management_client_enums import ( Reason, + ChangeDetectionMode, NameAvailabilityReason, ) __all__ = [ - 'StorageSyncErrorDetails', - 'StorageSyncApiError', - 'StorageSyncError', 'StorageSyncErrorException', - 'SubscriptionState', - 'StorageSyncService', - 'SyncGroup', + 'AzureEntityResource', + 'BackupRequest', + 'CheckNameAvailabilityParameters', + 'CheckNameAvailabilityResult', 'CloudEndpoint', - 'RecallActionParameters', - 'StorageSyncServiceCreateParameters', - 'SyncGroupCreateParameters', 'CloudEndpointCreateParameters', - 'ServerEndpointCreateParameters', - 'TriggerRolloverRequest', - 'RegisteredServerCreateParameters', - 'ServerEndpointUpdateParameters', - 'FilesNotSyncingError', - 'SyncSessionStatus', - 'SyncActivityStatus', - 'ServerEndpointSyncStatus', - 'ServerEndpoint', - 'RegisteredServer', - 'ResourcesMoveInfo', - 'Workflow', 'OperationDisplayInfo', - 'OperationEntity', 'OperationDisplayResource', - 'CheckNameAvailabilityParameters', - 'CheckNameAvailabilityResult', - 'RestoreFileSpec', + 'OperationEntity', + 'OperationStatus', + 'PostBackupResponse', 'PostRestoreRequest', 'PreRestoreRequest', - 'BackupRequest', - 'PostBackupResponse', + 'ProxyResource', + 'RecallActionParameters', + 'RegisteredServer', + 'RegisteredServerCreateParameters', + 'Resource', + 'ResourcesMoveInfo', + 'RestoreFileSpec', + 'ServerEndpoint', + 'ServerEndpointCloudTieringStatus', + 'ServerEndpointCreateParameters', + 'ServerEndpointFilesNotSyncingError', + 'ServerEndpointRecallError', + 'ServerEndpointRecallStatus', + 'ServerEndpointSyncActivityStatus', + 'ServerEndpointSyncSessionStatus', + 'ServerEndpointSyncStatus', + 'ServerEndpointUpdateParameters', + 'StorageSyncApiError', + 'StorageSyncError', 'StorageSyncErrorException', + 'StorageSyncErrorDetails', + 'StorageSyncService', + 'StorageSyncServiceCreateParameters', 'StorageSyncServiceUpdateParameters', + 'SubscriptionState', + 'SyncGroup', + 'SyncGroupCreateParameters', 'TrackedResource', - 'AzureEntityResource', - 'Resource', - 'ProxyResource', + 'TriggerChangeDetectionParameters', + 'TriggerRolloverRequest', + 'Workflow', 'OperationEntityPaged', 'StorageSyncServicePaged', 'SyncGroupPaged', @@ -146,5 +162,6 @@ 'RegisteredServerPaged', 'WorkflowPaged', 'Reason', + 'ChangeDetectionMode', 'NameAvailabilityReason', ] diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py new file mode 100644 index 000000000000..320eae0d6f1a --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py @@ -0,0 +1,1818 @@ +# 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 Resource(Model): + """Resource. + + 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 + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class AzureEntityResource(Resource): + """The resource model definition for a Azure Resource Manager resource with an + etag. + + 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 + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + +class BackupRequest(Model): + """Backup request. + + :param azure_file_share: Azure File Share. + :type azure_file_share: str + """ + + _attribute_map = { + 'azure_file_share': {'key': 'azureFileShare', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BackupRequest, self).__init__(**kwargs) + self.azure_file_share = kwargs.get('azure_file_share', None) + + +class CheckNameAvailabilityParameters(Model): + """Parameters for a check name availability request. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name to check for availability + :type name: str + :ivar type: Required. The resource type. Must be set to + Microsoft.StorageSync/storageSyncServices. Default value: + "Microsoft.StorageSync/storageSyncServices" . + :vartype type: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "Microsoft.StorageSync/storageSyncServices" + + def __init__(self, **kwargs): + super(CheckNameAvailabilityParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + + +class CheckNameAvailabilityResult(Model): + """The CheckNameAvailability operation response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name_available: Gets a boolean value that indicates whether the name + is available for you to use. If true, the name is available. If false, the + name has already been taken or invalid and cannot be used. + :vartype name_available: bool + :ivar reason: Gets the reason that a Storage Sync Service name could not + be used. The Reason element is only returned if NameAvailable is false. + Possible values include: 'Invalid', 'AlreadyExists' + :vartype reason: str or + ~azure.mgmt.storagesync.models.NameAvailabilityReason + :ivar message: Gets an error message explaining the Reason value in more + detail. + :vartype message: str + """ + + _validation = { + 'name_available': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'NameAvailabilityReason'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CheckNameAvailabilityResult, self).__init__(**kwargs) + self.name_available = None + self.reason = None + self.message = None + + +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. + + 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 + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ProxyResource, self).__init__(**kwargs) + + +class CloudEndpoint(ProxyResource): + """Cloud Endpoint object. + + 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 azure_file_share_name: Azure file share name + :type azure_file_share_name: str + :param storage_account_tenant_id: Storage Account Tenant Id + :type storage_account_tenant_id: str + :param partnership_id: Partnership Id + :type partnership_id: str + :param friendly_name: Friendly Name + :type friendly_name: str + :ivar backup_enabled: Backup Enabled + :vartype backup_enabled: str + :param provisioning_state: CloudEndpoint Provisioning State + :type provisioning_state: str + :param last_workflow_id: CloudEndpoint lastWorkflowId + :type last_workflow_id: str + :param last_operation_name: Resource Last Operation Name + :type last_operation_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'backup_enabled': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'}, + 'azure_file_share_name': {'key': 'properties.azureFileShareName', 'type': 'str'}, + 'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'}, + 'partnership_id': {'key': 'properties.partnershipId', 'type': 'str'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + 'backup_enabled': {'key': 'properties.backupEnabled', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, + 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CloudEndpoint, self).__init__(**kwargs) + self.storage_account_resource_id = kwargs.get('storage_account_resource_id', None) + self.azure_file_share_name = kwargs.get('azure_file_share_name', None) + self.storage_account_tenant_id = kwargs.get('storage_account_tenant_id', None) + self.partnership_id = kwargs.get('partnership_id', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.backup_enabled = None + self.provisioning_state = kwargs.get('provisioning_state', None) + self.last_workflow_id = kwargs.get('last_workflow_id', None) + self.last_operation_name = kwargs.get('last_operation_name', None) + + +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 azure_file_share_name: Azure file share name + :type azure_file_share_name: str + :param storage_account_tenant_id: Storage Account Tenant Id + :type storage_account_tenant_id: str + :param friendly_name: Friendly Name + :type friendly_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'}, + 'azure_file_share_name': {'key': 'properties.azureFileShareName', 'type': 'str'}, + 'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CloudEndpointCreateParameters, self).__init__(**kwargs) + self.storage_account_resource_id = kwargs.get('storage_account_resource_id', None) + self.azure_file_share_name = kwargs.get('azure_file_share_name', None) + self.storage_account_tenant_id = kwargs.get('storage_account_tenant_id', None) + self.friendly_name = kwargs.get('friendly_name', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class OperationDisplayInfo(Model): + """The operation supported by storage sync. + + :param description: The description of the operation. + :type description: str + :param operation: The action that users can perform, based on their + permission level. + :type operation: str + :param provider: Service provider: Microsoft StorageSync. + :type provider: str + :param resource: Resource on which the operation is performed. + :type resource: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplayInfo, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.operation = kwargs.get('operation', None) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + + +class OperationDisplayResource(Model): + """Operation Display Resource object. + + :param provider: Operation Display Resource Provider. + :type provider: str + :param resource: Operation Display Resource. + :type resource: str + :param operation: Operation Display Resource Operation. + :type operation: str + :param description: Operation Display Resource Description. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplayResource, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class OperationEntity(Model): + """The operation supported by storage sync. + + :param name: Operation name: {provider}/{resource}/{operation}. + :type name: str + :param display: The operation supported by storage sync. + :type display: ~azure.mgmt.storagesync.models.OperationDisplayInfo + :param origin: The origin. + :type origin: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplayInfo'}, + 'origin': {'key': 'origin', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationEntity, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + + +class OperationStatus(Model): + """Operation status object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Operation Id + :vartype name: str + :ivar status: Operation status + :vartype status: str + :ivar start_time: Start time of the operation + :vartype start_time: datetime + :ivar end_time: End time of the operation + :vartype end_time: datetime + :ivar error: Error details. + :vartype error: ~azure.mgmt.storagesync.models.StorageSyncApiError + """ + + _validation = { + 'name': {'readonly': True}, + 'status': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'StorageSyncApiError'}, + } + + def __init__(self, **kwargs): + super(OperationStatus, self).__init__(**kwargs) + self.name = None + self.status = None + self.start_time = None + self.end_time = None + self.error = None + + +class PostBackupResponse(Model): + """Post Backup Response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar cloud_endpoint_name: cloud endpoint Name. + :vartype cloud_endpoint_name: str + """ + + _validation = { + 'cloud_endpoint_name': {'readonly': True}, + } + + _attribute_map = { + 'cloud_endpoint_name': {'key': 'backupMetadata.cloudEndpointName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PostBackupResponse, self).__init__(**kwargs) + self.cloud_endpoint_name = None + + +class PostRestoreRequest(Model): + """Post Restore Request. + + :param partition: Post Restore partition. + :type partition: str + :param replica_group: Post Restore replica group. + :type replica_group: str + :param request_id: Post Restore request id. + :type request_id: str + :param azure_file_share_uri: Post Restore Azure file share uri. + :type azure_file_share_uri: str + :param status: Post Restore Azure status. + :type status: str + :param source_azure_file_share_uri: Post Restore Azure source azure file + share uri. + :type source_azure_file_share_uri: str + :param failed_file_list: Post Restore Azure failed file list. + :type failed_file_list: str + :param restore_file_spec: Post Restore restore file spec array. + :type restore_file_spec: + list[~azure.mgmt.storagesync.models.RestoreFileSpec] + """ + + _attribute_map = { + 'partition': {'key': 'partition', 'type': 'str'}, + 'replica_group': {'key': 'replicaGroup', 'type': 'str'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'azure_file_share_uri': {'key': 'azureFileShareUri', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source_azure_file_share_uri': {'key': 'sourceAzureFileShareUri', 'type': 'str'}, + 'failed_file_list': {'key': 'failedFileList', 'type': 'str'}, + 'restore_file_spec': {'key': 'restoreFileSpec', 'type': '[RestoreFileSpec]'}, + } + + def __init__(self, **kwargs): + super(PostRestoreRequest, self).__init__(**kwargs) + self.partition = kwargs.get('partition', None) + self.replica_group = kwargs.get('replica_group', None) + self.request_id = kwargs.get('request_id', None) + self.azure_file_share_uri = kwargs.get('azure_file_share_uri', None) + self.status = kwargs.get('status', None) + self.source_azure_file_share_uri = kwargs.get('source_azure_file_share_uri', None) + self.failed_file_list = kwargs.get('failed_file_list', None) + self.restore_file_spec = kwargs.get('restore_file_spec', None) + + +class PreRestoreRequest(Model): + """Pre Restore request object. + + :param partition: Pre Restore partition. + :type partition: str + :param replica_group: Pre Restore replica group. + :type replica_group: str + :param request_id: Pre Restore request id. + :type request_id: str + :param azure_file_share_uri: Pre Restore Azure file share uri. + :type azure_file_share_uri: str + :param status: Pre Restore Azure status. + :type status: str + :param source_azure_file_share_uri: Pre Restore Azure source azure file + share uri. + :type source_azure_file_share_uri: str + :param backup_metadata_property_bag: Pre Restore backup metadata property + bag. + :type backup_metadata_property_bag: str + :param restore_file_spec: Pre Restore restore file spec array. + :type restore_file_spec: + list[~azure.mgmt.storagesync.models.RestoreFileSpec] + :param pause_wait_for_sync_drain_time_period_in_seconds: Pre Restore pause + wait for sync drain time period in seconds. + :type pause_wait_for_sync_drain_time_period_in_seconds: int + """ + + _attribute_map = { + 'partition': {'key': 'partition', 'type': 'str'}, + 'replica_group': {'key': 'replicaGroup', 'type': 'str'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'azure_file_share_uri': {'key': 'azureFileShareUri', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source_azure_file_share_uri': {'key': 'sourceAzureFileShareUri', 'type': 'str'}, + 'backup_metadata_property_bag': {'key': 'backupMetadataPropertyBag', 'type': 'str'}, + 'restore_file_spec': {'key': 'restoreFileSpec', 'type': '[RestoreFileSpec]'}, + 'pause_wait_for_sync_drain_time_period_in_seconds': {'key': 'pauseWaitForSyncDrainTimePeriodInSeconds', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(PreRestoreRequest, self).__init__(**kwargs) + self.partition = kwargs.get('partition', None) + self.replica_group = kwargs.get('replica_group', None) + self.request_id = kwargs.get('request_id', None) + self.azure_file_share_uri = kwargs.get('azure_file_share_uri', None) + self.status = kwargs.get('status', None) + self.source_azure_file_share_uri = kwargs.get('source_azure_file_share_uri', None) + self.backup_metadata_property_bag = kwargs.get('backup_metadata_property_bag', None) + self.restore_file_spec = kwargs.get('restore_file_spec', None) + self.pause_wait_for_sync_drain_time_period_in_seconds = kwargs.get('pause_wait_for_sync_drain_time_period_in_seconds', None) + + +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) + + +class RegisteredServer(ProxyResource): + """Registered Server resource. + + 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 + :type agent_version: str + :param server_os_version: Registered Server OS Version + :type server_os_version: str + :param server_management_error_code: Registered Server Management Error + Code + :type server_management_error_code: int + :param last_heart_beat: Registered Server last heart beat + :type last_heart_beat: str + :param provisioning_state: Registered Server Provisioning State + :type provisioning_state: str + :param server_role: Registered Server serverRole + :type server_role: str + :param cluster_id: Registered Server clusterId + :type cluster_id: str + :param cluster_name: Registered Server clusterName + :type cluster_name: str + :param server_id: Registered Server serverId + :type server_id: str + :param storage_sync_service_uid: Registered Server storageSyncServiceUid + :type storage_sync_service_uid: str + :param last_workflow_id: Registered Server lastWorkflowId + :type last_workflow_id: str + :param last_operation_name: Resource Last Operation Name + :type last_operation_name: str + :param discovery_endpoint_uri: Resource discoveryEndpointUri + :type discovery_endpoint_uri: str + :param resource_location: Resource Location + :type resource_location: str + :param service_location: Service Location + :type service_location: str + :param friendly_name: Friendly Name + :type friendly_name: str + :param management_endpoint_uri: Management Endpoint Uri + :type management_endpoint_uri: str + :param monitoring_configuration: Monitoring Configuration + :type monitoring_configuration: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + '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'}, + 'server_management_error_code': {'key': 'properties.serverManagementErrorCode', 'type': 'int'}, + 'last_heart_beat': {'key': 'properties.lastHeartBeat', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'server_role': {'key': 'properties.serverRole', 'type': 'str'}, + 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, + 'cluster_name': {'key': 'properties.clusterName', 'type': 'str'}, + 'server_id': {'key': 'properties.serverId', 'type': 'str'}, + 'storage_sync_service_uid': {'key': 'properties.storageSyncServiceUid', 'type': 'str'}, + 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, + 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, + 'discovery_endpoint_uri': {'key': 'properties.discoveryEndpointUri', 'type': 'str'}, + 'resource_location': {'key': 'properties.resourceLocation', 'type': 'str'}, + 'service_location': {'key': 'properties.serviceLocation', 'type': 'str'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + 'management_endpoint_uri': {'key': 'properties.managementEndpointUri', 'type': 'str'}, + 'monitoring_configuration': {'key': 'properties.monitoringConfiguration', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RegisteredServer, self).__init__(**kwargs) + 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) + self.server_management_error_code = kwargs.get('server_management_error_code', None) + self.last_heart_beat = kwargs.get('last_heart_beat', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.server_role = kwargs.get('server_role', None) + self.cluster_id = kwargs.get('cluster_id', None) + self.cluster_name = kwargs.get('cluster_name', None) + self.server_id = kwargs.get('server_id', None) + self.storage_sync_service_uid = kwargs.get('storage_sync_service_uid', None) + self.last_workflow_id = kwargs.get('last_workflow_id', None) + self.last_operation_name = kwargs.get('last_operation_name', None) + self.discovery_endpoint_uri = kwargs.get('discovery_endpoint_uri', None) + self.resource_location = kwargs.get('resource_location', None) + self.service_location = kwargs.get('service_location', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.management_endpoint_uri = kwargs.get('management_endpoint_uri', None) + self.monitoring_configuration = kwargs.get('monitoring_configuration', None) + + +class RegisteredServerCreateParameters(ProxyResource): + """The parameters used when creating a registered server. + + 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 + :type agent_version: str + :param server_os_version: Registered Server OS Version + :type server_os_version: str + :param last_heart_beat: Registered Server last heart beat + :type last_heart_beat: str + :param server_role: Registered Server serverRole + :type server_role: str + :param cluster_id: Registered Server clusterId + :type cluster_id: str + :param cluster_name: Registered Server clusterName + :type cluster_name: str + :param server_id: Registered Server serverId + :type server_id: str + :param friendly_name: Friendly Name + :type friendly_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + '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'}, + 'last_heart_beat': {'key': 'properties.lastHeartBeat', 'type': 'str'}, + 'server_role': {'key': 'properties.serverRole', 'type': 'str'}, + 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, + 'cluster_name': {'key': 'properties.clusterName', 'type': 'str'}, + 'server_id': {'key': 'properties.serverId', 'type': 'str'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RegisteredServerCreateParameters, self).__init__(**kwargs) + 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) + self.last_heart_beat = kwargs.get('last_heart_beat', None) + self.server_role = kwargs.get('server_role', None) + self.cluster_id = kwargs.get('cluster_id', None) + self.cluster_name = kwargs.get('cluster_name', None) + self.server_id = kwargs.get('server_id', None) + self.friendly_name = kwargs.get('friendly_name', None) + + +class ResourcesMoveInfo(Model): + """Resource Move Info. + + :param target_resource_group: Target resource group. + :type target_resource_group: str + :param resources: Collection of Resources. + :type resources: list[str] + """ + + _attribute_map = { + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.target_resource_group = kwargs.get('target_resource_group', None) + self.resources = kwargs.get('resources', None) + + +class RestoreFileSpec(Model): + """Restore file spec. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param path: Restore file spec path + :type path: str + :ivar isdir: Restore file spec isdir + :vartype isdir: bool + """ + + _validation = { + 'isdir': {'readonly': True}, + } + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'isdir': {'key': 'isdir', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(RestoreFileSpec, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.isdir = None + + +class ServerEndpoint(ProxyResource): + """Server Endpoint object. + + 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_local_path: Server Local path. + :type server_local_path: str + :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' + :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum + :param volume_free_space_percent: Level of free space to be maintained by + Cloud Tiering if it is enabled. + :type volume_free_space_percent: int + :param tier_files_older_than_days: Tier files older than days. + :type tier_files_older_than_days: int + :param friendly_name: Friendly Name + :type friendly_name: str + :param server_resource_id: Server Resource Id. + :type server_resource_id: str + :ivar provisioning_state: ServerEndpoint Provisioning State + :vartype provisioning_state: str + :ivar last_workflow_id: ServerEndpoint lastWorkflowId + :vartype last_workflow_id: str + :ivar last_operation_name: Resource Last Operation Name + :vartype last_operation_name: str + :ivar sync_status: Server Endpoint sync status + :vartype sync_status: + ~azure.mgmt.storagesync.models.ServerEndpointSyncStatus + :param offline_data_transfer: Offline data transfer. Possible values + include: 'on', 'off' + :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum + :ivar offline_data_transfer_storage_account_resource_id: Offline data + transfer storage account resource ID + :vartype offline_data_transfer_storage_account_resource_id: str + :ivar offline_data_transfer_storage_account_tenant_id: Offline data + transfer storage account tenant ID + :vartype offline_data_transfer_storage_account_tenant_id: str + :param offline_data_transfer_share_name: Offline data transfer share name + :type offline_data_transfer_share_name: str + :ivar cloud_tiering_status: Cloud tiering status. Only populated if cloud + tiering is enabled. + :vartype cloud_tiering_status: + ~azure.mgmt.storagesync.models.ServerEndpointCloudTieringStatus + :ivar recall_status: Recall status. Only populated if cloud tiering is + enabled. + :vartype recall_status: + ~azure.mgmt.storagesync.models.ServerEndpointRecallStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, + 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, + 'provisioning_state': {'readonly': True}, + 'last_workflow_id': {'readonly': True}, + 'last_operation_name': {'readonly': True}, + 'sync_status': {'readonly': True}, + 'offline_data_transfer_storage_account_resource_id': {'readonly': True}, + 'offline_data_transfer_storage_account_tenant_id': {'readonly': True}, + 'cloud_tiering_status': {'readonly': True}, + 'recall_status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'server_local_path': {'key': 'properties.serverLocalPath', 'type': 'str'}, + 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, + 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, + 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + 'server_resource_id': {'key': 'properties.serverResourceId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, + 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, + 'sync_status': {'key': 'properties.syncStatus', 'type': 'ServerEndpointSyncStatus'}, + 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, + 'offline_data_transfer_storage_account_resource_id': {'key': 'properties.offlineDataTransferStorageAccountResourceId', 'type': 'str'}, + 'offline_data_transfer_storage_account_tenant_id': {'key': 'properties.offlineDataTransferStorageAccountTenantId', 'type': 'str'}, + 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, + 'cloud_tiering_status': {'key': 'properties.cloudTieringStatus', 'type': 'ServerEndpointCloudTieringStatus'}, + 'recall_status': {'key': 'properties.recallStatus', 'type': 'ServerEndpointRecallStatus'}, + } + + def __init__(self, **kwargs): + super(ServerEndpoint, self).__init__(**kwargs) + self.server_local_path = kwargs.get('server_local_path', None) + self.cloud_tiering = kwargs.get('cloud_tiering', None) + self.volume_free_space_percent = kwargs.get('volume_free_space_percent', None) + self.tier_files_older_than_days = kwargs.get('tier_files_older_than_days', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.server_resource_id = kwargs.get('server_resource_id', None) + self.provisioning_state = None + self.last_workflow_id = None + self.last_operation_name = None + self.sync_status = None + self.offline_data_transfer = kwargs.get('offline_data_transfer', None) + self.offline_data_transfer_storage_account_resource_id = None + self.offline_data_transfer_storage_account_tenant_id = None + self.offline_data_transfer_share_name = kwargs.get('offline_data_transfer_share_name', None) + self.cloud_tiering_status = None + self.recall_status = None + + +class ServerEndpointCloudTieringStatus(Model): + """Server endpoint cloud tiering status object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar health: Cloud tiering health state. Possible values include: + 'Healthy', 'Error' + :vartype health: str or ~azure.mgmt.storagesync.models.enum + :ivar last_updated_timestamp: Last updated timestamp + :vartype last_updated_timestamp: datetime + :ivar last_cloud_tiering_result: Last cloud tiering result (HResult) + :vartype last_cloud_tiering_result: int + :ivar last_success_timestamp: Last cloud tiering success timestamp + :vartype last_success_timestamp: datetime + """ + + _validation = { + 'health': {'readonly': True}, + 'last_updated_timestamp': {'readonly': True}, + 'last_cloud_tiering_result': {'readonly': True}, + 'last_success_timestamp': {'readonly': True}, + } + + _attribute_map = { + 'health': {'key': 'health', 'type': 'str'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'iso-8601'}, + 'last_cloud_tiering_result': {'key': 'lastCloudTieringResult', 'type': 'int'}, + 'last_success_timestamp': {'key': 'lastSuccessTimestamp', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(ServerEndpointCloudTieringStatus, self).__init__(**kwargs) + self.health = None + self.last_updated_timestamp = None + self.last_cloud_tiering_result = None + self.last_success_timestamp = None + + +class ServerEndpointCreateParameters(ProxyResource): + """The parameters used when creating a server 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 server_local_path: Server Local path. + :type server_local_path: str + :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' + :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum + :param volume_free_space_percent: Level of free space to be maintained by + Cloud Tiering if it is enabled. + :type volume_free_space_percent: int + :param tier_files_older_than_days: Tier files older than days. + :type tier_files_older_than_days: int + :param friendly_name: Friendly Name + :type friendly_name: str + :param server_resource_id: Server Resource Id. + :type server_resource_id: str + :param offline_data_transfer: Offline data transfer. Possible values + include: 'on', 'off' + :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum + :param offline_data_transfer_share_name: Offline data transfer share name + :type offline_data_transfer_share_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, + 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'server_local_path': {'key': 'properties.serverLocalPath', 'type': 'str'}, + 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, + 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, + 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + 'server_resource_id': {'key': 'properties.serverResourceId', 'type': 'str'}, + 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, + 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServerEndpointCreateParameters, self).__init__(**kwargs) + self.server_local_path = kwargs.get('server_local_path', None) + self.cloud_tiering = kwargs.get('cloud_tiering', None) + self.volume_free_space_percent = kwargs.get('volume_free_space_percent', None) + self.tier_files_older_than_days = kwargs.get('tier_files_older_than_days', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.server_resource_id = kwargs.get('server_resource_id', None) + self.offline_data_transfer = kwargs.get('offline_data_transfer', None) + self.offline_data_transfer_share_name = kwargs.get('offline_data_transfer_share_name', None) + + +class ServerEndpointFilesNotSyncingError(Model): + """Files not syncing error object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error_code: Error code (HResult) + :vartype error_code: int + :ivar persistent_count: Count of persistent files not syncing with the + specified error code + :vartype persistent_count: long + :ivar transient_count: Count of transient files not syncing with the + specified error code + :vartype transient_count: long + """ + + _validation = { + 'error_code': {'readonly': True}, + 'persistent_count': {'readonly': True, 'minimum': 0}, + 'transient_count': {'readonly': True, 'minimum': 0}, + } + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'persistent_count': {'key': 'persistentCount', 'type': 'long'}, + 'transient_count': {'key': 'transientCount', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(ServerEndpointFilesNotSyncingError, self).__init__(**kwargs) + self.error_code = None + self.persistent_count = None + self.transient_count = None + + +class ServerEndpointRecallError(Model): + """Server endpoint recall error object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error_code: Error code (HResult) + :vartype error_code: int + :ivar count: Count of occurences of the error + :vartype count: long + """ + + _validation = { + 'error_code': {'readonly': True}, + 'count': {'readonly': True, 'minimum': 0}, + } + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'count': {'key': 'count', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(ServerEndpointRecallError, self).__init__(**kwargs) + self.error_code = None + self.count = None + + +class ServerEndpointRecallStatus(Model): + """Server endpoint recall status object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar last_updated_timestamp: Last updated timestamp + :vartype last_updated_timestamp: datetime + :ivar total_recall_errors_count: Total count of recall errors over 24 + hours + :vartype total_recall_errors_count: long + :ivar recall_errors: Array of recall errors + :vartype recall_errors: + list[~azure.mgmt.storagesync.models.ServerEndpointRecallError] + """ + + _validation = { + 'last_updated_timestamp': {'readonly': True}, + 'total_recall_errors_count': {'readonly': True, 'minimum': 0}, + 'recall_errors': {'readonly': True}, + } + + _attribute_map = { + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'iso-8601'}, + 'total_recall_errors_count': {'key': 'totalRecallErrorsCount', 'type': 'long'}, + 'recall_errors': {'key': 'recallErrors', 'type': '[ServerEndpointRecallError]'}, + } + + def __init__(self, **kwargs): + super(ServerEndpointRecallStatus, self).__init__(**kwargs) + self.last_updated_timestamp = None + self.total_recall_errors_count = None + self.recall_errors = None + + +class ServerEndpointSyncActivityStatus(Model): + """Sync Session status object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar timestamp: Timestamp when properties were updated + :vartype timestamp: datetime + :ivar per_item_error_count: Per item error count + :vartype per_item_error_count: long + :ivar applied_item_count: Applied item count. + :vartype applied_item_count: long + :ivar total_item_count: Total item count (if available) + :vartype total_item_count: long + :ivar applied_bytes: Applied bytes + :vartype applied_bytes: long + :ivar total_bytes: Total bytes (if available) + :vartype total_bytes: long + """ + + _validation = { + 'timestamp': {'readonly': True}, + 'per_item_error_count': {'readonly': True, 'minimum': 0}, + 'applied_item_count': {'readonly': True, 'minimum': 0}, + 'total_item_count': {'readonly': True, 'minimum': 0}, + 'applied_bytes': {'readonly': True, 'minimum': 0}, + 'total_bytes': {'readonly': True, 'minimum': 0}, + } + + _attribute_map = { + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'per_item_error_count': {'key': 'perItemErrorCount', 'type': 'long'}, + 'applied_item_count': {'key': 'appliedItemCount', 'type': 'long'}, + 'total_item_count': {'key': 'totalItemCount', 'type': 'long'}, + 'applied_bytes': {'key': 'appliedBytes', 'type': 'long'}, + 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(ServerEndpointSyncActivityStatus, self).__init__(**kwargs) + self.timestamp = None + self.per_item_error_count = None + self.applied_item_count = None + self.total_item_count = None + self.applied_bytes = None + self.total_bytes = None + + +class ServerEndpointSyncSessionStatus(Model): + """Sync Session status object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar last_sync_result: Last sync result (HResult) + :vartype last_sync_result: int + :ivar last_sync_timestamp: Last sync timestamp + :vartype last_sync_timestamp: datetime + :ivar last_sync_success_timestamp: Last sync success timestamp + :vartype last_sync_success_timestamp: datetime + :ivar last_sync_per_item_error_count: Last sync per item error count. + :vartype last_sync_per_item_error_count: long + :ivar persistent_files_not_syncing_count: Count of persistent files not + syncing. + :vartype persistent_files_not_syncing_count: long + :ivar transient_files_not_syncing_count: Count of transient files not + syncing. + :vartype transient_files_not_syncing_count: long + :ivar files_not_syncing_errors: Array of per-item errors coming from the + last sync session. + :vartype files_not_syncing_errors: + list[~azure.mgmt.storagesync.models.ServerEndpointFilesNotSyncingError] + """ + + _validation = { + 'last_sync_result': {'readonly': True}, + 'last_sync_timestamp': {'readonly': True}, + 'last_sync_success_timestamp': {'readonly': True}, + 'last_sync_per_item_error_count': {'readonly': True, 'minimum': 0}, + 'persistent_files_not_syncing_count': {'readonly': True, 'minimum': 0}, + 'transient_files_not_syncing_count': {'readonly': True, 'minimum': 0}, + 'files_not_syncing_errors': {'readonly': True}, + } + + _attribute_map = { + 'last_sync_result': {'key': 'lastSyncResult', 'type': 'int'}, + 'last_sync_timestamp': {'key': 'lastSyncTimestamp', 'type': 'iso-8601'}, + 'last_sync_success_timestamp': {'key': 'lastSyncSuccessTimestamp', 'type': 'iso-8601'}, + 'last_sync_per_item_error_count': {'key': 'lastSyncPerItemErrorCount', 'type': 'long'}, + 'persistent_files_not_syncing_count': {'key': 'persistentFilesNotSyncingCount', 'type': 'long'}, + 'transient_files_not_syncing_count': {'key': 'transientFilesNotSyncingCount', 'type': 'long'}, + 'files_not_syncing_errors': {'key': 'filesNotSyncingErrors', 'type': '[ServerEndpointFilesNotSyncingError]'}, + } + + def __init__(self, **kwargs): + super(ServerEndpointSyncSessionStatus, self).__init__(**kwargs) + self.last_sync_result = None + self.last_sync_timestamp = None + self.last_sync_success_timestamp = None + self.last_sync_per_item_error_count = None + self.persistent_files_not_syncing_count = None + self.transient_files_not_syncing_count = None + self.files_not_syncing_errors = None + + +class ServerEndpointSyncStatus(Model): + """Server Endpoint sync status. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar download_health: Download Health Status. Possible values include: + 'Healthy', 'Error', 'SyncBlockedForRestore', + 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + :vartype download_health: str or ~azure.mgmt.storagesync.models.enum + :ivar upload_health: Upload Health Status. Possible values include: + 'Healthy', 'Error', 'SyncBlockedForRestore', + 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + :vartype upload_health: str or ~azure.mgmt.storagesync.models.enum + :ivar combined_health: Combined Health Status. Possible values include: + 'Healthy', 'Error', 'SyncBlockedForRestore', + 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + :vartype combined_health: str or ~azure.mgmt.storagesync.models.enum + :ivar sync_activity: Sync activity. Possible values include: 'Upload', + 'Download', 'UploadAndDownload' + :vartype sync_activity: str or ~azure.mgmt.storagesync.models.enum + :ivar total_persistent_files_not_syncing_count: Total count of persistent + files not syncing (combined upload + download). + :vartype total_persistent_files_not_syncing_count: long + :ivar last_updated_timestamp: Last Updated Timestamp + :vartype last_updated_timestamp: datetime + :ivar upload_status: Upload Status + :vartype upload_status: + ~azure.mgmt.storagesync.models.ServerEndpointSyncSessionStatus + :ivar download_status: Download Status + :vartype download_status: + ~azure.mgmt.storagesync.models.ServerEndpointSyncSessionStatus + :ivar upload_activity: Upload sync activity + :vartype upload_activity: + ~azure.mgmt.storagesync.models.ServerEndpointSyncActivityStatus + :ivar download_activity: Download sync activity + :vartype download_activity: + ~azure.mgmt.storagesync.models.ServerEndpointSyncActivityStatus + :ivar offline_data_transfer_status: Offline Data Transfer State. Possible + values include: 'InProgress', 'Stopping', 'NotRunning', 'Complete' + :vartype offline_data_transfer_status: str or + ~azure.mgmt.storagesync.models.enum + """ + + _validation = { + 'download_health': {'readonly': True}, + 'upload_health': {'readonly': True}, + 'combined_health': {'readonly': True}, + 'sync_activity': {'readonly': True}, + 'total_persistent_files_not_syncing_count': {'readonly': True, 'minimum': 0}, + 'last_updated_timestamp': {'readonly': True}, + 'upload_status': {'readonly': True}, + 'download_status': {'readonly': True}, + 'upload_activity': {'readonly': True}, + 'download_activity': {'readonly': True}, + 'offline_data_transfer_status': {'readonly': True}, + } + + _attribute_map = { + 'download_health': {'key': 'downloadHealth', 'type': 'str'}, + 'upload_health': {'key': 'uploadHealth', 'type': 'str'}, + 'combined_health': {'key': 'combinedHealth', 'type': 'str'}, + 'sync_activity': {'key': 'syncActivity', 'type': 'str'}, + 'total_persistent_files_not_syncing_count': {'key': 'totalPersistentFilesNotSyncingCount', 'type': 'long'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'iso-8601'}, + 'upload_status': {'key': 'uploadStatus', 'type': 'ServerEndpointSyncSessionStatus'}, + 'download_status': {'key': 'downloadStatus', 'type': 'ServerEndpointSyncSessionStatus'}, + 'upload_activity': {'key': 'uploadActivity', 'type': 'ServerEndpointSyncActivityStatus'}, + 'download_activity': {'key': 'downloadActivity', 'type': 'ServerEndpointSyncActivityStatus'}, + 'offline_data_transfer_status': {'key': 'offlineDataTransferStatus', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServerEndpointSyncStatus, self).__init__(**kwargs) + self.download_health = None + self.upload_health = None + self.combined_health = None + self.sync_activity = None + self.total_persistent_files_not_syncing_count = None + self.last_updated_timestamp = None + self.upload_status = None + self.download_status = None + self.upload_activity = None + self.download_activity = None + self.offline_data_transfer_status = None + + +class ServerEndpointUpdateParameters(Model): + """Parameters for updating an Server Endpoint. + + :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' + :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum + :param volume_free_space_percent: Level of free space to be maintained by + Cloud Tiering if it is enabled. + :type volume_free_space_percent: int + :param tier_files_older_than_days: Tier files older than days. + :type tier_files_older_than_days: int + :param offline_data_transfer: Offline data transfer. Possible values + include: 'on', 'off' + :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum + :param offline_data_transfer_share_name: Offline data transfer share name + :type offline_data_transfer_share_name: str + """ + + _validation = { + 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, + 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, + } + + _attribute_map = { + 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, + 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, + 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, + 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, + 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServerEndpointUpdateParameters, self).__init__(**kwargs) + self.cloud_tiering = kwargs.get('cloud_tiering', None) + self.volume_free_space_percent = kwargs.get('volume_free_space_percent', None) + self.tier_files_older_than_days = kwargs.get('tier_files_older_than_days', None) + self.offline_data_transfer = kwargs.get('offline_data_transfer', None) + self.offline_data_transfer_share_name = kwargs.get('offline_data_transfer_share_name', None) + + +class StorageSyncApiError(Model): + """Error type. + + :param code: Error code of the given entry. + :type code: str + :param message: Error message of the given entry. + :type message: str + :param target: Target of the given error entry. + :type target: str + :param details: Error details of the given entry. + :type details: ~azure.mgmt.storagesync.models.StorageSyncErrorDetails + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': 'StorageSyncErrorDetails'}, + } + + def __init__(self, **kwargs): + super(StorageSyncApiError, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.target = kwargs.get('target', None) + self.details = kwargs.get('details', None) + + +class StorageSyncError(Model): + """Error type. + + :param error: Error details of the given entry. + :type error: ~azure.mgmt.storagesync.models.StorageSyncApiError + :param innererror: Error details of the given entry. + :type innererror: ~azure.mgmt.storagesync.models.StorageSyncApiError + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'StorageSyncApiError'}, + 'innererror': {'key': 'innererror', 'type': 'StorageSyncApiError'}, + } + + def __init__(self, **kwargs): + super(StorageSyncError, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + self.innererror = kwargs.get('innererror', None) + + +class StorageSyncErrorException(HttpOperationError): + """Server responsed with exception of type: 'StorageSyncError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(StorageSyncErrorException, self).__init__(deserialize, response, 'StorageSyncError', *args) + + +class StorageSyncErrorDetails(Model): + """Error Details object. + + :param code: Error code of the given entry. + :type code: str + :param message: Error message of the given entry. + :type message: str + :param target: Target of the given entry. + :type target: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(StorageSyncErrorDetails, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.target = kwargs.get('target', None) + + +class TrackedResource(Resource): + """The resource model definition for a ARM tracked top level resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.location = kwargs.get('location', None) + + +class StorageSyncService(TrackedResource): + """Storage Sync Service object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :ivar storage_sync_service_status: Storage Sync service status. + :vartype storage_sync_service_status: int + :ivar storage_sync_service_uid: Storage Sync service Uid + :vartype storage_sync_service_uid: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'storage_sync_service_status': {'readonly': True}, + 'storage_sync_service_uid': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'storage_sync_service_status': {'key': 'properties.storageSyncServiceStatus', 'type': 'int'}, + 'storage_sync_service_uid': {'key': 'properties.storageSyncServiceUid', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(StorageSyncService, self).__init__(**kwargs) + self.storage_sync_service_status = None + self.storage_sync_service_uid = None + + +class StorageSyncServiceCreateParameters(Model): + """The parameters used when creating a storage sync service. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. 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 properties: + :type properties: object + """ + + _validation = { + 'location': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(StorageSyncServiceCreateParameters, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.properties = kwargs.get('properties', None) + + +class StorageSyncServiceUpdateParameters(Model): + """Parameters for updating an Storage sync service. + + :param tags: The user-specified tags associated with the storage sync + service. + :type tags: dict[str, str] + :param properties: The properties of the storage sync service. + :type properties: object + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(StorageSyncServiceUpdateParameters, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.properties = kwargs.get('properties', None) + + +class SubscriptionState(Model): + """Subscription State object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param state: State of Azure Subscription. Possible values include: + 'Registered', 'Unregistered', 'Warned', 'Suspended', 'Deleted' + :type state: str or ~azure.mgmt.storagesync.models.Reason + :ivar istransitioning: Is Transitioning + :vartype istransitioning: bool + :param properties: Subscription state properties. + :type properties: object + """ + + _validation = { + 'istransitioning': {'readonly': True}, + } + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + 'istransitioning': {'key': 'istransitioning', 'type': 'bool'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(SubscriptionState, self).__init__(**kwargs) + self.state = kwargs.get('state', None) + self.istransitioning = None + self.properties = kwargs.get('properties', None) + + +class SyncGroup(ProxyResource): + """Sync Group object. + + 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 unique_id: Unique Id + :type unique_id: str + :ivar sync_group_status: Sync group status + :vartype sync_group_status: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'sync_group_status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'unique_id': {'key': 'properties.uniqueId', 'type': 'str'}, + 'sync_group_status': {'key': 'properties.syncGroupStatus', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SyncGroup, self).__init__(**kwargs) + self.unique_id = kwargs.get('unique_id', None) + self.sync_group_status = None + + +class SyncGroupCreateParameters(ProxyResource): + """The parameters used when creating a sync group. + + 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 properties: The parameters used to create the sync group + :type properties: object + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(SyncGroupCreateParameters, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class TriggerChangeDetectionParameters(Model): + """The parameters used when calling trigger change detection action on cloud + endpoint. + + :param directory_path: Relative path to a directory Azure File share for + which change detection is to be performed. + :type directory_path: str + :param change_detection_mode: Change Detection Mode. Applies to a + directory specified in directoryPath parameter. Possible values include: + 'Default', 'Recursive' + :type change_detection_mode: str or + ~azure.mgmt.storagesync.models.ChangeDetectionMode + :param paths: Array of relative paths on the Azure File share to be + included in the change detection. Can be files and directories. + :type paths: list[str] + """ + + _attribute_map = { + 'directory_path': {'key': 'directoryPath', 'type': 'str'}, + 'change_detection_mode': {'key': 'changeDetectionMode', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(TriggerChangeDetectionParameters, self).__init__(**kwargs) + self.directory_path = kwargs.get('directory_path', None) + self.change_detection_mode = kwargs.get('change_detection_mode', None) + self.paths = kwargs.get('paths', None) + + +class TriggerRolloverRequest(Model): + """Trigger Rollover Request. + + :param server_certificate: Certificate Data + :type server_certificate: str + """ + + _attribute_map = { + 'server_certificate': {'key': 'serverCertificate', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TriggerRolloverRequest, self).__init__(**kwargs) + self.server_certificate = kwargs.get('server_certificate', None) + + +class Workflow(ProxyResource): + """Workflow resource. + + 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 last_step_name: last step name + :type last_step_name: str + :param status: workflow status. Possible values include: 'active', + 'expired', 'succeeded', 'aborted', 'failed' + :type status: str or ~azure.mgmt.storagesync.models.enum + :param operation: operation direction. Possible values include: 'do', + 'undo', 'cancel' + :type operation: str or ~azure.mgmt.storagesync.models.enum + :param steps: workflow steps + :type steps: str + :param last_operation_id: workflow last operation identifier. + :type last_operation_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'last_step_name': {'key': 'properties.lastStepName', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'operation': {'key': 'properties.operation', 'type': 'str'}, + 'steps': {'key': 'properties.steps', 'type': 'str'}, + 'last_operation_id': {'key': 'properties.lastOperationId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Workflow, self).__init__(**kwargs) + self.last_step_name = kwargs.get('last_step_name', None) + self.status = kwargs.get('status', None) + self.operation = kwargs.get('operation', None) + self.steps = kwargs.get('steps', None) + self.last_operation_id = kwargs.get('last_operation_id', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models_py3.py new file mode 100644 index 000000000000..06765491b4ab --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models_py3.py @@ -0,0 +1,1818 @@ +# 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 Resource(Model): + """Resource. + + 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 + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class AzureEntityResource(Resource): + """The resource model definition for a Azure Resource Manager resource with an + etag. + + 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 + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + +class BackupRequest(Model): + """Backup request. + + :param azure_file_share: Azure File Share. + :type azure_file_share: str + """ + + _attribute_map = { + 'azure_file_share': {'key': 'azureFileShare', 'type': 'str'}, + } + + def __init__(self, *, azure_file_share: str=None, **kwargs) -> None: + super(BackupRequest, self).__init__(**kwargs) + self.azure_file_share = azure_file_share + + +class CheckNameAvailabilityParameters(Model): + """Parameters for a check name availability request. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name to check for availability + :type name: str + :ivar type: Required. The resource type. Must be set to + Microsoft.StorageSync/storageSyncServices. Default value: + "Microsoft.StorageSync/storageSyncServices" . + :vartype type: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "Microsoft.StorageSync/storageSyncServices" + + def __init__(self, *, name: str, **kwargs) -> None: + super(CheckNameAvailabilityParameters, self).__init__(**kwargs) + self.name = name + + +class CheckNameAvailabilityResult(Model): + """The CheckNameAvailability operation response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name_available: Gets a boolean value that indicates whether the name + is available for you to use. If true, the name is available. If false, the + name has already been taken or invalid and cannot be used. + :vartype name_available: bool + :ivar reason: Gets the reason that a Storage Sync Service name could not + be used. The Reason element is only returned if NameAvailable is false. + Possible values include: 'Invalid', 'AlreadyExists' + :vartype reason: str or + ~azure.mgmt.storagesync.models.NameAvailabilityReason + :ivar message: Gets an error message explaining the Reason value in more + detail. + :vartype message: str + """ + + _validation = { + 'name_available': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'NameAvailabilityReason'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(CheckNameAvailabilityResult, self).__init__(**kwargs) + self.name_available = None + self.reason = None + self.message = None + + +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. + + 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 + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ProxyResource, self).__init__(**kwargs) + + +class CloudEndpoint(ProxyResource): + """Cloud Endpoint object. + + 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 azure_file_share_name: Azure file share name + :type azure_file_share_name: str + :param storage_account_tenant_id: Storage Account Tenant Id + :type storage_account_tenant_id: str + :param partnership_id: Partnership Id + :type partnership_id: str + :param friendly_name: Friendly Name + :type friendly_name: str + :ivar backup_enabled: Backup Enabled + :vartype backup_enabled: str + :param provisioning_state: CloudEndpoint Provisioning State + :type provisioning_state: str + :param last_workflow_id: CloudEndpoint lastWorkflowId + :type last_workflow_id: str + :param last_operation_name: Resource Last Operation Name + :type last_operation_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'backup_enabled': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'}, + 'azure_file_share_name': {'key': 'properties.azureFileShareName', 'type': 'str'}, + 'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'}, + 'partnership_id': {'key': 'properties.partnershipId', 'type': 'str'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + 'backup_enabled': {'key': 'properties.backupEnabled', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, + 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, + } + + def __init__(self, *, storage_account_resource_id: str=None, azure_file_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_resource_id = storage_account_resource_id + self.azure_file_share_name = azure_file_share_name + self.storage_account_tenant_id = storage_account_tenant_id + self.partnership_id = partnership_id + self.friendly_name = friendly_name + self.backup_enabled = None + self.provisioning_state = provisioning_state + self.last_workflow_id = last_workflow_id + self.last_operation_name = last_operation_name + + +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 azure_file_share_name: Azure file share name + :type azure_file_share_name: str + :param storage_account_tenant_id: Storage Account Tenant Id + :type storage_account_tenant_id: str + :param friendly_name: Friendly Name + :type friendly_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'}, + 'azure_file_share_name': {'key': 'properties.azureFileShareName', 'type': 'str'}, + 'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + } + + def __init__(self, *, storage_account_resource_id: str=None, azure_file_share_name: str=None, storage_account_tenant_id: str=None, friendly_name: str=None, **kwargs) -> None: + super(CloudEndpointCreateParameters, self).__init__(**kwargs) + self.storage_account_resource_id = storage_account_resource_id + self.azure_file_share_name = azure_file_share_name + self.storage_account_tenant_id = storage_account_tenant_id + self.friendly_name = friendly_name + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class OperationDisplayInfo(Model): + """The operation supported by storage sync. + + :param description: The description of the operation. + :type description: str + :param operation: The action that users can perform, based on their + permission level. + :type operation: str + :param provider: Service provider: Microsoft StorageSync. + :type provider: str + :param resource: Resource on which the operation is performed. + :type resource: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + } + + def __init__(self, *, description: str=None, operation: str=None, provider: str=None, resource: str=None, **kwargs) -> None: + super(OperationDisplayInfo, self).__init__(**kwargs) + self.description = description + self.operation = operation + self.provider = provider + self.resource = resource + + +class OperationDisplayResource(Model): + """Operation Display Resource object. + + :param provider: Operation Display Resource Provider. + :type provider: str + :param resource: Operation Display Resource. + :type resource: str + :param operation: Operation Display Resource Operation. + :type operation: str + :param description: Operation Display Resource Description. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationDisplayResource, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class OperationEntity(Model): + """The operation supported by storage sync. + + :param name: Operation name: {provider}/{resource}/{operation}. + :type name: str + :param display: The operation supported by storage sync. + :type display: ~azure.mgmt.storagesync.models.OperationDisplayInfo + :param origin: The origin. + :type origin: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplayInfo'}, + 'origin': {'key': 'origin', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display=None, origin: str=None, **kwargs) -> None: + super(OperationEntity, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + + +class OperationStatus(Model): + """Operation status object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Operation Id + :vartype name: str + :ivar status: Operation status + :vartype status: str + :ivar start_time: Start time of the operation + :vartype start_time: datetime + :ivar end_time: End time of the operation + :vartype end_time: datetime + :ivar error: Error details. + :vartype error: ~azure.mgmt.storagesync.models.StorageSyncApiError + """ + + _validation = { + 'name': {'readonly': True}, + 'status': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'StorageSyncApiError'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationStatus, self).__init__(**kwargs) + self.name = None + self.status = None + self.start_time = None + self.end_time = None + self.error = None + + +class PostBackupResponse(Model): + """Post Backup Response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar cloud_endpoint_name: cloud endpoint Name. + :vartype cloud_endpoint_name: str + """ + + _validation = { + 'cloud_endpoint_name': {'readonly': True}, + } + + _attribute_map = { + 'cloud_endpoint_name': {'key': 'backupMetadata.cloudEndpointName', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(PostBackupResponse, self).__init__(**kwargs) + self.cloud_endpoint_name = None + + +class PostRestoreRequest(Model): + """Post Restore Request. + + :param partition: Post Restore partition. + :type partition: str + :param replica_group: Post Restore replica group. + :type replica_group: str + :param request_id: Post Restore request id. + :type request_id: str + :param azure_file_share_uri: Post Restore Azure file share uri. + :type azure_file_share_uri: str + :param status: Post Restore Azure status. + :type status: str + :param source_azure_file_share_uri: Post Restore Azure source azure file + share uri. + :type source_azure_file_share_uri: str + :param failed_file_list: Post Restore Azure failed file list. + :type failed_file_list: str + :param restore_file_spec: Post Restore restore file spec array. + :type restore_file_spec: + list[~azure.mgmt.storagesync.models.RestoreFileSpec] + """ + + _attribute_map = { + 'partition': {'key': 'partition', 'type': 'str'}, + 'replica_group': {'key': 'replicaGroup', 'type': 'str'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'azure_file_share_uri': {'key': 'azureFileShareUri', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source_azure_file_share_uri': {'key': 'sourceAzureFileShareUri', 'type': 'str'}, + 'failed_file_list': {'key': 'failedFileList', 'type': 'str'}, + 'restore_file_spec': {'key': 'restoreFileSpec', 'type': '[RestoreFileSpec]'}, + } + + def __init__(self, *, partition: str=None, replica_group: str=None, request_id: str=None, azure_file_share_uri: str=None, status: str=None, source_azure_file_share_uri: str=None, failed_file_list: str=None, restore_file_spec=None, **kwargs) -> None: + super(PostRestoreRequest, self).__init__(**kwargs) + self.partition = partition + self.replica_group = replica_group + self.request_id = request_id + self.azure_file_share_uri = azure_file_share_uri + self.status = status + self.source_azure_file_share_uri = source_azure_file_share_uri + self.failed_file_list = failed_file_list + self.restore_file_spec = restore_file_spec + + +class PreRestoreRequest(Model): + """Pre Restore request object. + + :param partition: Pre Restore partition. + :type partition: str + :param replica_group: Pre Restore replica group. + :type replica_group: str + :param request_id: Pre Restore request id. + :type request_id: str + :param azure_file_share_uri: Pre Restore Azure file share uri. + :type azure_file_share_uri: str + :param status: Pre Restore Azure status. + :type status: str + :param source_azure_file_share_uri: Pre Restore Azure source azure file + share uri. + :type source_azure_file_share_uri: str + :param backup_metadata_property_bag: Pre Restore backup metadata property + bag. + :type backup_metadata_property_bag: str + :param restore_file_spec: Pre Restore restore file spec array. + :type restore_file_spec: + list[~azure.mgmt.storagesync.models.RestoreFileSpec] + :param pause_wait_for_sync_drain_time_period_in_seconds: Pre Restore pause + wait for sync drain time period in seconds. + :type pause_wait_for_sync_drain_time_period_in_seconds: int + """ + + _attribute_map = { + 'partition': {'key': 'partition', 'type': 'str'}, + 'replica_group': {'key': 'replicaGroup', 'type': 'str'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'azure_file_share_uri': {'key': 'azureFileShareUri', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source_azure_file_share_uri': {'key': 'sourceAzureFileShareUri', 'type': 'str'}, + 'backup_metadata_property_bag': {'key': 'backupMetadataPropertyBag', 'type': 'str'}, + 'restore_file_spec': {'key': 'restoreFileSpec', 'type': '[RestoreFileSpec]'}, + 'pause_wait_for_sync_drain_time_period_in_seconds': {'key': 'pauseWaitForSyncDrainTimePeriodInSeconds', 'type': 'int'}, + } + + def __init__(self, *, partition: str=None, replica_group: str=None, request_id: str=None, azure_file_share_uri: str=None, status: str=None, source_azure_file_share_uri: str=None, backup_metadata_property_bag: str=None, restore_file_spec=None, pause_wait_for_sync_drain_time_period_in_seconds: int=None, **kwargs) -> None: + super(PreRestoreRequest, self).__init__(**kwargs) + self.partition = partition + self.replica_group = replica_group + self.request_id = request_id + self.azure_file_share_uri = azure_file_share_uri + self.status = status + self.source_azure_file_share_uri = source_azure_file_share_uri + self.backup_metadata_property_bag = backup_metadata_property_bag + self.restore_file_spec = restore_file_spec + self.pause_wait_for_sync_drain_time_period_in_seconds = pause_wait_for_sync_drain_time_period_in_seconds + + +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 + + +class RegisteredServer(ProxyResource): + """Registered Server resource. + + 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 + :type agent_version: str + :param server_os_version: Registered Server OS Version + :type server_os_version: str + :param server_management_error_code: Registered Server Management Error + Code + :type server_management_error_code: int + :param last_heart_beat: Registered Server last heart beat + :type last_heart_beat: str + :param provisioning_state: Registered Server Provisioning State + :type provisioning_state: str + :param server_role: Registered Server serverRole + :type server_role: str + :param cluster_id: Registered Server clusterId + :type cluster_id: str + :param cluster_name: Registered Server clusterName + :type cluster_name: str + :param server_id: Registered Server serverId + :type server_id: str + :param storage_sync_service_uid: Registered Server storageSyncServiceUid + :type storage_sync_service_uid: str + :param last_workflow_id: Registered Server lastWorkflowId + :type last_workflow_id: str + :param last_operation_name: Resource Last Operation Name + :type last_operation_name: str + :param discovery_endpoint_uri: Resource discoveryEndpointUri + :type discovery_endpoint_uri: str + :param resource_location: Resource Location + :type resource_location: str + :param service_location: Service Location + :type service_location: str + :param friendly_name: Friendly Name + :type friendly_name: str + :param management_endpoint_uri: Management Endpoint Uri + :type management_endpoint_uri: str + :param monitoring_configuration: Monitoring Configuration + :type monitoring_configuration: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + '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'}, + 'server_management_error_code': {'key': 'properties.serverManagementErrorCode', 'type': 'int'}, + 'last_heart_beat': {'key': 'properties.lastHeartBeat', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'server_role': {'key': 'properties.serverRole', 'type': 'str'}, + 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, + 'cluster_name': {'key': 'properties.clusterName', 'type': 'str'}, + 'server_id': {'key': 'properties.serverId', 'type': 'str'}, + 'storage_sync_service_uid': {'key': 'properties.storageSyncServiceUid', 'type': 'str'}, + 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, + 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, + 'discovery_endpoint_uri': {'key': 'properties.discoveryEndpointUri', 'type': 'str'}, + 'resource_location': {'key': 'properties.resourceLocation', 'type': 'str'}, + 'service_location': {'key': 'properties.serviceLocation', 'type': 'str'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + 'management_endpoint_uri': {'key': 'properties.managementEndpointUri', 'type': 'str'}, + 'monitoring_configuration': {'key': 'properties.monitoringConfiguration', 'type': 'str'}, + } + + def __init__(self, *, server_certificate: str=None, agent_version: str=None, server_os_version: str=None, server_management_error_code: int=None, last_heart_beat: str=None, provisioning_state: str=None, server_role: str=None, cluster_id: str=None, cluster_name: str=None, server_id: str=None, storage_sync_service_uid: str=None, last_workflow_id: str=None, last_operation_name: str=None, discovery_endpoint_uri: str=None, resource_location: str=None, service_location: str=None, friendly_name: str=None, management_endpoint_uri: str=None, monitoring_configuration: str=None, **kwargs) -> None: + super(RegisteredServer, self).__init__(**kwargs) + self.server_certificate = server_certificate + self.agent_version = agent_version + self.server_os_version = server_os_version + self.server_management_error_code = server_management_error_code + self.last_heart_beat = last_heart_beat + self.provisioning_state = provisioning_state + self.server_role = server_role + self.cluster_id = cluster_id + self.cluster_name = cluster_name + self.server_id = server_id + self.storage_sync_service_uid = storage_sync_service_uid + self.last_workflow_id = last_workflow_id + self.last_operation_name = last_operation_name + self.discovery_endpoint_uri = discovery_endpoint_uri + self.resource_location = resource_location + self.service_location = service_location + self.friendly_name = friendly_name + self.management_endpoint_uri = management_endpoint_uri + self.monitoring_configuration = monitoring_configuration + + +class RegisteredServerCreateParameters(ProxyResource): + """The parameters used when creating a registered server. + + 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 + :type agent_version: str + :param server_os_version: Registered Server OS Version + :type server_os_version: str + :param last_heart_beat: Registered Server last heart beat + :type last_heart_beat: str + :param server_role: Registered Server serverRole + :type server_role: str + :param cluster_id: Registered Server clusterId + :type cluster_id: str + :param cluster_name: Registered Server clusterName + :type cluster_name: str + :param server_id: Registered Server serverId + :type server_id: str + :param friendly_name: Friendly Name + :type friendly_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + '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'}, + 'last_heart_beat': {'key': 'properties.lastHeartBeat', 'type': 'str'}, + 'server_role': {'key': 'properties.serverRole', 'type': 'str'}, + 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, + 'cluster_name': {'key': 'properties.clusterName', 'type': 'str'}, + 'server_id': {'key': 'properties.serverId', 'type': 'str'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + } + + def __init__(self, *, server_certificate: str=None, agent_version: str=None, server_os_version: str=None, last_heart_beat: str=None, server_role: str=None, cluster_id: str=None, cluster_name: str=None, server_id: str=None, friendly_name: str=None, **kwargs) -> None: + super(RegisteredServerCreateParameters, self).__init__(**kwargs) + self.server_certificate = server_certificate + self.agent_version = agent_version + self.server_os_version = server_os_version + self.last_heart_beat = last_heart_beat + self.server_role = server_role + self.cluster_id = cluster_id + self.cluster_name = cluster_name + self.server_id = server_id + self.friendly_name = friendly_name + + +class ResourcesMoveInfo(Model): + """Resource Move Info. + + :param target_resource_group: Target resource group. + :type target_resource_group: str + :param resources: Collection of Resources. + :type resources: list[str] + """ + + _attribute_map = { + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, + } + + def __init__(self, *, target_resource_group: str=None, resources=None, **kwargs) -> None: + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.target_resource_group = target_resource_group + self.resources = resources + + +class RestoreFileSpec(Model): + """Restore file spec. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param path: Restore file spec path + :type path: str + :ivar isdir: Restore file spec isdir + :vartype isdir: bool + """ + + _validation = { + 'isdir': {'readonly': True}, + } + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'isdir': {'key': 'isdir', 'type': 'bool'}, + } + + def __init__(self, *, path: str=None, **kwargs) -> None: + super(RestoreFileSpec, self).__init__(**kwargs) + self.path = path + self.isdir = None + + +class ServerEndpoint(ProxyResource): + """Server Endpoint object. + + 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_local_path: Server Local path. + :type server_local_path: str + :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' + :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum + :param volume_free_space_percent: Level of free space to be maintained by + Cloud Tiering if it is enabled. + :type volume_free_space_percent: int + :param tier_files_older_than_days: Tier files older than days. + :type tier_files_older_than_days: int + :param friendly_name: Friendly Name + :type friendly_name: str + :param server_resource_id: Server Resource Id. + :type server_resource_id: str + :ivar provisioning_state: ServerEndpoint Provisioning State + :vartype provisioning_state: str + :ivar last_workflow_id: ServerEndpoint lastWorkflowId + :vartype last_workflow_id: str + :ivar last_operation_name: Resource Last Operation Name + :vartype last_operation_name: str + :ivar sync_status: Server Endpoint sync status + :vartype sync_status: + ~azure.mgmt.storagesync.models.ServerEndpointSyncStatus + :param offline_data_transfer: Offline data transfer. Possible values + include: 'on', 'off' + :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum + :ivar offline_data_transfer_storage_account_resource_id: Offline data + transfer storage account resource ID + :vartype offline_data_transfer_storage_account_resource_id: str + :ivar offline_data_transfer_storage_account_tenant_id: Offline data + transfer storage account tenant ID + :vartype offline_data_transfer_storage_account_tenant_id: str + :param offline_data_transfer_share_name: Offline data transfer share name + :type offline_data_transfer_share_name: str + :ivar cloud_tiering_status: Cloud tiering status. Only populated if cloud + tiering is enabled. + :vartype cloud_tiering_status: + ~azure.mgmt.storagesync.models.ServerEndpointCloudTieringStatus + :ivar recall_status: Recall status. Only populated if cloud tiering is + enabled. + :vartype recall_status: + ~azure.mgmt.storagesync.models.ServerEndpointRecallStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, + 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, + 'provisioning_state': {'readonly': True}, + 'last_workflow_id': {'readonly': True}, + 'last_operation_name': {'readonly': True}, + 'sync_status': {'readonly': True}, + 'offline_data_transfer_storage_account_resource_id': {'readonly': True}, + 'offline_data_transfer_storage_account_tenant_id': {'readonly': True}, + 'cloud_tiering_status': {'readonly': True}, + 'recall_status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'server_local_path': {'key': 'properties.serverLocalPath', 'type': 'str'}, + 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, + 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, + 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + 'server_resource_id': {'key': 'properties.serverResourceId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, + 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, + 'sync_status': {'key': 'properties.syncStatus', 'type': 'ServerEndpointSyncStatus'}, + 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, + 'offline_data_transfer_storage_account_resource_id': {'key': 'properties.offlineDataTransferStorageAccountResourceId', 'type': 'str'}, + 'offline_data_transfer_storage_account_tenant_id': {'key': 'properties.offlineDataTransferStorageAccountTenantId', 'type': 'str'}, + 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, + 'cloud_tiering_status': {'key': 'properties.cloudTieringStatus', 'type': 'ServerEndpointCloudTieringStatus'}, + 'recall_status': {'key': 'properties.recallStatus', 'type': 'ServerEndpointRecallStatus'}, + } + + def __init__(self, *, server_local_path: str=None, cloud_tiering=None, volume_free_space_percent: int=None, tier_files_older_than_days: int=None, friendly_name: str=None, server_resource_id: str=None, offline_data_transfer=None, offline_data_transfer_share_name: str=None, **kwargs) -> None: + super(ServerEndpoint, self).__init__(**kwargs) + self.server_local_path = server_local_path + self.cloud_tiering = cloud_tiering + self.volume_free_space_percent = volume_free_space_percent + self.tier_files_older_than_days = tier_files_older_than_days + self.friendly_name = friendly_name + self.server_resource_id = server_resource_id + self.provisioning_state = None + self.last_workflow_id = None + self.last_operation_name = None + self.sync_status = None + self.offline_data_transfer = offline_data_transfer + self.offline_data_transfer_storage_account_resource_id = None + self.offline_data_transfer_storage_account_tenant_id = None + self.offline_data_transfer_share_name = offline_data_transfer_share_name + self.cloud_tiering_status = None + self.recall_status = None + + +class ServerEndpointCloudTieringStatus(Model): + """Server endpoint cloud tiering status object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar health: Cloud tiering health state. Possible values include: + 'Healthy', 'Error' + :vartype health: str or ~azure.mgmt.storagesync.models.enum + :ivar last_updated_timestamp: Last updated timestamp + :vartype last_updated_timestamp: datetime + :ivar last_cloud_tiering_result: Last cloud tiering result (HResult) + :vartype last_cloud_tiering_result: int + :ivar last_success_timestamp: Last cloud tiering success timestamp + :vartype last_success_timestamp: datetime + """ + + _validation = { + 'health': {'readonly': True}, + 'last_updated_timestamp': {'readonly': True}, + 'last_cloud_tiering_result': {'readonly': True}, + 'last_success_timestamp': {'readonly': True}, + } + + _attribute_map = { + 'health': {'key': 'health', 'type': 'str'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'iso-8601'}, + 'last_cloud_tiering_result': {'key': 'lastCloudTieringResult', 'type': 'int'}, + 'last_success_timestamp': {'key': 'lastSuccessTimestamp', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs) -> None: + super(ServerEndpointCloudTieringStatus, self).__init__(**kwargs) + self.health = None + self.last_updated_timestamp = None + self.last_cloud_tiering_result = None + self.last_success_timestamp = None + + +class ServerEndpointCreateParameters(ProxyResource): + """The parameters used when creating a server 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 server_local_path: Server Local path. + :type server_local_path: str + :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' + :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum + :param volume_free_space_percent: Level of free space to be maintained by + Cloud Tiering if it is enabled. + :type volume_free_space_percent: int + :param tier_files_older_than_days: Tier files older than days. + :type tier_files_older_than_days: int + :param friendly_name: Friendly Name + :type friendly_name: str + :param server_resource_id: Server Resource Id. + :type server_resource_id: str + :param offline_data_transfer: Offline data transfer. Possible values + include: 'on', 'off' + :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum + :param offline_data_transfer_share_name: Offline data transfer share name + :type offline_data_transfer_share_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, + 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'server_local_path': {'key': 'properties.serverLocalPath', 'type': 'str'}, + 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, + 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, + 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + 'server_resource_id': {'key': 'properties.serverResourceId', 'type': 'str'}, + 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, + 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, + } + + def __init__(self, *, server_local_path: str=None, cloud_tiering=None, volume_free_space_percent: int=None, tier_files_older_than_days: int=None, friendly_name: str=None, server_resource_id: str=None, offline_data_transfer=None, offline_data_transfer_share_name: str=None, **kwargs) -> None: + super(ServerEndpointCreateParameters, self).__init__(**kwargs) + self.server_local_path = server_local_path + self.cloud_tiering = cloud_tiering + self.volume_free_space_percent = volume_free_space_percent + self.tier_files_older_than_days = tier_files_older_than_days + self.friendly_name = friendly_name + self.server_resource_id = server_resource_id + self.offline_data_transfer = offline_data_transfer + self.offline_data_transfer_share_name = offline_data_transfer_share_name + + +class ServerEndpointFilesNotSyncingError(Model): + """Files not syncing error object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error_code: Error code (HResult) + :vartype error_code: int + :ivar persistent_count: Count of persistent files not syncing with the + specified error code + :vartype persistent_count: long + :ivar transient_count: Count of transient files not syncing with the + specified error code + :vartype transient_count: long + """ + + _validation = { + 'error_code': {'readonly': True}, + 'persistent_count': {'readonly': True, 'minimum': 0}, + 'transient_count': {'readonly': True, 'minimum': 0}, + } + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'persistent_count': {'key': 'persistentCount', 'type': 'long'}, + 'transient_count': {'key': 'transientCount', 'type': 'long'}, + } + + def __init__(self, **kwargs) -> None: + super(ServerEndpointFilesNotSyncingError, self).__init__(**kwargs) + self.error_code = None + self.persistent_count = None + self.transient_count = None + + +class ServerEndpointRecallError(Model): + """Server endpoint recall error object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error_code: Error code (HResult) + :vartype error_code: int + :ivar count: Count of occurences of the error + :vartype count: long + """ + + _validation = { + 'error_code': {'readonly': True}, + 'count': {'readonly': True, 'minimum': 0}, + } + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'count': {'key': 'count', 'type': 'long'}, + } + + def __init__(self, **kwargs) -> None: + super(ServerEndpointRecallError, self).__init__(**kwargs) + self.error_code = None + self.count = None + + +class ServerEndpointRecallStatus(Model): + """Server endpoint recall status object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar last_updated_timestamp: Last updated timestamp + :vartype last_updated_timestamp: datetime + :ivar total_recall_errors_count: Total count of recall errors over 24 + hours + :vartype total_recall_errors_count: long + :ivar recall_errors: Array of recall errors + :vartype recall_errors: + list[~azure.mgmt.storagesync.models.ServerEndpointRecallError] + """ + + _validation = { + 'last_updated_timestamp': {'readonly': True}, + 'total_recall_errors_count': {'readonly': True, 'minimum': 0}, + 'recall_errors': {'readonly': True}, + } + + _attribute_map = { + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'iso-8601'}, + 'total_recall_errors_count': {'key': 'totalRecallErrorsCount', 'type': 'long'}, + 'recall_errors': {'key': 'recallErrors', 'type': '[ServerEndpointRecallError]'}, + } + + def __init__(self, **kwargs) -> None: + super(ServerEndpointRecallStatus, self).__init__(**kwargs) + self.last_updated_timestamp = None + self.total_recall_errors_count = None + self.recall_errors = None + + +class ServerEndpointSyncActivityStatus(Model): + """Sync Session status object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar timestamp: Timestamp when properties were updated + :vartype timestamp: datetime + :ivar per_item_error_count: Per item error count + :vartype per_item_error_count: long + :ivar applied_item_count: Applied item count. + :vartype applied_item_count: long + :ivar total_item_count: Total item count (if available) + :vartype total_item_count: long + :ivar applied_bytes: Applied bytes + :vartype applied_bytes: long + :ivar total_bytes: Total bytes (if available) + :vartype total_bytes: long + """ + + _validation = { + 'timestamp': {'readonly': True}, + 'per_item_error_count': {'readonly': True, 'minimum': 0}, + 'applied_item_count': {'readonly': True, 'minimum': 0}, + 'total_item_count': {'readonly': True, 'minimum': 0}, + 'applied_bytes': {'readonly': True, 'minimum': 0}, + 'total_bytes': {'readonly': True, 'minimum': 0}, + } + + _attribute_map = { + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'per_item_error_count': {'key': 'perItemErrorCount', 'type': 'long'}, + 'applied_item_count': {'key': 'appliedItemCount', 'type': 'long'}, + 'total_item_count': {'key': 'totalItemCount', 'type': 'long'}, + 'applied_bytes': {'key': 'appliedBytes', 'type': 'long'}, + 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, + } + + def __init__(self, **kwargs) -> None: + super(ServerEndpointSyncActivityStatus, self).__init__(**kwargs) + self.timestamp = None + self.per_item_error_count = None + self.applied_item_count = None + self.total_item_count = None + self.applied_bytes = None + self.total_bytes = None + + +class ServerEndpointSyncSessionStatus(Model): + """Sync Session status object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar last_sync_result: Last sync result (HResult) + :vartype last_sync_result: int + :ivar last_sync_timestamp: Last sync timestamp + :vartype last_sync_timestamp: datetime + :ivar last_sync_success_timestamp: Last sync success timestamp + :vartype last_sync_success_timestamp: datetime + :ivar last_sync_per_item_error_count: Last sync per item error count. + :vartype last_sync_per_item_error_count: long + :ivar persistent_files_not_syncing_count: Count of persistent files not + syncing. + :vartype persistent_files_not_syncing_count: long + :ivar transient_files_not_syncing_count: Count of transient files not + syncing. + :vartype transient_files_not_syncing_count: long + :ivar files_not_syncing_errors: Array of per-item errors coming from the + last sync session. + :vartype files_not_syncing_errors: + list[~azure.mgmt.storagesync.models.ServerEndpointFilesNotSyncingError] + """ + + _validation = { + 'last_sync_result': {'readonly': True}, + 'last_sync_timestamp': {'readonly': True}, + 'last_sync_success_timestamp': {'readonly': True}, + 'last_sync_per_item_error_count': {'readonly': True, 'minimum': 0}, + 'persistent_files_not_syncing_count': {'readonly': True, 'minimum': 0}, + 'transient_files_not_syncing_count': {'readonly': True, 'minimum': 0}, + 'files_not_syncing_errors': {'readonly': True}, + } + + _attribute_map = { + 'last_sync_result': {'key': 'lastSyncResult', 'type': 'int'}, + 'last_sync_timestamp': {'key': 'lastSyncTimestamp', 'type': 'iso-8601'}, + 'last_sync_success_timestamp': {'key': 'lastSyncSuccessTimestamp', 'type': 'iso-8601'}, + 'last_sync_per_item_error_count': {'key': 'lastSyncPerItemErrorCount', 'type': 'long'}, + 'persistent_files_not_syncing_count': {'key': 'persistentFilesNotSyncingCount', 'type': 'long'}, + 'transient_files_not_syncing_count': {'key': 'transientFilesNotSyncingCount', 'type': 'long'}, + 'files_not_syncing_errors': {'key': 'filesNotSyncingErrors', 'type': '[ServerEndpointFilesNotSyncingError]'}, + } + + def __init__(self, **kwargs) -> None: + super(ServerEndpointSyncSessionStatus, self).__init__(**kwargs) + self.last_sync_result = None + self.last_sync_timestamp = None + self.last_sync_success_timestamp = None + self.last_sync_per_item_error_count = None + self.persistent_files_not_syncing_count = None + self.transient_files_not_syncing_count = None + self.files_not_syncing_errors = None + + +class ServerEndpointSyncStatus(Model): + """Server Endpoint sync status. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar download_health: Download Health Status. Possible values include: + 'Healthy', 'Error', 'SyncBlockedForRestore', + 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + :vartype download_health: str or ~azure.mgmt.storagesync.models.enum + :ivar upload_health: Upload Health Status. Possible values include: + 'Healthy', 'Error', 'SyncBlockedForRestore', + 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + :vartype upload_health: str or ~azure.mgmt.storagesync.models.enum + :ivar combined_health: Combined Health Status. Possible values include: + 'Healthy', 'Error', 'SyncBlockedForRestore', + 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + :vartype combined_health: str or ~azure.mgmt.storagesync.models.enum + :ivar sync_activity: Sync activity. Possible values include: 'Upload', + 'Download', 'UploadAndDownload' + :vartype sync_activity: str or ~azure.mgmt.storagesync.models.enum + :ivar total_persistent_files_not_syncing_count: Total count of persistent + files not syncing (combined upload + download). + :vartype total_persistent_files_not_syncing_count: long + :ivar last_updated_timestamp: Last Updated Timestamp + :vartype last_updated_timestamp: datetime + :ivar upload_status: Upload Status + :vartype upload_status: + ~azure.mgmt.storagesync.models.ServerEndpointSyncSessionStatus + :ivar download_status: Download Status + :vartype download_status: + ~azure.mgmt.storagesync.models.ServerEndpointSyncSessionStatus + :ivar upload_activity: Upload sync activity + :vartype upload_activity: + ~azure.mgmt.storagesync.models.ServerEndpointSyncActivityStatus + :ivar download_activity: Download sync activity + :vartype download_activity: + ~azure.mgmt.storagesync.models.ServerEndpointSyncActivityStatus + :ivar offline_data_transfer_status: Offline Data Transfer State. Possible + values include: 'InProgress', 'Stopping', 'NotRunning', 'Complete' + :vartype offline_data_transfer_status: str or + ~azure.mgmt.storagesync.models.enum + """ + + _validation = { + 'download_health': {'readonly': True}, + 'upload_health': {'readonly': True}, + 'combined_health': {'readonly': True}, + 'sync_activity': {'readonly': True}, + 'total_persistent_files_not_syncing_count': {'readonly': True, 'minimum': 0}, + 'last_updated_timestamp': {'readonly': True}, + 'upload_status': {'readonly': True}, + 'download_status': {'readonly': True}, + 'upload_activity': {'readonly': True}, + 'download_activity': {'readonly': True}, + 'offline_data_transfer_status': {'readonly': True}, + } + + _attribute_map = { + 'download_health': {'key': 'downloadHealth', 'type': 'str'}, + 'upload_health': {'key': 'uploadHealth', 'type': 'str'}, + 'combined_health': {'key': 'combinedHealth', 'type': 'str'}, + 'sync_activity': {'key': 'syncActivity', 'type': 'str'}, + 'total_persistent_files_not_syncing_count': {'key': 'totalPersistentFilesNotSyncingCount', 'type': 'long'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'iso-8601'}, + 'upload_status': {'key': 'uploadStatus', 'type': 'ServerEndpointSyncSessionStatus'}, + 'download_status': {'key': 'downloadStatus', 'type': 'ServerEndpointSyncSessionStatus'}, + 'upload_activity': {'key': 'uploadActivity', 'type': 'ServerEndpointSyncActivityStatus'}, + 'download_activity': {'key': 'downloadActivity', 'type': 'ServerEndpointSyncActivityStatus'}, + 'offline_data_transfer_status': {'key': 'offlineDataTransferStatus', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ServerEndpointSyncStatus, self).__init__(**kwargs) + self.download_health = None + self.upload_health = None + self.combined_health = None + self.sync_activity = None + self.total_persistent_files_not_syncing_count = None + self.last_updated_timestamp = None + self.upload_status = None + self.download_status = None + self.upload_activity = None + self.download_activity = None + self.offline_data_transfer_status = None + + +class ServerEndpointUpdateParameters(Model): + """Parameters for updating an Server Endpoint. + + :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' + :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum + :param volume_free_space_percent: Level of free space to be maintained by + Cloud Tiering if it is enabled. + :type volume_free_space_percent: int + :param tier_files_older_than_days: Tier files older than days. + :type tier_files_older_than_days: int + :param offline_data_transfer: Offline data transfer. Possible values + include: 'on', 'off' + :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum + :param offline_data_transfer_share_name: Offline data transfer share name + :type offline_data_transfer_share_name: str + """ + + _validation = { + 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, + 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, + } + + _attribute_map = { + 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, + 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, + 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, + 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, + 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, + } + + def __init__(self, *, cloud_tiering=None, volume_free_space_percent: int=None, tier_files_older_than_days: int=None, offline_data_transfer=None, offline_data_transfer_share_name: str=None, **kwargs) -> None: + super(ServerEndpointUpdateParameters, self).__init__(**kwargs) + self.cloud_tiering = cloud_tiering + self.volume_free_space_percent = volume_free_space_percent + self.tier_files_older_than_days = tier_files_older_than_days + self.offline_data_transfer = offline_data_transfer + self.offline_data_transfer_share_name = offline_data_transfer_share_name + + +class StorageSyncApiError(Model): + """Error type. + + :param code: Error code of the given entry. + :type code: str + :param message: Error message of the given entry. + :type message: str + :param target: Target of the given error entry. + :type target: str + :param details: Error details of the given entry. + :type details: ~azure.mgmt.storagesync.models.StorageSyncErrorDetails + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': 'StorageSyncErrorDetails'}, + } + + def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, **kwargs) -> None: + super(StorageSyncApiError, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.details = details + + +class StorageSyncError(Model): + """Error type. + + :param error: Error details of the given entry. + :type error: ~azure.mgmt.storagesync.models.StorageSyncApiError + :param innererror: Error details of the given entry. + :type innererror: ~azure.mgmt.storagesync.models.StorageSyncApiError + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'StorageSyncApiError'}, + 'innererror': {'key': 'innererror', 'type': 'StorageSyncApiError'}, + } + + def __init__(self, *, error=None, innererror=None, **kwargs) -> None: + super(StorageSyncError, self).__init__(**kwargs) + self.error = error + self.innererror = innererror + + +class StorageSyncErrorException(HttpOperationError): + """Server responsed with exception of type: 'StorageSyncError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(StorageSyncErrorException, self).__init__(deserialize, response, 'StorageSyncError', *args) + + +class StorageSyncErrorDetails(Model): + """Error Details object. + + :param code: Error code of the given entry. + :type code: str + :param message: Error message of the given entry. + :type message: str + :param target: Target of the given entry. + :type target: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, target: str=None, **kwargs) -> None: + super(StorageSyncErrorDetails, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + + +class TrackedResource(Resource): + """The resource model definition for a ARM tracked top level resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + +class StorageSyncService(TrackedResource): + """Storage Sync Service object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :ivar storage_sync_service_status: Storage Sync service status. + :vartype storage_sync_service_status: int + :ivar storage_sync_service_uid: Storage Sync service Uid + :vartype storage_sync_service_uid: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'storage_sync_service_status': {'readonly': True}, + 'storage_sync_service_uid': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'storage_sync_service_status': {'key': 'properties.storageSyncServiceStatus', 'type': 'int'}, + 'storage_sync_service_uid': {'key': 'properties.storageSyncServiceUid', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(StorageSyncService, self).__init__(tags=tags, location=location, **kwargs) + self.storage_sync_service_status = None + self.storage_sync_service_uid = None + + +class StorageSyncServiceCreateParameters(Model): + """The parameters used when creating a storage sync service. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. 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 properties: + :type properties: object + """ + + _validation = { + 'location': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, *, location: str, tags=None, properties=None, **kwargs) -> None: + super(StorageSyncServiceCreateParameters, self).__init__(**kwargs) + self.location = location + self.tags = tags + self.properties = properties + + +class StorageSyncServiceUpdateParameters(Model): + """Parameters for updating an Storage sync service. + + :param tags: The user-specified tags associated with the storage sync + service. + :type tags: dict[str, str] + :param properties: The properties of the storage sync service. + :type properties: object + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, *, tags=None, properties=None, **kwargs) -> None: + super(StorageSyncServiceUpdateParameters, self).__init__(**kwargs) + self.tags = tags + self.properties = properties + + +class SubscriptionState(Model): + """Subscription State object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param state: State of Azure Subscription. Possible values include: + 'Registered', 'Unregistered', 'Warned', 'Suspended', 'Deleted' + :type state: str or ~azure.mgmt.storagesync.models.Reason + :ivar istransitioning: Is Transitioning + :vartype istransitioning: bool + :param properties: Subscription state properties. + :type properties: object + """ + + _validation = { + 'istransitioning': {'readonly': True}, + } + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + 'istransitioning': {'key': 'istransitioning', 'type': 'bool'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, *, state=None, properties=None, **kwargs) -> None: + super(SubscriptionState, self).__init__(**kwargs) + self.state = state + self.istransitioning = None + self.properties = properties + + +class SyncGroup(ProxyResource): + """Sync Group object. + + 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 unique_id: Unique Id + :type unique_id: str + :ivar sync_group_status: Sync group status + :vartype sync_group_status: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'sync_group_status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'unique_id': {'key': 'properties.uniqueId', 'type': 'str'}, + 'sync_group_status': {'key': 'properties.syncGroupStatus', 'type': 'str'}, + } + + def __init__(self, *, unique_id: str=None, **kwargs) -> None: + super(SyncGroup, self).__init__(**kwargs) + self.unique_id = unique_id + self.sync_group_status = None + + +class SyncGroupCreateParameters(ProxyResource): + """The parameters used when creating a sync group. + + 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 properties: The parameters used to create the sync group + :type properties: object + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(SyncGroupCreateParameters, self).__init__(**kwargs) + self.properties = properties + + +class TriggerChangeDetectionParameters(Model): + """The parameters used when calling trigger change detection action on cloud + endpoint. + + :param directory_path: Relative path to a directory Azure File share for + which change detection is to be performed. + :type directory_path: str + :param change_detection_mode: Change Detection Mode. Applies to a + directory specified in directoryPath parameter. Possible values include: + 'Default', 'Recursive' + :type change_detection_mode: str or + ~azure.mgmt.storagesync.models.ChangeDetectionMode + :param paths: Array of relative paths on the Azure File share to be + included in the change detection. Can be files and directories. + :type paths: list[str] + """ + + _attribute_map = { + 'directory_path': {'key': 'directoryPath', 'type': 'str'}, + 'change_detection_mode': {'key': 'changeDetectionMode', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[str]'}, + } + + def __init__(self, *, directory_path: str=None, change_detection_mode=None, paths=None, **kwargs) -> None: + super(TriggerChangeDetectionParameters, self).__init__(**kwargs) + self.directory_path = directory_path + self.change_detection_mode = change_detection_mode + self.paths = paths + + +class TriggerRolloverRequest(Model): + """Trigger Rollover Request. + + :param server_certificate: Certificate Data + :type server_certificate: str + """ + + _attribute_map = { + 'server_certificate': {'key': 'serverCertificate', 'type': 'str'}, + } + + def __init__(self, *, server_certificate: str=None, **kwargs) -> None: + super(TriggerRolloverRequest, self).__init__(**kwargs) + self.server_certificate = server_certificate + + +class Workflow(ProxyResource): + """Workflow resource. + + 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 last_step_name: last step name + :type last_step_name: str + :param status: workflow status. Possible values include: 'active', + 'expired', 'succeeded', 'aborted', 'failed' + :type status: str or ~azure.mgmt.storagesync.models.enum + :param operation: operation direction. Possible values include: 'do', + 'undo', 'cancel' + :type operation: str or ~azure.mgmt.storagesync.models.enum + :param steps: workflow steps + :type steps: str + :param last_operation_id: workflow last operation identifier. + :type last_operation_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'last_step_name': {'key': 'properties.lastStepName', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'operation': {'key': 'properties.operation', 'type': 'str'}, + 'steps': {'key': 'properties.steps', 'type': 'str'}, + 'last_operation_id': {'key': 'properties.lastOperationId', 'type': 'str'}, + } + + def __init__(self, *, last_step_name: str=None, status=None, operation=None, steps: str=None, last_operation_id: str=None, **kwargs) -> None: + super(Workflow, self).__init__(**kwargs) + self.last_step_name = last_step_name + self.status = status + self.operation = operation + self.steps = steps + self.last_operation_id = last_operation_id diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_paged_models.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_paged_models.py new file mode 100644 index 000000000000..375104a5730b --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_paged_models.py @@ -0,0 +1,105 @@ +# 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.paging import Paged + + +class OperationEntityPaged(Paged): + """ + A paging container for iterating over a list of :class:`OperationEntity ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[OperationEntity]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationEntityPaged, self).__init__(*args, **kwargs) +class StorageSyncServicePaged(Paged): + """ + A paging container for iterating over a list of :class:`StorageSyncService ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[StorageSyncService]'} + } + + def __init__(self, *args, **kwargs): + + super(StorageSyncServicePaged, self).__init__(*args, **kwargs) +class SyncGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`SyncGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SyncGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(SyncGroupPaged, self).__init__(*args, **kwargs) +class CloudEndpointPaged(Paged): + """ + A paging container for iterating over a list of :class:`CloudEndpoint ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[CloudEndpoint]'} + } + + def __init__(self, *args, **kwargs): + + super(CloudEndpointPaged, self).__init__(*args, **kwargs) +class ServerEndpointPaged(Paged): + """ + A paging container for iterating over a list of :class:`ServerEndpoint ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ServerEndpoint]'} + } + + def __init__(self, *args, **kwargs): + + super(ServerEndpointPaged, self).__init__(*args, **kwargs) +class RegisteredServerPaged(Paged): + """ + A paging container for iterating over a list of :class:`RegisteredServer ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[RegisteredServer]'} + } + + def __init__(self, *args, **kwargs): + + super(RegisteredServerPaged, self).__init__(*args, **kwargs) +class WorkflowPaged(Paged): + """ + A paging container for iterating over a list of :class:`Workflow ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Workflow]'} + } + + def __init__(self, *args, **kwargs): + + super(WorkflowPaged, self).__init__(*args, **kwargs) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_management_client_enums.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_storage_sync_management_client_enums.py similarity index 89% rename from sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_management_client_enums.py rename to sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_storage_sync_management_client_enums.py index 2e5f8975de92..769a68bf9202 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_management_client_enums.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_storage_sync_management_client_enums.py @@ -21,6 +21,12 @@ class Reason(str, Enum): deleted = "Deleted" +class ChangeDetectionMode(str, Enum): + + default = "Default" + recursive = "Recursive" + + class NameAvailabilityReason(str, Enum): invalid = "Invalid" diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/azure_entity_resource.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/azure_entity_resource.py deleted file mode 100644 index 3bffaab8d35b..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/azure_entity_resource.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 .resource import Resource - - -class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. - - 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 - :ivar etag: Resource Etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/azure_entity_resource_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/azure_entity_resource_py3.py deleted file mode 100644 index d3f80d87498a..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/azure_entity_resource_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 .resource_py3 import Resource - - -class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. - - 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 - :ivar etag: Resource Etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/backup_request.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/backup_request.py deleted file mode 100644 index 7985fa523e2c..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/backup_request.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 BackupRequest(Model): - """Backup request. - - :param azure_file_share: Azure File Share. - :type azure_file_share: str - """ - - _attribute_map = { - 'azure_file_share': {'key': 'azureFileShare', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackupRequest, self).__init__(**kwargs) - self.azure_file_share = kwargs.get('azure_file_share', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/backup_request_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/backup_request_py3.py deleted file mode 100644 index 40ce93af2004..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/backup_request_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 BackupRequest(Model): - """Backup request. - - :param azure_file_share: Azure File Share. - :type azure_file_share: str - """ - - _attribute_map = { - 'azure_file_share': {'key': 'azureFileShare', 'type': 'str'}, - } - - def __init__(self, *, azure_file_share: str=None, **kwargs) -> None: - super(BackupRequest, self).__init__(**kwargs) - self.azure_file_share = azure_file_share diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_parameters.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_parameters.py deleted file mode 100644 index de7bfc6d4f7b..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_parameters.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 CheckNameAvailabilityParameters(Model): - """Parameters for a check name availability request. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name to check for availability - :type name: str - :ivar type: Required. The resource type. Must be set to - Microsoft.StorageSync/storageSyncServices. Default value: - "Microsoft.StorageSync/storageSyncServices" . - :vartype type: str - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True, 'constant': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - type = "Microsoft.StorageSync/storageSyncServices" - - def __init__(self, **kwargs): - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_parameters_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_parameters_py3.py deleted file mode 100644 index 4e5f4a4b374c..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_parameters_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 CheckNameAvailabilityParameters(Model): - """Parameters for a check name availability request. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name to check for availability - :type name: str - :ivar type: Required. The resource type. Must be set to - Microsoft.StorageSync/storageSyncServices. Default value: - "Microsoft.StorageSync/storageSyncServices" . - :vartype type: str - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True, 'constant': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - type = "Microsoft.StorageSync/storageSyncServices" - - def __init__(self, *, name: str, **kwargs) -> None: - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.name = name diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_result.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_result.py deleted file mode 100644 index 2e861884d51e..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_result.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 CheckNameAvailabilityResult(Model): - """The CheckNameAvailability operation response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_available: Gets a boolean value that indicates whether the name - is available for you to use. If true, the name is available. If false, the - name has already been taken or invalid and cannot be used. - :vartype name_available: bool - :ivar reason: Gets the reason that a Storage Sync Service name could not - be used. The Reason element is only returned if NameAvailable is false. - Possible values include: 'Invalid', 'AlreadyExists' - :vartype reason: str or - ~azure.mgmt.storagesync.models.NameAvailabilityReason - :ivar message: Gets an error message explaining the Reason value in more - detail. - :vartype message: str - """ - - _validation = { - 'name_available': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'NameAvailabilityReason'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CheckNameAvailabilityResult, self).__init__(**kwargs) - self.name_available = None - self.reason = None - self.message = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_result_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_result_py3.py deleted file mode 100644 index c15345123e3c..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/check_name_availability_result_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 CheckNameAvailabilityResult(Model): - """The CheckNameAvailability operation response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_available: Gets a boolean value that indicates whether the name - is available for you to use. If true, the name is available. If false, the - name has already been taken or invalid and cannot be used. - :vartype name_available: bool - :ivar reason: Gets the reason that a Storage Sync Service name could not - be used. The Reason element is only returned if NameAvailable is false. - Possible values include: 'Invalid', 'AlreadyExists' - :vartype reason: str or - ~azure.mgmt.storagesync.models.NameAvailabilityReason - :ivar message: Gets an error message explaining the Reason value in more - detail. - :vartype message: str - """ - - _validation = { - 'name_available': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'NameAvailabilityReason'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(CheckNameAvailabilityResult, self).__init__(**kwargs) - self.name_available = None - self.reason = None - self.message = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint.py deleted file mode 100644 index 406c7e067bb2..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint.py +++ /dev/null @@ -1,81 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class CloudEndpoint(ProxyResource): - """Cloud Endpoint object. - - 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 azure_file_share_name: Azure file share name - :type azure_file_share_name: str - :param storage_account_tenant_id: Storage Account Tenant Id - :type storage_account_tenant_id: str - :param partnership_id: Partnership Id - :type partnership_id: str - :param friendly_name: Friendly Name - :type friendly_name: str - :ivar backup_enabled: Backup Enabled - :vartype backup_enabled: str - :param provisioning_state: CloudEndpoint Provisioning State - :type provisioning_state: str - :param last_workflow_id: CloudEndpoint lastWorkflowId - :type last_workflow_id: str - :param last_operation_name: Resource Last Operation Name - :type last_operation_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'backup_enabled': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'}, - 'azure_file_share_name': {'key': 'properties.azureFileShareName', 'type': 'str'}, - 'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'}, - 'partnership_id': {'key': 'properties.partnershipId', 'type': 'str'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - 'backup_enabled': {'key': 'properties.backupEnabled', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, - 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CloudEndpoint, self).__init__(**kwargs) - self.storage_account_resource_id = kwargs.get('storage_account_resource_id', None) - self.azure_file_share_name = kwargs.get('azure_file_share_name', None) - self.storage_account_tenant_id = kwargs.get('storage_account_tenant_id', None) - self.partnership_id = kwargs.get('partnership_id', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_enabled = None - self.provisioning_state = kwargs.get('provisioning_state', None) - self.last_workflow_id = kwargs.get('last_workflow_id', None) - self.last_operation_name = kwargs.get('last_operation_name', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_create_parameters.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_create_parameters.py deleted file mode 100644 index eff777ef470c..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_create_parameters.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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 .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 azure_file_share_name: Azure file share name - :type azure_file_share_name: str - :param storage_account_tenant_id: Storage Account Tenant Id - :type storage_account_tenant_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'}, - 'azure_file_share_name': {'key': 'properties.azureFileShareName', 'type': 'str'}, - 'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CloudEndpointCreateParameters, self).__init__(**kwargs) - self.storage_account_resource_id = kwargs.get('storage_account_resource_id', None) - self.azure_file_share_name = kwargs.get('azure_file_share_name', None) - self.storage_account_tenant_id = kwargs.get('storage_account_tenant_id', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_create_parameters_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_create_parameters_py3.py deleted file mode 100644 index 230aa1ff81da..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_create_parameters_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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 .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 azure_file_share_name: Azure file share name - :type azure_file_share_name: str - :param storage_account_tenant_id: Storage Account Tenant Id - :type storage_account_tenant_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'}, - 'azure_file_share_name': {'key': 'properties.azureFileShareName', 'type': 'str'}, - 'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'}, - } - - def __init__(self, *, storage_account_resource_id: str=None, azure_file_share_name: str=None, storage_account_tenant_id: str=None, **kwargs) -> None: - super(CloudEndpointCreateParameters, self).__init__(**kwargs) - self.storage_account_resource_id = storage_account_resource_id - self.azure_file_share_name = azure_file_share_name - self.storage_account_tenant_id = storage_account_tenant_id diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_paged.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_paged.py deleted file mode 100644 index e8236a3b36b7..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class CloudEndpointPaged(Paged): - """ - A paging container for iterating over a list of :class:`CloudEndpoint ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[CloudEndpoint]'} - } - - def __init__(self, *args, **kwargs): - - super(CloudEndpointPaged, self).__init__(*args, **kwargs) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_py3.py deleted file mode 100644 index 3cd23e520ff7..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/cloud_endpoint_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class CloudEndpoint(ProxyResource): - """Cloud Endpoint object. - - 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 azure_file_share_name: Azure file share name - :type azure_file_share_name: str - :param storage_account_tenant_id: Storage Account Tenant Id - :type storage_account_tenant_id: str - :param partnership_id: Partnership Id - :type partnership_id: str - :param friendly_name: Friendly Name - :type friendly_name: str - :ivar backup_enabled: Backup Enabled - :vartype backup_enabled: str - :param provisioning_state: CloudEndpoint Provisioning State - :type provisioning_state: str - :param last_workflow_id: CloudEndpoint lastWorkflowId - :type last_workflow_id: str - :param last_operation_name: Resource Last Operation Name - :type last_operation_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'backup_enabled': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'}, - 'azure_file_share_name': {'key': 'properties.azureFileShareName', 'type': 'str'}, - 'storage_account_tenant_id': {'key': 'properties.storageAccountTenantId', 'type': 'str'}, - 'partnership_id': {'key': 'properties.partnershipId', 'type': 'str'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - 'backup_enabled': {'key': 'properties.backupEnabled', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, - 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, - } - - def __init__(self, *, storage_account_resource_id: str=None, azure_file_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_resource_id = storage_account_resource_id - self.azure_file_share_name = azure_file_share_name - self.storage_account_tenant_id = storage_account_tenant_id - self.partnership_id = partnership_id - self.friendly_name = friendly_name - self.backup_enabled = None - self.provisioning_state = provisioning_state - self.last_workflow_id = last_workflow_id - self.last_operation_name = last_operation_name diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/files_not_syncing_error.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/files_not_syncing_error.py deleted file mode 100644 index 9b6666f42528..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/files_not_syncing_error.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 FilesNotSyncingError(Model): - """Files not syncing error object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar error_code: Error code (HResult) - :vartype error_code: int - :ivar persistent_count: Count of persistent files not syncing with the - specified error code - :vartype persistent_count: long - :ivar transient_count: Count of transient files not syncing with the - specified error code - :vartype transient_count: long - """ - - _validation = { - 'error_code': {'readonly': True}, - 'persistent_count': {'readonly': True}, - 'transient_count': {'readonly': True}, - } - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'persistent_count': {'key': 'persistentCount', 'type': 'long'}, - 'transient_count': {'key': 'transientCount', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(FilesNotSyncingError, self).__init__(**kwargs) - self.error_code = None - self.persistent_count = None - self.transient_count = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/files_not_syncing_error_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/files_not_syncing_error_py3.py deleted file mode 100644 index f28f2c1f9770..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/files_not_syncing_error_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 FilesNotSyncingError(Model): - """Files not syncing error object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar error_code: Error code (HResult) - :vartype error_code: int - :ivar persistent_count: Count of persistent files not syncing with the - specified error code - :vartype persistent_count: long - :ivar transient_count: Count of transient files not syncing with the - specified error code - :vartype transient_count: long - """ - - _validation = { - 'error_code': {'readonly': True}, - 'persistent_count': {'readonly': True}, - 'transient_count': {'readonly': True}, - } - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'persistent_count': {'key': 'persistentCount', 'type': 'long'}, - 'transient_count': {'key': 'transientCount', 'type': 'long'}, - } - - def __init__(self, **kwargs) -> None: - super(FilesNotSyncingError, self).__init__(**kwargs) - self.error_code = None - self.persistent_count = None - self.transient_count = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_info.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_info.py deleted file mode 100644 index 0873ac288acf..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_info.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 OperationDisplayInfo(Model): - """The operation supported by storage sync. - - :param description: The description of the operation. - :type description: str - :param operation: The action that users can perform, based on their - permission level. - :type operation: str - :param provider: Service provider: Microsoft StorageSync. - :type provider: str - :param resource: Resource on which the operation is performed. - :type resource: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplayInfo, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.operation = kwargs.get('operation', None) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_info_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_info_py3.py deleted file mode 100644 index 3b267484ebcf..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_info_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 OperationDisplayInfo(Model): - """The operation supported by storage sync. - - :param description: The description of the operation. - :type description: str - :param operation: The action that users can perform, based on their - permission level. - :type operation: str - :param provider: Service provider: Microsoft StorageSync. - :type provider: str - :param resource: Resource on which the operation is performed. - :type resource: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - } - - def __init__(self, *, description: str=None, operation: str=None, provider: str=None, resource: str=None, **kwargs) -> None: - super(OperationDisplayInfo, self).__init__(**kwargs) - self.description = description - self.operation = operation - self.provider = provider - self.resource = resource diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_resource.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_resource.py deleted file mode 100644 index 63411958a683..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_resource.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 OperationDisplayResource(Model): - """Operation Display Resource object. - - :param provider: Operation Display Resource Provider. - :type provider: str - :param resource: Operation Display Resource. - :type resource: str - :param operation: Operation Display Resource Operation. - :type operation: str - :param description: Operation Display Resource Description. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplayResource, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_resource_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_resource_py3.py deleted file mode 100644 index dd1a69b42c0d..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_display_resource_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 OperationDisplayResource(Model): - """Operation Display Resource object. - - :param provider: Operation Display Resource Provider. - :type provider: str - :param resource: Operation Display Resource. - :type resource: str - :param operation: Operation Display Resource Operation. - :type operation: str - :param description: Operation Display Resource Description. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationDisplayResource, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity.py deleted file mode 100644 index 5927baf919e7..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 OperationEntity(Model): - """The operation supported by storage sync. - - :param name: Operation name: {provider}/{resource}/{operation}. - :type name: str - :param display: The operation supported by storage sync. - :type display: ~azure.mgmt.storagesync.models.OperationDisplayInfo - :param origin: The origin. - :type origin: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplayInfo'}, - 'origin': {'key': 'origin', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationEntity, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) - self.origin = kwargs.get('origin', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity_paged.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity_paged.py deleted file mode 100644 index b1bf74619a98..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class OperationEntityPaged(Paged): - """ - A paging container for iterating over a list of :class:`OperationEntity ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[OperationEntity]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationEntityPaged, self).__init__(*args, **kwargs) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity_py3.py deleted file mode 100644 index 2f4f5a9b79ed..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/operation_entity_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 OperationEntity(Model): - """The operation supported by storage sync. - - :param name: Operation name: {provider}/{resource}/{operation}. - :type name: str - :param display: The operation supported by storage sync. - :type display: ~azure.mgmt.storagesync.models.OperationDisplayInfo - :param origin: The origin. - :type origin: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplayInfo'}, - 'origin': {'key': 'origin', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, display=None, origin: str=None, **kwargs) -> None: - super(OperationEntity, self).__init__(**kwargs) - self.name = name - self.display = display - self.origin = origin diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_backup_response.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_backup_response.py deleted file mode 100644 index 2c4ea0b1bfea..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_backup_response.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 PostBackupResponse(Model): - """Post Backup Response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar cloud_endpoint_name: cloud endpoint Name. - :vartype cloud_endpoint_name: str - """ - - _validation = { - 'cloud_endpoint_name': {'readonly': True}, - } - - _attribute_map = { - 'cloud_endpoint_name': {'key': 'backupMetadata.cloudEndpointName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PostBackupResponse, self).__init__(**kwargs) - self.cloud_endpoint_name = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_backup_response_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_backup_response_py3.py deleted file mode 100644 index 525387f960b3..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_backup_response_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 PostBackupResponse(Model): - """Post Backup Response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar cloud_endpoint_name: cloud endpoint Name. - :vartype cloud_endpoint_name: str - """ - - _validation = { - 'cloud_endpoint_name': {'readonly': True}, - } - - _attribute_map = { - 'cloud_endpoint_name': {'key': 'backupMetadata.cloudEndpointName', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(PostBackupResponse, self).__init__(**kwargs) - self.cloud_endpoint_name = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_restore_request.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_restore_request.py deleted file mode 100644 index 7c9141c765e1..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_restore_request.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 PostRestoreRequest(Model): - """Post Restore Request. - - :param partition: Post Restore partition. - :type partition: str - :param replica_group: Post Restore replica group. - :type replica_group: str - :param request_id: Post Restore request id. - :type request_id: str - :param azure_file_share_uri: Post Restore Azure file share uri. - :type azure_file_share_uri: str - :param status: Post Restore Azure status. - :type status: str - :param source_azure_file_share_uri: Post Restore Azure source azure file - share uri. - :type source_azure_file_share_uri: str - :param failed_file_list: Post Restore Azure failed file list. - :type failed_file_list: str - :param restore_file_spec: Post Restore restore file spec array. - :type restore_file_spec: - list[~azure.mgmt.storagesync.models.RestoreFileSpec] - """ - - _attribute_map = { - 'partition': {'key': 'partition', 'type': 'str'}, - 'replica_group': {'key': 'replicaGroup', 'type': 'str'}, - 'request_id': {'key': 'requestId', 'type': 'str'}, - 'azure_file_share_uri': {'key': 'azureFileShareUri', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'source_azure_file_share_uri': {'key': 'sourceAzureFileShareUri', 'type': 'str'}, - 'failed_file_list': {'key': 'failedFileList', 'type': 'str'}, - 'restore_file_spec': {'key': 'restoreFileSpec', 'type': '[RestoreFileSpec]'}, - } - - def __init__(self, **kwargs): - super(PostRestoreRequest, self).__init__(**kwargs) - self.partition = kwargs.get('partition', None) - self.replica_group = kwargs.get('replica_group', None) - self.request_id = kwargs.get('request_id', None) - self.azure_file_share_uri = kwargs.get('azure_file_share_uri', None) - self.status = kwargs.get('status', None) - self.source_azure_file_share_uri = kwargs.get('source_azure_file_share_uri', None) - self.failed_file_list = kwargs.get('failed_file_list', None) - self.restore_file_spec = kwargs.get('restore_file_spec', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_restore_request_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_restore_request_py3.py deleted file mode 100644 index 6d9d7ec049f9..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/post_restore_request_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 PostRestoreRequest(Model): - """Post Restore Request. - - :param partition: Post Restore partition. - :type partition: str - :param replica_group: Post Restore replica group. - :type replica_group: str - :param request_id: Post Restore request id. - :type request_id: str - :param azure_file_share_uri: Post Restore Azure file share uri. - :type azure_file_share_uri: str - :param status: Post Restore Azure status. - :type status: str - :param source_azure_file_share_uri: Post Restore Azure source azure file - share uri. - :type source_azure_file_share_uri: str - :param failed_file_list: Post Restore Azure failed file list. - :type failed_file_list: str - :param restore_file_spec: Post Restore restore file spec array. - :type restore_file_spec: - list[~azure.mgmt.storagesync.models.RestoreFileSpec] - """ - - _attribute_map = { - 'partition': {'key': 'partition', 'type': 'str'}, - 'replica_group': {'key': 'replicaGroup', 'type': 'str'}, - 'request_id': {'key': 'requestId', 'type': 'str'}, - 'azure_file_share_uri': {'key': 'azureFileShareUri', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'source_azure_file_share_uri': {'key': 'sourceAzureFileShareUri', 'type': 'str'}, - 'failed_file_list': {'key': 'failedFileList', 'type': 'str'}, - 'restore_file_spec': {'key': 'restoreFileSpec', 'type': '[RestoreFileSpec]'}, - } - - def __init__(self, *, partition: str=None, replica_group: str=None, request_id: str=None, azure_file_share_uri: str=None, status: str=None, source_azure_file_share_uri: str=None, failed_file_list: str=None, restore_file_spec=None, **kwargs) -> None: - super(PostRestoreRequest, self).__init__(**kwargs) - self.partition = partition - self.replica_group = replica_group - self.request_id = request_id - self.azure_file_share_uri = azure_file_share_uri - self.status = status - self.source_azure_file_share_uri = source_azure_file_share_uri - self.failed_file_list = failed_file_list - self.restore_file_spec = restore_file_spec diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/pre_restore_request.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/pre_restore_request.py deleted file mode 100644 index 3ed5cf3e7060..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/pre_restore_request.py +++ /dev/null @@ -1,64 +0,0 @@ -# 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 PreRestoreRequest(Model): - """Pre Restore request object. - - :param partition: Pre Restore partition. - :type partition: str - :param replica_group: Pre Restore replica group. - :type replica_group: str - :param request_id: Pre Restore request id. - :type request_id: str - :param azure_file_share_uri: Pre Restore Azure file share uri. - :type azure_file_share_uri: str - :param status: Pre Restore Azure status. - :type status: str - :param source_azure_file_share_uri: Pre Restore Azure source azure file - share uri. - :type source_azure_file_share_uri: str - :param backup_metadata_property_bag: Pre Restore backup metadata property - bag. - :type backup_metadata_property_bag: str - :param restore_file_spec: Pre Restore restore file spec array. - :type restore_file_spec: - list[~azure.mgmt.storagesync.models.RestoreFileSpec] - :param pause_wait_for_sync_drain_time_period_in_seconds: Pre Restore pause - wait for sync drain time period in seconds. - :type pause_wait_for_sync_drain_time_period_in_seconds: int - """ - - _attribute_map = { - 'partition': {'key': 'partition', 'type': 'str'}, - 'replica_group': {'key': 'replicaGroup', 'type': 'str'}, - 'request_id': {'key': 'requestId', 'type': 'str'}, - 'azure_file_share_uri': {'key': 'azureFileShareUri', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'source_azure_file_share_uri': {'key': 'sourceAzureFileShareUri', 'type': 'str'}, - 'backup_metadata_property_bag': {'key': 'backupMetadataPropertyBag', 'type': 'str'}, - 'restore_file_spec': {'key': 'restoreFileSpec', 'type': '[RestoreFileSpec]'}, - 'pause_wait_for_sync_drain_time_period_in_seconds': {'key': 'pauseWaitForSyncDrainTimePeriodInSeconds', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(PreRestoreRequest, self).__init__(**kwargs) - self.partition = kwargs.get('partition', None) - self.replica_group = kwargs.get('replica_group', None) - self.request_id = kwargs.get('request_id', None) - self.azure_file_share_uri = kwargs.get('azure_file_share_uri', None) - self.status = kwargs.get('status', None) - self.source_azure_file_share_uri = kwargs.get('source_azure_file_share_uri', None) - self.backup_metadata_property_bag = kwargs.get('backup_metadata_property_bag', None) - self.restore_file_spec = kwargs.get('restore_file_spec', None) - self.pause_wait_for_sync_drain_time_period_in_seconds = kwargs.get('pause_wait_for_sync_drain_time_period_in_seconds', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/pre_restore_request_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/pre_restore_request_py3.py deleted file mode 100644 index 036e95b5690d..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/pre_restore_request_py3.py +++ /dev/null @@ -1,64 +0,0 @@ -# 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 PreRestoreRequest(Model): - """Pre Restore request object. - - :param partition: Pre Restore partition. - :type partition: str - :param replica_group: Pre Restore replica group. - :type replica_group: str - :param request_id: Pre Restore request id. - :type request_id: str - :param azure_file_share_uri: Pre Restore Azure file share uri. - :type azure_file_share_uri: str - :param status: Pre Restore Azure status. - :type status: str - :param source_azure_file_share_uri: Pre Restore Azure source azure file - share uri. - :type source_azure_file_share_uri: str - :param backup_metadata_property_bag: Pre Restore backup metadata property - bag. - :type backup_metadata_property_bag: str - :param restore_file_spec: Pre Restore restore file spec array. - :type restore_file_spec: - list[~azure.mgmt.storagesync.models.RestoreFileSpec] - :param pause_wait_for_sync_drain_time_period_in_seconds: Pre Restore pause - wait for sync drain time period in seconds. - :type pause_wait_for_sync_drain_time_period_in_seconds: int - """ - - _attribute_map = { - 'partition': {'key': 'partition', 'type': 'str'}, - 'replica_group': {'key': 'replicaGroup', 'type': 'str'}, - 'request_id': {'key': 'requestId', 'type': 'str'}, - 'azure_file_share_uri': {'key': 'azureFileShareUri', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'source_azure_file_share_uri': {'key': 'sourceAzureFileShareUri', 'type': 'str'}, - 'backup_metadata_property_bag': {'key': 'backupMetadataPropertyBag', 'type': 'str'}, - 'restore_file_spec': {'key': 'restoreFileSpec', 'type': '[RestoreFileSpec]'}, - 'pause_wait_for_sync_drain_time_period_in_seconds': {'key': 'pauseWaitForSyncDrainTimePeriodInSeconds', 'type': 'int'}, - } - - def __init__(self, *, partition: str=None, replica_group: str=None, request_id: str=None, azure_file_share_uri: str=None, status: str=None, source_azure_file_share_uri: str=None, backup_metadata_property_bag: str=None, restore_file_spec=None, pause_wait_for_sync_drain_time_period_in_seconds: int=None, **kwargs) -> None: - super(PreRestoreRequest, self).__init__(**kwargs) - self.partition = partition - self.replica_group = replica_group - self.request_id = request_id - self.azure_file_share_uri = azure_file_share_uri - self.status = status - self.source_azure_file_share_uri = source_azure_file_share_uri - self.backup_metadata_property_bag = backup_metadata_property_bag - self.restore_file_spec = restore_file_spec - self.pause_wait_for_sync_drain_time_period_in_seconds = pause_wait_for_sync_drain_time_period_in_seconds diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/proxy_resource.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/proxy_resource.py deleted file mode 100644 index 0de8fb6bd420..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/proxy_resource.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 .resource import Resource - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. - - 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 - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProxyResource, self).__init__(**kwargs) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/proxy_resource_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/proxy_resource_py3.py deleted file mode 100644 index 2e8391f912d6..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/proxy_resource_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 .resource_py3 import Resource - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. - - 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 - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ProxyResource, self).__init__(**kwargs) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/recall_action_parameters.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/recall_action_parameters.py deleted file mode 100644 index aebb1bca3c1b..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/recall_action_parameters.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/recall_action_parameters_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/recall_action_parameters_py3.py deleted file mode 100644 index e755fe00abc6..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/recall_action_parameters_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server.py deleted file mode 100644 index e9635ab5bd7e..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class RegisteredServer(ProxyResource): - """Registered Server resource. - - 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 - :type agent_version: str - :param server_os_version: Registered Server OS Version - :type server_os_version: str - :param server_management_error_code: Registered Server Management Error - Code - :type server_management_error_code: int - :param last_heart_beat: Registered Server last heart beat - :type last_heart_beat: str - :param provisioning_state: Registered Server Provisioning State - :type provisioning_state: str - :param server_role: Registered Server serverRole - :type server_role: str - :param cluster_id: Registered Server clusterId - :type cluster_id: str - :param cluster_name: Registered Server clusterName - :type cluster_name: str - :param server_id: Registered Server serverId - :type server_id: str - :param storage_sync_service_uid: Registered Server storageSyncServiceUid - :type storage_sync_service_uid: str - :param last_workflow_id: Registered Server lastWorkflowId - :type last_workflow_id: str - :param last_operation_name: Resource Last Operation Name - :type last_operation_name: str - :param discovery_endpoint_uri: Resource discoveryEndpointUri - :type discovery_endpoint_uri: str - :param resource_location: Resource Location - :type resource_location: str - :param service_location: Service Location - :type service_location: str - :param friendly_name: Friendly Name - :type friendly_name: str - :param management_endpoint_uri: Management Endpoint Uri - :type management_endpoint_uri: str - :param monitoring_configuration: Monitoring Configuration - :type monitoring_configuration: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - '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'}, - 'server_management_error_code': {'key': 'properties.serverManagementErrorCode', 'type': 'int'}, - 'last_heart_beat': {'key': 'properties.lastHeartBeat', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'server_role': {'key': 'properties.serverRole', 'type': 'str'}, - 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, - 'cluster_name': {'key': 'properties.clusterName', 'type': 'str'}, - 'server_id': {'key': 'properties.serverId', 'type': 'str'}, - 'storage_sync_service_uid': {'key': 'properties.storageSyncServiceUid', 'type': 'str'}, - 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, - 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, - 'discovery_endpoint_uri': {'key': 'properties.discoveryEndpointUri', 'type': 'str'}, - 'resource_location': {'key': 'properties.resourceLocation', 'type': 'str'}, - 'service_location': {'key': 'properties.serviceLocation', 'type': 'str'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - 'management_endpoint_uri': {'key': 'properties.managementEndpointUri', 'type': 'str'}, - 'monitoring_configuration': {'key': 'properties.monitoringConfiguration', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RegisteredServer, self).__init__(**kwargs) - 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) - self.server_management_error_code = kwargs.get('server_management_error_code', None) - self.last_heart_beat = kwargs.get('last_heart_beat', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.server_role = kwargs.get('server_role', None) - self.cluster_id = kwargs.get('cluster_id', None) - self.cluster_name = kwargs.get('cluster_name', None) - self.server_id = kwargs.get('server_id', None) - self.storage_sync_service_uid = kwargs.get('storage_sync_service_uid', None) - self.last_workflow_id = kwargs.get('last_workflow_id', None) - self.last_operation_name = kwargs.get('last_operation_name', None) - self.discovery_endpoint_uri = kwargs.get('discovery_endpoint_uri', None) - self.resource_location = kwargs.get('resource_location', None) - self.service_location = kwargs.get('service_location', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.management_endpoint_uri = kwargs.get('management_endpoint_uri', None) - self.monitoring_configuration = kwargs.get('monitoring_configuration', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_create_parameters.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_create_parameters.py deleted file mode 100644 index d1dd456e9cf2..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_create_parameters.py +++ /dev/null @@ -1,80 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class RegisteredServerCreateParameters(ProxyResource): - """The parameters used when creating a registered server. - - 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 - :type agent_version: str - :param server_os_version: Registered Server OS Version - :type server_os_version: str - :param last_heart_beat: Registered Server last heart beat - :type last_heart_beat: str - :param server_role: Registered Server serverRole - :type server_role: str - :param cluster_id: Registered Server clusterId - :type cluster_id: str - :param cluster_name: Registered Server clusterName - :type cluster_name: str - :param server_id: Registered Server serverId - :type server_id: str - :param friendly_name: Friendly Name - :type friendly_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - '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'}, - 'last_heart_beat': {'key': 'properties.lastHeartBeat', 'type': 'str'}, - 'server_role': {'key': 'properties.serverRole', 'type': 'str'}, - 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, - 'cluster_name': {'key': 'properties.clusterName', 'type': 'str'}, - 'server_id': {'key': 'properties.serverId', 'type': 'str'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RegisteredServerCreateParameters, self).__init__(**kwargs) - 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) - self.last_heart_beat = kwargs.get('last_heart_beat', None) - self.server_role = kwargs.get('server_role', None) - self.cluster_id = kwargs.get('cluster_id', None) - self.cluster_name = kwargs.get('cluster_name', None) - self.server_id = kwargs.get('server_id', None) - self.friendly_name = kwargs.get('friendly_name', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_create_parameters_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_create_parameters_py3.py deleted file mode 100644 index 1ca4e7e3da5c..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_create_parameters_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class RegisteredServerCreateParameters(ProxyResource): - """The parameters used when creating a registered server. - - 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 - :type agent_version: str - :param server_os_version: Registered Server OS Version - :type server_os_version: str - :param last_heart_beat: Registered Server last heart beat - :type last_heart_beat: str - :param server_role: Registered Server serverRole - :type server_role: str - :param cluster_id: Registered Server clusterId - :type cluster_id: str - :param cluster_name: Registered Server clusterName - :type cluster_name: str - :param server_id: Registered Server serverId - :type server_id: str - :param friendly_name: Friendly Name - :type friendly_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - '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'}, - 'last_heart_beat': {'key': 'properties.lastHeartBeat', 'type': 'str'}, - 'server_role': {'key': 'properties.serverRole', 'type': 'str'}, - 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, - 'cluster_name': {'key': 'properties.clusterName', 'type': 'str'}, - 'server_id': {'key': 'properties.serverId', 'type': 'str'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - } - - def __init__(self, *, server_certificate: str=None, agent_version: str=None, server_os_version: str=None, last_heart_beat: str=None, server_role: str=None, cluster_id: str=None, cluster_name: str=None, server_id: str=None, friendly_name: str=None, **kwargs) -> None: - super(RegisteredServerCreateParameters, self).__init__(**kwargs) - self.server_certificate = server_certificate - self.agent_version = agent_version - self.server_os_version = server_os_version - self.last_heart_beat = last_heart_beat - self.server_role = server_role - self.cluster_id = cluster_id - self.cluster_name = cluster_name - self.server_id = server_id - self.friendly_name = friendly_name diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_paged.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_paged.py deleted file mode 100644 index 427520af9dcf..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class RegisteredServerPaged(Paged): - """ - A paging container for iterating over a list of :class:`RegisteredServer ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[RegisteredServer]'} - } - - def __init__(self, *args, **kwargs): - - super(RegisteredServerPaged, self).__init__(*args, **kwargs) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_py3.py deleted file mode 100644 index 696ae085506c..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/registered_server_py3.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class RegisteredServer(ProxyResource): - """Registered Server resource. - - 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 - :type agent_version: str - :param server_os_version: Registered Server OS Version - :type server_os_version: str - :param server_management_error_code: Registered Server Management Error - Code - :type server_management_error_code: int - :param last_heart_beat: Registered Server last heart beat - :type last_heart_beat: str - :param provisioning_state: Registered Server Provisioning State - :type provisioning_state: str - :param server_role: Registered Server serverRole - :type server_role: str - :param cluster_id: Registered Server clusterId - :type cluster_id: str - :param cluster_name: Registered Server clusterName - :type cluster_name: str - :param server_id: Registered Server serverId - :type server_id: str - :param storage_sync_service_uid: Registered Server storageSyncServiceUid - :type storage_sync_service_uid: str - :param last_workflow_id: Registered Server lastWorkflowId - :type last_workflow_id: str - :param last_operation_name: Resource Last Operation Name - :type last_operation_name: str - :param discovery_endpoint_uri: Resource discoveryEndpointUri - :type discovery_endpoint_uri: str - :param resource_location: Resource Location - :type resource_location: str - :param service_location: Service Location - :type service_location: str - :param friendly_name: Friendly Name - :type friendly_name: str - :param management_endpoint_uri: Management Endpoint Uri - :type management_endpoint_uri: str - :param monitoring_configuration: Monitoring Configuration - :type monitoring_configuration: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - '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'}, - 'server_management_error_code': {'key': 'properties.serverManagementErrorCode', 'type': 'int'}, - 'last_heart_beat': {'key': 'properties.lastHeartBeat', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'server_role': {'key': 'properties.serverRole', 'type': 'str'}, - 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, - 'cluster_name': {'key': 'properties.clusterName', 'type': 'str'}, - 'server_id': {'key': 'properties.serverId', 'type': 'str'}, - 'storage_sync_service_uid': {'key': 'properties.storageSyncServiceUid', 'type': 'str'}, - 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, - 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, - 'discovery_endpoint_uri': {'key': 'properties.discoveryEndpointUri', 'type': 'str'}, - 'resource_location': {'key': 'properties.resourceLocation', 'type': 'str'}, - 'service_location': {'key': 'properties.serviceLocation', 'type': 'str'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - 'management_endpoint_uri': {'key': 'properties.managementEndpointUri', 'type': 'str'}, - 'monitoring_configuration': {'key': 'properties.monitoringConfiguration', 'type': 'str'}, - } - - def __init__(self, *, server_certificate: str=None, agent_version: str=None, server_os_version: str=None, server_management_error_code: int=None, last_heart_beat: str=None, provisioning_state: str=None, server_role: str=None, cluster_id: str=None, cluster_name: str=None, server_id: str=None, storage_sync_service_uid: str=None, last_workflow_id: str=None, last_operation_name: str=None, discovery_endpoint_uri: str=None, resource_location: str=None, service_location: str=None, friendly_name: str=None, management_endpoint_uri: str=None, monitoring_configuration: str=None, **kwargs) -> None: - super(RegisteredServer, self).__init__(**kwargs) - self.server_certificate = server_certificate - self.agent_version = agent_version - self.server_os_version = server_os_version - self.server_management_error_code = server_management_error_code - self.last_heart_beat = last_heart_beat - self.provisioning_state = provisioning_state - self.server_role = server_role - self.cluster_id = cluster_id - self.cluster_name = cluster_name - self.server_id = server_id - self.storage_sync_service_uid = storage_sync_service_uid - self.last_workflow_id = last_workflow_id - self.last_operation_name = last_operation_name - self.discovery_endpoint_uri = discovery_endpoint_uri - self.resource_location = resource_location - self.service_location = service_location - self.friendly_name = friendly_name - self.management_endpoint_uri = management_endpoint_uri - self.monitoring_configuration = monitoring_configuration diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resource.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resource.py deleted file mode 100644 index 9333a2ac49ef..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resource.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 Resource(Model): - """Resource. - - 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 - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resource_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resource_py3.py deleted file mode 100644 index 370e6c506581..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resource_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 Resource(Model): - """Resource. - - 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 - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resources_move_info.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resources_move_info.py deleted file mode 100644 index 06ef882f8273..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resources_move_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 ResourcesMoveInfo(Model): - """Resource Move Info. - - :param target_resource_group: Target resource group. - :type target_resource_group: str - :param resources: Collection of Resources. - :type resources: list[str] - """ - - _attribute_map = { - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - 'resources': {'key': 'resources', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.target_resource_group = kwargs.get('target_resource_group', None) - self.resources = kwargs.get('resources', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resources_move_info_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resources_move_info_py3.py deleted file mode 100644 index b726db1e2fad..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/resources_move_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 ResourcesMoveInfo(Model): - """Resource Move Info. - - :param target_resource_group: Target resource group. - :type target_resource_group: str - :param resources: Collection of Resources. - :type resources: list[str] - """ - - _attribute_map = { - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - 'resources': {'key': 'resources', 'type': '[str]'}, - } - - def __init__(self, *, target_resource_group: str=None, resources=None, **kwargs) -> None: - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.target_resource_group = target_resource_group - self.resources = resources diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/restore_file_spec.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/restore_file_spec.py deleted file mode 100644 index a35239a38814..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/restore_file_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 RestoreFileSpec(Model): - """Restore file spec. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param path: Restore file spec path - :type path: str - :ivar isdir: Restore file spec isdir - :vartype isdir: bool - """ - - _validation = { - 'isdir': {'readonly': True}, - } - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'isdir': {'key': 'isdir', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(RestoreFileSpec, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.isdir = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/restore_file_spec_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/restore_file_spec_py3.py deleted file mode 100644 index 388311853cc4..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/restore_file_spec_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 RestoreFileSpec(Model): - """Restore file spec. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param path: Restore file spec path - :type path: str - :ivar isdir: Restore file spec isdir - :vartype isdir: bool - """ - - _validation = { - 'isdir': {'readonly': True}, - } - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'isdir': {'key': 'isdir', 'type': 'bool'}, - } - - def __init__(self, *, path: str=None, **kwargs) -> None: - super(RestoreFileSpec, self).__init__(**kwargs) - self.path = path - self.isdir = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint.py deleted file mode 100644 index deea0447c85f..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint.py +++ /dev/null @@ -1,113 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class ServerEndpoint(ProxyResource): - """Server Endpoint object. - - 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_local_path: Server Local path. - :type server_local_path: str - :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' - :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum - :param volume_free_space_percent: Level of free space to be maintained by - Cloud Tiering if it is enabled. - :type volume_free_space_percent: int - :param tier_files_older_than_days: Tier files older than days. - :type tier_files_older_than_days: int - :param friendly_name: Friendly Name - :type friendly_name: str - :param server_resource_id: Server Resource Id. - :type server_resource_id: str - :ivar provisioning_state: ServerEndpoint Provisioning State - :vartype provisioning_state: str - :ivar last_workflow_id: ServerEndpoint lastWorkflowId - :vartype last_workflow_id: str - :ivar last_operation_name: Resource Last Operation Name - :vartype last_operation_name: str - :ivar sync_status: Server Endpoint sync status - :vartype sync_status: - ~azure.mgmt.storagesync.models.ServerEndpointSyncStatus - :param offline_data_transfer: Offline data transfer. Possible values - include: 'on', 'off' - :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum - :ivar offline_data_transfer_storage_account_resource_id: Offline data - transfer storage account resource ID - :vartype offline_data_transfer_storage_account_resource_id: str - :ivar offline_data_transfer_storage_account_tenant_id: Offline data - transfer storage account tenant ID - :vartype offline_data_transfer_storage_account_tenant_id: str - :param offline_data_transfer_share_name: Offline data transfer share name - :type offline_data_transfer_share_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, - 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, - 'provisioning_state': {'readonly': True}, - 'last_workflow_id': {'readonly': True}, - 'last_operation_name': {'readonly': True}, - 'sync_status': {'readonly': True}, - 'offline_data_transfer_storage_account_resource_id': {'readonly': True}, - 'offline_data_transfer_storage_account_tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'server_local_path': {'key': 'properties.serverLocalPath', 'type': 'str'}, - 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, - 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, - 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - 'server_resource_id': {'key': 'properties.serverResourceId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, - 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, - 'sync_status': {'key': 'properties.syncStatus', 'type': 'ServerEndpointSyncStatus'}, - 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, - 'offline_data_transfer_storage_account_resource_id': {'key': 'properties.offlineDataTransferStorageAccountResourceId', 'type': 'str'}, - 'offline_data_transfer_storage_account_tenant_id': {'key': 'properties.offlineDataTransferStorageAccountTenantId', 'type': 'str'}, - 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServerEndpoint, self).__init__(**kwargs) - self.server_local_path = kwargs.get('server_local_path', None) - self.cloud_tiering = kwargs.get('cloud_tiering', None) - self.volume_free_space_percent = kwargs.get('volume_free_space_percent', None) - self.tier_files_older_than_days = kwargs.get('tier_files_older_than_days', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.server_resource_id = kwargs.get('server_resource_id', None) - self.provisioning_state = None - self.last_workflow_id = None - self.last_operation_name = None - self.sync_status = None - self.offline_data_transfer = kwargs.get('offline_data_transfer', None) - self.offline_data_transfer_storage_account_resource_id = None - self.offline_data_transfer_storage_account_tenant_id = None - self.offline_data_transfer_share_name = kwargs.get('offline_data_transfer_share_name', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_create_parameters.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_create_parameters.py deleted file mode 100644 index 6d21513418f4..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_create_parameters.py +++ /dev/null @@ -1,80 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class ServerEndpointCreateParameters(ProxyResource): - """The parameters used when creating a server 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 server_local_path: Server Local path. - :type server_local_path: str - :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' - :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum - :param volume_free_space_percent: Level of free space to be maintained by - Cloud Tiering if it is enabled. - :type volume_free_space_percent: int - :param tier_files_older_than_days: Tier files older than days. - :type tier_files_older_than_days: int - :param friendly_name: Friendly Name - :type friendly_name: str - :param server_resource_id: Server Resource Id. - :type server_resource_id: str - :param offline_data_transfer: Offline data transfer. Possible values - include: 'on', 'off' - :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum - :param offline_data_transfer_share_name: Offline data transfer share name - :type offline_data_transfer_share_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, - 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'server_local_path': {'key': 'properties.serverLocalPath', 'type': 'str'}, - 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, - 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, - 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - 'server_resource_id': {'key': 'properties.serverResourceId', 'type': 'str'}, - 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, - 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServerEndpointCreateParameters, self).__init__(**kwargs) - self.server_local_path = kwargs.get('server_local_path', None) - self.cloud_tiering = kwargs.get('cloud_tiering', None) - self.volume_free_space_percent = kwargs.get('volume_free_space_percent', None) - self.tier_files_older_than_days = kwargs.get('tier_files_older_than_days', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.server_resource_id = kwargs.get('server_resource_id', None) - self.offline_data_transfer = kwargs.get('offline_data_transfer', None) - self.offline_data_transfer_share_name = kwargs.get('offline_data_transfer_share_name', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_create_parameters_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_create_parameters_py3.py deleted file mode 100644 index e50d73f0ab6b..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_create_parameters_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class ServerEndpointCreateParameters(ProxyResource): - """The parameters used when creating a server 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 server_local_path: Server Local path. - :type server_local_path: str - :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' - :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum - :param volume_free_space_percent: Level of free space to be maintained by - Cloud Tiering if it is enabled. - :type volume_free_space_percent: int - :param tier_files_older_than_days: Tier files older than days. - :type tier_files_older_than_days: int - :param friendly_name: Friendly Name - :type friendly_name: str - :param server_resource_id: Server Resource Id. - :type server_resource_id: str - :param offline_data_transfer: Offline data transfer. Possible values - include: 'on', 'off' - :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum - :param offline_data_transfer_share_name: Offline data transfer share name - :type offline_data_transfer_share_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, - 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'server_local_path': {'key': 'properties.serverLocalPath', 'type': 'str'}, - 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, - 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, - 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - 'server_resource_id': {'key': 'properties.serverResourceId', 'type': 'str'}, - 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, - 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, - } - - def __init__(self, *, server_local_path: str=None, cloud_tiering=None, volume_free_space_percent: int=None, tier_files_older_than_days: int=None, friendly_name: str=None, server_resource_id: str=None, offline_data_transfer=None, offline_data_transfer_share_name: str=None, **kwargs) -> None: - super(ServerEndpointCreateParameters, self).__init__(**kwargs) - self.server_local_path = server_local_path - self.cloud_tiering = cloud_tiering - self.volume_free_space_percent = volume_free_space_percent - self.tier_files_older_than_days = tier_files_older_than_days - self.friendly_name = friendly_name - self.server_resource_id = server_resource_id - self.offline_data_transfer = offline_data_transfer - self.offline_data_transfer_share_name = offline_data_transfer_share_name diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_paged.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_paged.py deleted file mode 100644 index 28f07cf6b012..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class ServerEndpointPaged(Paged): - """ - A paging container for iterating over a list of :class:`ServerEndpoint ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ServerEndpoint]'} - } - - def __init__(self, *args, **kwargs): - - super(ServerEndpointPaged, self).__init__(*args, **kwargs) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_py3.py deleted file mode 100644 index 64683d6ba5e3..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_py3.py +++ /dev/null @@ -1,113 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class ServerEndpoint(ProxyResource): - """Server Endpoint object. - - 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_local_path: Server Local path. - :type server_local_path: str - :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' - :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum - :param volume_free_space_percent: Level of free space to be maintained by - Cloud Tiering if it is enabled. - :type volume_free_space_percent: int - :param tier_files_older_than_days: Tier files older than days. - :type tier_files_older_than_days: int - :param friendly_name: Friendly Name - :type friendly_name: str - :param server_resource_id: Server Resource Id. - :type server_resource_id: str - :ivar provisioning_state: ServerEndpoint Provisioning State - :vartype provisioning_state: str - :ivar last_workflow_id: ServerEndpoint lastWorkflowId - :vartype last_workflow_id: str - :ivar last_operation_name: Resource Last Operation Name - :vartype last_operation_name: str - :ivar sync_status: Server Endpoint sync status - :vartype sync_status: - ~azure.mgmt.storagesync.models.ServerEndpointSyncStatus - :param offline_data_transfer: Offline data transfer. Possible values - include: 'on', 'off' - :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum - :ivar offline_data_transfer_storage_account_resource_id: Offline data - transfer storage account resource ID - :vartype offline_data_transfer_storage_account_resource_id: str - :ivar offline_data_transfer_storage_account_tenant_id: Offline data - transfer storage account tenant ID - :vartype offline_data_transfer_storage_account_tenant_id: str - :param offline_data_transfer_share_name: Offline data transfer share name - :type offline_data_transfer_share_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, - 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, - 'provisioning_state': {'readonly': True}, - 'last_workflow_id': {'readonly': True}, - 'last_operation_name': {'readonly': True}, - 'sync_status': {'readonly': True}, - 'offline_data_transfer_storage_account_resource_id': {'readonly': True}, - 'offline_data_transfer_storage_account_tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'server_local_path': {'key': 'properties.serverLocalPath', 'type': 'str'}, - 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, - 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, - 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - 'server_resource_id': {'key': 'properties.serverResourceId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'last_workflow_id': {'key': 'properties.lastWorkflowId', 'type': 'str'}, - 'last_operation_name': {'key': 'properties.lastOperationName', 'type': 'str'}, - 'sync_status': {'key': 'properties.syncStatus', 'type': 'ServerEndpointSyncStatus'}, - 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, - 'offline_data_transfer_storage_account_resource_id': {'key': 'properties.offlineDataTransferStorageAccountResourceId', 'type': 'str'}, - 'offline_data_transfer_storage_account_tenant_id': {'key': 'properties.offlineDataTransferStorageAccountTenantId', 'type': 'str'}, - 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, - } - - def __init__(self, *, server_local_path: str=None, cloud_tiering=None, volume_free_space_percent: int=None, tier_files_older_than_days: int=None, friendly_name: str=None, server_resource_id: str=None, offline_data_transfer=None, offline_data_transfer_share_name: str=None, **kwargs) -> None: - super(ServerEndpoint, self).__init__(**kwargs) - self.server_local_path = server_local_path - self.cloud_tiering = cloud_tiering - self.volume_free_space_percent = volume_free_space_percent - self.tier_files_older_than_days = tier_files_older_than_days - self.friendly_name = friendly_name - self.server_resource_id = server_resource_id - self.provisioning_state = None - self.last_workflow_id = None - self.last_operation_name = None - self.sync_status = None - self.offline_data_transfer = offline_data_transfer - self.offline_data_transfer_storage_account_resource_id = None - self.offline_data_transfer_storage_account_tenant_id = None - self.offline_data_transfer_share_name = offline_data_transfer_share_name diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_sync_status.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_sync_status.py deleted file mode 100644 index fd3be05457e1..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_sync_status.py +++ /dev/null @@ -1,97 +0,0 @@ -# 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 ServerEndpointSyncStatus(Model): - """Server Endpoint sync status. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar download_health: Download Health Status. Possible values include: - 'Healthy', 'Error', 'SyncBlockedForRestore', - 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' - :vartype download_health: str or ~azure.mgmt.storagesync.models.enum - :ivar upload_health: Upload Health Status. Possible values include: - 'Healthy', 'Error', 'SyncBlockedForRestore', - 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' - :vartype upload_health: str or ~azure.mgmt.storagesync.models.enum - :ivar combined_health: Combined Health Status. Possible values include: - 'Healthy', 'Error', 'SyncBlockedForRestore', - 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' - :vartype combined_health: str or ~azure.mgmt.storagesync.models.enum - :ivar sync_activity: Sync activity. Possible values include: 'Upload', - 'Download', 'UploadAndDownload' - :vartype sync_activity: str or ~azure.mgmt.storagesync.models.enum - :ivar total_persistent_files_not_syncing_count: Total count of persistent - files not syncing (combined upload + download). Reserved for future use. - :vartype total_persistent_files_not_syncing_count: long - :ivar last_updated_timestamp: Last Updated Timestamp - :vartype last_updated_timestamp: datetime - :ivar upload_status: Upload Status - :vartype upload_status: ~azure.mgmt.storagesync.models.SyncSessionStatus - :ivar download_status: Download Status - :vartype download_status: ~azure.mgmt.storagesync.models.SyncSessionStatus - :ivar upload_activity: Upload sync activity - :vartype upload_activity: - ~azure.mgmt.storagesync.models.SyncActivityStatus - :ivar download_activity: Download sync activity - :vartype download_activity: - ~azure.mgmt.storagesync.models.SyncActivityStatus - :ivar offline_data_transfer_status: Offline Data Transfer State. Possible - values include: 'InProgress', 'Stopping', 'NotRunning', 'Complete' - :vartype offline_data_transfer_status: str or - ~azure.mgmt.storagesync.models.enum - """ - - _validation = { - 'download_health': {'readonly': True}, - 'upload_health': {'readonly': True}, - 'combined_health': {'readonly': True}, - 'sync_activity': {'readonly': True}, - 'total_persistent_files_not_syncing_count': {'readonly': True}, - 'last_updated_timestamp': {'readonly': True}, - 'upload_status': {'readonly': True}, - 'download_status': {'readonly': True}, - 'upload_activity': {'readonly': True}, - 'download_activity': {'readonly': True}, - 'offline_data_transfer_status': {'readonly': True}, - } - - _attribute_map = { - 'download_health': {'key': 'downloadHealth', 'type': 'str'}, - 'upload_health': {'key': 'uploadHealth', 'type': 'str'}, - 'combined_health': {'key': 'combinedHealth', 'type': 'str'}, - 'sync_activity': {'key': 'syncActivity', 'type': 'str'}, - 'total_persistent_files_not_syncing_count': {'key': 'totalPersistentFilesNotSyncingCount', 'type': 'long'}, - 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'iso-8601'}, - 'upload_status': {'key': 'uploadStatus', 'type': 'SyncSessionStatus'}, - 'download_status': {'key': 'downloadStatus', 'type': 'SyncSessionStatus'}, - 'upload_activity': {'key': 'uploadActivity', 'type': 'SyncActivityStatus'}, - 'download_activity': {'key': 'downloadActivity', 'type': 'SyncActivityStatus'}, - 'offline_data_transfer_status': {'key': 'offlineDataTransferStatus', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServerEndpointSyncStatus, self).__init__(**kwargs) - self.download_health = None - self.upload_health = None - self.combined_health = None - self.sync_activity = None - self.total_persistent_files_not_syncing_count = None - self.last_updated_timestamp = None - self.upload_status = None - self.download_status = None - self.upload_activity = None - self.download_activity = None - self.offline_data_transfer_status = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_sync_status_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_sync_status_py3.py deleted file mode 100644 index f31d58773c8f..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_sync_status_py3.py +++ /dev/null @@ -1,97 +0,0 @@ -# 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 ServerEndpointSyncStatus(Model): - """Server Endpoint sync status. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar download_health: Download Health Status. Possible values include: - 'Healthy', 'Error', 'SyncBlockedForRestore', - 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' - :vartype download_health: str or ~azure.mgmt.storagesync.models.enum - :ivar upload_health: Upload Health Status. Possible values include: - 'Healthy', 'Error', 'SyncBlockedForRestore', - 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' - :vartype upload_health: str or ~azure.mgmt.storagesync.models.enum - :ivar combined_health: Combined Health Status. Possible values include: - 'Healthy', 'Error', 'SyncBlockedForRestore', - 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' - :vartype combined_health: str or ~azure.mgmt.storagesync.models.enum - :ivar sync_activity: Sync activity. Possible values include: 'Upload', - 'Download', 'UploadAndDownload' - :vartype sync_activity: str or ~azure.mgmt.storagesync.models.enum - :ivar total_persistent_files_not_syncing_count: Total count of persistent - files not syncing (combined upload + download). Reserved for future use. - :vartype total_persistent_files_not_syncing_count: long - :ivar last_updated_timestamp: Last Updated Timestamp - :vartype last_updated_timestamp: datetime - :ivar upload_status: Upload Status - :vartype upload_status: ~azure.mgmt.storagesync.models.SyncSessionStatus - :ivar download_status: Download Status - :vartype download_status: ~azure.mgmt.storagesync.models.SyncSessionStatus - :ivar upload_activity: Upload sync activity - :vartype upload_activity: - ~azure.mgmt.storagesync.models.SyncActivityStatus - :ivar download_activity: Download sync activity - :vartype download_activity: - ~azure.mgmt.storagesync.models.SyncActivityStatus - :ivar offline_data_transfer_status: Offline Data Transfer State. Possible - values include: 'InProgress', 'Stopping', 'NotRunning', 'Complete' - :vartype offline_data_transfer_status: str or - ~azure.mgmt.storagesync.models.enum - """ - - _validation = { - 'download_health': {'readonly': True}, - 'upload_health': {'readonly': True}, - 'combined_health': {'readonly': True}, - 'sync_activity': {'readonly': True}, - 'total_persistent_files_not_syncing_count': {'readonly': True}, - 'last_updated_timestamp': {'readonly': True}, - 'upload_status': {'readonly': True}, - 'download_status': {'readonly': True}, - 'upload_activity': {'readonly': True}, - 'download_activity': {'readonly': True}, - 'offline_data_transfer_status': {'readonly': True}, - } - - _attribute_map = { - 'download_health': {'key': 'downloadHealth', 'type': 'str'}, - 'upload_health': {'key': 'uploadHealth', 'type': 'str'}, - 'combined_health': {'key': 'combinedHealth', 'type': 'str'}, - 'sync_activity': {'key': 'syncActivity', 'type': 'str'}, - 'total_persistent_files_not_syncing_count': {'key': 'totalPersistentFilesNotSyncingCount', 'type': 'long'}, - 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'iso-8601'}, - 'upload_status': {'key': 'uploadStatus', 'type': 'SyncSessionStatus'}, - 'download_status': {'key': 'downloadStatus', 'type': 'SyncSessionStatus'}, - 'upload_activity': {'key': 'uploadActivity', 'type': 'SyncActivityStatus'}, - 'download_activity': {'key': 'downloadActivity', 'type': 'SyncActivityStatus'}, - 'offline_data_transfer_status': {'key': 'offlineDataTransferStatus', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ServerEndpointSyncStatus, self).__init__(**kwargs) - self.download_health = None - self.upload_health = None - self.combined_health = None - self.sync_activity = None - self.total_persistent_files_not_syncing_count = None - self.last_updated_timestamp = None - self.upload_status = None - self.download_status = None - self.upload_activity = None - self.download_activity = None - self.offline_data_transfer_status = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_update_parameters.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_update_parameters.py deleted file mode 100644 index 25554c2b0a46..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_update_parameters.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 ServerEndpointUpdateParameters(Model): - """Parameters for updating an Server Endpoint. - - :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' - :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum - :param volume_free_space_percent: Level of free space to be maintained by - Cloud Tiering if it is enabled. - :type volume_free_space_percent: int - :param tier_files_older_than_days: Tier files older than days. - :type tier_files_older_than_days: int - :param offline_data_transfer: Offline data transfer. Possible values - include: 'on', 'off' - :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum - :param offline_data_transfer_share_name: Offline data transfer share name - :type offline_data_transfer_share_name: str - """ - - _validation = { - 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, - 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, - } - - _attribute_map = { - 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, - 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, - 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, - 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, - 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServerEndpointUpdateParameters, self).__init__(**kwargs) - self.cloud_tiering = kwargs.get('cloud_tiering', None) - self.volume_free_space_percent = kwargs.get('volume_free_space_percent', None) - self.tier_files_older_than_days = kwargs.get('tier_files_older_than_days', None) - self.offline_data_transfer = kwargs.get('offline_data_transfer', None) - self.offline_data_transfer_share_name = kwargs.get('offline_data_transfer_share_name', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_update_parameters_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_update_parameters_py3.py deleted file mode 100644 index a44778969f64..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/server_endpoint_update_parameters_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 ServerEndpointUpdateParameters(Model): - """Parameters for updating an Server Endpoint. - - :param cloud_tiering: Cloud Tiering. Possible values include: 'on', 'off' - :type cloud_tiering: str or ~azure.mgmt.storagesync.models.enum - :param volume_free_space_percent: Level of free space to be maintained by - Cloud Tiering if it is enabled. - :type volume_free_space_percent: int - :param tier_files_older_than_days: Tier files older than days. - :type tier_files_older_than_days: int - :param offline_data_transfer: Offline data transfer. Possible values - include: 'on', 'off' - :type offline_data_transfer: str or ~azure.mgmt.storagesync.models.enum - :param offline_data_transfer_share_name: Offline data transfer share name - :type offline_data_transfer_share_name: str - """ - - _validation = { - 'volume_free_space_percent': {'maximum': 100, 'minimum': 0}, - 'tier_files_older_than_days': {'maximum': 2147483647, 'minimum': 0}, - } - - _attribute_map = { - 'cloud_tiering': {'key': 'properties.cloudTiering', 'type': 'str'}, - 'volume_free_space_percent': {'key': 'properties.volumeFreeSpacePercent', 'type': 'int'}, - 'tier_files_older_than_days': {'key': 'properties.tierFilesOlderThanDays', 'type': 'int'}, - 'offline_data_transfer': {'key': 'properties.offlineDataTransfer', 'type': 'str'}, - 'offline_data_transfer_share_name': {'key': 'properties.offlineDataTransferShareName', 'type': 'str'}, - } - - def __init__(self, *, cloud_tiering=None, volume_free_space_percent: int=None, tier_files_older_than_days: int=None, offline_data_transfer=None, offline_data_transfer_share_name: str=None, **kwargs) -> None: - super(ServerEndpointUpdateParameters, self).__init__(**kwargs) - self.cloud_tiering = cloud_tiering - self.volume_free_space_percent = volume_free_space_percent - self.tier_files_older_than_days = tier_files_older_than_days - self.offline_data_transfer = offline_data_transfer - self.offline_data_transfer_share_name = offline_data_transfer_share_name diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_api_error.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_api_error.py deleted file mode 100644 index 6994277562aa..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_api_error.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 StorageSyncApiError(Model): - """Error type. - - :param code: Error code of the given entry. - :type code: str - :param message: Error message of the given entry. - :type message: str - :param target: Target of the given error entry. - :type target: str - :param details: Error details of the given entry. - :type details: ~azure.mgmt.storagesync.models.StorageSyncErrorDetails - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': 'StorageSyncErrorDetails'}, - } - - def __init__(self, **kwargs): - super(StorageSyncApiError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.target = kwargs.get('target', None) - self.details = kwargs.get('details', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_api_error_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_api_error_py3.py deleted file mode 100644 index c95d94f7ebf8..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_api_error_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 StorageSyncApiError(Model): - """Error type. - - :param code: Error code of the given entry. - :type code: str - :param message: Error message of the given entry. - :type message: str - :param target: Target of the given error entry. - :type target: str - :param details: Error details of the given entry. - :type details: ~azure.mgmt.storagesync.models.StorageSyncErrorDetails - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': 'StorageSyncErrorDetails'}, - } - - def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, **kwargs) -> None: - super(StorageSyncApiError, self).__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error.py deleted file mode 100644 index f218da1917d1..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 StorageSyncError(Model): - """Error type. - - :param error: Error details of the given entry. - :type error: ~azure.mgmt.storagesync.models.StorageSyncApiError - :param innererror: Error details of the given entry. - :type innererror: ~azure.mgmt.storagesync.models.StorageSyncApiError - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'StorageSyncApiError'}, - 'innererror': {'key': 'innererror', 'type': 'StorageSyncApiError'}, - } - - def __init__(self, **kwargs): - super(StorageSyncError, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - self.innererror = kwargs.get('innererror', None) - - -class StorageSyncErrorException(HttpOperationError): - """Server responsed with exception of type: 'StorageSyncError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(StorageSyncErrorException, self).__init__(deserialize, response, 'StorageSyncError', *args) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_details.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_details.py deleted file mode 100644 index c7f59c2cc17b..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_details.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 StorageSyncErrorDetails(Model): - """Error Details object. - - :param code: Error code of the given entry. - :type code: str - :param message: Error message of the given entry. - :type message: str - :param target: Target of the given entry. - :type target: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(StorageSyncErrorDetails, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.target = kwargs.get('target', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_details_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_details_py3.py deleted file mode 100644 index 27ef02028e3e..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_details_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 StorageSyncErrorDetails(Model): - """Error Details object. - - :param code: Error code of the given entry. - :type code: str - :param message: Error message of the given entry. - :type message: str - :param target: Target of the given entry. - :type target: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, message: str=None, target: str=None, **kwargs) -> None: - super(StorageSyncErrorDetails, self).__init__(**kwargs) - self.code = code - self.message = message - self.target = target diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_py3.py deleted file mode 100644 index 4c7863155a2a..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_error_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 StorageSyncError(Model): - """Error type. - - :param error: Error details of the given entry. - :type error: ~azure.mgmt.storagesync.models.StorageSyncApiError - :param innererror: Error details of the given entry. - :type innererror: ~azure.mgmt.storagesync.models.StorageSyncApiError - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'StorageSyncApiError'}, - 'innererror': {'key': 'innererror', 'type': 'StorageSyncApiError'}, - } - - def __init__(self, *, error=None, innererror=None, **kwargs) -> None: - super(StorageSyncError, self).__init__(**kwargs) - self.error = error - self.innererror = innererror - - -class StorageSyncErrorException(HttpOperationError): - """Server responsed with exception of type: 'StorageSyncError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(StorageSyncErrorException, self).__init__(deserialize, response, 'StorageSyncError', *args) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service.py deleted file mode 100644 index 07cdf0c2be10..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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 .tracked_resource import TrackedResource - - -class StorageSyncService(TrackedResource): - """Storage Sync Service object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :ivar storage_sync_service_status: Storage Sync service status. - :vartype storage_sync_service_status: int - :ivar storage_sync_service_uid: Storage Sync service Uid - :vartype storage_sync_service_uid: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'storage_sync_service_status': {'readonly': True}, - 'storage_sync_service_uid': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'storage_sync_service_status': {'key': 'properties.storageSyncServiceStatus', 'type': 'int'}, - 'storage_sync_service_uid': {'key': 'properties.storageSyncServiceUid', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(StorageSyncService, self).__init__(**kwargs) - self.storage_sync_service_status = None - self.storage_sync_service_uid = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_create_parameters.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_create_parameters.py deleted file mode 100644 index 88f1df814a2a..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_create_parameters.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 StorageSyncServiceCreateParameters(Model): - """The parameters used when creating a storage sync service. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. 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 properties: - :type properties: object - """ - - _validation = { - 'location': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(StorageSyncServiceCreateParameters, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_create_parameters_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_create_parameters_py3.py deleted file mode 100644 index 15d33d0c62f4..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_create_parameters_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 StorageSyncServiceCreateParameters(Model): - """The parameters used when creating a storage sync service. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. 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 properties: - :type properties: object - """ - - _validation = { - 'location': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, *, location: str, tags=None, properties=None, **kwargs) -> None: - super(StorageSyncServiceCreateParameters, self).__init__(**kwargs) - self.location = location - self.tags = tags - self.properties = properties diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_paged.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_paged.py deleted file mode 100644 index 5904a21bc2b8..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class StorageSyncServicePaged(Paged): - """ - A paging container for iterating over a list of :class:`StorageSyncService ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[StorageSyncService]'} - } - - def __init__(self, *args, **kwargs): - - super(StorageSyncServicePaged, self).__init__(*args, **kwargs) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_py3.py deleted file mode 100644 index 0fa5d1290171..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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 .tracked_resource_py3 import TrackedResource - - -class StorageSyncService(TrackedResource): - """Storage Sync Service object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :ivar storage_sync_service_status: Storage Sync service status. - :vartype storage_sync_service_status: int - :ivar storage_sync_service_uid: Storage Sync service Uid - :vartype storage_sync_service_uid: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'storage_sync_service_status': {'readonly': True}, - 'storage_sync_service_uid': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'storage_sync_service_status': {'key': 'properties.storageSyncServiceStatus', 'type': 'int'}, - 'storage_sync_service_uid': {'key': 'properties.storageSyncServiceUid', 'type': 'str'}, - } - - def __init__(self, *, location: str, tags=None, **kwargs) -> None: - super(StorageSyncService, self).__init__(tags=tags, location=location, **kwargs) - self.storage_sync_service_status = None - self.storage_sync_service_uid = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_update_parameters.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_update_parameters.py deleted file mode 100644 index 4038e1fb1941..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_update_parameters.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 StorageSyncServiceUpdateParameters(Model): - """Parameters for updating an Storage sync service. - - :param tags: The user-specified tags associated with the storage sync - service. - :type tags: dict[str, str] - :param properties: The properties of the storage sync service. - :type properties: object - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(StorageSyncServiceUpdateParameters, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_update_parameters_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_update_parameters_py3.py deleted file mode 100644 index b70ad833087d..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/storage_sync_service_update_parameters_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 StorageSyncServiceUpdateParameters(Model): - """Parameters for updating an Storage sync service. - - :param tags: The user-specified tags associated with the storage sync - service. - :type tags: dict[str, str] - :param properties: The properties of the storage sync service. - :type properties: object - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, *, tags=None, properties=None, **kwargs) -> None: - super(StorageSyncServiceUpdateParameters, self).__init__(**kwargs) - self.tags = tags - self.properties = properties diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/subscription_state.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/subscription_state.py deleted file mode 100644 index 20d18d8dc12c..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/subscription_state.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 SubscriptionState(Model): - """Subscription State object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param state: State of Azure Subscription. Possible values include: - 'Registered', 'Unregistered', 'Warned', 'Suspended', 'Deleted' - :type state: str or ~azure.mgmt.storagesync.models.Reason - :ivar istransitioning: Is Transitioning - :vartype istransitioning: bool - :param properties: Subscription state properties. - :type properties: object - """ - - _validation = { - 'istransitioning': {'readonly': True}, - } - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'}, - 'istransitioning': {'key': 'istransitioning', 'type': 'bool'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(SubscriptionState, self).__init__(**kwargs) - self.state = kwargs.get('state', None) - self.istransitioning = None - self.properties = kwargs.get('properties', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/subscription_state_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/subscription_state_py3.py deleted file mode 100644 index 8d56b794f628..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/subscription_state_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 SubscriptionState(Model): - """Subscription State object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param state: State of Azure Subscription. Possible values include: - 'Registered', 'Unregistered', 'Warned', 'Suspended', 'Deleted' - :type state: str or ~azure.mgmt.storagesync.models.Reason - :ivar istransitioning: Is Transitioning - :vartype istransitioning: bool - :param properties: Subscription state properties. - :type properties: object - """ - - _validation = { - 'istransitioning': {'readonly': True}, - } - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'}, - 'istransitioning': {'key': 'istransitioning', 'type': 'bool'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, *, state=None, properties=None, **kwargs) -> None: - super(SubscriptionState, self).__init__(**kwargs) - self.state = state - self.istransitioning = None - self.properties = properties diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_activity_status.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_activity_status.py deleted file mode 100644 index 03353341d74b..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_activity_status.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 SyncActivityStatus(Model): - """Sync Session status object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar timestamp: Timestamp when properties were updated - :vartype timestamp: datetime - :ivar per_item_error_count: Per item error count - :vartype per_item_error_count: long - :ivar applied_item_count: Applied item count. - :vartype applied_item_count: long - :ivar total_item_count: Total item count (if available) - :vartype total_item_count: long - :ivar applied_bytes: Applied bytes - :vartype applied_bytes: long - :ivar total_bytes: Total bytes (if available) - :vartype total_bytes: long - """ - - _validation = { - 'timestamp': {'readonly': True}, - 'per_item_error_count': {'readonly': True}, - 'applied_item_count': {'readonly': True}, - 'total_item_count': {'readonly': True}, - 'applied_bytes': {'readonly': True}, - 'total_bytes': {'readonly': True}, - } - - _attribute_map = { - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'per_item_error_count': {'key': 'perItemErrorCount', 'type': 'long'}, - 'applied_item_count': {'key': 'appliedItemCount', 'type': 'long'}, - 'total_item_count': {'key': 'totalItemCount', 'type': 'long'}, - 'applied_bytes': {'key': 'appliedBytes', 'type': 'long'}, - 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(SyncActivityStatus, self).__init__(**kwargs) - self.timestamp = None - self.per_item_error_count = None - self.applied_item_count = None - self.total_item_count = None - self.applied_bytes = None - self.total_bytes = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_activity_status_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_activity_status_py3.py deleted file mode 100644 index bf137c2f6a52..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_activity_status_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 SyncActivityStatus(Model): - """Sync Session status object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar timestamp: Timestamp when properties were updated - :vartype timestamp: datetime - :ivar per_item_error_count: Per item error count - :vartype per_item_error_count: long - :ivar applied_item_count: Applied item count. - :vartype applied_item_count: long - :ivar total_item_count: Total item count (if available) - :vartype total_item_count: long - :ivar applied_bytes: Applied bytes - :vartype applied_bytes: long - :ivar total_bytes: Total bytes (if available) - :vartype total_bytes: long - """ - - _validation = { - 'timestamp': {'readonly': True}, - 'per_item_error_count': {'readonly': True}, - 'applied_item_count': {'readonly': True}, - 'total_item_count': {'readonly': True}, - 'applied_bytes': {'readonly': True}, - 'total_bytes': {'readonly': True}, - } - - _attribute_map = { - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'per_item_error_count': {'key': 'perItemErrorCount', 'type': 'long'}, - 'applied_item_count': {'key': 'appliedItemCount', 'type': 'long'}, - 'total_item_count': {'key': 'totalItemCount', 'type': 'long'}, - 'applied_bytes': {'key': 'appliedBytes', 'type': 'long'}, - 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, - } - - def __init__(self, **kwargs) -> None: - super(SyncActivityStatus, self).__init__(**kwargs) - self.timestamp = None - self.per_item_error_count = None - self.applied_item_count = None - self.total_item_count = None - self.applied_bytes = None - self.total_bytes = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group.py deleted file mode 100644 index 8b483ca16437..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class SyncGroup(ProxyResource): - """Sync Group object. - - 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 unique_id: Unique Id - :type unique_id: str - :ivar sync_group_status: Sync group status - :vartype sync_group_status: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'sync_group_status': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'unique_id': {'key': 'properties.uniqueId', 'type': 'str'}, - 'sync_group_status': {'key': 'properties.syncGroupStatus', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SyncGroup, self).__init__(**kwargs) - self.unique_id = kwargs.get('unique_id', None) - self.sync_group_status = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_create_parameters.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_create_parameters.py deleted file mode 100644 index b849f3819c7e..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_create_parameters.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class SyncGroupCreateParameters(ProxyResource): - """The parameters used when creating a sync group. - - 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 properties: The parameters used to create the sync group - :type properties: object - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(SyncGroupCreateParameters, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_create_parameters_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_create_parameters_py3.py deleted file mode 100644 index 85d13ef96c34..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_create_parameters_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class SyncGroupCreateParameters(ProxyResource): - """The parameters used when creating a sync group. - - 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 properties: The parameters used to create the sync group - :type properties: object - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(SyncGroupCreateParameters, self).__init__(**kwargs) - self.properties = properties diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_paged.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_paged.py deleted file mode 100644 index cf4ed77592c2..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class SyncGroupPaged(Paged): - """ - A paging container for iterating over a list of :class:`SyncGroup ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SyncGroup]'} - } - - def __init__(self, *args, **kwargs): - - super(SyncGroupPaged, self).__init__(*args, **kwargs) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_py3.py deleted file mode 100644 index 0c3721525fc4..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_group_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class SyncGroup(ProxyResource): - """Sync Group object. - - 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 unique_id: Unique Id - :type unique_id: str - :ivar sync_group_status: Sync group status - :vartype sync_group_status: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'sync_group_status': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'unique_id': {'key': 'properties.uniqueId', 'type': 'str'}, - 'sync_group_status': {'key': 'properties.syncGroupStatus', 'type': 'str'}, - } - - def __init__(self, *, unique_id: str=None, **kwargs) -> None: - super(SyncGroup, self).__init__(**kwargs) - self.unique_id = unique_id - self.sync_group_status = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_session_status.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_session_status.py deleted file mode 100644 index 71ee1a7aec4b..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_session_status.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 SyncSessionStatus(Model): - """Sync Session status object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar last_sync_result: Last sync result (HResult) - :vartype last_sync_result: int - :ivar last_sync_timestamp: Last sync timestamp - :vartype last_sync_timestamp: datetime - :ivar last_sync_success_timestamp: Last sync success timestamp - :vartype last_sync_success_timestamp: datetime - :ivar last_sync_per_item_error_count: Last sync per item error count. - :vartype last_sync_per_item_error_count: long - :ivar persistent_files_not_syncing_count: Count of persistent files not - syncing. Reserved for future use. - :vartype persistent_files_not_syncing_count: long - :ivar transient_files_not_syncing_count: Count of transient files not - syncing. Reserved for future use. - :vartype transient_files_not_syncing_count: long - :ivar files_not_syncing_errors: Array of per-item errors coming from the - last sync session. Reserved for future use. - :vartype files_not_syncing_errors: - list[~azure.mgmt.storagesync.models.FilesNotSyncingError] - """ - - _validation = { - 'last_sync_result': {'readonly': True}, - 'last_sync_timestamp': {'readonly': True}, - 'last_sync_success_timestamp': {'readonly': True}, - 'last_sync_per_item_error_count': {'readonly': True}, - 'persistent_files_not_syncing_count': {'readonly': True}, - 'transient_files_not_syncing_count': {'readonly': True}, - 'files_not_syncing_errors': {'readonly': True}, - } - - _attribute_map = { - 'last_sync_result': {'key': 'lastSyncResult', 'type': 'int'}, - 'last_sync_timestamp': {'key': 'lastSyncTimestamp', 'type': 'iso-8601'}, - 'last_sync_success_timestamp': {'key': 'lastSyncSuccessTimestamp', 'type': 'iso-8601'}, - 'last_sync_per_item_error_count': {'key': 'lastSyncPerItemErrorCount', 'type': 'long'}, - 'persistent_files_not_syncing_count': {'key': 'persistentFilesNotSyncingCount', 'type': 'long'}, - 'transient_files_not_syncing_count': {'key': 'transientFilesNotSyncingCount', 'type': 'long'}, - 'files_not_syncing_errors': {'key': 'filesNotSyncingErrors', 'type': '[FilesNotSyncingError]'}, - } - - def __init__(self, **kwargs): - super(SyncSessionStatus, self).__init__(**kwargs) - self.last_sync_result = None - self.last_sync_timestamp = None - self.last_sync_success_timestamp = None - self.last_sync_per_item_error_count = None - self.persistent_files_not_syncing_count = None - self.transient_files_not_syncing_count = None - self.files_not_syncing_errors = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_session_status_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_session_status_py3.py deleted file mode 100644 index fafec1ea77c8..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/sync_session_status_py3.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 SyncSessionStatus(Model): - """Sync Session status object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar last_sync_result: Last sync result (HResult) - :vartype last_sync_result: int - :ivar last_sync_timestamp: Last sync timestamp - :vartype last_sync_timestamp: datetime - :ivar last_sync_success_timestamp: Last sync success timestamp - :vartype last_sync_success_timestamp: datetime - :ivar last_sync_per_item_error_count: Last sync per item error count. - :vartype last_sync_per_item_error_count: long - :ivar persistent_files_not_syncing_count: Count of persistent files not - syncing. Reserved for future use. - :vartype persistent_files_not_syncing_count: long - :ivar transient_files_not_syncing_count: Count of transient files not - syncing. Reserved for future use. - :vartype transient_files_not_syncing_count: long - :ivar files_not_syncing_errors: Array of per-item errors coming from the - last sync session. Reserved for future use. - :vartype files_not_syncing_errors: - list[~azure.mgmt.storagesync.models.FilesNotSyncingError] - """ - - _validation = { - 'last_sync_result': {'readonly': True}, - 'last_sync_timestamp': {'readonly': True}, - 'last_sync_success_timestamp': {'readonly': True}, - 'last_sync_per_item_error_count': {'readonly': True}, - 'persistent_files_not_syncing_count': {'readonly': True}, - 'transient_files_not_syncing_count': {'readonly': True}, - 'files_not_syncing_errors': {'readonly': True}, - } - - _attribute_map = { - 'last_sync_result': {'key': 'lastSyncResult', 'type': 'int'}, - 'last_sync_timestamp': {'key': 'lastSyncTimestamp', 'type': 'iso-8601'}, - 'last_sync_success_timestamp': {'key': 'lastSyncSuccessTimestamp', 'type': 'iso-8601'}, - 'last_sync_per_item_error_count': {'key': 'lastSyncPerItemErrorCount', 'type': 'long'}, - 'persistent_files_not_syncing_count': {'key': 'persistentFilesNotSyncingCount', 'type': 'long'}, - 'transient_files_not_syncing_count': {'key': 'transientFilesNotSyncingCount', 'type': 'long'}, - 'files_not_syncing_errors': {'key': 'filesNotSyncingErrors', 'type': '[FilesNotSyncingError]'}, - } - - def __init__(self, **kwargs) -> None: - super(SyncSessionStatus, self).__init__(**kwargs) - self.last_sync_result = None - self.last_sync_timestamp = None - self.last_sync_success_timestamp = None - self.last_sync_per_item_error_count = None - self.persistent_files_not_syncing_count = None - self.transient_files_not_syncing_count = None - self.files_not_syncing_errors = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/tracked_resource.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/tracked_resource.py deleted file mode 100644 index 27ab94c7a8dd..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/tracked_resource.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 .resource import Resource - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs.get('location', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/tracked_resource_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/tracked_resource_py3.py deleted file mode 100644 index b28cc1859448..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/tracked_resource_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 .resource_py3 import Resource - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, *, location: str, tags=None, **kwargs) -> None: - super(TrackedResource, self).__init__(**kwargs) - self.tags = tags - self.location = location diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/trigger_rollover_request.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/trigger_rollover_request.py deleted file mode 100644 index 3a691fbfb6a9..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/trigger_rollover_request.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 TriggerRolloverRequest(Model): - """Trigger Rollover Request. - - :param server_certificate: Certificate Data - :type server_certificate: str - """ - - _attribute_map = { - 'server_certificate': {'key': 'serverCertificate', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TriggerRolloverRequest, self).__init__(**kwargs) - self.server_certificate = kwargs.get('server_certificate', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/trigger_rollover_request_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/trigger_rollover_request_py3.py deleted file mode 100644 index b79783439066..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/trigger_rollover_request_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 TriggerRolloverRequest(Model): - """Trigger Rollover Request. - - :param server_certificate: Certificate Data - :type server_certificate: str - """ - - _attribute_map = { - 'server_certificate': {'key': 'serverCertificate', 'type': 'str'}, - } - - def __init__(self, *, server_certificate: str=None, **kwargs) -> None: - super(TriggerRolloverRequest, self).__init__(**kwargs) - self.server_certificate = server_certificate diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow.py deleted file mode 100644 index f77bbd7fc476..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class Workflow(ProxyResource): - """Workflow resource. - - 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 last_step_name: last step name - :type last_step_name: str - :param status: workflow status. Possible values include: 'active', - 'expired', 'succeeded', 'aborted', 'failed' - :type status: str or ~azure.mgmt.storagesync.models.enum - :param operation: operation direction. Possible values include: 'do', - 'undo', 'cancel' - :type operation: str or ~azure.mgmt.storagesync.models.enum - :param steps: workflow steps - :type steps: str - :param last_operation_id: workflow last operation identifier. - :type last_operation_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'last_step_name': {'key': 'properties.lastStepName', 'type': 'str'}, - 'status': {'key': 'properties.status', 'type': 'str'}, - 'operation': {'key': 'properties.operation', 'type': 'str'}, - 'steps': {'key': 'properties.steps', 'type': 'str'}, - 'last_operation_id': {'key': 'properties.lastOperationId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Workflow, self).__init__(**kwargs) - self.last_step_name = kwargs.get('last_step_name', None) - self.status = kwargs.get('status', None) - self.operation = kwargs.get('operation', None) - self.steps = kwargs.get('steps', None) - self.last_operation_id = kwargs.get('last_operation_id', None) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow_paged.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow_paged.py deleted file mode 100644 index 1eae6f26f1ba..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class WorkflowPaged(Paged): - """ - A paging container for iterating over a list of :class:`Workflow ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Workflow]'} - } - - def __init__(self, *args, **kwargs): - - super(WorkflowPaged, self).__init__(*args, **kwargs) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow_py3.py deleted file mode 100644 index 1b42835730ed..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/workflow_py3.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class Workflow(ProxyResource): - """Workflow resource. - - 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 last_step_name: last step name - :type last_step_name: str - :param status: workflow status. Possible values include: 'active', - 'expired', 'succeeded', 'aborted', 'failed' - :type status: str or ~azure.mgmt.storagesync.models.enum - :param operation: operation direction. Possible values include: 'do', - 'undo', 'cancel' - :type operation: str or ~azure.mgmt.storagesync.models.enum - :param steps: workflow steps - :type steps: str - :param last_operation_id: workflow last operation identifier. - :type last_operation_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'last_step_name': {'key': 'properties.lastStepName', 'type': 'str'}, - 'status': {'key': 'properties.status', 'type': 'str'}, - 'operation': {'key': 'properties.operation', 'type': 'str'}, - 'steps': {'key': 'properties.steps', 'type': 'str'}, - 'last_operation_id': {'key': 'properties.lastOperationId', 'type': 'str'}, - } - - def __init__(self, *, last_step_name: str=None, status=None, operation=None, steps: str=None, last_operation_id: str=None, **kwargs) -> None: - super(Workflow, self).__init__(**kwargs) - self.last_step_name = last_step_name - self.status = status - self.operation = operation - self.steps = steps - self.last_operation_id = last_operation_id diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/__init__.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/__init__.py index d4c402966ab6..8d799c110446 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/__init__.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/__init__.py @@ -9,13 +9,14 @@ # regenerated. # -------------------------------------------------------------------------- -from .operations import Operations -from .storage_sync_services_operations import StorageSyncServicesOperations -from .sync_groups_operations import SyncGroupsOperations -from .cloud_endpoints_operations import CloudEndpointsOperations -from .server_endpoints_operations import ServerEndpointsOperations -from .registered_servers_operations import RegisteredServersOperations -from .workflows_operations import WorkflowsOperations +from ._operations import Operations +from ._storage_sync_services_operations import StorageSyncServicesOperations +from ._sync_groups_operations import SyncGroupsOperations +from ._cloud_endpoints_operations import CloudEndpointsOperations +from ._server_endpoints_operations import ServerEndpointsOperations +from ._registered_servers_operations import RegisteredServersOperations +from ._workflows_operations import WorkflowsOperations +from ._operation_status_operations import OperationStatusOperations __all__ = [ 'Operations', @@ -25,4 +26,5 @@ 'ServerEndpointsOperations', 'RegisteredServersOperations', 'WorkflowsOperations', + 'OperationStatusOperations', ] diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/cloud_endpoints_operations.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_cloud_endpoints_operations.py similarity index 88% rename from sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/cloud_endpoints_operations.py rename to sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_cloud_endpoints_operations.py index 3e257e576ed3..36cb6869a698 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/cloud_endpoints_operations.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_cloud_endpoints_operations.py @@ -20,11 +20,13 @@ class CloudEndpointsOperations(object): """CloudEndpointsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2019-02-01". + :ivar api_version: The API version to use for this operation. Constant value: "2019-06-01". """ models = models @@ -34,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-02-01" + self.api_version = "2019-06-01" self.config = config @@ -222,9 +224,8 @@ def get( if response.status_code not in [200]: raise models.StorageSyncErrorException(self._deserialize, response) - deserialized = None header_dict = {} - + deserialized = None if response.status_code == 200: deserialized = self._deserialize('CloudEndpoint', response) header_dict = { @@ -366,8 +367,7 @@ def list_by_sync_group( :raises: :class:`StorageSyncErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_sync_group.metadata['url'] @@ -399,6 +399,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -407,12 +412,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.CloudEndpointPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.CloudEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.CloudEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_sync_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints'} @@ -924,3 +927,111 @@ def get_long_running_output(response): else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) post_restore.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postrestore'} + + + def _trigger_change_detection_initial( + self, resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.trigger_change_detection.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'storageSyncServiceName': self._serialize.url("storage_sync_service_name", storage_sync_service_name, 'str'), + 'syncGroupName': self._serialize.url("sync_group_name", sync_group_name, 'str'), + 'cloudEndpointName': self._serialize.url("cloud_endpoint_name", cloud_endpoint_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TriggerChangeDetectionParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.StorageSyncErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + header_dict = { + 'Location': 'str', + 'x-ms-request-id': 'str', + 'x-ms-correlation-request-id': 'str', + } + client_raw_response.add_headers(header_dict) + return client_raw_response + + def trigger_change_detection( + self, resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Triggers detection of changes performed on Azure File share connected + to the specified Azure File Sync Cloud Endpoint. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param storage_sync_service_name: Name of Storage Sync Service + resource. + :type storage_sync_service_name: str + :param sync_group_name: Name of Sync Group resource. + :type sync_group_name: str + :param cloud_endpoint_name: Name of Cloud Endpoint object. + :type cloud_endpoint_name: str + :param parameters: Trigger Change Detection Action parameters. + :type parameters: + ~azure.mgmt.storagesync.models.TriggerChangeDetectionParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`StorageSyncErrorException` + """ + raw_result = self._trigger_change_detection_initial( + resource_group_name=resource_group_name, + storage_sync_service_name=storage_sync_service_name, + sync_group_name=sync_group_name, + cloud_endpoint_name=cloud_endpoint_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + client_raw_response.add_headers({ + 'Location': 'str', + 'x-ms-request-id': 'str', + 'x-ms-correlation-request-id': 'str', + }) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + trigger_change_detection.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/triggerChangeDetection'} diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operation_status_operations.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operation_status_operations.py new file mode 100644 index 000000000000..2e16f651314c --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operation_status_operations.py @@ -0,0 +1,112 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class OperationStatusOperations(object): + """OperationStatusOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version to use for this operation. Constant value: "2019-06-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-06-01" + + self.config = config + + def get( + self, resource_group_name, location_name, workflow_id, operation_id, custom_headers=None, raw=False, **operation_config): + """Get Operation status. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param location_name: The desired region to obtain information from. + :type location_name: str + :param workflow_id: workflow Id + :type workflow_id: str + :param operation_id: operation Id + :type operation_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: OperationStatus or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.storagesync.models.OperationStatus or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`StorageSyncErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'locationName': self._serialize.url("location_name", location_name, 'str'), + 'workflowId': self._serialize.url("workflow_id", workflow_id, 'str'), + 'operationId': self._serialize.url("operation_id", operation_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.StorageSyncErrorException(self._deserialize, response) + + header_dict = {} + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationStatus', response) + header_dict = { + 'x-ms-request-id': 'str', + 'x-ms-correlation-request-id': 'str', + } + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + client_raw_response.add_headers(header_dict) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/locations/{locationName}/workflows/{workflowId}/operations/{operationId}'} diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/operations.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operations.py similarity index 88% rename from sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/operations.py rename to sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operations.py index 6ec9ce2deeed..5c5e1cda7788 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/operations.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operations.py @@ -18,11 +18,13 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2019-02-01". + :ivar api_version: The API version to use for this operation. Constant value: "2019-06-01". """ models = models @@ -32,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-02-01" + self.api_version = "2019-06-01" self.config = config @@ -51,8 +53,7 @@ def list( :raises: :class:`StorageSyncErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -85,12 +91,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationEntityPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationEntityPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationEntityPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.StorageSync/operations'} diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/registered_servers_operations.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_registered_servers_operations.py similarity index 98% rename from sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/registered_servers_operations.py rename to sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_registered_servers_operations.py index d372109c708a..ded9d05e5e1f 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/registered_servers_operations.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_registered_servers_operations.py @@ -20,11 +20,13 @@ class RegisteredServersOperations(object): """RegisteredServersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2019-02-01". + :ivar api_version: The API version to use for this operation. Constant value: "2019-06-01". """ models = models @@ -34,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-02-01" + self.api_version = "2019-06-01" self.config = config @@ -59,8 +61,7 @@ def list_by_storage_sync_service( :raises: :class:`StorageSyncErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_storage_sync_service.metadata['url'] @@ -91,6 +92,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -99,12 +105,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.RegisteredServerPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.RegisteredServerPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.RegisteredServerPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_storage_sync_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers'} @@ -163,9 +167,8 @@ def get( if response.status_code not in [200]: raise models.StorageSyncErrorException(self._deserialize, response) - deserialized = None header_dict = {} - + deserialized = None if response.status_code == 200: deserialized = self._deserialize('RegisteredServer', response) header_dict = { diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/server_endpoints_operations.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_server_endpoints_operations.py similarity index 98% rename from sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/server_endpoints_operations.py rename to sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_server_endpoints_operations.py index ca95bbedf58a..37c6a91f22e6 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/server_endpoints_operations.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_server_endpoints_operations.py @@ -20,11 +20,13 @@ class ServerEndpointsOperations(object): """ServerEndpointsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2019-02-01". + :ivar api_version: The API version to use for this operation. Constant value: "2019-06-01". """ models = models @@ -34,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-02-01" + self.api_version = "2019-06-01" self.config = config @@ -348,9 +350,8 @@ def get( if response.status_code not in [200]: raise models.StorageSyncErrorException(self._deserialize, response) - deserialized = None header_dict = {} - + deserialized = None if response.status_code == 200: deserialized = self._deserialize('ServerEndpoint', response) header_dict = { @@ -488,8 +489,7 @@ def list_by_sync_group( :raises: :class:`StorageSyncErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_sync_group.metadata['url'] @@ -521,6 +521,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -529,12 +534,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ServerEndpointPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ServerEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ServerEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_sync_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints'} diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/storage_sync_services_operations.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_storage_sync_services_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/storage_sync_services_operations.py rename to sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_storage_sync_services_operations.py index a113bd836e17..ad424d78f42d 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/storage_sync_services_operations.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_storage_sync_services_operations.py @@ -19,11 +19,13 @@ class StorageSyncServicesOperations(object): """StorageSyncServicesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2019-02-01". + :ivar api_version: The API version to use for this operation. Constant value: "2019-06-01". """ models = models @@ -33,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-02-01" + self.api_version = "2019-06-01" self.config = config @@ -93,7 +95,6 @@ def check_name_availability( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('CheckNameAvailabilityResult', response) @@ -163,7 +164,6 @@ def create( raise models.StorageSyncErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('StorageSyncService', response) @@ -225,9 +225,8 @@ def get( if response.status_code not in [200]: raise models.StorageSyncErrorException(self._deserialize, response) - deserialized = None header_dict = {} - + deserialized = None if response.status_code == 200: deserialized = self._deserialize('StorageSyncService', response) header_dict = { @@ -310,9 +309,8 @@ def update( if response.status_code not in [200]: raise models.StorageSyncErrorException(self._deserialize, response) - deserialized = None header_dict = {} - + deserialized = None if response.status_code == 200: deserialized = self._deserialize('StorageSyncService', response) header_dict = { @@ -404,8 +402,7 @@ def list_by_resource_group( :raises: :class:`StorageSyncErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -435,6 +432,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -443,12 +445,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.StorageSyncServicePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.StorageSyncServicePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.StorageSyncServicePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices'} @@ -468,8 +468,7 @@ def list_by_subscription( :raises: :class:`StorageSyncErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_subscription.metadata['url'] @@ -498,6 +497,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -506,12 +510,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.StorageSyncServicePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.StorageSyncServicePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.StorageSyncServicePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices'} diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/sync_groups_operations.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_sync_groups_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/sync_groups_operations.py rename to sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_sync_groups_operations.py index 707da9413192..124202bd880c 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/sync_groups_operations.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_sync_groups_operations.py @@ -18,11 +18,13 @@ class SyncGroupsOperations(object): """SyncGroupsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2019-02-01". + :ivar api_version: The API version to use for this operation. Constant value: "2019-06-01". """ models = models @@ -32,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-02-01" + self.api_version = "2019-06-01" self.config = config @@ -57,8 +59,7 @@ def list_by_storage_sync_service( :raises: :class:`StorageSyncErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_storage_sync_service.metadata['url'] @@ -89,6 +90,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -97,12 +103,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SyncGroupPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SyncGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SyncGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_storage_sync_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups'} @@ -169,9 +173,8 @@ def create( if response.status_code not in [200]: raise models.StorageSyncErrorException(self._deserialize, response) - deserialized = None header_dict = {} - + deserialized = None if response.status_code == 200: deserialized = self._deserialize('SyncGroup', response) header_dict = { @@ -241,9 +244,8 @@ def get( if response.status_code not in [200]: raise models.StorageSyncErrorException(self._deserialize, response) - deserialized = None header_dict = {} - + deserialized = None if response.status_code == 200: deserialized = self._deserialize('SyncGroup', response) header_dict = { diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/workflows_operations.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_workflows_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/workflows_operations.py rename to sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_workflows_operations.py index dec1e43b855e..990cc989b8b1 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/workflows_operations.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_workflows_operations.py @@ -18,11 +18,13 @@ class WorkflowsOperations(object): """WorkflowsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2019-02-01". + :ivar api_version: The API version to use for this operation. Constant value: "2019-06-01". """ models = models @@ -32,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-02-01" + self.api_version = "2019-06-01" self.config = config @@ -57,8 +59,7 @@ def list_by_storage_sync_service( :raises: :class:`StorageSyncErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_storage_sync_service.metadata['url'] @@ -89,6 +90,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -97,12 +103,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.WorkflowPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.WorkflowPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.WorkflowPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_storage_sync_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows'} @@ -161,9 +165,8 @@ def get( if response.status_code not in [200]: raise models.StorageSyncErrorException(self._deserialize, response) - deserialized = None header_dict = {} - + deserialized = None if response.status_code == 200: deserialized = self._deserialize('Workflow', response) header_dict = { From 7c8692fc66ef349e905810c6e7f7761c1b40f53b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 11 Sep 2019 22:59:22 +0000 Subject: [PATCH 2/2] Generated from 36f4824b81b9705cb214163c7cf050ea471fc6a3 fix validation errors --- .../azure/mgmt/storagesync/models/_models.py | 23 ++++++---------- .../mgmt/storagesync/models/_models_py3.py | 27 +++++++------------ 2 files changed, 18 insertions(+), 32 deletions(-) diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py index 320eae0d6f1a..0f10576b514f 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py @@ -797,19 +797,12 @@ def __init__(self, **kwargs): class RestoreFileSpec(Model): """Restore file spec. - Variables are only populated by the server, and will be ignored when - sending a request. - :param path: Restore file spec path :type path: str - :ivar isdir: Restore file spec isdir - :vartype isdir: bool + :param isdir: Restore file spec isdir + :type isdir: bool """ - _validation = { - 'isdir': {'readonly': True}, - } - _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'isdir': {'key': 'isdir', 'type': 'bool'}, @@ -818,7 +811,7 @@ class RestoreFileSpec(Model): def __init__(self, **kwargs): super(RestoreFileSpec, self).__init__(**kwargs) self.path = kwargs.get('path', None) - self.isdir = None + self.isdir = kwargs.get('isdir', None) class ServerEndpoint(ProxyResource): @@ -1114,8 +1107,7 @@ class ServerEndpointRecallStatus(Model): :ivar last_updated_timestamp: Last updated timestamp :vartype last_updated_timestamp: datetime - :ivar total_recall_errors_count: Total count of recall errors over 24 - hours + :ivar total_recall_errors_count: Total count of recall errors. :vartype total_recall_errors_count: long :ivar recall_errors: Array of recall errors :vartype recall_errors: @@ -1655,8 +1647,8 @@ class SyncGroup(ProxyResource): :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str - :param unique_id: Unique Id - :type unique_id: str + :ivar unique_id: Unique Id + :vartype unique_id: str :ivar sync_group_status: Sync group status :vartype sync_group_status: str """ @@ -1665,6 +1657,7 @@ class SyncGroup(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'unique_id': {'readonly': True}, 'sync_group_status': {'readonly': True}, } @@ -1678,7 +1671,7 @@ class SyncGroup(ProxyResource): def __init__(self, **kwargs): super(SyncGroup, self).__init__(**kwargs) - self.unique_id = kwargs.get('unique_id', None) + self.unique_id = None self.sync_group_status = None diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models_py3.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models_py3.py index 06765491b4ab..46c1bca387b7 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models_py3.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models_py3.py @@ -797,28 +797,21 @@ def __init__(self, *, target_resource_group: str=None, resources=None, **kwargs) class RestoreFileSpec(Model): """Restore file spec. - Variables are only populated by the server, and will be ignored when - sending a request. - :param path: Restore file spec path :type path: str - :ivar isdir: Restore file spec isdir - :vartype isdir: bool + :param isdir: Restore file spec isdir + :type isdir: bool """ - _validation = { - 'isdir': {'readonly': True}, - } - _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'isdir': {'key': 'isdir', 'type': 'bool'}, } - def __init__(self, *, path: str=None, **kwargs) -> None: + def __init__(self, *, path: str=None, isdir: bool=None, **kwargs) -> None: super(RestoreFileSpec, self).__init__(**kwargs) self.path = path - self.isdir = None + self.isdir = isdir class ServerEndpoint(ProxyResource): @@ -1114,8 +1107,7 @@ class ServerEndpointRecallStatus(Model): :ivar last_updated_timestamp: Last updated timestamp :vartype last_updated_timestamp: datetime - :ivar total_recall_errors_count: Total count of recall errors over 24 - hours + :ivar total_recall_errors_count: Total count of recall errors. :vartype total_recall_errors_count: long :ivar recall_errors: Array of recall errors :vartype recall_errors: @@ -1655,8 +1647,8 @@ class SyncGroup(ProxyResource): :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str - :param unique_id: Unique Id - :type unique_id: str + :ivar unique_id: Unique Id + :vartype unique_id: str :ivar sync_group_status: Sync group status :vartype sync_group_status: str """ @@ -1665,6 +1657,7 @@ class SyncGroup(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'unique_id': {'readonly': True}, 'sync_group_status': {'readonly': True}, } @@ -1676,9 +1669,9 @@ class SyncGroup(ProxyResource): 'sync_group_status': {'key': 'properties.syncGroupStatus', 'type': 'str'}, } - def __init__(self, *, unique_id: str=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(SyncGroup, self).__init__(**kwargs) - self.unique_id = unique_id + self.unique_id = None self.sync_group_status = None