Class: Azure::ARM::Compute::Models::NetworkInterfaceReference

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

Overview

Describes a network interface reference.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#primaryBoolean

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

Returns:

  • (Boolean)

    whether this is a primary NIC on a virtual machine



16
17
18
# File 'lib/generated/azure_mgmt_compute/models/network_interface_reference.rb', line 16

def primary
  @primary
end

Class Method Details

.mapperObject

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



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/generated/azure_mgmt_compute/models/network_interface_reference.rb', line 23

def self.mapper()
  {
    required: false,
    serialized_name: 'NetworkInterfaceReference',
    type: {
      name: 'Composite',
      class_name: 'NetworkInterfaceReference',
      model_properties: {
        id: {
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        primary: {
          required: false,
          serialized_name: 'properties.primary',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end