Skip to content

Commit 07ac7de

Browse files
feat: Automated regeneration of people v1 client (#5803)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2021-07-16 04:00:25,943 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-people-v1 nothing to commit, working tree clean 2021-07-16 04:00:26,018 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace -e USER_GROUP=1000:1000 --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth people v1 DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace -e USER_GROUP=1000:1000 --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth people v1 git clean -df bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Fetching rake 13.0.6 Installing rake 13.0.6 Fetching minitest 5.14.4 Fetching concurrent-ruby 1.1.9 Fetching public_suffix 4.0.6 Fetching zeitwerk 2.4.2 Installing zeitwerk 2.4.2 Installing minitest 5.14.4 Installing public_suffix 4.0.6 Installing concurrent-ruby 1.1.9 Fetching ast 2.4.2 Installing ast 2.4.2 Using bundler 2.2.17 Fetching byebug 11.1.3 Fetching coderay 1.1.3 Installing byebug 11.1.3 with native extensions Installing coderay 1.1.3 Fetching json 2.5.1 Installing json 2.5.1 with native extensions Fetching docile 1.4.0 Installing docile 1.4.0 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Using sync 0.5.0 Fetching thor 1.1.0 Installing thor 1.1.0 Fetching rexml 3.2.5 Fetching declarative 0.0.20 Installing rexml 3.2.5 Installing declarative 0.0.20 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Fetching faraday-em_http 1.0.0 Installing fakefs 0.20.1 Installing faraday-em_http 1.0.0 Fetching faraday-em_synchrony 1.0.0 Fetching faraday-excon 1.1.0 Installing faraday-em_synchrony 1.0.0 Installing faraday-excon 1.1.0 Fetching faraday-httpclient 1.0.1 Fetching faraday-net_http 1.0.1 Installing faraday-net_http 1.0.1 Installing faraday-httpclient 1.0.1 Fetching faraday-patron 1.0.0 Fetching faraday-net_http_persistent 1.2.0 Installing faraday-patron 1.0.0 Installing faraday-net_http_persistent 1.2.0 Fetching multipart-post 2.1.1 Fetching ruby2_keywords 0.0.5 Installing ruby2_keywords 0.0.5 Installing multipart-post 2.1.1 Fetching gems 1.2.0 Fetching github-markup 1.7.0 Installing gems 1.2.0 Installing github-markup 1.7.0 Fetching jwt 2.2.3 Installing jwt 2.2.3 Fetching memoist 0.16.2 Fetching multi_json 1.15.0 Installing memoist 0.16.2 Installing multi_json 1.15.0 Fetching os 0.9.6 Fetching httpclient 2.8.3 Installing os 0.9.6 Fetching mini_mime 1.1.0 Installing mini_mime 1.1.0 Installing httpclient 2.8.3 Fetching trailblazer-option 0.1.1 Installing trailblazer-option 0.1.1 Fetching uber 0.1.0 Fetching retriable 3.1.2 Installing uber 0.1.0 Installing retriable 3.1.2 Fetching hashdiff 1.0.1 Fetching webrick 1.7.0 Installing hashdiff 1.0.1 Installing webrick 1.7.0 Fetching mime-types-data 3.2021.0704 Fetching multi_xml 0.6.0 Fetching rspec-support 3.10.2 Installing multi_xml 0.6.0 Installing mime-types-data 3.2021.0704 Installing rspec-support 3.10.2 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching method_source 1.0.0 Fetching opencensus 0.5.0 Fetching parallel 1.20.1 Installing method_source 1.0.0 Fetching powerpack 0.1.3 Installing parallel 1.20.1 Installing opencensus 0.5.0 Fetching yard 0.9.26 Installing powerpack 0.1.3 Installing yard 0.9.26 Fetching rainbow 2.2.2 Fetching redcarpet 3.5.1 Installing rainbow 2.2.2 with native extensions Installing redcarpet 3.5.1 with native extensions Fetching redis 3.3.5 Fetching rmail 1.1.4 Installing redis 3.3.5 Installing rmail 1.1.4 Fetching ruby-progressbar 1.11.0 Installing ruby-progressbar 1.11.0 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching parser 2.7.2.0 Fetching addressable 2.8.0 Fetching i18n 1.8.10 Installing i18n 1.8.10 Installing addressable 2.8.0 Installing parser 2.7.2.0 Fetching tzinfo 2.0.4 Fetching tins 1.29.1 Installing tzinfo 2.0.4 Installing tins 1.29.1 Fetching crack 0.4.5 Fetching faraday 1.5.1 Installing crack 0.4.5 Fetching google-id-token 1.4.2 Installing faraday 1.5.1 Installing google-id-token 1.4.2 Fetching representable 3.1.1 Installing representable 3.1.1 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching mime-types 3.3.1 Fetching rspec-core 3.10.1 Installing mime-types 3.3.1 Installing rspec-core 3.10.1 Fetching rspec-expectations 3.10.1 Fetching rspec-mocks 3.10.2 Installing rspec-expectations 3.10.1 Installing rspec-mocks 3.10.2 Fetching pry 0.13.1 Fetching simplecov 0.16.1 Fetching launchy 2.5.0 Installing simplecov 0.16.1 Installing launchy 2.5.0 Installing pry 0.13.1 Fetching rubocop 0.49.1 Fetching activesupport 6.1.4 Installing rubocop 0.49.1 Installing activesupport 6.1.4 Fetching webmock 2.3.2 Installing webmock 2.3.2 Fetching signet 0.15.0 Installing signet 0.15.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching pry-doc 0.13.5 Fetching googleauth 0.16.2 Fetching coveralls 0.8.23 Installing googleauth 0.16.2 Installing coveralls 0.8.23 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching google-apis-core 0.4.0 Installing google-apis-core 0.4.0 Installing pry-doc 0.13.5 Fetching google-apis-discovery_v1 0.6.0 Installing google-apis-discovery_v1 0.6.0 Using google-apis-generator 0.4.0 from source at `.` and installing its executables Bundle complete! 25 Gemfile dependencies, 88 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen /workspace/generated --api=people.v1 --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check Loading people, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/people.v1.json conflict google-apis-people_v1/lib/google/apis/people_v1/classes.rb <ople_v1/classes.rb? (enter "h" for help) [Ynaqdhm] a force google-apis-people_v1/lib/google/apis/people_v1/classes.rb conflict google-apis-people_v1/lib/google/apis/people_v1/service.rb force google-apis-people_v1/lib/google/apis/people_v1/service.rb conflict google-apis-people_v1/lib/google/apis/people_v1/gem_version.rb force google-apis-people_v1/lib/google/apis/people_v1/gem_version.rb conflict google-apis-people_v1/CHANGELOG.md force google-apis-people_v1/CHANGELOG.md Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Using rake 13.0.6 Using public_suffix 4.0.6 Using bundler 2.2.17 Using declarative 0.0.20 Using diff-lcs 1.4.4 Using faraday-em_http 1.0.0 Using faraday-em_synchrony 1.0.0 Using faraday-excon 1.1.0 Using faraday-httpclient 1.0.1 Using faraday-net_http 1.0.1 Using faraday-net_http_persistent 1.2.0 Using faraday-patron 1.0.0 Using multipart-post 2.1.1 Using ruby2_keywords 0.0.5 Using jwt 2.2.3 Using memoist 0.16.2 Using multi_json 1.15.0 Fetching os 1.1.1 Using httpclient 2.8.3 Using mini_mime 1.1.0 Using trailblazer-option 0.1.1 Using uber 0.1.0 Using retriable 3.1.2 Using rexml 3.2.5 Using webrick 1.7.0 Using opencensus 0.5.0 Using redcarpet 3.5.1 Using rspec-support 3.10.2 Using yard 0.9.26 Using addressable 2.8.0 Using faraday 1.5.1 Using representable 3.1.1 Using signet 0.15.0 Using rspec-core 3.10.1 Using rspec-expectations 3.10.1 Using rspec-mocks 3.10.2 Using rspec 3.10.0 Installing os 1.1.1 Using googleauth 0.16.2 Using google-apis-core 0.4.0 Using google-apis-people_v1 0.16.0 from source at `.` Bundle complete! 8 Gemfile dependencies, 40 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. /root/.rbenv/versions/2.6.7/bin/ruby -I/root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/lib:/root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/rspec-support-3.10.2/lib /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb Google::Apis::PeopleV1 should load Finished in 0.3343 seconds (files took 0.09624 seconds to load) 1 example, 0 failures Files: 4 Modules: 3 ( 1 undocumented) Classes: 73 ( 0 undocumented) Constants: 16 ( 0 undocumented) Attributes: 150 ( 0 undocumented) Methods: 169 ( 0 undocumented) 99.76% documented google-apis-people_v1 0.16.0 built to pkg/google-apis-people_v1-0.16.0.gem. identical /workspace/api_names_out.yaml chown -R 1000:1000 /workspace/generated 2021-07-16 04:00:54,501 synthtool [DEBUG] > Wrote metadata to generated/google-apis-people_v1/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google-apis-people_v1/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/0c07da54-e214-4319-b7e0-d829f5496bf7/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
1 parent f5eaefe commit 07ac7de

File tree

5 files changed

+80
-80
lines changed

5 files changed

+80
-80
lines changed

generated/google-apis-people_v1/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Release history for google-apis-people_v1
22

3-
### v0.16.0 (2021-07-14)
3+
### v0.16.0 (2021-07-16)
44

5-
* Regenerated from discovery document revision 20210712
5+
* Regenerated from discovery document revision 20210714
66

77
### v0.15.0 (2021-06-29)
88

generated/google-apis-people_v1/lib/google/apis/people_v1/classes.rb

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,12 +1934,9 @@ class Person
19341934
# @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
19351935
attr_accessor :cover_photos
19361936

1937-
# The person's email addresses. For [`connections.list`](/people/api/rest/v1/
1938-
# people.connections/list), [`otherContacts.list`](/people/api/rest/v1/
1939-
# otherContacts/list), and [`people.listDirectoryPeople`](/people/api/rest/v1/
1940-
# people/listDirectoryPeople) the number of email addresses is limited to 100.
1941-
# If a Person has more email addresses the entire set can be obtained by calling
1942-
# ['people.get'](/people/api/rest/v1/people/get).
1937+
# The person's email addresses. For `people.connections.list` and `otherContacts.
1938+
# list` the number of email addresses is limited to 100. If a Person has more
1939+
# email addresses the entire set can be obtained by calling GetPeople.
19431940
# Corresponds to the JSON property `emailAddresses`
19441941
# @return [Array<Google::Apis::PeopleV1::EmailAddress>]
19451942
attr_accessor :email_addresses
@@ -2025,12 +2022,9 @@ class Person
20252022
# @return [Array<Google::Apis::PeopleV1::Organization>]
20262023
attr_accessor :organizations
20272024

2028-
# The person's phone numbers. For [`connections.list`](/people/api/rest/v1/
2029-
# people.connections/list), [`otherContacts.list`](/people/api/rest/v1/
2030-
# otherContacts/list), and [`people.listDirectoryPeople`](/people/api/rest/v1/
2031-
# people/listDirectoryPeople) the number of phone numbers is limited to 100. If
2032-
# a Person has more phone numbers the entire set can be obtained by calling ['
2033-
# people.get'](/people/api/rest/v1/people/get).
2025+
# The person's phone numbers. For `people.connections.list` and `otherContacts.
2026+
# list` the number of phone numbers is limited to 100. If a Person has more
2027+
# phone numbers the entire set can be obtained by calling GetPeople.
20342028
# Corresponds to the JSON property `phoneNumbers`
20352029
# @return [Array<Google::Apis::PeopleV1::PhoneNumber>]
20362030
attr_accessor :phone_numbers
@@ -2145,10 +2139,8 @@ def update!(**args)
21452139
class PersonMetadata
21462140
include Google::Apis::Core::Hashable
21472141

2148-
# Output only. True if the person resource has been deleted. Populated only for [
2149-
# `connections.list`](/people/api/rest/v1/people.connections/list) and [`
2150-
# otherContacts.list`](/people/api/rest/v1/otherContacts/list) requests that
2151-
# include a sync token.
2142+
# Output only. True if the person resource has been deleted. Populated only for `
2143+
# people.connections.list` and `otherContacts.list` sync requests.
21522144
# Corresponds to the JSON property `deleted`
21532145
# @return [Boolean]
21542146
attr_accessor :deleted
@@ -2166,10 +2158,9 @@ class PersonMetadata
21662158
attr_accessor :object_type
21672159

21682160
# Output only. Any former resource names this person has had. Populated only for
2169-
# [`connections.list`](/people/api/rest/v1/people.connections/list) requests
2170-
# that include a sync token. The resource name may change when adding or
2171-
# removing fields that link a contact and profile such as a verified email,
2172-
# verified phone number, or profile URL.
2161+
# `people.connections.list` requests that include a sync token. The resource
2162+
# name may change when adding or removing fields that link a contact and profile
2163+
# such as a verified email, verified phone number, or profile URL.
21732164
# Corresponds to the JSON property `previousResourceNames`
21742165
# @return [Array<String>]
21752166
attr_accessor :previous_resource_names

generated/google-apis-people_v1/lib/google/apis/people_v1/gem_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module PeopleV1
2222
GENERATOR_VERSION = "0.4.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20210712"
25+
REVISION = "20210714"
2626
end
2727
end
2828
end

generated/google-apis-people_v1/lib/google/apis/people_v1/service.rb

Lines changed: 65 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -352,37 +352,44 @@ def copy_other_contact_to_my_contacts_group(resource_name, copy_other_contact_to
352352
end
353353

354354
# List all "Other contacts", that is contacts that are not in a contact group. "
355-
# Other contacts" are typically auto created contacts from interactions.
355+
# Other contacts" are typically auto created contacts from interactions. Sync
356+
# tokens expire 7 days after the full sync. A request with an expired sync token
357+
# will result in a 410 error. In the case of such an error clients should make a
358+
# full sync request without a `sync_token`. The first page of a full sync
359+
# request has an additional quota. If the quota is exceeded, a 429 error will be
360+
# returned. This quota is fixed and can not be increased. When the `sync_token`
361+
# is specified, resources deleted since the last sync will be returned as a
362+
# person with `PersonMetadata.deleted` set to true. When the `page_token` or `
363+
# sync_token` is specified, all other request parameters must match the first
364+
# call. See example usage at [List the user's other contacts that have changed](/
365+
# people/v1/other-contacts#list_the_users_other_contacts_that_have_changed).
356366
# @param [Fixnum] page_size
357367
# Optional. The number of "Other contacts" to include in the response. Valid
358368
# values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to
359369
# 0.
360370
# @param [String] page_token
361-
# Optional. A page token, received from a previous `ListOtherContacts` call.
371+
# Optional. A page token, received from a previous response `next_page_token`.
362372
# Provide this to retrieve the subsequent page. When paginating, all other
363-
# parameters provided to `ListOtherContacts` must match the call that provided
364-
# the page token.
373+
# parameters provided to `otherContacts.list` must match the first call that
374+
# provided the page token.
365375
# @param [String] read_mask
366376
# Required. A field mask to restrict which fields on each person are returned.
367377
# Multiple fields can be specified by separating them with commas. Valid values
368378
# are: * emailAddresses * metadata * names * phoneNumbers * photos
369379
# @param [Boolean] request_sync_token
370-
# Optional. Whether the response should include `next_sync_token`, which can be
371-
# used to get all changes since the last request. For subsequent sync requests
372-
# use the `sync_token` param instead. Initial sync requests that specify `
373-
# request_sync_token` have an additional rate limit.
380+
# Optional. Whether the response should return `next_sync_token` on the last
381+
# page of results. It can be used to get incremental changes since the last
382+
# request by setting it on the request `sync_token`. More details about sync
383+
# behavior at `otherContacts.list`.
374384
# @param [Array<String>, String] sources
375385
# Optional. A mask of what source types to return. Defaults to
376386
# READ_SOURCE_TYPE_CONTACT if not set.
377387
# @param [String] sync_token
378-
# Optional. A sync token, received from a previous `ListOtherContacts` call.
388+
# Optional. A sync token, received from a previous response `next_sync_token`
379389
# Provide this to retrieve only the resources changed since the last request.
380-
# Sync requests that specify `sync_token` have an additional rate limit. When
381-
# the `syncToken` is specified, resources deleted since the last sync will be
382-
# returned as a person with [`PersonMetadata.deleted`](/people/api/rest/v1/
383-
# people#Person.PersonMetadata.FIELDS.deleted) set to true. When the `syncToken`
384-
# is specified, all other parameters provided to `ListOtherContacts` must match
385-
# the call that provided the sync token.
390+
# When syncing, all other parameters provided to `otherContacts.list` must match
391+
# the first call that provided the sync token. More details about sync behavior
392+
# at `otherContacts.list`.
386393
# @param [String] fields
387394
# Selector specifying which fields to include in a partial response.
388395
# @param [String] quota_user
@@ -685,8 +692,7 @@ def delete_person_contact_photo(resource_name, person_fields: nil, sources: nil,
685692
# get information about the authenticated user, specify `people/me`. - To get
686693
# information about a google account, specify `people/`account_id``. - To get
687694
# information about a contact, specify the resource name that identifies the
688-
# contact as returned by [`people.connections.list`](/people/api/rest/v1/people.
689-
# connections/list).
695+
# contact as returned by `people.connections.list`.
690696
# @param [String] person_fields
691697
# Required. A field mask to restrict which fields on the person are returned.
692698
# Multiple fields can be specified by separating them with commas. Valid values
@@ -753,9 +759,8 @@ def get_person(resource_name, person_fields: nil, request_mask_include_field: ni
753759
# resourceNames=<name2>&... - To get information about the authenticated user,
754760
# specify `people/me`. - To get information about a google account, specify `
755761
# people/`account_id``. - To get information about a contact, specify the
756-
# resource name that identifies the contact as returned by [`people.connections.
757-
# list`](/people/api/rest/v1/people.connections/list). There is a maximum of 200
758-
# resource names.
762+
# resource name that identifies the contact as returned by `people.connections.
763+
# list`. There is a maximum of 200 resource names.
759764
# @param [Array<String>, String] sources
760765
# Optional. A mask of what source types to return. Defaults to
761766
# READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
@@ -790,18 +795,23 @@ def get_people(person_fields: nil, request_mask_include_field: nil, resource_nam
790795
end
791796

792797
# Provides a list of domain profiles and domain contacts in the authenticated
793-
# user's domain directory.
798+
# user's domain directory. When the `sync_token` is specified, resources deleted
799+
# since the last sync will be returned as a person with `PersonMetadata.deleted`
800+
# set to true. When the `page_token` or `sync_token` is specified, all other
801+
# request parameters must match the first call. See example usage at [List the
802+
# directory people that have changed](/people/v1/directory#
803+
# list_the_directory_people_that_have_changed).
794804
# @param [Array<String>, String] merge_sources
795805
# Optional. Additional data to merge into the directory sources if they are
796806
# connected through verified join keys such as email addresses or phone numbers.
797807
# @param [Fixnum] page_size
798808
# Optional. The number of people to include in the response. Valid values are
799809
# between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
800810
# @param [String] page_token
801-
# Optional. A page token, received from a previous `ListDirectoryPeople` call.
811+
# Optional. A page token, received from a previous response `next_page_token`.
802812
# Provide this to retrieve the subsequent page. When paginating, all other
803-
# parameters provided to `ListDirectoryPeople` must match the call that provided
804-
# the page token.
813+
# parameters provided to `people.listDirectoryPeople` must match the first call
814+
# that provided the page token.
805815
# @param [String] read_mask
806816
# Required. A field mask to restrict which fields on each person are returned.
807817
# Multiple fields can be specified by separating them with commas. Valid values
@@ -811,16 +821,17 @@ def get_people(person_fields: nil, request_mask_include_field: nil, resource_nam
811821
# miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
812822
# photos * relations * sipAddresses * skills * urls * userDefined
813823
# @param [Boolean] request_sync_token
814-
# Optional. Whether the response should include `next_sync_token`, which can be
815-
# used to get all changes since the last request. For subsequent sync requests
816-
# use the `sync_token` param instead.
824+
# Optional. Whether the response should return `next_sync_token`. It can be used
825+
# to get incremental changes since the last request by setting it on the request
826+
# `sync_token`. More details about sync behavior at `people.listDirectoryPeople`.
817827
# @param [Array<String>, String] sources
818828
# Required. Directory sources to return.
819829
# @param [String] sync_token
820-
# Optional. A sync token, received from a previous `ListDirectoryPeople` call.
830+
# Optional. A sync token, received from a previous response `next_sync_token`
821831
# Provide this to retrieve only the resources changed since the last request.
822-
# When syncing, all other parameters provided to `ListDirectoryPeople` must
823-
# match the call that provided the sync token.
832+
# When syncing, all other parameters provided to `people.listDirectoryPeople`
833+
# must match the first call that provided the sync token. More details about
834+
# sync behavior at `people.listDirectoryPeople`.
824835
# @param [String] fields
825836
# Selector specifying which fields to include in a partial response.
826837
# @param [String] quota_user
@@ -918,9 +929,9 @@ def search_person_contacts(page_size: nil, query: nil, read_mask: nil, sources:
918929
# Optional. The number of people to include in the response. Valid values are
919930
# between 1 and 500, inclusive. Defaults to 100 if not set or set to 0.
920931
# @param [String] page_token
921-
# Optional. A page token, received from a previous `SearchDirectoryPeople` call.
932+
# Optional. A page token, received from a previous response `next_page_token`.
922933
# Provide this to retrieve the subsequent page. When paginating, all other
923-
# parameters provided to `SearchDirectoryPeople` must match the call that
934+
# parameters provided to `SearchDirectoryPeople` must match the first call that
924935
# provided the page token.
925936
# @param [String] query
926937
# Required. Prefix query that matches fields in the person. Does NOT use the
@@ -1069,23 +1080,28 @@ def update_person_contact_photo(resource_name, update_contact_photo_request_obje
10691080
execute_or_queue_command(command, &block)
10701081
end
10711082

1072-
# Provides a list of the authenticated user's contacts. The request returns a
1073-
# 400 error if `personFields` is not specified. The request returns a 410 error
1074-
# if `sync_token` is specified and is expired. Sync tokens expire after 7 days
1075-
# to prevent data drift between clients and the server. To handle a sync token
1076-
# expired error, a request should be sent without `sync_token` to get all
1077-
# contacts.
1083+
# Provides a list of the authenticated user's contacts. Sync tokens expire 7
1084+
# days after the full sync. A request with an expired sync token will result in
1085+
# a 410 error. In the case of such an error clients should make a full sync
1086+
# request without a `sync_token`. The first page of a full sync request has an
1087+
# additional quota. If the quota is exceeded, a 429 error will be returned. This
1088+
# quota is fixed and can not be increased. When the `sync_token` is specified,
1089+
# resources deleted since the last sync will be returned as a person with `
1090+
# PersonMetadata.deleted` set to true. When the `page_token` or `sync_token` is
1091+
# specified, all other request parameters must match the first call. See example
1092+
# usage at [List the user's contacts that have changed](/people/v1/contacts#
1093+
# list_the_users_contacts_that_have_changed).
10781094
# @param [String] resource_name
10791095
# Required. The resource name to return connections for. Only `people/me` is
10801096
# valid.
10811097
# @param [Fixnum] page_size
10821098
# Optional. The number of connections to include in the response. Valid values
10831099
# are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
10841100
# @param [String] page_token
1085-
# Optional. A page token, received from a previous `ListConnections` call.
1101+
# Optional. A page token, received from a previous response `next_page_token`.
10861102
# Provide this to retrieve the subsequent page. When paginating, all other
1087-
# parameters provided to `ListConnections` must match the call that provided the
1088-
# page token.
1103+
# parameters provided to `people.connections.list` must match the first call
1104+
# that provided the page token.
10891105
# @param [String] person_fields
10901106
# Required. A field mask to restrict which fields on each person are returned.
10911107
# Multiple fields can be specified by separating them with commas. Valid values
@@ -1099,29 +1115,22 @@ def update_person_contact_photo(resource_name, update_contact_photo_request_obje
10991115
# Each path should start with `person.`: for example, `person.names` or `person.
11001116
# photos`.
11011117
# @param [Boolean] request_sync_token
1102-
# Optional. Whether the response should include `next_sync_token` on the last
1103-
# page, which can be used to get all changes since the last request. For
1104-
# subsequent sync requests use the `sync_token` param instead. Initial full sync
1105-
# requests that specify `request_sync_token` and do not specify `sync_token`
1106-
# have an additional rate limit per user. Each client should generally only be
1107-
# doing a full sync once every few days per user and so should not hit this
1108-
# limit.
1118+
# Optional. Whether the response should return `next_sync_token` on the last
1119+
# page of results. It can be used to get incremental changes since the last
1120+
# request by setting it on the request `sync_token`. More details about sync
1121+
# behavior at `people.connections.list`.
11091122
# @param [String] sort_order
11101123
# Optional. The order in which the connections should be sorted. Defaults to `
11111124
# LAST_MODIFIED_ASCENDING`.
11121125
# @param [Array<String>, String] sources
11131126
# Optional. A mask of what source types to return. Defaults to
11141127
# READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
11151128
# @param [String] sync_token
1116-
# Optional. A sync token, received from a previous `ListConnections` call.
1129+
# Optional. A sync token, received from a previous response `next_sync_token`
11171130
# Provide this to retrieve only the resources changed since the last request.
1118-
# When the `syncToken` is specified, resources deleted since the last sync will
1119-
# be returned as a person with [`PersonMetadata.deleted`](/people/api/rest/v1/
1120-
# people#Person.PersonMetadata.FIELDS.deleted) set to true. When the `syncToken`
1121-
# is specified, all other parameters provided to `ListConnections` except `
1122-
# page_size` and `page_token` must match the initial call that provided the sync
1123-
# token. Sync tokens expire after seven days, after which a full sync request
1124-
# without a `sync_token` should be made.
1131+
# When syncing, all other parameters provided to `people.connections.list` must
1132+
# match the first call that provided the sync token. More details about sync
1133+
# behavior at `people.connections.list`.
11251134
# @param [String] fields
11261135
# Selector specifying which fields to include in a partial response.
11271136
# @param [String] quota_user

0 commit comments

Comments
 (0)