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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/people_v1/classes.rb,
generated/google/apis/people_v1/representations.rb,
generated/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.



2287
2288
2289
# File 'generated/google/apis/people_v1/classes.rb', line 2287

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)


2275
2276
2277
# File 'generated/google/apis/people_v1/classes.rb', line 2275

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:



2280
2281
2282
# File 'generated/google/apis/people_v1/classes.rb', line 2280

def people
  @people
end

#total_sizeFixnum

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

Returns:

  • (Fixnum)


2285
2286
2287
# File 'generated/google/apis/people_v1/classes.rb', line 2285

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2292
2293
2294
2295
2296
# File 'generated/google/apis/people_v1/classes.rb', line 2292

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