Class: Google::Apis::AdminDirectoryV1::BatchCreatePrintersResponse

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 adding new printers in batch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchCreatePrintersResponse

Returns a new instance of BatchCreatePrintersResponse.



391
392
393
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 391

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

Instance Attribute Details

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

A list of create failures. Printer IDs are not populated, as printer were not created. Corresponds to the JSON property failures



384
385
386
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 384

def failures
  @failures
end

#printersArray<Google::Apis::AdminDirectoryV1::Printer>

A list of successfully created printers with their IDs populated. Corresponds to the JSON property printers



389
390
391
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 389

def printers
  @printers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



396
397
398
399
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 396

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