Class: MicrosoftGraph::Models::List

Inherits:
BaseItem show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/list.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a list

Raises:

  • (StandardError)


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

#columnsObject

Gets the columns property value. The collection of field definitions for this list.

Returns:

  • a column_definition



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.

Parameters:

  • value

    Value to set for the columns property.

Returns:

  • a void



51
52
53
# File 'lib/models/list.rb', line 51

def columns=(value)
    @columns = value
end

#content_typesObject

Gets the contentTypes property value. The collection of content types present in this list.

Returns:

  • a content_type



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.

Parameters:

  • value

    Value to set for the contentTypes property.

Returns:

  • a void



74
75
76
# File 'lib/models/list.rb', line 74

def content_types=(value)
    @content_types = value
end

#display_nameObject

Gets the displayName property value. The displayable title of the list.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



98
99
100
# File 'lib/models/list.rb', line 98

def display_name=(value)
    @display_name = value
end

#driveObject

Gets the drive property value. Only present on document libraries. Allows access to the list as a [drive][] resource with [driveItems].

Returns:

  • a drive



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].

Parameters:

  • value

    Value to set for the drive property.

Returns:

  • a void



113
114
115
# File 'lib/models/list.rb', line 113

def drive=(value)
    @drive = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#itemsObject

Gets the items property value. All items contained in the list.

Returns:

  • a list_item



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.

Parameters:

  • value

    Value to set for the items property.

Returns:

  • a void



146
147
148
# File 'lib/models/list.rb', line 146

def items=(value)
    @items = value
end

#listObject

Gets the list property value. Provides additional details about the list.

Returns:

  • a list_info



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.

Parameters:

  • value

    Value to set for the list property.

Returns:

  • a void



161
162
163
# File 'lib/models/list.rb', line 161

def list=(value)
    @list = value
end

#operationsObject

Gets the operations property value. The collection of long-running operations on the list.

Returns:

  • a rich_long_running_operation



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.

Parameters:

  • value

    Value to set for the operations property.

Returns:

  • a void



176
177
178
# File 'lib/models/list.rb', line 176

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


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_idsObject

Gets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.

Returns:

  • a sharepoint_ids



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.

Parameters:

  • value

    Value to set for the sharepointIds property.

Returns:

  • a void



210
211
212
# File 'lib/models/list.rb', line 210

def sharepoint_ids=(value)
    @sharepoint_ids = value
end

#subscriptionsObject

Gets the subscriptions property value. The set of subscriptions on the list.

Returns:

  • a subscription



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.

Parameters:

  • value

    Value to set for the subscriptions property.

Returns:

  • a void



225
226
227
# File 'lib/models/list.rb', line 225

def subscriptions=(value)
    @subscriptions = value
end

#systemObject

Gets the system property value. If present, indicates that this is a system-managed list. Read-only.

Returns:

  • a system_facet



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.

Parameters:

  • value

    Value to set for the system property.

Returns:

  • a void



240
241
242
# File 'lib/models/list.rb', line 240

def system=(value)
    @system = value
end