Class: MicrosoftGraph::Models::Planner

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/planner.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 planner and sets the default values.



37
38
39
# File 'lib/models/planner.rb', line 37

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

Raises:

  • (StandardError)


45
46
47
48
# File 'lib/models/planner.rb', line 45

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

Instance Method Details

#bucketsObject

Gets the buckets property value. Read-only. Nullable. Returns a collection of the specified buckets

Returns:

  • a planner_bucket



22
23
24
# File 'lib/models/planner.rb', line 22

def buckets
    return @buckets
end

#buckets=(value) ⇒ Object

Sets the buckets property value. Read-only. Nullable. Returns a collection of the specified buckets

Parameters:

  • value

    Value to set for the buckets property.

Returns:

  • a void



30
31
32
# File 'lib/models/planner.rb', line 30

def buckets=(value)
    @buckets = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



53
54
55
56
57
58
59
# File 'lib/models/planner.rb', line 53

def get_field_deserializers()
    return super.merge({
        "buckets" => lambda {|n| @buckets = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PlannerBucket.create_from_discriminator_value(pn) }) },
        "plans" => lambda {|n| @plans = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PlannerPlan.create_from_discriminator_value(pn) }) },
        "tasks" => lambda {|n| @tasks = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PlannerTask.create_from_discriminator_value(pn) }) },
    })
end

#plansObject

Gets the plans property value. Read-only. Nullable. Returns a collection of the specified plans

Returns:

  • a planner_plan



64
65
66
# File 'lib/models/planner.rb', line 64

def plans
    return @plans
end

#plans=(value) ⇒ Object

Sets the plans property value. Read-only. Nullable. Returns a collection of the specified plans

Parameters:

  • value

    Value to set for the plans property.

Returns:

  • a void



72
73
74
# File 'lib/models/planner.rb', line 72

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


80
81
82
83
84
85
86
# File 'lib/models/planner.rb', line 80

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("buckets", @buckets)
    writer.write_collection_of_object_values("plans", @plans)
    writer.write_collection_of_object_values("tasks", @tasks)
end

#tasksObject

Gets the tasks property value. Read-only. Nullable. Returns a collection of the specified tasks

Returns:

  • a planner_task



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

def tasks
    return @tasks
end

#tasks=(value) ⇒ Object

Sets the tasks property value. Read-only. Nullable. Returns a collection of the specified tasks

Parameters:

  • value

    Value to set for the tasks property.

Returns:

  • a void



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

def tasks=(value)
    @tasks = value
end