From 97187148dfa671e66c54e53fd59bea93262a2ee8 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 7 Oct 2020 05:21:00 -0700 Subject: [PATCH] fix(people): update the API #### people:v1 The following keys were changed: - resources.people.resources.connections.methods.list.parameters.requestSyncToken.description - schemas.ListConnectionsResponse.properties.nextSyncToken.description --- discovery/people-v1.json | 6 +++--- src/apis/people/v1.ts | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/discovery/people-v1.json b/discovery/people-v1.json index 4218ae71817..10c2f1c13df 100644 --- a/discovery/people-v1.json +++ b/discovery/people-v1.json @@ -931,7 +931,7 @@ "type": "string" }, "requestSyncToken": { - "description": "Optional. Whether the response should include `next_sync_token`, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit.", + "description": "Optional. Whether the response should include `next_sync_token` on the last page, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit.", "location": "query", "type": "boolean" }, @@ -997,7 +997,7 @@ } } }, - "revision": "20201001", + "revision": "20201004", "rootUrl": "https://people.googleapis.com/", "schemas": { "Address": { @@ -1643,7 +1643,7 @@ "type": "string" }, "nextSyncToken": { - "description": "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.", + "description": "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`.", "type": "string" }, "totalItems": { diff --git a/src/apis/people/v1.ts b/src/apis/people/v1.ts index dd9514d1ce0..2771349051b 100644 --- a/src/apis/people/v1.ts +++ b/src/apis/people/v1.ts @@ -635,7 +635,7 @@ export namespace people_v1 { */ nextPageToken?: string | null; /** - * 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. + * 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`. */ nextSyncToken?: string | null; /** @@ -4704,7 +4704,7 @@ export namespace people_v1 { * personFields: 'placeholder-value', * // Required. Comma-separated list of person fields to be included in the response. Each path should start with `person.`: for example, `person.names` or `person.photos`. * 'requestMask.includeField': 'placeholder-value', - * // Optional. Whether the response should include `next_sync_token`, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit. + * // Optional. Whether the response should include `next_sync_token` on the last page, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit. * requestSyncToken: 'placeholder-value', * // Required. The resource name to return connections for. Only `people/me` is valid. * resourceName: 'people/[^/]+', @@ -4740,7 +4740,7 @@ export namespace people_v1 { * @param {string=} params.pageToken Optional. A page token, received from a previous `ListConnections` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnections` must match the call that provided the page token. * @param {string=} params.personFields Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined * @param {string=} params.requestMask.includeField Required. Comma-separated list of person fields to be included in the response. Each path should start with `person.`: for example, `person.names` or `person.photos`. - * @param {boolean=} params.requestSyncToken Optional. Whether the response should include `next_sync_token`, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit. + * @param {boolean=} params.requestSyncToken Optional. Whether the response should include `next_sync_token` on the last page, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit. * @param {string} params.resourceName Required. The resource name to return connections for. Only `people/me` is valid. * @param {string=} params.sortOrder Optional. The order in which the connections should be sorted. Defaults to `LAST_MODIFIED_ASCENDING`. * @param {string=} params.sources Optional. A mask of what source types to return. Defaults to ReadSourceType.CONTACT and ReadSourceType.PROFILE if not set. @@ -4853,7 +4853,7 @@ export namespace people_v1 { */ 'requestMask.includeField'?: string; /** - * Optional. Whether the response should include `next_sync_token`, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit. + * Optional. Whether the response should include `next_sync_token` on the last page, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit. */ requestSyncToken?: boolean; /**