Class: MicrosoftGraph::Models::List
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/list.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
-
#columns ⇒ Object
Gets the columns property value.
-
#columns=(value) ⇒ Object
Sets the columns property value.
-
#content_types ⇒ Object
Gets the contentTypes property value.
-
#content_types=(value) ⇒ Object
Sets the contentTypes property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#drive ⇒ Object
Gets the drive property value.
-
#drive=(value) ⇒ Object
Sets the drive property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new list and sets the default values.
-
#items ⇒ Object
Gets the items property value.
-
#items=(value) ⇒ Object
Sets the items property value.
-
#list ⇒ Object
Gets the list property value.
-
#list=(value) ⇒ Object
Sets the list property value.
-
#operations ⇒ Object
Gets the operations property value.
-
#operations=(value) ⇒ Object
Sets the operations property value.
-
#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.
-
#subscriptions ⇒ Object
Gets the subscriptions property value.
-
#subscriptions=(value) ⇒ Object
Sets the subscriptions property value.
-
#system ⇒ Object
Gets the system property value.
-
#system=(value) ⇒ Object
Sets the system 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 list and sets the default values.
58 59 60 61 |
# File 'lib/models/list.rb', line 58 def initialize() super @odata_type = "#microsoft.graph.list" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
82 83 84 85 |
# File 'lib/models/list.rb', line 82 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return List.new end |
Instance Method Details
#columns ⇒ Object
Gets the columns property value. The collection of field definitions for this list.
43 44 45 |
# File 'lib/models/list.rb', line 43 def columns return @columns end |
#columns=(value) ⇒ Object
Sets the columns property value. The collection of field definitions for this list.
51 52 53 |
# File 'lib/models/list.rb', line 51 def columns=(value) @columns = value end |
#content_types ⇒ Object
Gets the contentTypes property value. The collection of content types present in this list.
66 67 68 |
# File 'lib/models/list.rb', line 66 def content_types return @content_types end |
#content_types=(value) ⇒ Object
Sets the contentTypes property value. The collection of content types present in this list.
74 75 76 |
# File 'lib/models/list.rb', line 74 def content_types=(value) @content_types = value end |
#display_name ⇒ Object
Gets the displayName property value. The displayable title of the list.
90 91 92 |
# File 'lib/models/list.rb', line 90 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The displayable title of the list.
98 99 100 |
# File 'lib/models/list.rb', line 98 def display_name=(value) @display_name = value end |
#drive ⇒ Object
Gets the drive property value. Only present on document libraries. Allows access to the list as a [drive][] resource with [driveItems].
105 106 107 |
# File 'lib/models/list.rb', line 105 def drive return @drive end |
#drive=(value) ⇒ Object
Sets the drive property value. Only present on document libraries. Allows access to the list as a [drive][] resource with [driveItems].
113 114 115 |
# File 'lib/models/list.rb', line 113 def drive=(value) @drive = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/models/list.rb', line 120 def get_field_deserializers() return super.merge({ "columns" => lambda {|n| @columns = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ColumnDefinition.create_from_discriminator_value(pn) }) }, "contentTypes" => lambda {|n| @content_types = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ContentType.create_from_discriminator_value(pn) }) }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "drive" => lambda {|n| @drive = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Drive.create_from_discriminator_value(pn) }) }, "items" => lambda {|n| @items = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }) }, "list" => lambda {|n| @list = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ListInfo.create_from_discriminator_value(pn) }) }, "operations" => lambda {|n| @operations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RichLongRunningOperation.create_from_discriminator_value(pn) }) }, "sharepointIds" => lambda {|n| @sharepoint_ids = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SharepointIds.create_from_discriminator_value(pn) }) }, "subscriptions" => lambda {|n| @subscriptions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Subscription.create_from_discriminator_value(pn) }) }, "system" => lambda {|n| @system = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SystemFacet.create_from_discriminator_value(pn) }) }, }) end |
#items ⇒ Object
Gets the items property value. All items contained in the list.
138 139 140 |
# File 'lib/models/list.rb', line 138 def items return @items end |
#items=(value) ⇒ Object
Sets the items property value. All items contained in the list.
146 147 148 |
# File 'lib/models/list.rb', line 146 def items=(value) @items = value end |
#list ⇒ Object
Gets the list property value. Provides additional details about the list.
153 154 155 |
# File 'lib/models/list.rb', line 153 def list return @list end |
#list=(value) ⇒ Object
Sets the list property value. Provides additional details about the list.
161 162 163 |
# File 'lib/models/list.rb', line 161 def list=(value) @list = value end |
#operations ⇒ Object
Gets the operations property value. The collection of long-running operations on the list.
168 169 170 |
# File 'lib/models/list.rb', line 168 def operations return @operations end |
#operations=(value) ⇒ Object
Sets the operations property value. The collection of long-running operations on the list.
176 177 178 |
# File 'lib/models/list.rb', line 176 def operations=(value) @operations = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/models/list.rb', line 184 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("columns", @columns) writer.write_collection_of_object_values("contentTypes", @content_types) writer.write_string_value("displayName", @display_name) writer.write_object_value("drive", @drive) writer.write_collection_of_object_values("items", @items) writer.write_object_value("list", @list) writer.write_collection_of_object_values("operations", @operations) writer.write_object_value("sharepointIds", @sharepoint_ids) writer.write_collection_of_object_values("subscriptions", @subscriptions) writer.write_object_value("system", @system) end |
#sharepoint_ids ⇒ Object
Gets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
202 203 204 |
# File 'lib/models/list.rb', line 202 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.
210 211 212 |
# File 'lib/models/list.rb', line 210 def sharepoint_ids=(value) @sharepoint_ids = value end |
#subscriptions ⇒ Object
Gets the subscriptions property value. The set of subscriptions on the list.
217 218 219 |
# File 'lib/models/list.rb', line 217 def subscriptions return @subscriptions end |
#subscriptions=(value) ⇒ Object
Sets the subscriptions property value. The set of subscriptions on the list.
225 226 227 |
# File 'lib/models/list.rb', line 225 def subscriptions=(value) @subscriptions = value end |
#system ⇒ Object
Gets the system property value. If present, indicates that this is a system-managed list. Read-only.
232 233 234 |
# File 'lib/models/list.rb', line 232 def system return @system end |
#system=(value) ⇒ Object
Sets the system property value. If present, indicates that this is a system-managed list. Read-only.
240 241 242 |
# File 'lib/models/list.rb', line 240 def system=(value) @system = value end |