Class: Google::Apis::PeopleV1::ListConnectionsResponse
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::ListConnectionsResponse
- 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 the authenticated user's connections.
Instance Attribute Summary collapse
-
#connections ⇒ Array<Google::Apis::PeopleV1::Person>
The list of people that the requestor is connected to.
-
#next_page_token ⇒ String
A token, which can be sent as
page_token
to retrieve the next page. -
#next_sync_token ⇒ String
A token, which can be sent as
sync_token
to retrieve changes since the last request. -
#total_items ⇒ Fixnum
The total number of items in the list without pagination.
-
#total_people ⇒ Fixnum
DEPRECATED (Please use totalItems) The total number of people in the list without pagination.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListConnectionsResponse
constructor
A new instance of ListConnectionsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListConnectionsResponse
Returns a new instance of ListConnectionsResponse.
1276 1277 1278 |
# File 'lib/google/apis/people_v1/classes.rb', line 1276 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connections ⇒ Array<Google::Apis::PeopleV1::Person>
The list of people that the requestor is connected to.
Corresponds to the JSON property connections
1250 1251 1252 |
# File 'lib/google/apis/people_v1/classes.rb', line 1250 def connections @connections end |
#next_page_token ⇒ String
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
1256 1257 1258 |
# File 'lib/google/apis/people_v1/classes.rb', line 1256 def next_page_token @next_page_token end |
#next_sync_token ⇒ String
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. When
the response is paginated, only the last page will contain nextSyncToken
.
Corresponds to the JSON property nextSyncToken
1263 1264 1265 |
# File 'lib/google/apis/people_v1/classes.rb', line 1263 def next_sync_token @next_sync_token end |
#total_items ⇒ Fixnum
The total number of items in the list without pagination.
Corresponds to the JSON property totalItems
1268 1269 1270 |
# File 'lib/google/apis/people_v1/classes.rb', line 1268 def total_items @total_items end |
#total_people ⇒ Fixnum
DEPRECATED (Please use totalItems) The total number of people in the list
without pagination.
Corresponds to the JSON property totalPeople
1274 1275 1276 |
# File 'lib/google/apis/people_v1/classes.rb', line 1274 def total_people @total_people end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1281 1282 1283 1284 1285 1286 1287 |
# File 'lib/google/apis/people_v1/classes.rb', line 1281 def update!(**args) @connections = args[:connections] if args.key?(:connections) @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) @total_items = args[:total_items] if args.key?(:total_items) @total_people = args[:total_people] if args.key?(:total_people) end |