Class: MicrosoftGraph::Models::ImageInfo
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ImageInfo
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/image_info.rb
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
-
#add_image_query ⇒ Object
Gets the addImageQuery property value.
-
#add_image_query=(value) ⇒ Object
Sets the addImageQuery property value.
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#alternate_text ⇒ Object
Gets the alternateText property value.
-
#alternate_text=(value) ⇒ Object
Sets the alternateText property value.
-
#alternative_text ⇒ Object
Gets the alternativeText property value.
-
#alternative_text=(value) ⇒ Object
Sets the alternativeText property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#icon_url ⇒ Object
Gets the iconUrl property value.
-
#icon_url=(value) ⇒ Object
Sets the iconUrl property value.
-
#initialize ⇒ Object
constructor
Instantiates a new imageInfo and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
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
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_query ⇒ Object
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
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
39 40 41 |
# File 'lib/models/image_info.rb', line 39 def add_image_query=(value) @add_image_query = value end |
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
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.
54 55 56 |
# File 'lib/models/image_info.rb', line 54 def additional_data=(value) @additional_data = value end |
#alternate_text ⇒ Object
Gets the alternateText property value. Optional; alt-text accessible content for the image
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
69 70 71 |
# File 'lib/models/image_info.rb', line 69 def alternate_text=(value) @alternate_text = value end |
#alternative_text ⇒ Object
Gets the alternativeText property value. The alternativeText property
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
84 85 86 |
# File 'lib/models/image_info.rb', line 84 def alternative_text=(value) @alternative_text = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_url ⇒ Object
Gets the iconUrl property value. Optional; URI that points to an icon which represents the application used to generate the activity
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
128 129 130 |
# File 'lib/models/image_info.rb', line 128 def icon_url=(value) @icon_url = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
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
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 |