# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Compute module Models # # Describes a virtual machine scale set network profile's network # configurations. # class VirtualMachineScaleSetNetworkConfiguration < MsRestAzure::SubResource include MsRestAzure # @return [String] the network configuration name. attr_accessor :name # @return [Boolean] whether this is a primary NIC on a virtual machine. attr_accessor :primary # @return [Array] the virtual # machine scale set IP Configuration. attr_accessor :ip_configurations # # Mapper for VirtualMachineScaleSetNetworkConfiguration class as Ruby # Hash. # This will be used for serialization/deserialization. # 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 end end end