Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectionContainer

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

Overview

The base class for a container with backup items. Containers with specific workloads are derived from this class.

Direct Known Subclasses

AzureSqlContainer, IaaSVMContainer, MabContainer

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProtectionContainer

Returns a new instance of ProtectionContainer.



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

def initialize
  @protectableObjectType = "ProtectionContainer"
end

Instance Attribute Details

#backup_management_typeBackupManagementType

container. Possible values include: ‘Invalid’, ‘AzureIaasVM’, ‘MAB’, ‘DPM’, ‘AzureBackupServer’, ‘AzureSql’

Returns:



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

def backup_management_type
  @backup_management_type
end

#container_typeString

for each of these propertes are:<br/> 1. Compute Azure VM is Microsoft.Compute/virtualMachines<br/> 2. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines<br/> 3. Windows machines (like Azure Backup Server and DPM) is Windows<br/> 4. Azure SQL instance is AzureSqlContainer.

Returns:

  • (String)

    The type assigned to the container. The values to use



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

def container_type
  @container_type
end

#friendly_nameString

Returns Friendly name of the container.

Returns:

  • (String)

    Friendly name of the container.



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

def friendly_name
  @friendly_name
end

#health_statusString

Returns The status of the container’s health.

Returns:

  • (String)

    The status of the container’s health.



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

def health_status
  @health_status
end

#protectableObjectTypeObject

Returns the value of attribute protectableObjectType.



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

def protectableObjectType
  @protectableObjectType
end

#registration_statusString

Services vault.

Returns:

  • (String)

    The container’s registration status with the Recovery



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

def registration_status
  @registration_status
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ProtectionContainer',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'protectableObjectType',
      uber_parent: 'ProtectionContainer',
      class_name: 'ProtectionContainer',
      model_properties: {
        friendly_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'friendlyName',
          type: {
            name: 'String'
          }
        },
        backup_management_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupManagementType',
          type: {
            name: 'Enum',
            module: 'BackupManagementType'
          }
        },
        registration_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'registrationStatus',
          type: {
            name: 'String'
          }
        },
        health_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'healthStatus',
          type: {
            name: 'String'
          }
        },
        container_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'containerType',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end