Class: Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItem

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

Overview

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.



32
33
34
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 32

def initialize
  @protectedItemType = "ProtectedItem"
end

Instance Attribute Details

#backup_management_typeBackupManagementType

backed up item. Possible values include: ‘Invalid’, ‘AzureIaasVM’, ‘MAB’, ‘DPM’, ‘AzureBackupServer’, ‘AzureSql’, ‘AzureStorage’, ‘AzureWorkload’, ‘DefaultBackup’

Returns:



42
43
44
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 42

def backup_management_type
  @backup_management_type
end

#backup_set_nameString

Returns Name of the backup set the backup item belongs to.

Returns:

  • (String)

    Name of the backup set the backup item belongs to



65
66
67
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 65

def backup_set_name
  @backup_set_name
end

#container_nameString

Returns Unique name of container.

Returns:

  • (String)

    Unique name of container



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

def container_name
  @container_name
end

#create_modeCreateMode

deleted data source or creation of new data source. Possible values include: ‘Invalid’, ‘Default’, ‘Recover’

Returns:

  • (CreateMode)

    Create mode to indicate recovery of existing soft



70
71
72
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 70

def create_mode
  @create_mode
end

#last_recovery_pointDateTime

created for this backup item.

Returns:

  • (DateTime)

    Timestamp when the last (latest) backup copy was



62
63
64
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 62

def last_recovery_point
  @last_recovery_point
end

#policy_idString

up.

Returns:

  • (String)

    ID of the backup policy with which this item is backed



58
59
60
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 58

def policy_id
  @policy_id
end

#protectedItemTypeObject

Returns the value of attribute protectedItemType.



36
37
38
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 36

def protectedItemType
  @protectedItemType
end

#source_resource_idString

Returns ARM ID of the resource to be backed up.

Returns:

  • (String)

    ARM ID of the resource to be backed up.



54
55
56
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 54

def source_resource_id
  @source_resource_id
end

#workload_typeDataSourceType

Possible values include: ‘Invalid’, ‘VM’, ‘FileFolder’, ‘AzureSqlDb’, ‘SQLDB’, ‘Exchange’, ‘Sharepoint’, ‘VMwareVM’, ‘SystemState’, ‘Client’, ‘GenericDataSource’, ‘SQLDataBase’, ‘AzureFileShare’, ‘SAPHanaDatabase’

Returns:



48
49
50
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 48

def workload_type
  @workload_type
end

Class Method Details

.mapperObject

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



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
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 77

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: 'String'
          }
        },
        workload_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'workloadType',
          type: {
            name: 'String'
          }
        },
        container_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'containerName',
          type: {
            name: 'String'
          }
        },
        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'
          }
        },
        backup_set_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupSetName',
          type: {
            name: 'String'
          }
        },
        create_mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'createMode',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end