Class: Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainer

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

Overview

Base class for container with backup items. Containers with specific workloads are derived from this class.

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.



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

def initialize
  @containerType = "ProtectionContainer"
end

Instance Attribute Details

#backup_management_typeBackupManagementType

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

Returns:



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

def backup_management_type
  @backup_management_type
end

#containerTypeObject

Returns the value of attribute containerType.



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

def containerType
  @containerType
end

#friendly_nameString

Returns Friendly name of the container.

Returns:

  • (String)

    Friendly name of the container.



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

def friendly_name
  @friendly_name
end

#health_statusString

Returns Status of health of the container.

Returns:

  • (String)

    Status of health of the container.



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

def health_status
  @health_status
end

#registration_statusString

Recovery Services Vault.

Returns:

  • (String)

    Status of registration of the container with the



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

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
# File 'lib/2016-12-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: 'containerType',
      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: 'String'
          }
        },
        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'
          }
        }
      }
    }
  }
end