Class: Google::Apis::PeopleV1::SearchDirectoryPeopleResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/people_v1/classes.rb,
lib/google/apis/people_v1/representations.rb,
lib/google/apis/people_v1/representations.rb

Overview

The response to a request for people in the authenticated user's domain directory that match the specified query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchDirectoryPeopleResponse

Returns a new instance of SearchDirectoryPeopleResponse.



2538
2539
2540
# File 'lib/google/apis/people_v1/classes.rb', line 2538

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)


2526
2527
2528
# File 'lib/google/apis/people_v1/classes.rb', line 2526

def next_page_token
  @next_page_token
end

#peopleArray<Google::Apis::PeopleV1::Person>

The list of people in the domain directory that match the query. Corresponds to the JSON property people

Returns:



2531
2532
2533
# File 'lib/google/apis/people_v1/classes.rb', line 2531

def people
  @people
end

#total_sizeFixnum

The total number of items in the list without pagination. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


2536
2537
2538
# File 'lib/google/apis/people_v1/classes.rb', line 2536

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2543
2544
2545
2546
2547
# File 'lib/google/apis/people_v1/classes.rb', line 2543

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