Class: MicrosoftGraph::Models::PrinterCapabilities

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/printer_capabilities.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new printerCapabilities and sets the default values.



154
155
156
# File 'lib/models/printer_capabilities.rb', line 154

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

Raises:

  • (StandardError)


192
193
194
195
# File 'lib/models/printer_capabilities.rb', line 192

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return PrinterCapabilities.new
end

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.



94
95
96
# File 'lib/models/printer_capabilities.rb', line 94

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.



102
103
104
# File 'lib/models/printer_capabilities.rb', line 102

def additional_data=(value)
    @additional_data = value
end

#bottom_marginsObject

Gets the bottomMargins property value. A list of supported bottom margins(in microns) for the printer.



109
110
111
# File 'lib/models/printer_capabilities.rb', line 109

def bottom_margins
    return @bottom_margins
end

#bottom_margins=(value) ⇒ Object

Sets the bottomMargins property value. A list of supported bottom margins(in microns) for the printer.



117
118
119
# File 'lib/models/printer_capabilities.rb', line 117

def bottom_margins=(value)
    @bottom_margins = value
end

#collationObject

Gets the collation property value. True if the printer supports collating when printing muliple copies of a multi-page document; false otherwise.



124
125
126
# File 'lib/models/printer_capabilities.rb', line 124

def collation
    return @collation
end

#collation=(value) ⇒ Object

Sets the collation property value. True if the printer supports collating when printing muliple copies of a multi-page document; false otherwise.



132
133
134
# File 'lib/models/printer_capabilities.rb', line 132

def collation=(value)
    @collation = value
end

#color_modesObject

Gets the colorModes property value. The color modes supported by the printer. Valid values are described in the following table.



139
140
141
# File 'lib/models/printer_capabilities.rb', line 139

def color_modes
    return @color_modes
end

#color_modes=(value) ⇒ Object

Sets the colorModes property value. The color modes supported by the printer. Valid values are described in the following table.



147
148
149
# File 'lib/models/printer_capabilities.rb', line 147

def color_modes=(value)
    @color_modes = value
end

#content_typesObject

Gets the contentTypes property value. A list of supported content (MIME) types that the printer supports. It is not guaranteed that the Universal Print service supports printing all of these MIME types.



161
162
163
# File 'lib/models/printer_capabilities.rb', line 161

def content_types
    return @content_types
end

#content_types=(value) ⇒ Object

Sets the contentTypes property value. A list of supported content (MIME) types that the printer supports. It is not guaranteed that the Universal Print service supports printing all of these MIME types.



169
170
171
# File 'lib/models/printer_capabilities.rb', line 169

def content_types=(value)
    @content_types = value
end

#copies_per_jobObject

Gets the copiesPerJob property value. The range of copies per job supported by the printer.



176
177
178
# File 'lib/models/printer_capabilities.rb', line 176

def copies_per_job
    return @copies_per_job
end

#copies_per_job=(value) ⇒ Object

Sets the copiesPerJob property value. The range of copies per job supported by the printer.



184
185
186
# File 'lib/models/printer_capabilities.rb', line 184

def copies_per_job=(value)
    @copies_per_job = value
end

#dpisObject

Gets the dpis property value. The list of print resolutions in DPI that are supported by the printer.



200
201
202
# File 'lib/models/printer_capabilities.rb', line 200

def dpis
    return @dpis
end

#dpis=(value) ⇒ Object

Sets the dpis property value. The list of print resolutions in DPI that are supported by the printer.



208
209
210
# File 'lib/models/printer_capabilities.rb', line 208

def dpis=(value)
    @dpis = value
end

#duplex_modesObject

Gets the duplexModes property value. The list of duplex modes that are supported by the printer. Valid values are described in the following table.



215
216
217
# File 'lib/models/printer_capabilities.rb', line 215

def duplex_modes
    return @duplex_modes
end

#duplex_modes=(value) ⇒ Object

Sets the duplexModes property value. The list of duplex modes that are supported by the printer. Valid values are described in the following table.



223
224
225
# File 'lib/models/printer_capabilities.rb', line 223

def duplex_modes=(value)
    @duplex_modes = value
end

#feed_orientationsObject

Gets the feedOrientations property value. The list of feed orientations that are supported by the printer.



230
231
232
# File 'lib/models/printer_capabilities.rb', line 230

def feed_orientations
    return @feed_orientations
end

#feed_orientations=(value) ⇒ Object

Sets the feedOrientations property value. The list of feed orientations that are supported by the printer.



238
239
240
# File 'lib/models/printer_capabilities.rb', line 238

