Class: MicrosoftGraph::Models::OmaSettingBase64

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

Overview

OMA Settings Base64 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 omaSettingBase64 and sets the default values.



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

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

Raises:

  • (StandardError)


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

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

Instance Method Details

#file_nameObject

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

Returns:

  • a string



38
39
40
# File 'lib/models/oma_setting_base64.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 (.cer

Parameters:

  • value

    Value to set for the fileName property.

Returns:

  • a void



46
47
48
# File 'lib/models/oma_setting_base64.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_base64.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_string_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/oma_setting_base64.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_string_value("value", @value)
end

#valueObject

Gets the value property value. Value. (Base64 encoded string)

Returns:

  • a string



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

def value
    return @value
end

#value=(value) ⇒ Object

Sets the value property value. Value. (Base64 encoded string)

Parameters:

  • value

    Value to set for the value property.

Returns:

  • a void



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

def value=(value)
    @value = value
end