Class: Google::Apis::PeopleV1::ListContactGroupsResponse

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 list contact groups request.

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) ⇒ ListContactGroupsResponse

Returns a new instance of ListContactGroupsResponse



929
930
931
# File 'generated/google/apis/people_v1/classes.rb', line 929

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

Instance Attribute Details

#contact_groupsArray<Google::Apis::PeopleV1::ContactGroup>

The list of contact groups. Members of the contact groups are not populated. Corresponds to the JSON property contactGroups



912
913
914
# File 'generated/google/apis/people_v1/classes.rb', line 912

def contact_groups
  @contact_groups
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)


917
918
919
# File 'generated/google/apis/people_v1/classes.rb', line 917

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)


922
923
924
# File 'generated/google/apis/people_v1/classes.rb', line 922

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)


927
928
929
# File 'generated/google/apis/people_v1/classes.rb', line 927

def total_items
  @total_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



934
935
936
937
938
939
# File 'generated/google/apis/people_v1/classes.rb', line 934

def update!(**args)
  @contact_groups = args[:contact_groups] if args.key?(:contact_groups)
  @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)
end