Class: MicrosoftGraph::Models::ImageInfo

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/image_info.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new imageInfo and sets the default values.



91
92
93
# File 'lib/models/image_info.rb', line 91

def initialize()
    @additional_data = Hash.new
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 image_info

Raises:

  • (StandardError)


99
100
101
102
# File 'lib/models/image_info.rb', line 99

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

Instance Method Details

#add_image_queryObject

Gets the addImageQuery property value. Optional; parameter used to indicate the server is able to render image dynamically in response to parameterization. For example – a high contrast image

Returns:

  • a boolean



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

def add_image_query
    return @add_image_query
end

#add_image_query=(value) ⇒ Object

Sets the addImageQuery property value. Optional; parameter used to indicate the server is able to render image dynamically in response to parameterization. For example – a high contrast image

Parameters:

  • value

    Value to set for the addImageQuery property.

Returns:

  • a void



39
40
41
# File 'lib/models/image_info.rb', line 39

def add_image_query=(value)
    @add_image_query = value
end

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



54
55
56
# File 'lib/models/image_info.rb', line 54

def additional_data=(value)
    @additional_data = value
end

#alternate_textObject

Gets the alternateText property value. Optional; alt-text accessible content for the image

Returns:

  • a string



61
62
63
# File 'lib/models/image_info.rb', line 61

def alternate_text
    return @alternate_text
end

#alternate_text=(value) ⇒ Object

Sets the alternateText property value. Optional; alt-text accessible content for the image

Parameters:

  • value

    Value to set for the alternateText property.

Returns:

  • a void



69
70
71
# File 'lib/models/image_info.rb', line 69

def alternate_text=(value)
    @alternate_text = value
end

#alternative_textObject

Gets the alternativeText property value. The alternativeText property

Returns:

  • a string



76
77
78
# File 'lib/models/image_info.rb', line 76

def alternative_text
    return @alternative_text
end

#alternative_text=(value) ⇒ Object

Sets the alternativeText property value. The alternativeText property

Parameters:

  • value

    Value to set for the alternativeText property.

Returns:

  • a void



84
85
86
# File 'lib/models/image_info.rb', line 84

def alternative_text=(value)
    @alternative_text = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



107
108
109
110
111
112
113
114
115
# File 'lib/models/image_info.rb', line 107

def get_field_deserializers()
    return {
        "addImageQuery" => lambda {|n| @add_image_query = n.get_boolean_value() },
        "alternateText" => lambda {|n| @alternate_text = n.get_string_value() },
        "alternativeText" => lambda {|n| @alternative_text = n.get_string_value() },
        "iconUrl" => lambda {|n| @icon_url = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
    }
end

#icon_urlObject

Gets the iconUrl property value. Optional; URI that points to an icon which represents the application used to generate the activity

Returns:

  • a string



120
121
122
# File 'lib/models/image_info.rb', line 120

def icon_url
    return @icon_url
end

#icon_url=(value) ⇒ Object

Sets the iconUrl property value. Optional; URI that points to an icon which represents the application used to generate the activity

Parameters:

  • value

    Value to set for the iconUrl property.

Returns:

  • a void



128
129
130
# File 'lib/models/image_info.rb', line 128

def icon_url=(value)
    @icon_url = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



135
136
137
# File 'lib/models/image_info.rb', line 135

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



143
144
145
# File 'lib/models/image_info.rb', line 143

def odata_type=(value)
    @odata_type = 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)


151
152
153
154
155
156
157
158
159
# File 'lib/models/image_info.rb', line 151

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_boolean_value("addImageQuery", @add_image_query)
    writer.write_string_value("alternateText", @alternate_text)
    writer.write_string_value("alternativeText", @alternative_text)
    writer.write_string_value("iconUrl", @icon_url)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_additional_data(@additional_data)
end