Class: MicrosoftGraph::Models::PlannerPlanDetails
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/planner_plan_details.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
-
#category_descriptions ⇒ Object
Gets the categoryDescriptions property value.
-
#category_descriptions=(value) ⇒ Object
Sets the categoryDescriptions property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new plannerPlanDetails and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#shared_with ⇒ Object
Gets the sharedWith property value.
-
#shared_with=(value) ⇒ Object
Sets the sharedWith property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new plannerPlanDetails and sets the default values.
34 35 36 |
# File 'lib/models/planner_plan_details.rb', line 34 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
42 43 44 45 |
# File 'lib/models/planner_plan_details.rb', line 42 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return PlannerPlanDetails.new end |
Instance Method Details
#category_descriptions ⇒ Object
Gets the categoryDescriptions property value. An object that specifies the descriptions of the 25 categories that can be associated with tasks in the plan.
19 20 21 |
# File 'lib/models/planner_plan_details.rb', line 19 def category_descriptions return @category_descriptions end |
#category_descriptions=(value) ⇒ Object
Sets the categoryDescriptions property value. An object that specifies the descriptions of the 25 categories that can be associated with tasks in the plan.
27 28 29 |
# File 'lib/models/planner_plan_details.rb', line 27 def category_descriptions=(value) @category_descriptions = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
50 51 52 53 54 55 |
# File 'lib/models/planner_plan_details.rb', line 50 def get_field_deserializers() return super.merge({ "categoryDescriptions" => lambda {|n| @category_descriptions = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PlannerCategoryDescriptions.create_from_discriminator_value(pn) }) }, "sharedWith" => lambda {|n| @shared_with = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PlannerUserIds.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
61 62 63 64 65 66 |
# File 'lib/models/planner_plan_details.rb', line 61 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("categoryDescriptions", @category_descriptions) writer.write_object_value("sharedWith", @shared_with) end |
#shared_with ⇒ Object
Gets the sharedWith property value. Set of user IDs that this plan is shared with. If you are leveraging Microsoft 365 groups, use the Groups API to manage group membership to share the group’s plan. You can also add existing members of the group to this collection, although it is not required for them to access the plan owned by the group.
71 72 73 |
# File 'lib/models/planner_plan_details.rb', line 71 def shared_with return @shared_with end |
#shared_with=(value) ⇒ Object
Sets the sharedWith property value. Set of user IDs that this plan is shared with. If you are leveraging Microsoft 365 groups, use the Groups API to manage group membership to share the group’s plan. You can also add existing members of the group to this collection, although it is not required for them to access the plan owned by the group.
79 80 81 |
# File 'lib/models/planner_plan_details.rb', line 79 def shared_with=(value) @shared_with = value end |