Class: MicrosoftGraph::Models::PrintJob
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/print_job.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
-
#configuration ⇒ Object
Gets the configuration property value.
-
#configuration=(value) ⇒ Object
Sets the configuration 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.
-
#documents ⇒ Object
Gets the documents property value.
-
#documents=(value) ⇒ Object
Sets the documents property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new printJob and sets the default values.
-
#is_fetchable ⇒ Object
Gets the isFetchable property value.
-
#is_fetchable=(value) ⇒ Object
Sets the isFetchable property value.
-
#redirected_from ⇒ Object
Gets the redirectedFrom property value.
-
#redirected_from=(value) ⇒ Object
Sets the redirectedFrom property value.
-
#redirected_to ⇒ Object
Gets the redirectedTo property value.
-
#redirected_to=(value) ⇒ Object
Sets the redirectedTo 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.
-
#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 printJob and sets the default values.
56 57 58 |
# File 'lib/models/print_job.rb', line 56 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
94 95 96 97 |
# File 'lib/models/print_job.rb', line 94 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return PrintJob.new end |
Instance Method Details
#configuration ⇒ Object
Gets the configuration property value. The configuration property
41 42 43 |
# File 'lib/models/print_job.rb', line 41 def configuration return @configuration end |
#configuration=(value) ⇒ Object
Sets the configuration property value. The configuration property
49 50 51 |
# File 'lib/models/print_job.rb', line 49 def configuration=(value) @configuration = value end |
#created_by ⇒ Object
Gets the createdBy property value. The createdBy property
63 64 65 |
# File 'lib/models/print_job.rb', line 63 def created_by return @created_by end |
#created_by=(value) ⇒ Object
Sets the createdBy property value. The createdBy property
71 72 73 |
# File 'lib/models/print_job.rb', line 71 def created_by=(value) @created_by = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The DateTimeOffset when the job was created. Read-only.
78 79 80 |
# File 'lib/models/print_job.rb', line 78 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The DateTimeOffset when the job was created. Read-only.
86 87 88 |
# File 'lib/models/print_job.rb', line 86 def created_date_time=(value) @created_date_time = value end |
#documents ⇒ Object
Gets the documents property value. The documents property
102 103 104 |
# File 'lib/models/print_job.rb', line 102 def documents return @documents end |
#documents=(value) ⇒ Object
Sets the documents property value. The documents property
110 111 112 |
# File 'lib/models/print_job.rb', line 110 def documents=(value) @documents = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/models/print_job.rb', line 117 def get_field_deserializers() return super.merge({ "configuration" => lambda {|n| @configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PrintJobConfiguration.create_from_discriminator_value(pn) }) }, "createdBy" => lambda {|n| @created_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserIdentity.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "documents" => lambda {|n| @documents = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintDocument.create_from_discriminator_value(pn) }) }, "isFetchable" => lambda {|n| @is_fetchable = n.get_boolean_value() }, "redirectedFrom" => lambda {|n| @redirected_from = n.get_string_value() }, "redirectedTo" => lambda {|n| @redirected_to = n.get_string_value() }, "status" => lambda {|n| @status = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PrintJobStatus.create_from_discriminator_value(pn) }) }, "tasks" => lambda {|n| @tasks = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintTask.create_from_discriminator_value(pn) }) }, }) end |
#is_fetchable ⇒ Object
Gets the isFetchable property value. If true, document can be fetched by printer.
134 135 136 |
# File 'lib/models/print_job.rb', line 134 def is_fetchable return @is_fetchable end |
#is_fetchable=(value) ⇒ Object
Sets the isFetchable property value. If true, document can be fetched by printer.
142 143 144 |
# File 'lib/models/print_job.rb', line 142 def is_fetchable=(value) @is_fetchable = value end |
#redirected_from ⇒ Object
Gets the redirectedFrom property value. Contains the source job URL, if the job has been redirected from another printer.
149 150 151 |
# File 'lib/models/print_job.rb', line 149 def redirected_from return @redirected_from end |
#redirected_from=(value) ⇒ Object
Sets the redirectedFrom property value. Contains the source job URL, if the job has been redirected from another printer.
157 158 159 |
# File 'lib/models/print_job.rb', line 157 def redirected_from=(value) @redirected_from = value end |
#redirected_to ⇒ Object
Gets the redirectedTo property value. Contains the destination job URL, if the job has been redirected to another printer.
164 165 166 |
# File 'lib/models/print_job.rb', line 164 def redirected_to return @redirected_to end |
#redirected_to=(value) ⇒ Object
Sets the redirectedTo property value. Contains the destination job URL, if the job has been redirected to another printer.
172 173 174 |
# File 'lib/models/print_job.rb', line 172 def redirected_to=(value) @redirected_to = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/models/print_job.rb', line 180 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("configuration", @configuration) writer.write_object_value("createdBy", @created_by) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_collection_of_object_values("documents", @documents) writer.write_boolean_value("isFetchable", @is_fetchable) writer.write_string_value("redirectedFrom", @redirected_from) writer.write_string_value("redirectedTo", @redirected_to) writer.write_object_value("status", @status) writer.write_collection_of_object_values("tasks", @tasks) end |
#status ⇒ Object
Gets the status property value. The status property
197 198 199 |
# File 'lib/models/print_job.rb', line 197 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The status property
205 206 207 |
# File 'lib/models/print_job.rb', line 205 def status=(value) @status = value end |
#tasks ⇒ Object
Gets the tasks property value. A list of printTasks that were triggered by this print job.
212 213 214 |
# File 'lib/models/print_job.rb', line 212 def tasks return @tasks end |
#tasks=(value) ⇒ Object
Sets the tasks property value. A list of printTasks that were triggered by this print job.
220 221 222 |
# File 'lib/models/print_job.rb', line 220 def tasks=(value) @tasks = value end |