Class: Google::Apis::PeopleV1::ListConnectionsResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListConnectionsResponse

Returns a new instance of ListConnectionsResponse.



1275
1276
1277
# File 'lib/google/apis/people_v1/classes.rb', line 1275

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

Instance Attribute Details

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

The list of people that the requestor is connected to. Corresponds to the JSON property connections

Returns:



1249
1250
1251
# File 'lib/google/apis/people_v1/classes.rb', line 1249

def connections
  @connections
end

#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)


1255
1256
1257
# File 'lib/google/apis/people_v1/classes.rb', line 1255

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. When the response is paginated, only the last page will contain nextSyncToken. Corresponds to the JSON property nextSyncToken

Returns:

  • (String)


1262
1263
1264
# File 'lib/google/apis/people_v1/classes.rb', line 1262

def next_sync_token
  @next_sync_token
end

#total_itemsFixnum

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

Returns:

  • (Fixnum)


1267
1268
1269
# File 'lib/google/apis/people_v1/classes.rb', line 1267

def total_items
  @total_items
end

#total_peopleFixnum

DEPRECATED (Please use totalItems) The total number of people in the list without pagination. Corresponds to the JSON property totalPeople

Returns:

  • (Fixnum)


1273
1274
1275
# File 'lib/google/apis/people_v1/classes.rb', line 1273

def total_people
  @total_people
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1280
1281
1282
1283
1284
1285
1286
# File 'lib/google/apis/people_v1/classes.rb', line 1280

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