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.



261
262
263
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 261

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



254
255
256
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 254

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



259
260
261
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 259

def printers
  @printers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



266
267
268
269
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 266

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