Class: MicrosoftGraph::Models::Print
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::Print
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/print.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#connectors ⇒ Object
Gets the connectors property value.
-
#connectors=(value) ⇒ Object
Sets the connectors property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new print and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#operations ⇒ Object
Gets the operations property value.
-
#operations=(value) ⇒ Object
Sets the operations property value.
-
#printers ⇒ Object
Gets the printers property value.
-
#printers=(value) ⇒ Object
Sets the printers property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#services ⇒ Object
Gets the services property value.
-
#services=(value) ⇒ Object
Sets the services property value.
-
#settings ⇒ Object
Gets the settings property value.
-
#settings=(value) ⇒ Object
Sets the settings property value.
-
#shares ⇒ Object
Gets the shares property value.
-
#shares=(value) ⇒ Object
Sets the shares property value.
-
#task_definitions ⇒ Object
Gets the taskDefinitions property value.
-
#task_definitions=(value) ⇒ Object
Sets the taskDefinitions property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new print and sets the default values.
70 71 72 |
# File 'lib/models/print.rb', line 70 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
78 79 80 81 |
# File 'lib/models/print.rb', line 78 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Print.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
40 41 42 |
# File 'lib/models/print.rb', line 40 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
48 49 50 |
# File 'lib/models/print.rb', line 48 def additional_data=(value) @additional_data = value end |
#connectors ⇒ Object
Gets the connectors property value. The list of available print connectors.
55 56 57 |
# File 'lib/models/print.rb', line 55 def connectors return @connectors end |
#connectors=(value) ⇒ Object
Sets the connectors property value. The list of available print connectors.
63 64 65 |
# File 'lib/models/print.rb', line 63 def connectors=(value) @connectors = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/models/print.rb', line 86 def get_field_deserializers() return { "connectors" => lambda {|n| @connectors = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintConnector.create_from_discriminator_value(pn) }) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "operations" => lambda {|n| @operations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintOperation.create_from_discriminator_value(pn) }) }, "printers" => lambda {|n| @printers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Printer.create_from_discriminator_value(pn) }) }, "services" => lambda {|n| @services = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintService.create_from_discriminator_value(pn) }) }, "settings" => lambda {|n| @settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PrintSettings.create_from_discriminator_value(pn) }) }, "shares" => lambda {|n| @shares = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrinterShare.create_from_discriminator_value(pn) }) }, "taskDefinitions" => lambda {|n| @task_definitions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintTaskDefinition.create_from_discriminator_value(pn) }) }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
102 103 104 |
# File 'lib/models/print.rb', line 102 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
110 111 112 |
# File 'lib/models/print.rb', line 110 def odata_type=(value) @odata_type = value end |
#operations ⇒ Object
Gets the operations property value. The list of print long running operations.
117 118 119 |
# File 'lib/models/print.rb', line 117 def operations return @operations end |
#operations=(value) ⇒ Object
Sets the operations property value. The list of print long running operations.
125 126 127 |
# File 'lib/models/print.rb', line 125 def operations=(value) @operations = value end |
#printers ⇒ Object
Gets the printers property value. The list of printers registered in the tenant.
132 133 134 |
# File 'lib/models/print.rb', line 132 def printers return @printers end |
#printers=(value) ⇒ Object
Sets the printers property value. The list of printers registered in the tenant.
140 141 142 |
# File 'lib/models/print.rb', line 140 def printers=(value) @printers = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/models/print.rb', line 148 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_collection_of_object_values("connectors", @connectors) writer.write_string_value("@odata.type", @odata_type) writer.write_collection_of_object_values("operations", @operations) writer.write_collection_of_object_values("printers", @printers) writer.write_collection_of_object_values("services", @services) writer.write_object_value("settings", @settings) writer.write_collection_of_object_values("shares", @shares) writer.write_collection_of_object_values("taskDefinitions", @task_definitions) writer.write_additional_data(@additional_data) end |
#services ⇒ Object
Gets the services property value. The list of available Universal Print service endpoints.
164 165 166 |
# File 'lib/models/print.rb', line 164 def services return @services end |
#services=(value) ⇒ Object
Sets the services property value. The list of available Universal Print service endpoints.
172 173 174 |
# File 'lib/models/print.rb', line 172 def services=(value) @services = value end |
#settings ⇒ Object
Gets the settings property value. Tenant-wide settings for the Universal Print service.
179 180 181 |
# File 'lib/models/print.rb', line 179 def settings return @settings end |
#settings=(value) ⇒ Object
Sets the settings property value. Tenant-wide settings for the Universal Print service.
187 188 189 |
# File 'lib/models/print.rb', line 187 def settings=(value) @settings = value end |
#shares ⇒ Object
Gets the shares property value. The list of printer shares registered in the tenant.
194 195 196 |
# File 'lib/models/print.rb', line 194 def shares return @shares end |
#shares=(value) ⇒ Object
Sets the shares property value. The list of printer shares registered in the tenant.
202 203 204 |
# File 'lib/models/print.rb', line 202 def shares=(value) @shares = value end |
#task_definitions ⇒ Object
Gets the taskDefinitions property value. List of abstract definition for a task that can be triggered when various events occur within Universal Print.
209 210 211 |
# File 'lib/models/print.rb', line 209 def task_definitions return @task_definitions end |
#task_definitions=(value) ⇒ Object
Sets the taskDefinitions property value. List of abstract definition for a task that can be triggered when various events occur within Universal Print.
217 218 219 |
# File 'lib/models/print.rb', line 217 def task_definitions=(value) @task_definitions = value end |