Class: MicrosoftGraph::Models::OmaSettingStringXml
- Inherits:
-
OmaSetting
- Object
- OmaSetting
- MicrosoftGraph::Models::OmaSettingStringXml
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/oma_setting_string_xml.rb
Overview
OMA Settings StringXML 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
-
#file_name ⇒ Object
Gets the fileName property value.
-
#file_name=(value) ⇒ Object
Sets the fileName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new omaSettingStringXml and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#value ⇒ Object
Gets the value property value.
-
#value=(value) ⇒ Object
Sets the value property value.
Methods inherited from OmaSetting
#additional_data, #additional_data=, #description, #description=, #display_name, #display_name=, #odata_type, #odata_type=, #oma_uri, #oma_uri=
Constructor Details
#initialize ⇒ Object
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
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_name ⇒ Object
Gets the fileName property value. File name associated with the Value property (.xml).
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).
46 47 48 |
# File 'lib/models/oma_setting_string_xml.rb', line 46 def file_name=(value) @file_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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
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 |
#value ⇒ Object
Gets the value property value. Value. (UTF8 encoded byte array)
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)
82 83 84 |
# File 'lib/models/oma_setting_string_xml.rb', line 82 def value=(value) @value = value end |