Class: MicrosoftGraph::Models::PlannerPlanDetails

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/planner_plan_details.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 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

Parameters:

  • parse_node

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

Returns:

  • a planner_plan_details

Raises:

  • (StandardError)


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_descriptionsObject

Gets the categoryDescriptions property value. An object that specifies the descriptions of the 25 categories that can be associated with tasks in the plan.

Returns:

  • a planner_category_descriptions



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.

Parameters:

  • value

    Value to set for the categoryDescriptions property.

Returns:

  • a void



27
28
29
# File 'lib/models/planner_plan_details.rb', line 27

def category_descriptions=(value)
    @category_descriptions = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_withObject

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.

Returns:

  • a planner_user_ids



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.

Parameters:

  • value

    Value to set for the sharedWith property.

Returns:

  • a void



79
80
81
# File 'lib/models/planner_plan_details.rb', line 79

def shared_with=(value)
    @shared_with = value
end