Class: Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetUpdate

Inherits:
UpdateResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb

Overview

Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated.

Instance Attribute Summary collapse

Attributes inherited from UpdateResource

#tags

Class Method Summary collapse

Instance Attribute Details

#platform_fault_domain_countInteger

Returns Fault Domain count.

Returns:

  • (Integer)

    Fault Domain count.



20
21
22
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb', line 20

def platform_fault_domain_count
  @platform_fault_domain_count
end

#platform_update_domain_countInteger

Returns Update Domain count.

Returns:

  • (Integer)

    Update Domain count.



17
18
19
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb', line 17

def platform_update_domain_count
  @platform_update_domain_count
end

#proximity_placement_groupSubResource

placement group that the availability set should be assigned to.
Minimum api-version: 2018-04-01.

Returns:

  • (SubResource)

    Specifies information about the proximity



29
30
31
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb', line 29

def proximity_placement_group
  @proximity_placement_group
end

#skuSku

Returns Sku of the availability set.

Returns:

  • (Sku)

    Sku of the availability set



35
36
37
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb', line 35

def sku
  @sku
end

#statusesArray<InstanceViewStatus>

Returns The resource status information.

Returns:



32
33
34
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb', line 32

def statuses
  @statuses
end

#virtual_machinesArray<SubResource>

machines in the availability set.

Returns:

  • (Array<SubResource>)

    A list of references to all virtual



24
25
26
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb', line 24

def virtual_machines
  @virtual_machines
end

Class Method Details

.mapperObject

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



42
43
44
45
46
47
48
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
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
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AvailabilitySetUpdate',
    type: {
      name: 'Composite',
      class_name: 'AvailabilitySetUpdate',
      model_properties: {
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        platform_update_domain_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.platformUpdateDomainCount',
          type: {
            name: 'Number'
          }
        },
        platform_fault_domain_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.platformFaultDomainCount',
          type: {
            name: 'Number'
          }
        },
        virtual_machines: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.virtualMachines',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SubResourceElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SubResource'
                }
            }
          }
        },
        proximity_placement_group: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.proximityPlacementGroup',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        statuses: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.statuses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'InstanceViewStatusElementType',
                type: {
                  name: 'Composite',
                  class_name: 'InstanceViewStatus'
                }
            }
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        }
      }
    }
  }
end