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.
306 307 308 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 306 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
299 300 301 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 299 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
304 305 306 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 304 def printers @printers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
311 312 313 314 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 311 def update!(**args) @failures = args[:failures] if args.key?(:failures) @printers = args[:printers] if args.key?(:printers) end |