Class: MicrosoftGraph::Models::ResourceVisualization
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ResourceVisualization
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/resource_visualization.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#container_display_name ⇒ Object
Gets the containerDisplayName property value.
-
#container_display_name=(value) ⇒ Object
Sets the containerDisplayName property value.
-
#container_type ⇒ Object
Gets the containerType property value.
-
#container_type=(value) ⇒ Object
Sets the containerType property value.
-
#container_web_url ⇒ Object
Gets the containerWebUrl property value.
-
#container_web_url=(value) ⇒ Object
Sets the containerWebUrl property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new resourceVisualization and sets the default values.
-
#media_type ⇒ Object
Gets the mediaType property value.
-
#media_type=(value) ⇒ Object
Sets the mediaType property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#preview_image_url ⇒ Object
Gets the previewImageUrl property value.
-
#preview_image_url=(value) ⇒ Object
Sets the previewImageUrl property value.
-
#preview_text ⇒ Object
Gets the previewText property value.
-
#preview_text=(value) ⇒ Object
Sets the previewText property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#title ⇒ Object
Gets the title property value.
-
#title=(value) ⇒ Object
Sets the title property value.
-
#type ⇒ Object
Gets the type property value.
-
#type=(value) ⇒ Object
Sets the type property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new resourceVisualization and sets the default values.
58 59 60 |
# File 'lib/models/resource_visualization.rb', line 58 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
111 112 113 114 |
# File 'lib/models/resource_visualization.rb', line 111 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ResourceVisualization.new end |
Instance Method Details
#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.
43 44 45 |
# File 'lib/models/resource_visualization.rb', line 43 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.
51 52 53 |
# File 'lib/models/resource_visualization.rb', line 51 def additional_data=(value) @additional_data = value end |
#container_display_name ⇒ Object
Gets the containerDisplayName property value. A string describing where the item is stored. For example, the name of a SharePoint site or the user name identifying the owner of the OneDrive storing the item.
65 66 67 |
# File 'lib/models/resource_visualization.rb', line 65 def container_display_name return @container_display_name end |
#container_display_name=(value) ⇒ Object
Sets the containerDisplayName property value. A string describing where the item is stored. For example, the name of a SharePoint site or the user name identifying the owner of the OneDrive storing the item.
73 74 75 |
# File 'lib/models/resource_visualization.rb', line 73 def container_display_name=(value) @container_display_name = value end |
#container_type ⇒ Object
Gets the containerType property value. Can be used for filtering by the type of container in which the file is stored. Such as Site or OneDriveBusiness.
80 81 82 |
# File 'lib/models/resource_visualization.rb', line 80 def container_type return @container_type end |
#container_type=(value) ⇒ Object
Sets the containerType property value. Can be used for filtering by the type of container in which the file is stored. Such as Site or OneDriveBusiness.
88 89 90 |
# File 'lib/models/resource_visualization.rb', line 88 def container_type=(value) @container_type = value end |
#container_web_url ⇒ Object
Gets the containerWebUrl property value. A path leading to the folder in which the item is stored.
95 96 97 |
# File 'lib/models/resource_visualization.rb', line 95 def container_web_url return @container_web_url end |
#container_web_url=(value) ⇒ Object
Sets the containerWebUrl property value. A path leading to the folder in which the item is stored.
103 104 105 |
# File 'lib/models/resource_visualization.rb', line 103 def container_web_url=(value) @container_web_url = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/models/resource_visualization.rb', line 119 def get_field_deserializers() return { "containerDisplayName" => lambda {|n| @container_display_name = n.get_string_value() }, "containerType" => lambda {|n| @container_type = n.get_string_value() }, "containerWebUrl" => lambda {|n| @container_web_url = n.get_string_value() }, "mediaType" => lambda {|n| @media_type = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "previewImageUrl" => lambda {|n| @preview_image_url = n.get_string_value() }, "previewText" => lambda {|n| @preview_text = n.get_string_value() }, "title" => lambda {|n| @title = n.get_string_value() }, "type" => lambda {|n| @type = n.get_string_value() }, } end |
#media_type ⇒ Object
Gets the mediaType property value. The item’s media type. Can be used for filtering for a specific type of file based on supported IANA Media Mime Types. Note that not all Media Mime Types are supported.
136 137 138 |
# File 'lib/models/resource_visualization.rb', line 136 def media_type return @media_type end |
#media_type=(value) ⇒ Object
Sets the mediaType property value. The item’s media type. Can be used for filtering for a specific type of file based on supported IANA Media Mime Types. Note that not all Media Mime Types are supported.
144 145 146 |
# File 'lib/models/resource_visualization.rb', line 144 def media_type=(value) @media_type = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
151 152 153 |
# File 'lib/models/resource_visualization.rb', line 151 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
159 160 161 |
# File 'lib/models/resource_visualization.rb', line 159 def odata_type=(value) @odata_type = value end |
#preview_image_url ⇒ Object
Gets the previewImageUrl property value. A URL leading to the preview image for the item.
166 167 168 |
# File 'lib/models/resource_visualization.rb', line 166 def preview_image_url return @preview_image_url end |
#preview_image_url=(value) ⇒ Object
Sets the previewImageUrl property value. A URL leading to the preview image for the item.
174 175 176 |
# File 'lib/models/resource_visualization.rb', line 174 def preview_image_url=(value) @preview_image_url = value end |
#preview_text ⇒ Object
Gets the previewText property value. A preview text for the item.
181 182 183 |
# File 'lib/models/resource_visualization.rb', line 181 def preview_text return @preview_text end |
#preview_text=(value) ⇒ Object
Sets the previewText property value. A preview text for the item.
189 190 191 |
# File 'lib/models/resource_visualization.rb', line 189 def preview_text=(value) @preview_text = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/models/resource_visualization.rb', line 197 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("containerDisplayName", @container_display_name) writer.write_string_value("containerType", @container_type) writer.write_string_value("containerWebUrl", @container_web_url) writer.write_string_value("mediaType", @media_type) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("previewImageUrl", @preview_image_url) writer.write_string_value("previewText", @preview_text) writer.write_string_value("title", @title) writer.write_string_value("type", @type) writer.write_additional_data(@additional_data) end |
#title ⇒ Object
Gets the title property value. The item’s title text.
214 215 216 |
# File 'lib/models/resource_visualization.rb', line 214 def title return @title end |
#title=(value) ⇒ Object
Sets the title property value. The item’s title text.
222 223 224 |
# File 'lib/models/resource_visualization.rb', line 222 def title=(value) @title = value end |
#type ⇒ Object
Gets the type property value. The item’s media type. Can be used for filtering for a specific file based on a specific type. See below for supported types.
229 230 231 |
# File 'lib/models/resource_visualization.rb', line 229 def type return @type end |
#type=(value) ⇒ Object
Sets the type property value. The item’s media type. Can be used for filtering for a specific file based on a specific type. See below for supported types.
237 238 239 |
# File 'lib/models/resource_visualization.rb', line 237 def type=(value) @type = value end |