class Azure::Network::Mgmt::V2015_05_01_preview::Models::NetworkInterface

A NetworkInterface in a resource group

Attributes

dns_settings[RW]

@return [NetworkInterfaceDnsSettings] Gets or sets DNS Settings in NetworkInterface

enable_ipforwarding[RW]

@return [Boolean] Gets or sets whether IPForwarding is enabled on the NIC

etag[RW]

@return [String] Gets a unique read-only string that changes whenever the resource is updated

ip_configurations[RW]

@return [Array<NetworkInterfaceIpConfiguration>] Gets or sets list of IPConfigurations of the NetworkInterface

mac_address[RW]

@return [String] Gets the MAC Address of the network interface

network_security_group[RW]

@return [SubResource] Gets or sets the reference of the NetworkSecurityGroup resource

primary[RW]

@return [Boolean] Gets whether this is a primary NIC on a virtual machine

provisioning_state[RW]

@return [String] Gets or sets Provisioning state of the PublicIP resource Updating/Deleting/Failed

resource_guid[RW]

@return [String] Gets or sets resource guid property of the network interface resource

virtual_machine[RW]

@return [SubResource] Gets or sets the reference of a VirtualMachine

Public Class Methods

mapper() click to toggle source

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

# File lib/2015-05-01-preview/generated/azure_mgmt_network/models/network_interface.rb, line 58
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'NetworkInterface',
    type: {
      name: 'Composite',
      class_name: 'NetworkInterface',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        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'
                }
            }
          }
        },
        virtual_machine: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.virtualMachine',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        network_security_group: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.networkSecurityGroup',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        ip_configurations: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ipConfigurations',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'NetworkInterfaceIpConfigurationElementType',
                type: {
                  name: 'Composite',
                  class_name: 'NetworkInterfaceIpConfiguration'
                }
            }
          }
        },
        dns_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.dnsSettings',
          type: {
            name: 'Composite',
            class_name: 'NetworkInterfaceDnsSettings'
          }
        },
        mac_address: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.macAddress',
          type: {
            name: 'String'
          }
        },
        primary: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.primary',
          type: {
            name: 'Boolean'
          }
        },
        enable_ipforwarding: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.enableIPForwarding',
          type: {
            name: 'Boolean'
          }
        },
        resource_guid: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.resourceGuid',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end