Class: MicrosoftGraph::Models::TodoTaskList

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/todo_task_list.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new todoTaskList and sets the default values.



31
32
33
# File 'lib/models/todo_task_list.rb', line 31

def initialize()
    super
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 todo_task_list

Raises:

  • (StandardError)


39
40
41
42
# File 'lib/models/todo_task_list.rb', line 39

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return TodoTaskList.new
end

Instance Method Details

#display_nameObject

Gets the displayName property value. The name of the task list.

Returns:

  • a string



47
48
49
# File 'lib/models/todo_task_list.rb', line 47

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The name of the task list.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



55
56
57
# File 'lib/models/todo_task_list.rb', line 55

def display_name=(value)
    @display_name = value
end

#extensionsObject

Gets the extensions property value. The collection of open extensions defined for the task list. Nullable.

Returns:

  • a extension



62
63
64
# File 'lib/models/todo_task_list.rb', line 62

def extensions
    return @extensions
end

#extensions=(value) ⇒ Object

Sets the extensions property value. The collection of open extensions defined for the task list. Nullable.

Parameters:

  • value

    Value to set for the extensions property.

Returns:

  • a void



70
71
72
# File 'lib/models/todo_task_list.rb', line 70

def extensions=(value)
    @extensions = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



77
78
79
80
81
82
83
84
85
86
# File 'lib/models/todo_task_list.rb', line 77

def get_field_deserializers()
    return super.merge({
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "extensions" => lambda {|n| @extensions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }) },
        "isOwner" => lambda {|n| @is_owner = n.get_boolean_value() },
        "isShared" => lambda {|n| @is_shared = n.get_boolean_value() },
        "tasks" => lambda {|n| @tasks = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TodoTask.create_from_discriminator_value(pn) }) },
        "wellknownListName" => lambda {|n| @wellknown_list_name = n.get_enum_value(MicrosoftGraph::Models::WellknownListName) },
    })
end

#is_ownerObject

Gets the isOwner property value. True if the user is owner of the given task list.

Returns:

  • a boolean



91
92
93
# File 'lib/models/todo_task_list.rb', line 91

def is_owner
    return @is_owner
end

#is_owner=(value) ⇒ Object

Sets the isOwner property value. True if the user is owner of the given task list.

Parameters:

  • value

    Value to set for the isOwner property.

Returns:

  • a void



99
100
101
# File 'lib/models/todo_task_list.rb', line 99

def is_owner=(value)
    @is_owner = value
end

#is_sharedObject

Gets the isShared property value. True if the task list is shared with other users

Returns:

  • a boolean



106
107
108
# File 'lib/models/todo_task_list.rb', line 106

def is_shared
    return @is_shared
end

#is_shared=(value) ⇒ Object

Sets the isShared property value. True if the task list is shared with other users

Parameters:

  • value

    Value to set for the isShared property.

Returns:

  • a void



114
115
116
# File 'lib/models/todo_task_list.rb', line 114

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


122
123
124
125
126
127
128
129
130
131
# File 'lib/models/todo_task_list.rb', line 122

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("displayName", @display_name)
    writer.write_collection_of_object_values("extensions", @extensions)
    writer.write_boolean_value("isOwner", @is_owner)
    writer.write_boolean_value("isShared", @is_shared)
    writer.write_collection_of_object_values("tasks", @tasks)
    writer.write_enum_value("wellknownListName", @wellknown_list_name)
end

#tasksObject

Gets the tasks property value. The tasks in this task list. Read-only. Nullable.

Returns:

  • a todo_task



136
137
138
# File 'lib/models/todo_task_list.rb', line 136

def tasks
    return @tasks
end

#tasks=(value) ⇒ Object

Sets the tasks property value. The tasks in this task list. Read-only. Nullable.

Parameters:

  • value

    Value to set for the tasks property.

Returns:

  • a void



144
145
146
# File 'lib/models/todo_task_list.rb', line 144

def tasks=(value)
    @tasks = value
end

#wellknown_list_nameObject

Gets the wellknownListName property value. The wellknownListName property

Returns:

  • a wellknown_list_name



151
152
153
# File 'lib/models/todo_task_list.rb', line 151

def wellknown_list_name
    return @wellknown_list_name
end

#wellknown_list_name=(value) ⇒ Object

Sets the wellknownListName property value. The wellknownListName property

Parameters:

  • value

    Value to set for the wellknownListName property.

Returns:

  • a void



159
160
161
# File 'lib/models/todo_task_list.rb', line 159

def wellknown_list_name=(value)
    @wellknown_list_name = value
end