Class: MicrosoftGraph::Models::PrintTask
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/print_task.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
-
#definition ⇒ Object
Gets the definition property value.
-
#definition=(value) ⇒ Object
Sets the definition property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new printTask and sets the default values.
-
#parent_url ⇒ Object
Gets the parentUrl property value.
-
#parent_url=(value) ⇒ Object
Sets the parentUrl property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#trigger ⇒ Object
Gets the trigger property value.
-
#trigger=(value) ⇒ Object
Sets the trigger property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new printTask and sets the default values.
25 26 27 |
# File 'lib/models/print_task.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
33 34 35 36 |
# File 'lib/models/print_task.rb', line 33 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return PrintTask.new end |
Instance Method Details
#definition ⇒ Object
Gets the definition property value. The definition property
41 42 43 |
# File 'lib/models/print_task.rb', line 41 def definition return @definition end |
#definition=(value) ⇒ Object
Sets the definition property value. The definition property
49 50 51 |
# File 'lib/models/print_task.rb', line 49 def definition=(value) @definition = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
56 57 58 59 60 61 62 63 |
# File 'lib/models/print_task.rb', line 56 def get_field_deserializers() return super.merge({ "definition" => lambda {|n| @definition = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PrintTaskDefinition.create_from_discriminator_value(pn) }) }, "parentUrl" => lambda {|n| @parent_url = n.get_string_value() }, "status" => lambda {|n| @status = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PrintTaskStatus.create_from_discriminator_value(pn) }) }, "trigger" => lambda {|n| @trigger = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PrintTaskTrigger.create_from_discriminator_value(pn) }) }, }) end |
#parent_url ⇒ Object
Gets the parentUrl property value. The URL for the print entity that triggered this task. For example, graph.microsoft.com/v1.0/print/printers/printerId/jobs/jobId. Read-only.
68 69 70 |
# File 'lib/models/print_task.rb', line 68 def parent_url return @parent_url end |
#parent_url=(value) ⇒ Object
Sets the parentUrl property value. The URL for the print entity that triggered this task. For example, graph.microsoft.com/v1.0/print/printers/printerId/jobs/jobId. Read-only.
76 77 78 |
# File 'lib/models/print_task.rb', line 76 def parent_url=(value) @parent_url = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
84 85 86 87 88 89 90 91 |
# File 'lib/models/print_task.rb', line 84 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("definition", @definition) writer.write_string_value("parentUrl", @parent_url) writer.write_object_value("status", @status) writer.write_object_value("trigger", @trigger) end |
#status ⇒ Object
Gets the status property value. The status property
96 97 98 |
# File 'lib/models/print_task.rb', line 96 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The status property
104 105 106 |
# File 'lib/models/print_task.rb', line 104 def status=(value) @status = value end |
#trigger ⇒ Object
Gets the trigger property value. The trigger property
111 112 113 |
# File 'lib/models/print_task.rb', line 111 def trigger return @trigger end |
#trigger=(value) ⇒ Object
Sets the trigger property value. The trigger property
119 120 121 |
# File 'lib/models/print_task.rb', line 119 def trigger=(value) @trigger = value end |