# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::RecoveryServicesBackup::Mgmt::V2019_06_15
  module Models
    #
    # IaaS VM workload specific backup copy.
    #
    class IaasVMRecoveryPoint < RecoveryPoint

      include MsRestAzure


      def initialize
        @objectType = "IaasVMRecoveryPoint"
      end

      attr_accessor :objectType

      # @return [String] Type of the backup copy.
      attr_accessor :recovery_point_type

      # @return [DateTime] Time at which this backup copy was created.
      attr_accessor :recovery_point_time

      # @return [String] Additional information associated with this backup
      # copy.
      attr_accessor :recovery_point_additional_info

      # @return [String] Storage type of the VM whose backup copy is created.
      attr_accessor :source_vmstorage_type

      # @return [Boolean] Identifies whether the VM was encrypted when the
      # backup copy is created.
      attr_accessor :is_source_vmencrypted

      # @return [KeyAndSecretDetails] Required details for recovering an
      # encrypted VM. Applicable only when IsSourceVMEncrypted is true.
      attr_accessor :key_and_secret

      # @return [Boolean] Is the session to recover items from this backup copy
      # still active.
      attr_accessor :is_instant_ilr_session_active

      # @return [Array<RecoveryPointTierInformation>] Recovery point tier
      # information.
      attr_accessor :recovery_point_tier_details

      # @return [Boolean] Whether VM is with Managed Disks
      attr_accessor :is_managed_virtual_machine

      # @return [String] Virtual Machine Size
      attr_accessor :virtual_machine_size

      # @return [Boolean] Original Storage Account Option
      attr_accessor :original_storage_account_option

      # @return [String] OS type
      attr_accessor :os_type

      # @return [RecoveryPointDiskConfiguration] Disk configuration
      attr_accessor :recovery_point_disk_configuration


      #
      # Mapper for IaasVMRecoveryPoint class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'IaasVMRecoveryPoint',
          type: {
            name: 'Composite',
            class_name: 'IaasVMRecoveryPoint',
            model_properties: {
              objectType: {
                client_side_validation: true,
                required: true,
                serialized_name: 'objectType',
                type: {
                  name: 'String'
                }
              },
              recovery_point_type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'recoveryPointType',
                type: {
                  name: 'String'
                }
              },
              recovery_point_time: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'recoveryPointTime',
                type: {
                  name: 'DateTime'
                }
              },
              recovery_point_additional_info: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'recoveryPointAdditionalInfo',
                type: {
                  name: 'String'
                }
              },
              source_vmstorage_type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'sourceVMStorageType',
                type: {
                  name: 'String'
                }
              },
              is_source_vmencrypted: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'isSourceVMEncrypted',
                type: {
                  name: 'Boolean'
                }
              },
              key_and_secret: {
                client_side_validation: true,
                required: false,
                serialized_name: 'keyAndSecret',
                type: {
                  name: 'Composite',
                  class_name: 'KeyAndSecretDetails'
                }
              },
              is_instant_ilr_session_active: {
                client_side_validation: true,
                required: false,
                serialized_name: 'isInstantIlrSessionActive',
                type: {
                  name: 'Boolean'
                }
              },
              recovery_point_tier_details: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recoveryPointTierDetails',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'RecoveryPointTierInformationElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'RecoveryPointTierInformation'
                      }
                  }
                }
              },
              is_managed_virtual_machine: {
                client_side_validation: true,
                required: false,
                serialized_name: 'isManagedVirtualMachine',
                type: {
                  name: 'Boolean'
                }
              },
              virtual_machine_size: {
                client_side_validation: true,
                required: false,
                serialized_name: 'virtualMachineSize',
                type: {
                  name: 'String'
                }
              },
              original_storage_account_option: {
                client_side_validation: true,
                required: false,
                serialized_name: 'originalStorageAccountOption',
                type: {
                  name: 'Boolean'
                }
              },
              os_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'osType',
                type: {
                  name: 'String'
                }
              },
              recovery_point_disk_configuration: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recoveryPointDiskConfiguration',
                type: {
                  name: 'Composite',
                  class_name: 'RecoveryPointDiskConfiguration'
                }
              }
            }
          }
        }
      end
    end
  end
end
