Class: MicrosoftGraph::Models::TodoTaskList
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/todo_task_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
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#extensions ⇒ Object
Gets the extensions property value.
-
#extensions=(value) ⇒ Object
Sets the extensions property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new todoTaskList and sets the default values.
-
#is_owner ⇒ Object
Gets the isOwner property value.
-
#is_owner=(value) ⇒ Object
Sets the isOwner property value.
-
#is_shared ⇒ Object
Gets the isShared property value.
-
#is_shared=(value) ⇒ Object
Sets the isShared property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#tasks ⇒ Object
Gets the tasks property value.
-
#tasks=(value) ⇒ Object
Sets the tasks property value.
-
#wellknown_list_name ⇒ Object
Gets the wellknownListName property value.
-
#wellknown_list_name=(value) ⇒ Object
Sets the wellknownListName property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_name ⇒ Object
Gets the displayName property value. The name of the task list.
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.
55 56 57 |
# File 'lib/models/todo_task_list.rb', line 55 def display_name=(value) @display_name = value end |
#extensions ⇒ Object
Gets the extensions property value. The collection of open extensions defined for the task list. Nullable.
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.
70 71 72 |
# File 'lib/models/todo_task_list.rb', line 70 def extensions=(value) @extensions = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_owner ⇒ Object
Gets the isOwner property value. True if the user is owner of the given task list.
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.
99 100 101 |
# File 'lib/models/todo_task_list.rb', line 99 def is_owner=(value) @is_owner = value end |
#is_shared ⇒ Object
Gets the isShared property value. True if the task list is shared with other users
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
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
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 |
#tasks ⇒ Object
Gets the tasks property value. The tasks in this task list. Read-only. Nullable.
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.
144 145 146 |
# File 'lib/models/todo_task_list.rb', line 144 def tasks=(value) @tasks = value end |
#wellknown_list_name ⇒ Object
Gets the wellknownListName property value. The wellknownListName property
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
159 160 161 |
# File 'lib/models/todo_task_list.rb', line 159 def wellknown_list_name=(value) @wellknown_list_name = value end |