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.



305
306
307
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 305

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



298
299
300
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 298

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>)


303
304
305
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 303

def printer_ids
  @printer_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



310
311
312
313
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 310

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