Class: MicrosoftGraph::Models::PlannerBucket
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/planner_bucket.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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new plannerBucket and sets the default values.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#order_hint ⇒ Object
Gets the orderHint property value.
-
#order_hint=(value) ⇒ Object
Sets the orderHint property value.
-
#plan_id ⇒ Object
Gets the planId property value.
-
#plan_id=(value) ⇒ Object
Sets the planId 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.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new plannerBucket and sets the default values.
25 26 27 |
# File 'lib/models/planner_bucket.rb', line 25 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
33 34 35 36 |
# File 'lib/models/planner_bucket.rb', line 33 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return PlannerBucket.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
41 42 43 44 45 46 47 48 |
# File 'lib/models/planner_bucket.rb', line 41 def get_field_deserializers() return super.merge({ "name" => lambda {|n| @name = n.get_string_value() }, "orderHint" => lambda {|n| @order_hint = n.get_string_value() }, "planId" => lambda {|n| @plan_id = n.get_string_value() }, "tasks" => lambda {|n| @tasks = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PlannerTask.create_from_discriminator_value(pn) }) }, }) end |
#name ⇒ Object
Gets the name property value. Name of the bucket.
53 54 55 |
# File 'lib/models/planner_bucket.rb', line 53 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. Name of the bucket.
61 62 63 |
# File 'lib/models/planner_bucket.rb', line 61 def name=(value) @name = value end |
#order_hint ⇒ Object
Gets the orderHint property value. Hint used to order items of this type in a list view. For details about the supported format, see Using order hints in Planner.
68 69 70 |
# File 'lib/models/planner_bucket.rb', line 68 def order_hint return @order_hint end |
#order_hint=(value) ⇒ Object
Sets the orderHint property value. Hint used to order items of this type in a list view. For details about the supported format, see Using order hints in Planner.
76 77 78 |
# File 'lib/models/planner_bucket.rb', line 76 def order_hint=(value) @order_hint = value end |
#plan_id ⇒ Object
Gets the planId property value. Plan ID to which the bucket belongs.
83 84 85 |
# File 'lib/models/planner_bucket.rb', line 83 def plan_id return @plan_id end |
#plan_id=(value) ⇒ Object
Sets the planId property value. Plan ID to which the bucket belongs.
91 92 93 |
# File 'lib/models/planner_bucket.rb', line 91 def plan_id=(value) @plan_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
99 100 101 102 103 104 105 106 |
# File 'lib/models/planner_bucket.rb', line 99 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("name", @name) writer.write_string_value("orderHint", @order_hint) writer.write_string_value("planId", @plan_id) writer.write_collection_of_object_values("tasks", @tasks) end |
#tasks ⇒ Object
Gets the tasks property value. Read-only. Nullable. The collection of tasks in the bucket.
111 112 113 |
# File 'lib/models/planner_bucket.rb', line 111 def tasks return @tasks end |
#tasks=(value) ⇒ Object
Sets the tasks property value. Read-only. Nullable. The collection of tasks in the bucket.
119 120 121 |
# File 'lib/models/planner_bucket.rb', line 119 def tasks=(value) @tasks = value end |