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.



1260
1261
1262
# File 'lib/google/apis/people_v1/classes.rb', line 1260

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:



1234
1235
1236
# File 'lib/google/apis/people_v1/classes.rb', line 1234

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)


1240
1241
1242
# File 'lib/google/apis/people_v1/classes.rb', line 1240

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)


1247
1248
1249
# File 'lib/google/apis/people_v1/classes.rb', line 1247

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)


1252
1253
1254
# File 'lib/google/apis/people_v1/classes.rb', line 1252

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)


1258
1259
1260
# File 'lib/google/apis/people_v1/classes.rb', line 1258

def total_people
  @total_people
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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