Class: Google::Apis::AdminDirectoryV1::ListPrintersResponse

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 listing printers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListPrintersResponse

Returns a new instance of ListPrintersResponse.



2341
2342
2343
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2341

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

Instance Attribute Details

#next_page_tokenString

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


2332
2333
2334
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2332

def next_page_token
  @next_page_token
end

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

List of printers. If org_unit_id was given in the request, then only printers visible for this OU will be returned. If org_unit_id was given in the request, then all printers will be returned. Corresponds to the JSON property printers



2339
2340
2341
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2339

def printers
  @printers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2346
2347
2348
2349
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2346

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