Class: MicrosoftGraph::Models::PlannerBucket

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

Parameters:

  • parse_node

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

Returns:

  • a planner_bucket

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#nameObject

Gets the name property value. Name of the bucket.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



61
62
63
# File 'lib/models/planner_bucket.rb', line 61

def name=(value)
    @name = value
end

#order_hintObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the orderHint property.

Returns:

  • a void



76
77
78
# File 'lib/models/planner_bucket.rb', line 76

def order_hint=(value)
    @order_hint = value
end

#plan_idObject

Gets the planId property value. Plan ID to which the bucket belongs.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the planId property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#tasksObject

Gets the tasks property value. Read-only. Nullable. The collection of tasks in the bucket.

Returns:

  • a planner_task



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.

Parameters:

  • value

    Value to set for the tasks property.

Returns:

  • a void



119
120
121
# File 'lib/models/planner_bucket.rb', line 119

def tasks=(value)
    @tasks = value
end