Class: MicrosoftGraph::Models::PlannerPlan
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/planner_plan.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
-
#buckets ⇒ Object
Gets the buckets property value.
-
#buckets=(value) ⇒ Object
Sets the buckets property value.
-
#container ⇒ Object
Gets the container property value.
-
#container=(value) ⇒ Object
Sets the container property value.
-
#created_by ⇒ Object
Gets the createdBy property value.
-
#created_by=(value) ⇒ Object
Sets the createdBy property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#details ⇒ Object
Gets the details property value.
-
#details=(value) ⇒ Object
Sets the details property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new plannerPlan and sets the default values.
-
#owner ⇒ Object
Gets the owner property value.
-
#owner=(value) ⇒ Object
Sets the owner property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#tasks ⇒ Object
Gets the tasks property value.
-
#tasks=(value) ⇒ Object
Sets the tasks property value.
-
#title ⇒ Object
Gets the title property value.
-
#title=(value) ⇒ Object
Sets the title property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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
#buckets ⇒ Object
Gets the buckets property value. Read-only. Nullable. Collection of buckets in the plan.
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.
46 47 48 |
# File 'lib/models/planner_plan.rb', line 46 def buckets=(value) @buckets = value end |
#container ⇒ Object
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.
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.
68 69 70 |
# File 'lib/models/planner_plan.rb', line 68 def container=(value) @container = value end |
#created_by ⇒ Object
Gets the createdBy property value. Read-only. The user who created the plan.
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.
83 84 85 |
# File 'lib/models/planner_plan.rb', line 83 def created_by=(value) @created_by = value end |
#created_date_time ⇒ Object
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
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
98 99 100 |
# File 'lib/models/planner_plan.rb', line 98 def created_date_time=(value) @created_date_time = value end |
#details ⇒ Object
Gets the details property value. Read-only. Nullable. Additional details about the plan.
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.
122 123 124 |
# File 'lib/models/planner_plan.rb', line 122 def details=(value) @details = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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 |
#owner ⇒ Object
Gets the owner property value. The owner property
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
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
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 |
#tasks ⇒ Object
Gets the tasks property value. Read-only. Nullable. Collection of tasks in the plan.
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.
185 186 187 |
# File 'lib/models/planner_plan.rb', line 185 def tasks=(value) @tasks = value end |
#title ⇒ Object
Gets the title property value. Required. Title of the plan.
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.
200 201 202 |
# File 'lib/models/planner_plan.rb', line 200 def title=(value) @title = value end |