Class: Azure::ARM::Compute::Models::VirtualMachineScaleSetNetworkConfiguration

Inherits:
MsRestAzure::SubResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb

Overview

Describes a virtual machine scale set network profile’s network configurations.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#ip_configurationsArray<VirtualMachineScaleSetIPConfiguration>

machine scale set IP Configuration.

Returns:



24
25
26
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb', line 24

def ip_configurations
  @ip_configurations
end

#nameString

Returns the network configuration name.

Returns:

  • (String)

    the network configuration name.



17
18
19
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb', line 17

def name
  @name
end

#primaryBoolean

Returns whether this is a primary NIC on a virtual machine.

Returns:

  • (Boolean)

    whether this is a primary NIC on a virtual machine.



20
21
22
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb', line 20

def primary
  @primary
end

Class Method Details

.mapperObject

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



32
33
34
35
36
37
38
39
40
41
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
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb', line 32

def self.mapper()
  {
    required: false,
    serialized_name: 'VirtualMachineScaleSetNetworkConfiguration',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineScaleSetNetworkConfiguration',
      model_properties: {
        id: {
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        primary: {
          required: false,
          serialized_name: 'properties.primary',
          type: {
            name: 'Boolean'
          }
        },
        ip_configurations: {
          required: true,
          serialized_name: 'properties.ipConfigurations',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'VirtualMachineScaleSetIPConfigurationElementType',
                type: {
                  name: 'Composite',
                  class_name: 'VirtualMachineScaleSetIPConfiguration'
                }
            }
          }
        }
      }
    }
  }
end