Class: Google::Apis::AdminDirectoryV1::BatchDeletePrintersResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb

Overview

Response for deleting existing printers in batch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchDeletePrintersResponse

Returns a new instance of BatchDeletePrintersResponse.



447
448
449
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 447

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#failed_printersArray<Google::Apis::AdminDirectoryV1::FailureInfo>

A list of update failures. Corresponds to the JSON property failedPrinters



440
441
442
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 440

def failed_printers
  @failed_printers
end

#printer_idsArray<String>

A list of Printer.id that were successfully deleted. Corresponds to the JSON property printerIds

Returns:

  • (Array<String>)


445
446
447
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 445

def printer_ids
  @printer_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



452
453
454
455
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 452

def update!(**args)
  @failed_printers = args[:failed_printers] if args.key?(:failed_printers)
  @printer_ids = args[:printer_ids] if args.key?(:printer_ids)
end