Class: MicrosoftGraph::Models::IPv6Range

Inherits:
IpRange
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/i_pv6_range.rb

Overview

IPv6 Range definition.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from IpRange

#additional_data, #additional_data=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a i_pv6_range

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_addressObject

Gets the lowerAddress property value. Lower address.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the lowerAddress property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_addressObject

Gets the upperAddress property value. Upper address.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the upperAddress property.

Returns:

  • a void



82
83
84
# File 'lib/models/i_pv6_range.rb', line 82

def upper_address=(value)
    @upper_address = value
end