Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::AzureIaaSVMProtectedItem

Inherits:
ProtectedItem
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb

Overview

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

Instance Attribute Summary collapse

Attributes inherited from ProtectedItem

#backup_management_type, #last_recovery_point, #policy_id, #source_resource_id, #workload_type

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAzureIaaSVMProtectedItem

Returns a new instance of AzureIaaSVMProtectedItem.



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

def initialize
  @protectedItemType = "AzureIaaSVMProtectedItem"
end

Instance Attribute Details

#extended_infoAzureIaaSVMProtectedItemExtendedInfo

for this backup item.

Returns:



53
54
55
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 53

def extended_info
  @extended_info
end

#friendly_nameString

item.

Returns:

  • (String)

    The friendly name of the VM represented by this backup



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

def friendly_name
  @friendly_name
end

#last_backup_statusString

are: Healthy or Unhealthy.

Returns:

  • (String)

    The last backup operation status. The possible values



45
46
47
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 45

def last_backup_status
  @last_backup_status
end

#last_backup_timeDateTime

backup item.

Returns:

  • (DateTime)

    The timestamp of the last backup operation for this



49
50
51
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 49

def last_backup_time
  @last_backup_time
end

#protectedItemTypeObject

Returns the value of attribute protectedItemType.



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

def protectedItemType
  @protectedItemType
end

#protection_stateProtectionState

Possible values include: ‘Invalid’, ‘IRPending’, ‘Protected’, ‘ProtectionError’, ‘ProtectionStopped’, ‘ProtectionPaused’

Returns:



41
42
43
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 41

def protection_state
  @protection_state
end

#protection_statusString

Returns The backup status of this backup item.

Returns:

  • (String)

    The backup status of this backup item.



36
37
38
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 36

def protection_status
  @protection_status
end

#virtual_machine_idString

machine represented by this item.

Returns:

  • (String)

    The fully qualified Resource Manager ID of the virtual



33
34
35
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 33

def virtual_machine_id
  @virtual_machine_id
end

Class Method Details

.mapperObject

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



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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 60

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureIaaSVMProtectedItem',
    type: {
      name: 'Composite',
      class_name: 'AzureIaaSVMProtectedItem',
      model_properties: {
        backup_management_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupManagementType',
          type: {
            name: 'Enum',
            module: 'BackupManagementType'
          }
        },
        workload_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'workloadType',
          type: {
            name: 'Enum',
            module: 'DataSourceType'
          }
        },
        source_resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceResourceId',
          type: {
            name: 'String'
          }
        },
        policy_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'policyId',
          type: {
            name: 'String'
          }
        },
        last_recovery_point: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastRecoveryPoint',
          type: {
            name: 'DateTime'
          }
        },
        protectedItemType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'protectedItemType',
          type: {
            name: 'String'
          }
        },
        friendly_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'friendlyName',
          type: {
            name: 'String'
          }
        },
        virtual_machine_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'virtualMachineId',
          type: {
            name: 'String'
          }
        },
        protection_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectionStatus',
          type: {
            name: 'String'
          }
        },
        protection_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectionState',
          type: {
            name: 'Enum',
            module: 'ProtectionState'
          }
        },
        last_backup_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastBackupStatus',
          type: {
            name: 'String'
          }
        },
        last_backup_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastBackupTime',
          type: {
            name: 'DateTime'
          }
        },
        extended_info: {
          client_side_validation: true,
          required: false,
          serialized_name: 'extendedInfo',
          type: {
            name: 'Composite',
            class_name: 'AzureIaaSVMProtectedItemExtendedInfo'
          }
        }
      }
    }
  }
end