Class: MicrosoftGraph::Models::OmaSettingStringXml

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

Overview

OMA Settings StringXML definition.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from OmaSetting

#additional_data, #additional_data=, #description, #description=, #display_name, #display_name=, #odata_type, #odata_type=, #oma_uri, #oma_uri=

Constructor Details

#initializeObject

Instantiates a new omaSettingStringXml and sets the default values.



21
22
23
24
# File 'lib/models/oma_setting_string_xml.rb', line 21

def initialize()
    super
    @odata_type = "#microsoft.graph.omaSettingStringXml"
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 oma_setting_string_xml

Raises:

  • (StandardError)


30
31
32
33
# File 'lib/models/oma_setting_string_xml.rb', line 30

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return OmaSettingStringXml.new
end

Instance Method Details

#file_nameObject

Gets the fileName property value. File name associated with the Value property (.xml).

Returns:

  • a string



38
39
40
# File 'lib/models/oma_setting_string_xml.rb', line 38

def file_name
    return @file_name
end

#file_name=(value) ⇒ Object

Sets the fileName property value. File name associated with the Value property (.xml).

Parameters:

  • value

    Value to set for the fileName property.

Returns:

  • a void



46
47
48
# File 'lib/models/oma_setting_string_xml.rb', line 46

def file_name=(value)
    @file_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



53
54
55
56
57
58
# File 'lib/models/oma_setting_string_xml.rb', line 53

def get_field_deserializers()
    return super.merge({
        "fileName" => lambda {|n| @file_name = n.get_string_value() },
        "value" => lambda {|n| @value = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) },
    })
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/oma_setting_string_xml.rb', line 64

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("fileName", @file_name)
    writer.write_object_value("value", @value)
end

#valueObject

Gets the value property value. Value. (UTF8 encoded byte array)

Returns:

  • a base64url



74
75
76
# File 'lib/models/oma_setting_string_xml.rb', line 74

def value
    return @value
end

#value=(value) ⇒ Object

Sets the value property value. Value. (UTF8 encoded byte array)

Parameters:

  • value

    Value to set for the value property.

Returns:

  • a void



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

def value=(value)
    @value = value
end