Class: MicrosoftGraph::Models::PrinterCreateOperation
- Inherits:
-
PrintOperation
- Object
- Entity
- PrintOperation
- MicrosoftGraph::Models::PrinterCreateOperation
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/printer_create_operation.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
-
#certificate ⇒ Object
Gets the certificate property value.
-
#certificate=(value) ⇒ Object
Sets the certificate property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new printerCreateOperation and sets the default values.
-
#printer ⇒ Object
Gets the printer property value.
-
#printer=(value) ⇒ Object
Sets the printer property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from PrintOperation
#created_date_time, #created_date_time=, #status, #status=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new printerCreateOperation and sets the default values.
34 35 36 37 |
# File 'lib/models/printer_create_operation.rb', line 34 def initialize() super @odata_type = "#microsoft.graph.printerCreateOperation" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
43 44 45 46 |
# File 'lib/models/printer_create_operation.rb', line 43 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return PrinterCreateOperation.new end |
Instance Method Details
#certificate ⇒ Object
Gets the certificate property value. The signed certificate created during the registration process. Read-only.
19 20 21 |
# File 'lib/models/printer_create_operation.rb', line 19 def certificate return @certificate end |
#certificate=(value) ⇒ Object
Sets the certificate property value. The signed certificate created during the registration process. Read-only.
27 28 29 |
# File 'lib/models/printer_create_operation.rb', line 27 def certificate=(value) @certificate = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
51 52 53 54 55 56 |
# File 'lib/models/printer_create_operation.rb', line 51 def get_field_deserializers() return super.merge({ "certificate" => lambda {|n| @certificate = n.get_string_value() }, "printer" => lambda {|n| @printer = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Printer.create_from_discriminator_value(pn) }) }, }) end |
#printer ⇒ Object
Gets the printer property value. The created printer entity. Read-only.
61 62 63 |
# File 'lib/models/printer_create_operation.rb', line 61 def printer return @printer end |
#printer=(value) ⇒ Object
Sets the printer property value. The created printer entity. Read-only.
69 70 71 |
# File 'lib/models/printer_create_operation.rb', line 69 def printer=(value) @printer = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
77 78 79 80 81 82 |
# File 'lib/models/printer_create_operation.rb', line 77 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("certificate", @certificate) writer.write_object_value("printer", @printer) end |