Class: Azure::ARM::Compute::Models::VirtualMachineScaleSetNetworkProfile
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::Models::VirtualMachineScaleSetNetworkProfile
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb
Overview
Describes a virtual machine scale set network profile.
Instance Attribute Summary collapse
-
#network_interface_configurations ⇒ Array<VirtualMachineScaleSetNetworkConfiguration>
sets the list of network configurations.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ VirtualMachineScaleSetNetworkProfile
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#network_interface_configurations ⇒ Array<VirtualMachineScaleSetNetworkConfiguration>
sets the list of network configurations.
17 18 19 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb', line 17 def network_interface_configurations @network_interface_configurations end |
Class Method Details
.deserialize_object(object) ⇒ VirtualMachineScaleSetNetworkProfile
Deserializes given Ruby Hash into Model object.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb', line 56 def self.deserialize_object(object) return if object.nil? output_object = VirtualMachineScaleSetNetworkProfile.new deserialized_property = object['networkInterfaceConfigurations'] unless deserialized_property.nil? deserialized_array = [] deserialized_property.each do |element1| unless element1.nil? element1 = VirtualMachineScaleSetNetworkConfiguration.deserialize_object(element1) end deserialized_array.push(element1) end deserialized_property = deserialized_array end output_object.network_interface_configurations = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb', line 31 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.network_interface_configurations unless serialized_property.nil? serializedArray = [] serialized_property.each do |element| unless element.nil? element = VirtualMachineScaleSetNetworkConfiguration.serialize_object(element) end serializedArray.push(element) end serialized_property = serializedArray end output_object['networkInterfaceConfigurations'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
22 23 24 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb', line 22 def validate @network_interface_configurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @network_interface_configurations.nil? end |