def feed_orientations=(value)
    @feed_orientations = value
end

#finishingsObject

Gets the finishings property value. Finishing processes the printer supports for a printed document.



245
246
247
# File 'lib/models/printer_capabilities.rb', line 245

def finishings
    return @finishings
end

#finishings=(value) ⇒ Object

Sets the finishings property value. Finishing processes the printer supports for a printed document.



253
254
255
# File 'lib/models/printer_capabilities.rb', line 253

def finishings=(value)
    @finishings = value
end

#get_field_deserializersObject

The deserialization information for the current model



260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/models/printer_capabilities.rb', line 260

def get_field_deserializers()
    return {
        "bottomMargins" => lambda {|n| @bottom_margins = n.get_collection_of_primitive_values(Integer) },
        "collation" => lambda {|n| @collation = n.get_boolean_value() },
        "colorModes" => lambda {|n| @color_modes = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintColorMode.create_from_discriminator_value(pn) }) },
        "contentTypes" => lambda {|n| @content_types = n.get_collection_of_primitive_values(String) },
        "copiesPerJob" => lambda {|n| @copies_per_job = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IntegerRange.create_from_discriminator_value(pn) }) },
        "dpis" => lambda {|n| @dpis = n.get_collection_of_primitive_values(Integer) },
        "duplexModes" => lambda {|n| @duplex_modes = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintDuplexMode.create_from_discriminator_value(pn) }) },
        "feedOrientations" => lambda {|n| @feed_orientations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrinterFeedOrientation.create_from_discriminator_value(pn) }) },
        "finishings" => lambda {|n| @finishings = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintFinishing.create_from_discriminator_value(pn) }) },
        "inputBins" => lambda {|n| @input_bins = n.get_collection_of_primitive_values(String) },
        "isColorPrintingSupported" => lambda {|n| @is_color_printing_supported = n.get_boolean_value() },
        "isPageRangeSupported" => lambda {|n| @is_page_range_supported = n.get_boolean_value() },
        "leftMargins" => lambda {|n| @left_margins = n.get_collection_of_primitive_values(Integer) },
        "mediaColors" => lambda {|n| @media_colors = n.get_collection_of_primitive_values(String) },
        "mediaSizes" => lambda {|n| @media_sizes = n.get_collection_of_primitive_values(String) },
        "mediaTypes" => lambda {|n| @media_types = n.get_collection_of_primitive_values(String) },
        "multipageLayouts" => lambda {|n| @multipage_layouts = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintMultipageLayout.create_from_discriminator_value(pn) }) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "orientations" => lambda {|n| @orientations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintOrientation.create_from_discriminator_value(pn) }) },
        "outputBins" => lambda {|n| @output_bins = n.get_collection_of_primitive_values(String) },
        "pagesPerSheet" => lambda {|n| @pages_per_sheet = n.get_collection_of_primitive_values(Integer) },
        "qualities" => lambda {|n| @qualities = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintQuality.create_from_discriminator_value(pn) }) },
        "rightMargins" => lambda {|n| @right_margins = n.get_collection_of_primitive_values(Integer) },
        "scalings" => lambda {|n| @scalings = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintScaling.create_from_discriminator_value(pn) }) },
        "supportsFitPdfToPage" => lambda {|n| @supports_fit_pdf_to_page = n.get_boolean_value() },
        "topMargins" => lambda {|n| @top_margins = n.get_collection_of_primitive_values(Integer) },
    }
end

#input_binsObject

Gets the inputBins property value. Supported input bins for the printer.



294
295
296
# File 'lib/models/printer_capabilities.rb', line 294

def input_bins
    return @input_bins
end

#input_bins=(value) ⇒ Object

Sets the inputBins property value. Supported input bins for the printer.



302
303
304
# File 'lib/models/printer_capabilities.rb', line 302

def input_bins=(value)
    @input_bins = value
end

#is_color_printing_supportedObject

Gets the isColorPrintingSupported property value. True if color printing is supported by the printer; false otherwise. Read-only.



309
310
311
# File 'lib/models/printer_capabilities.rb', line 309

def is_color_printing_supported
    return @is_color_printing_supported
end

#is_color_printing_supported=(value) ⇒ Object

Sets the isColorPrintingSupported property value. True if color printing is supported by the printer; false otherwise. Read-only.



317
318
319
# File 'lib/models/printer_capabilities.rb', line 317

def is_color_printing_supported=(value)
    @is_color_printing_supported = value
end

#is_page_range_supportedObject

