Class: Google::Apis::AdminDirectoryV1::BatchCreatePrintersRequest

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

Request for adding new printers in batch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchCreatePrintersRequest

Returns a new instance of BatchCreatePrintersRequest.



366
367
368
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 366

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

Instance Attribute Details

#requestsArray<Google::Apis::AdminDirectoryV1::CreatePrinterRequest>

A list of Printers to be created. Max 50 at a time. Corresponds to the JSON property requests



364
365
366
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 364

def requests
  @requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



371
372
373
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 371

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