1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
# 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 .restore_request import RestoreRequest
class AzureFileShareRestoreRequest(RestoreRequest):
"""AzureFileShare Restore Request.
All required parameters must be populated in order to send to Azure.
:param object_type: Required. Constant filled by server.
:type object_type: str
:param recovery_type: Type of this recovery. Possible values include:
'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks'
:type recovery_type: str or
~azure.mgmt.recoveryservicesbackup.models.RecoveryType
:param source_resource_id: Source storage account ARM Id
:type source_resource_id: str
:param copy_options: Options to resolve copy conflicts. Possible values
include: 'Invalid', 'CreateCopy', 'Skip', 'Overwrite', 'FailOnConflict'
:type copy_options: str or
~azure.mgmt.recoveryservicesbackup.models.CopyOptions
:param restore_request_type: Restore Type (FullShareRestore or
ItemLevelRestore). Possible values include: 'Invalid', 'FullShareRestore',
'ItemLevelRestore'
:type restore_request_type: str or
~azure.mgmt.recoveryservicesbackup.models.RestoreRequestType
:param restore_file_specs: List of Source Files/Folders(which need to
recover) and TargetFolderPath details
:type restore_file_specs:
list[~azure.mgmt.recoveryservicesbackup.models.RestoreFileSpecs]
:param target_details: Target File Share Details
:type target_details:
~azure.mgmt.recoveryservicesbackup.models.TargetAFSRestoreInfo
"""
_validation = {
'object_type': {'required': True},
}
_attribute_map = {
'object_type': {'key': 'objectType', 'type': 'str'},
'recovery_type': {'key': 'recoveryType', 'type': 'str'},
'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'},
'copy_options': {'key': 'copyOptions', 'type': 'str'},
'restore_request_type': {'key': 'restoreRequestType', 'type': 'str'},
'restore_file_specs': {'key': 'restoreFileSpecs', 'type': '[RestoreFileSpecs]'},
'target_details': {'key': 'targetDetails', 'type': 'TargetAFSRestoreInfo'},
}
def __init__(self, **kwargs):
super(AzureFileShareRestoreRequest, self).__init__(**kwargs)
self.recovery_type = kwargs.get('recovery_type', None)
self.source_resource_id = kwargs.get('source_resource_id', None)
self.copy_options = kwargs.get('copy_options', None)
self.restore_request_type = kwargs.get('restore_request_type', None)
self.restore_file_specs = kwargs.get('restore_file_specs', None)
self.target_details = kwargs.get('target_details', None)
self.object_type = 'AzureFileShareRestoreRequest'
|