Gets the isPageRangeSupported property value. True if the printer supports printing by page ranges; false otherwise.



324
325
326
# File 'lib/models/printer_capabilities.rb', line 324

def is_page_range_supported
    return @is_page_range_supported
end

#is_page_range_supported=(value) ⇒ Object

Sets the isPageRangeSupported property value. True if the printer supports printing by page ranges; false otherwise.



332
333
334
# File 'lib/models/printer_capabilities.rb', line 332

def is_page_range_supported=(value)
    @is_page_range_supported = value
end

#left_marginsObject

Gets the leftMargins property value. A list of supported left margins(in microns) for the printer.



339
340
341
# File 'lib/models/printer_capabilities.rb', line 339

def left_margins
    return @left_margins
end

#left_margins=(value) ⇒ Object

Sets the leftMargins property value. A list of supported left margins(in microns) for the printer.



347
348
349
# File 'lib/models/printer_capabilities.rb', line 347

def left_margins=(value)
    @left_margins = value
end

#media_colorsObject

Gets the mediaColors property value. The media (i.e., paper) colors supported by the printer.



354
355
356
# File 'lib/models/printer_capabilities.rb', line 354

def media_colors
    return @media_colors
end

#media_colors=(value) ⇒ Object

Sets the mediaColors property value. The media (i.e., paper) colors supported by the printer.



362
363
364
# File 'lib/models/printer_capabilities.rb', line 362

def media_colors=(value)
    @media_colors = value
end

#media_sizesObject

Gets the mediaSizes property value. The media sizes supported by the printer. Supports standard size names for ISO and ANSI media sizes. Valid values are in the following table.



369
370
371
# File 'lib/models/printer_capabilities.rb', line 369

def media_sizes
    return @media_sizes
end

#media_sizes=(value) ⇒ Object

Sets the mediaSizes property value. The media sizes supported by the printer. Supports standard size names for ISO and ANSI media sizes. Valid values are in the following table.



377
378
379
# File 'lib/models/printer_capabilities.rb', line 377

def media_sizes=(value)
    @media_sizes = value
end

#media_typesObject

Gets the mediaTypes property value. The media types supported by the printer.



384
385
386
# File 'lib/models/printer_capabilities.rb', line 384

def media_types
    return @media_types
end

#media_types=(value) ⇒ Object

Sets the mediaTypes property value. The media types supported by the printer.



392
393
394
# File 'lib/models/printer_capabilities.rb', line 392

def media_types=(value)
    @media_types = value
end

#multipage_layoutsObject

Gets the multipageLayouts property value. The presentation directions supported by the printer. Supported values are described in the following table.



399
400
401
# File 'lib/models/printer_capabilities.rb', line 399

def multipage_layouts
    return @multipage_layouts
end

#multipage_layouts=(value) ⇒ Object

Sets the multipageLayouts property value. The presentation directions supported by the printer. Supported values are described in the following table.



407
408
409
# File 'lib/models/printer_capabilities.rb', line 407

def multipage_layouts=(value)
    @multipage_layouts = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property



414
415
416
# File 'lib/models/printer_capabilities.rb', line 414

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property



422
423
424
# File 'lib/models/printer_capabilities.rb', line 422

def odata_type=(value)
    @odata_type = value
end

#orientationsObject

Gets the orientations property value. The print orientations supported by the printer. Valid values are described in the following table.



429
430
431
# File 'lib/models/printer_capabilities.rb', line 429

def orientations
    return @orientations
end

#orientations=(value) ⇒ Object

Sets the orientations property value. The print orientations supported by the printer. Valid values are described in the following table.



437
438
439
# File 'lib/models/printer_capabilities.rb', line 437

def orientations=(value)
    @orientations = value
end

#output_binsObject

Gets the outputBins property value. The printer’s supported output bins (trays).



444
445
446
# File 'lib/models/printer_capabilities.rb', line 444

def output_bins
    return @output_bins
end

#output_bins=(value) ⇒ Object

Sets the outputBins property value. The printer’s supported output bins (trays).



452
453
454
# File 'lib/models/printer_capabilities.rb', line 452

def output_bins=(value)
    @output_bins = value
end

#pages_per_sheetObject

Gets the pagesPerSheet property value. Supported number of Input Pages to impose upon a single Impression.



459
460
461
# File 'lib/models/printer_capabilities.rb', line 459

def pages_per_sheet
    return @pages_per_sheet
end

#pages_per_sheet=(value) ⇒ Object

Sets the pagesPerSheet property value. Supported number of Input Pages to impose upon a single Impression.



