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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListConnectionsResponse

Returns a new instance of ListConnectionsResponse



1456
1457
1458
# File 'generated/google/apis/people_v1/classes.rb', line 1456

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:



1448
1449
1450
# File 'generated/google/apis/people_v1/classes.rb', line 1448

def connections
  @connections
end

#next_page_tokenString

The token that can be used to retrieve the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1433
1434
1435
# File 'generated/google/apis/people_v1/classes.rb', line 1433

def next_page_token
  @next_page_token
end

#next_sync_tokenString

The token that can be used to retrieve changes since the last request. Corresponds to the JSON property nextSyncToken

Returns:

  • (String)


1443
1444
1445
# File 'generated/google/apis/people_v1/classes.rb', line 1443

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)


1438
1439
1440
# File 'generated/google/apis/people_v1/classes.rb', line 1438

def total_items
  @total_items
end

#total_peopleFixnum

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

Returns:

  • (Fixnum)


1454
1455
1456
# File 'generated/google/apis/people_v1/classes.rb', line 1454

def total_people
  @total_people
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1461
1462
1463
1464
1465
1466
1467
# File 'generated/google/apis/people_v1/classes.rb', line 1461

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