Class: Azure::Compute::Mgmt::V2015_06_15::Models::NetworkInterfaceReference

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

Overview

Describes a network interface reference.

Instance Attribute Summary collapse

Attributes inherited from SubResource

#id

Class Method Summary collapse

Instance Attribute Details

#primaryBoolean

virtual machine has more than 1 network interface.

Returns:

  • (Boolean)

    Specifies the primary network interface in case the



17
18
19
# File 'lib/2015-06-15/generated/azure_mgmt_compute/models/network_interface_reference.rb', line 17

def primary
  @primary
end

Class Method Details

.mapperObject

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



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
49
# File 'lib/2015-06-15/generated/azure_mgmt_compute/models/network_interface_reference.rb', line 24

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