Class: Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::VirtualNic

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb

Overview

Virtual NIC model

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#ip_addressesArray<String>

Returns NIC ip address.

Returns:

  • (Array<String>)

    NIC ip address



16
17
18
# File 'lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb', line 16

def ip_addresses
  @ip_addresses
end

#mac_addressString

Returns NIC MAC address.

Returns:

  • (String)

    NIC MAC address



19
20
21
# File 'lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb', line 19

def mac_address
  @mac_address
end

#networkVirtualNetwork

Returns Virtual Network.

Returns:



22
23
24
# File 'lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb', line 22

def network
  @network
end

#nic_typeNICType

‘PCNET32’, ‘VMXNET’, ‘VMXNET2’, ‘VMXNET3’

Returns:

  • (NICType)

    NIC type. Possible values include: ‘E1000’, ‘E1000E’,



26
27
28
# File 'lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb', line 26

def nic_type
  @nic_type
end

#power_on_bootBoolean

Returns Is NIC powered on/off on boot.

Returns:

  • (Boolean)

    Is NIC powered on/off on boot



29
30
31
# File 'lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb', line 29

def power_on_boot
  @power_on_boot
end

#virtual_nic_idString

Returns NIC id.

Returns:

  • (String)

    NIC id



32
33
34
# File 'lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb', line 32

def virtual_nic_id
  @virtual_nic_id
end

#virtual_nic_nameString

Returns NIC name.

Returns:

  • (String)

    NIC name



35
36
37
# File 'lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb', line 35

def virtual_nic_name
  @virtual_nic_name
end

Class Method Details

.mapperObject

Mapper for VirtualNic 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
# File 'lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualNic',
    type: {
      name: 'Composite',
      class_name: 'VirtualNic',
      model_properties: {
        ip_addresses: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ipAddresses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        mac_address: {
          client_side_validation: true,
          required: false,
          serialized_name: 'macAddress',
          type: {
            name: 'String'
          }
        },
        network: {
          client_side_validation: true,
          required: true,
          serialized_name: 'network',
          type: {
            name: 'Composite',
            class_name: 'VirtualNetwork'
          }
        },
        nic_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'nicType',
          type: {
            name: 'Enum',
            module: 'NICType'
          }
        },
        power_on_boot: {
          client_side_validation: true,
          required: false,
          serialized_name: 'powerOnBoot',
          type: {
            name: 'Boolean'
          }
        },
        virtual_nic_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'virtualNicId',
          type: {
            name: 'String'
          }
        },
        virtual_nic_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'virtualNicName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end