Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::IaaSVMProtectableItem

Inherits:
WorkloadProtectableItem show all
Includes:
MsRestAzure
Defined in:
lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb

Overview

This Azure VM workload-specific (also known as IaaS VM workload-specific) backup item can be backed up.

Instance Attribute Summary collapse

Attributes inherited from WorkloadProtectableItem

#backup_management_type, #friendly_name, #protection_state

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIaaSVMProtectableItem

Returns a new instance of IaaSVMProtectableItem.



21
22
23
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb', line 21

def initialize
  @protectableItemType = "IaaSVMProtectableItem"
end

Instance Attribute Details

#protectableItemTypeObject

Returns the value of attribute protectableItemType.



25
26
27
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb', line 25

def protectableItemType
  @protectableItemType
end

#virtual_machine_idString

machine.

Returns:

  • (String)

    The fully qualified Resource Manager ID of the virtual



29
30
31
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb', line 29

def virtual_machine_id
  @virtual_machine_id
end

Class Method Details

.mapperObject

Mapper for IaaSVMProtectableItem class as Ruby Hash. This will be used for serialization/deserialization.



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
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IaaSVMProtectableItem',
    type: {
      name: 'Composite',
      class_name: 'IaaSVMProtectableItem',
      model_properties: {
        backup_management_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupManagementType',
          type: {
            name: 'String'
          }
        },
        friendly_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'friendlyName',
          type: {
            name: 'String'
          }
        },
        protection_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectionState',
          type: {
            name: 'Enum',
            module: 'ProtectionStatus'
          }
        },
        protectableItemType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'protectableItemType',
          type: {
            name: 'String'
          }
        },
        virtual_machine_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'virtualMachineId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end