Class: Google::Apis::AdminDirectoryV1::BatchCreatePrintersResponse
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::BatchCreatePrintersResponse
- 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
-
#failures ⇒ Array<Google::Apis::AdminDirectoryV1::FailureInfo>
A list of create failures.
-
#printers ⇒ Array<Google::Apis::AdminDirectoryV1::Printer>
A list of successfully created printers with their IDs populated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchCreatePrintersResponse
constructor
A new instance of BatchCreatePrintersResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#failures ⇒ Array<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 |
#printers ⇒ Array<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 |