Class: MicrosoftGraph::Models::IPv6Range
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/i_pv6_range.rb
Overview
IPv6 Range definition.
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new iPv6Range and sets the default values.
-
#lower_address ⇒ Object
Gets the lowerAddress property value.
-
#lower_address=(value) ⇒ Object
Sets the lowerAddress property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#upper_address ⇒ Object
Gets the upperAddress property value.
-
#upper_address=(value) ⇒ Object
Sets the upperAddress property value.
Methods inherited from IpRange
#additional_data, #additional_data=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new iPv6Range and sets the default values.
21 22 23 24 |
# File 'lib/models/i_pv6_range.rb', line 21 def initialize() super @odata_type = "#microsoft.graph.iPv6Range" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
30 31 32 33 |
# File 'lib/models/i_pv6_range.rb', line 30 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return IPv6Range.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
38 39 40 41 42 43 |
# File 'lib/models/i_pv6_range.rb', line 38 def get_field_deserializers() return super.merge({ "lowerAddress" => lambda {|n| @lower_address = n.get_string_value() }, "upperAddress" => lambda {|n| @upper_address = n.get_string_value() }, }) end |
#lower_address ⇒ Object
Gets the lowerAddress property value. Lower address.
48 49 50 |
# File 'lib/models/i_pv6_range.rb', line 48 def lower_address return @lower_address end |
#lower_address=(value) ⇒ Object
Sets the lowerAddress property value. Lower address.
56 57 58 |
# File 'lib/models/i_pv6_range.rb', line 56 def lower_address=(value) @lower_address = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
64 65 66 67 68 69 |
# File 'lib/models/i_pv6_range.rb', line 64 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("lowerAddress", @lower_address) writer.write_string_value("upperAddress", @upper_address) end |
#upper_address ⇒ Object
Gets the upperAddress property value. Upper address.
74 75 76 |
# File 'lib/models/i_pv6_range.rb', line 74 def upper_address return @upper_address end |
#upper_address=(value) ⇒ Object
Sets the upperAddress property value. Upper address.
82 83 84 |
# File 'lib/models/i_pv6_range.rb', line 82 def upper_address=(value) @upper_address = value end |