467
468
469
# File 'lib/models/printer_capabilities.rb', line 467

def pages_per_sheet=(value)
    @pages_per_sheet = value
end

#qualitiesObject

Gets the qualities property value. The print qualities supported by the printer.



474
475
476
# File 'lib/models/printer_capabilities.rb', line 474

def qualities
    return @qualities
end

#qualities=(value) ⇒ Object

Sets the qualities property value. The print qualities supported by the printer.



482
483
484
# File 'lib/models/printer_capabilities.rb', line 482

def qualities=(value)
    @qualities = value
end

#right_marginsObject

Gets the rightMargins property value. A list of supported right margins(in microns) for the printer.



489
490
491
# File 'lib/models/printer_capabilities.rb', line 489

def right_margins
    return @right_margins
end

#right_margins=(value) ⇒ Object

Sets the rightMargins property value. A list of supported right margins(in microns) for the printer.



497
498
499
# File 'lib/models/printer_capabilities.rb', line 497

def right_margins=(value)
    @right_margins = value
end

#scalingsObject

Gets the scalings property value. Supported print scalings.



504
505
506
# File 'lib/models/printer_capabilities.rb', line 504

def scalings
    return @scalings
end

#scalings=(value) ⇒ Object

Sets the scalings property value. Supported print scalings.



512
513
514
# File 'lib/models/printer_capabilities.rb', line 512

def scalings=(value)
    @scalings = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Raises:

  • (StandardError)


520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
# File 'lib/models/printer_capabilities.rb', line 520

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_collection_of_primitive_values("bottomMargins", @bottom_margins)
    writer.write_boolean_value("collation", @collation)
    writer.write_collection_of_object_values("colorModes", @color_modes)
    writer.write_collection_of_primitive_values("contentTypes", @content_types)
    writer.write_object_value("copiesPerJob", @copies_per_job)
    writer.write_collection_of_primitive_values("dpis", @dpis)
    writer.write_collection_of_object_values("duplexModes", @duplex_modes)
    writer.write_collection_of_object_values("feedOrientations", @feed_orientations)
    writer.write_collection_of_object_values("finishings", @finishings)
    writer.write_collection_of_primitive_values("inputBins", @input_bins)
    writer.write_boolean_value("isColorPrintingSupported", @is_color_printing_supported)
    writer.write_boolean_value("isPageRangeSupported", @is_page_range_supported)
    writer.write_collection_of_primitive_values("leftMargins", @left_margins)
    writer.write_collection_of_primitive_values("mediaColors", @media_colors)
    writer.write_collection_of_primitive_values("mediaSizes", @media_sizes)
    writer.write_collection_of_primitive_values("mediaTypes", @media_types)
    writer.write_collection_of_object_values("multipageLayouts", @multipage_layouts)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_collection_of_object_values("orientations", @orientations)
    writer.write_collection_of_primitive_values("outputBins", @output_bins)
    writer.write_collection_of_primitive_values("pagesPerSheet", @pages_per_sheet)
    writer.write_collection_of_object_values("qualities", @qualities)
    writer.write_collection_of_primitive_values("rightMargins", @right_margins)
    writer.write_collection_of_object_values("scalings", @scalings)
    writer.write_boolean_value("supportsFitPdfToPage", @supports_fit_pdf_to_page)
    writer.write_collection_of_primitive_values("topMargins", @top_margins)
    writer.write_additional_data(@additional_data)
end

#supports_fit_pdf_to_pageObject

Gets the supportsFitPdfToPage property value. True if the printer supports scaling PDF pages to match the print media size; false otherwise.



554
555
556
# File 'lib/models/printer_capabilities.rb', line 554

def supports_fit_pdf_to_page
    return @supports_fit_pdf_to_page
end

#supports_fit_pdf_to_page=(value) ⇒ Object

Sets the supportsFitPdfToPage property value. True if the printer supports scaling PDF pages to match the print media size; false otherwise.



562
563
564
# File 'lib/models/printer_capabilities.rb', line 562

def supports_fit_pdf_to_page=(value)
    @supports_fit_pdf_to_page = value
end

#top_marginsObject

Gets the topMargins property value. A list of supported top margins(in microns) for the printer.



569
570
571
# File 'lib/models/printer_capabilities.rb', line 569

def top_margins
    return @top_margins
end

#top_margins=(value) ⇒ Object

Sets the topMargins property value. A list of supported top margins(in microns) for the printer.



577
578
579
# File 'lib/models/printer_capabilities.rb', line 577

def top_margins=(value)
    @top_margins = value
end