Sha256: 48805959098d6eee47a2b2ca766ca855a2e56d3cef2759741627ac17ed1f0808
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 KB
Contents
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Compute module Models # # Describes a network interface reference properties. # class NetworkInterfaceReferenceProperties include MsRestAzure # @return [Boolean] Gets or sets whether this is a primary NIC on a # virtual machine attr_accessor :primary # # Validate the object. Throws ValidationError if validation fails. # def validate # Nothing to validate end # # Serializes given Model object into Ruby Hash. # @param object Model object to serialize. # @return [Hash] Serialized object in form of Ruby Hash. # def self.serialize_object(object) object.validate output_object = {} serialized_property = object.primary output_object['primary'] = serialized_property unless serialized_property.nil? output_object end # # Deserializes given Ruby Hash into Model object. # @param object [Hash] Ruby Hash object to deserialize. # @return [NetworkInterfaceReferenceProperties] Deserialized object. # def self.deserialize_object(object) return if object.nil? output_object = NetworkInterfaceReferenceProperties.new deserialized_property = object['primary'] output_object.primary = deserialized_property output_object end end end end
Version data entries
2 entries across 2 versions & 1 rubygems