Class: MicrosoftGraph::Models::ListItem
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/list_item.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
-
#analytics ⇒ Object
Gets the analytics property value.
-
#analytics=(value) ⇒ Object
Sets the analytics property value.
-
#content_type ⇒ Object
Gets the contentType property value.
-
#content_type=(value) ⇒ Object
Sets the contentType property value.
-
#document_set_versions ⇒ Object
Gets the documentSetVersions property value.
-
#document_set_versions=(value) ⇒ Object
Sets the documentSetVersions property value.
-
#drive_item ⇒ Object
Gets the driveItem property value.
-
#drive_item=(value) ⇒ Object
Sets the driveItem property value.
-
#fields ⇒ Object
Gets the fields property value.
-
#fields=(value) ⇒ Object
Sets the fields property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new listItem and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#sharepoint_ids ⇒ Object
Gets the sharepointIds property value.
-
#sharepoint_ids=(value) ⇒ Object
Sets the sharepointIds property value.
-
#versions ⇒ Object
Gets the versions property value.
-
#versions=(value) ⇒ Object
Sets the versions property value.
Methods inherited from BaseItem
#created_by, #created_by=, #created_by_user, #created_by_user=, #created_date_time, #created_date_time=, #description, #description=, #e_tag, #e_tag=, #last_modified_by, #last_modified_by=, #last_modified_by_user, #last_modified_by_user=, #last_modified_date_time, #last_modified_date_time=, #name, #name=, #parent_reference, #parent_reference=, #web_url, #web_url=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new listItem and sets the default values.
49 50 51 52 |
# File 'lib/models/list_item.rb', line 49 def initialize() super @odata_type = "#microsoft.graph.listItem" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
73 74 75 76 |
# File 'lib/models/list_item.rb', line 73 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ListItem.new end |
Instance Method Details
#analytics ⇒ Object
Gets the analytics property value. Analytics about the view activities that took place on this item.
34 35 36 |
# File 'lib/models/list_item.rb', line 34 def analytics return @analytics end |
#analytics=(value) ⇒ Object
Sets the analytics property value. Analytics about the view activities that took place on this item.
42 43 44 |
# File 'lib/models/list_item.rb', line 42 def analytics=(value) @analytics = value end |
#content_type ⇒ Object
Gets the contentType property value. The content type of this list item
57 58 59 |
# File 'lib/models/list_item.rb', line 57 def content_type return @content_type end |
#content_type=(value) ⇒ Object
Sets the contentType property value. The content type of this list item
65 66 67 |
# File 'lib/models/list_item.rb', line 65 def content_type=(value) @content_type = value end |
#document_set_versions ⇒ Object
Gets the documentSetVersions property value. Version information for a document set version created by a user.
81 82 83 |
# File 'lib/models/list_item.rb', line 81 def document_set_versions return @document_set_versions end |
#document_set_versions=(value) ⇒ Object
Sets the documentSetVersions property value. Version information for a document set version created by a user.
89 90 91 |
# File 'lib/models/list_item.rb', line 89 def document_set_versions=(value) @document_set_versions = value end |
#drive_item ⇒ Object
Gets the driveItem property value. For document libraries, the driveItem relationship exposes the listItem as a [driveItem][]
96 97 98 |
# File 'lib/models/list_item.rb', line 96 def drive_item return @drive_item end |
#drive_item=(value) ⇒ Object
Sets the driveItem property value. For document libraries, the driveItem relationship exposes the listItem as a [driveItem][]
104 105 106 |
# File 'lib/models/list_item.rb', line 104 def drive_item=(value) @drive_item = value end |
#fields ⇒ Object
Gets the fields property value. The values of the columns set on this list item.
111 112 113 |
# File 'lib/models/list_item.rb', line 111 def fields return @fields end |
#fields=(value) ⇒ Object
Sets the fields property value. The values of the columns set on this list item.
119 120 121 |
# File 'lib/models/list_item.rb', line 119 def fields=(value) @fields = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/models/list_item.rb', line 126 def get_field_deserializers() return super.merge({ "analytics" => lambda {|n| @analytics = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemAnalytics.create_from_discriminator_value(pn) }) }, "contentType" => lambda {|n| @content_type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ContentTypeInfo.create_from_discriminator_value(pn) }) }, "documentSetVersions" => lambda {|n| @document_set_versions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DocumentSetVersion.create_from_discriminator_value(pn) }) }, "driveItem" => lambda {|n| @drive_item = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, "fields" => lambda {|n| @fields = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }) }, "sharepointIds" => lambda {|n| @sharepoint_ids = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SharepointIds.create_from_discriminator_value(pn) }) }, "versions" => lambda {|n| @versions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ListItemVersion.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/models/list_item.rb', line 142 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("analytics", @analytics) writer.write_object_value("contentType", @content_type) writer.write_collection_of_object_values("documentSetVersions", @document_set_versions) writer.write_object_value("driveItem", @drive_item) writer.write_object_value("fields", @fields) writer.write_object_value("sharepointIds", @sharepoint_ids) writer.write_collection_of_object_values("versions", @versions) end |
#sharepoint_ids ⇒ Object
Gets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
157 158 159 |
# File 'lib/models/list_item.rb', line 157 def sharepoint_ids return @sharepoint_ids end |
#sharepoint_ids=(value) ⇒ Object
Sets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
165 166 167 |
# File 'lib/models/list_item.rb', line 165 def sharepoint_ids=(value) @sharepoint_ids = value end |
#versions ⇒ Object
Gets the versions property value. The list of previous versions of the list item.
172 173 174 |
# File 'lib/models/list_item.rb', line 172 def versions return @versions end |
#versions=(value) ⇒ Object
Sets the versions property value. The list of previous versions of the list item.
180 181 182 |
# File 'lib/models/list_item.rb', line 180 def versions=(value) @versions = value end |