Class: MicrosoftGraph::Models::PlannerPlan

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



53
54
55
# File 'lib/models/planner_plan.rb', line 53

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

Raises:

  • (StandardError)


106
107
108
109
# File 'lib/models/planner_plan.rb', line 106

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

Instance Method Details

#bucketsObject

Gets the buckets property value. Read-only. Nullable. Collection of buckets in the plan.

Returns:

  • a planner_bucket



38
39
40
# File 'lib/models/planner_plan.rb', line 38

def buckets
    return @buckets
end

#buckets=(value) ⇒ Object

Sets the buckets property value. Read-only. Nullable. Collection of buckets in the plan.

Parameters:

  • value

    Value to set for the buckets property.

Returns:

  • a void



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

def buckets=(value)
    @buckets = value
end

#containerObject

Gets the container property value. Identifies the container of the plan. Specify only the url, the containerId and type, or all properties. After it is set, this property can’t be updated. Required.

Returns:

  • a planner_plan_container



60
61
62
# File 'lib/models/planner_plan.rb', line 60

def container
    return @container
end

#container=(value) ⇒ Object

Sets the container property value. Identifies the container of the plan. Specify only the url, the containerId and type, or all properties. After it is set, this property can’t be updated. Required.

Parameters:

  • value

    Value to set for the container property.

Returns:

  • a void



68
69
70
# File 'lib/models/planner_plan.rb', line 68

def container=(value)
    @container = value
end

#created_byObject

Gets the createdBy property value. Read-only. The user who created the plan.

Returns:

  • a identity_set



75
76
77
# File 'lib/models/planner_plan.rb', line 75

def created_by
    return @created_by
end

#created_by=(value) ⇒ Object

Sets the createdBy property value. Read-only. The user who created the plan.

Parameters:

  • value

    Value to set for the createdBy property.

Returns:

  • a void



83
84
85
# File 'lib/models/planner_plan.rb', line 83

def created_by=(value)
    @created_by = value
end

#created_date_timeObject

Gets the createdDateTime property value. Read-only. Date and time at which the plan is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Returns:

  • a date_time



90
91
92
# File 'lib/models/planner_plan.rb', line 90

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. Read-only. Date and time at which the plan is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



98
99
100
# File 'lib/models/planner_plan.rb', line 98

def created_date_time=(value)
    @created_date_time = value
end

#detailsObject

Gets the details property value. Read-only. Nullable. Additional details about the plan.

Returns:

  • a planner_plan_details



114
115
116
# File 'lib/models/planner_plan.rb', line 114

def details
    return @details
end

#details=(value) ⇒ Object

Sets the details property value. Read-only. Nullable. Additional details about the plan.

Parameters:

  • value

    Value to set for the details property.

Returns:

  • a void



122
123
124
# File 'lib/models/planner_plan.rb', line 122

def details=(value)
    @details = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/models/planner_plan.rb', line 129

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) }) },
        "container" => lambda {|n| @container = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PlannerPlanContainer.create_from_discriminator_value(pn) }) },
        "createdBy" => lambda {|n| @created_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "details" => lambda {|n| @details = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PlannerPlanDetails.create_from_discriminator_value(pn) }) },
        "owner" => lambda {|n| @owner = n.get_string_value() },
        "tasks" => lambda {|n| @tasks = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PlannerTask.create_from_discriminator_value(pn) }) },
        "title" => lambda {|n| @title = n.get_string_value() },
    })
end

#ownerObject

Gets the owner property value. The owner property

Returns:

  • a string



145
146
147
# File 'lib/models/planner_plan.rb', line 145

def owner
    return @owner
end

#owner=(value) ⇒ Object

Sets the owner property value. The owner property

Parameters:

  • value

    Value to set for the owner property.

Returns:

  • a void



153
154
155
# File 'lib/models/planner_plan.rb', line 153

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


161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/models/planner_plan.rb', line 161

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("buckets", @buckets)
    writer.write_object_value("container", @container)
    writer.write_object_value("createdBy", @created_by)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_object_value("details", @details)
    writer.write_string_value("owner", @owner)
    writer.write_collection_of_object_values("tasks", @tasks)
    writer.write_string_value("title", @title)
end

#tasksObject

Gets the tasks property value. Read-only. Nullable. Collection of tasks in the plan.

Returns:

  • a planner_task



177
178
179
# File 'lib/models/planner_plan.rb', line 177

def tasks
    return @tasks
end

#tasks=(value) ⇒ Object

Sets the tasks property value. Read-only. Nullable. Collection of tasks in the plan.

Parameters:

  • value

    Value to set for the tasks property.

Returns:

  • a void



185
186
187
# File 'lib/models/planner_plan.rb', line 185

def tasks=(value)
    @tasks = value
end

#titleObject

Gets the title property value. Required. Title of the plan.

Returns:

  • a string



192
193
194
# File 'lib/models/planner_plan.rb', line 192

def title
    return @title
end

#title=(value) ⇒ Object

Sets the title property value. Required. Title of the plan.

Parameters:

  • value

    Value to set for the title property.

Returns:

  • a void



200
201
202
# File 'lib/models/planner_plan.rb', line 200

def title=(value)
    @title = value
end