Class: Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainer

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

Overview

Protectable Container Class.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProtectableContainer

Returns a new instance of ProtectableContainer.



23
24
25
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protectable_container.rb', line 23

def initialize
  @protectableContainerType = "ProtectableContainer"
end

Instance Attribute Details

#backup_management_typeBackupManagementType

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

Returns:



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

def backup_management_type
  @backup_management_type
end

#container_idString

Returns Fabric Id of the container such as ARM Id.

Returns:

  • (String)

    Fabric Id of the container such as ARM Id.



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

def container_id
  @container_id
end

#friendly_nameString

Returns Friendly name of the container.

Returns:

  • (String)

    Friendly name of the container.



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

def friendly_name
  @friendly_name
end

#health_statusString

Returns Status of health of the container.

Returns:

  • (String)

    Status of health of the container.



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

def health_status
  @health_status
end

#protectableContainerTypeObject

Returns the value of attribute protectableContainerType.



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

def protectableContainerType
  @protectableContainerType
end

Class Method Details

.mapperObject

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



49
50
51
52
53
54
55
56
57
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
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protectable_container.rb', line 49

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ProtectableContainer',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'protectableContainerType',
      uber_parent: 'ProtectableContainer',
      class_name: 'ProtectableContainer',
      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'
          }
        },
        health_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'healthStatus',
          type: {
            name: 'String'
          }
        },
        container_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'containerId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end