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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
# 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 .recovery_point import RecoveryPoint
class IaasVMRecoveryPoint(RecoveryPoint):
"""IaaS VM workload specific backup copy.
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_point_type: Type of the backup copy.
:type recovery_point_type: str
:param recovery_point_time: Time at which this backup copy was created.
:type recovery_point_time: datetime
:param recovery_point_additional_info: Additional information associated
with this backup copy.
:type recovery_point_additional_info: str
:param source_vm_storage_type: Storage type of the VM whose backup copy is
created.
:type source_vm_storage_type: str
:param is_source_vm_encrypted: Identifies whether the VM was encrypted
when the backup copy is created.
:type is_source_vm_encrypted: bool
:param key_and_secret: Required details for recovering an encrypted VM.
Applicable only when IsSourceVMEncrypted is true.
:type key_and_secret:
~azure.mgmt.recoveryservicesbackup.models.KeyAndSecretDetails
:param is_instant_ilr_session_active: Is the session to recover items from
this backup copy still active.
:type is_instant_ilr_session_active: bool
:param recovery_point_tier_details: Recovery point tier information.
:type recovery_point_tier_details:
list[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierInformation]
:param is_managed_virtual_machine: Whether VM is with Managed Disks
:type is_managed_virtual_machine: bool
:param virtual_machine_size: Virtual Machine Size
:type virtual_machine_size: str
:param original_storage_account_option: Original Storage Account Option
:type original_storage_account_option: bool
:param os_type: OS type
:type os_type: str
"""
_validation = {
'object_type': {'required': True},
}
_attribute_map = {
'object_type': {'key': 'objectType', 'type': 'str'},
'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'},
'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'},
'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'},
'source_vm_storage_type': {'key': 'sourceVMStorageType', 'type': 'str'},
'is_source_vm_encrypted': {'key': 'isSourceVMEncrypted', 'type': 'bool'},
'key_and_secret': {'key': 'keyAndSecret', 'type': 'KeyAndSecretDetails'},
'is_instant_ilr_session_active': {'key': 'isInstantIlrSessionActive', 'type': 'bool'},
'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'},
'is_managed_virtual_machine': {'key': 'isManagedVirtualMachine', 'type': 'bool'},
'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'},
'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'},
'os_type': {'key': 'osType', 'type': 'str'},
}
def __init__(self, **kwargs):
super(IaasVMRecoveryPoint, self).__init__(**kwargs)
self.recovery_point_type = kwargs.get('recovery_point_type', None)
self.recovery_point_time = kwargs.get('recovery_point_time', None)
self.recovery_point_additional_info = kwargs.get('recovery_point_additional_info', None)
self.source_vm_storage_type = kwargs.get('source_vm_storage_type', None)
self.is_source_vm_encrypted = kwargs.get('is_source_vm_encrypted', None)
self.key_and_secret = kwargs.get('key_and_secret', None)
self.is_instant_ilr_session_active = kwargs.get('is_instant_ilr_session_active', None)
self.recovery_point_tier_details = kwargs.get('recovery_point_tier_details', None)
self.is_managed_virtual_machine = kwargs.get('is_managed_virtual_machine', None)
self.virtual_machine_size = kwargs.get('virtual_machine_size', None)
self.original_storage_account_option = kwargs.get('original_storage_account_option', None)
self.os_type = kwargs.get('os_type', None)
self.object_type = 'IaasVMRecoveryPoint'
|