Class: Google::Apis::PeopleV1::ListDirectoryPeopleResponse

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 the authenticated user's domain directory.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListDirectoryPeopleResponse

Returns a new instance of ListDirectoryPeopleResponse.



1118
1119
1120
# File 'generated/google/apis/people_v1/classes.rb', line 1118

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)


1105
1106
1107
# File 'generated/google/apis/people_v1/classes.rb', line 1105

def next_page_token
  @next_page_token
end

#next_sync_tokenString

A token, which can be sent as sync_token to retrieve changes since the last request. Request must set request_sync_token to return the sync token. Corresponds to the JSON property nextSyncToken

Returns:

  • (String)


1111
1112
1113
# File 'generated/google/apis/people_v1/classes.rb', line 1111

def next_sync_token
  @next_sync_token
end

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

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

Returns:



1116
1117
1118
# File 'generated/google/apis/people_v1/classes.rb', line 1116

def people
  @people
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1123
1124
1125
1126
1127
# File 'generated/google/apis/people_v1/classes.rb', line 1123

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