Class: MicrosoftGraph::Models::PrintTaskDefinition
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/print_task_definition.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
-
#created_by ⇒ Object
Gets the createdBy property value.
-
#created_by=(value) ⇒ Object
Sets the createdBy property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new printTaskDefinition and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#tasks ⇒ Object
Gets the tasks property value.
-
#tasks=(value) ⇒ Object
Sets the tasks property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new printTaskDefinition and sets the default values.
22 23 24 |
# File 'lib/models/print_task_definition.rb', line 22 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
45 46 47 48 |
# File 'lib/models/print_task_definition.rb', line 45 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return PrintTaskDefinition.new end |
Instance Method Details
#created_by ⇒ Object
Gets the createdBy property value. The createdBy property
29 30 31 |
# File 'lib/models/print_task_definition.rb', line 29 def created_by return @created_by end |
#created_by=(value) ⇒ Object
Sets the createdBy property value. The createdBy property
37 38 39 |
# File 'lib/models/print_task_definition.rb', line 37 def created_by=(value) @created_by = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of the printTaskDefinition.
53 54 55 |
# File 'lib/models/print_task_definition.rb', line 53 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The name of the printTaskDefinition.
61 62 63 |
# File 'lib/models/print_task_definition.rb', line 61 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
68 69 70 71 72 73 74 |
# File 'lib/models/print_task_definition.rb', line 68 def get_field_deserializers() return super.merge({ "createdBy" => lambda {|n| @created_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AppIdentity.create_from_discriminator_value(pn) }) }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "tasks" => lambda {|n| @tasks = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintTask.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
80 81 82 83 84 85 86 |
# File 'lib/models/print_task_definition.rb', line 80 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("createdBy", @created_by) writer.write_string_value("displayName", @display_name) writer.write_collection_of_object_values("tasks", @tasks) end |
#tasks ⇒ Object
Gets the tasks property value. A list of tasks that have been created based on this definition. The list includes currently running tasks and recently completed tasks. Read-only.
91 92 93 |
# File 'lib/models/print_task_definition.rb', line 91 def tasks return @tasks end |
#tasks=(value) ⇒ Object
Sets the tasks property value. A list of tasks that have been created based on this definition. The list includes currently running tasks and recently completed tasks. Read-only.
99 100 101 |
# File 'lib/models/print_task_definition.rb', line 99 def tasks=(value) @tasks = value end |