Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectedItem

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

Overview

The base class for backup items.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProtectedItem

Returns a new instance of ProtectedItem.



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

def initialize
  @protectedItemType = "ProtectedItem"
end

Instance Attribute Details

#backup_management_typeBackupManagementType

with the backup item. Possible values include: ‘Invalid’, ‘AzureIaasVM’, ‘MAB’, ‘DPM’, ‘AzureBackupServer’, ‘AzureSql’

Returns:



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

def backup_management_type
  @backup_management_type
end

#last_recovery_pointDateTime

created for this backup item.

Returns:

  • (DateTime)

    The timestamp when the most recent backup copy was



51
52
53
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 51

def last_recovery_point
  @last_recovery_point
end

#policy_idString

backup item.

Returns:

  • (String)

    The ID of the backup policy associated with this



47
48
49
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 47

def policy_id
  @policy_id
end

#protectedItemTypeObject

Returns the value of attribute protectedItemType.



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

def protectedItemType
  @protectedItemType
end

#source_resource_idString

Returns The ID of the resource to be backed up.

Returns:

  • (String)

    The ID of the resource to be backed up.



43
44
45
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 43

def source_resource_id
  @source_resource_id
end

#workload_typeDataSourceType

values include: ‘Invalid’, ‘VM’, ‘FileFolder’, ‘AzureSqlDb’, ‘SQLDB’, ‘Exchange’, ‘Sharepoint’, ‘DPMUnknown’

Returns:



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

def workload_type
  @workload_type
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ProtectedItem',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'protectedItemType',
      uber_parent: 'ProtectedItem',
      class_name: 'ProtectedItem',
      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'
          }
        }
      }
    }
  }
end