Skip to content

Commit

Permalink
feat(people): update the API
Browse files Browse the repository at this point in the history
#### people:v1

The following keys were added:
- schemas.ListOtherContactsResponse.properties.totalSize.description
- schemas.ListOtherContactsResponse.properties.totalSize.format
- schemas.ListOtherContactsResponse.properties.totalSize.type

The following keys were changed:
- resources.otherContacts.methods.search.parameters.pageSize.description
- resources.people.methods.searchContacts.parameters.pageSize.description
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 21, 2021
1 parent 475a63d commit 64eacb4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
11 changes: 8 additions & 3 deletions discovery/people-v1.json
Expand Up @@ -445,7 +445,7 @@
"parameterOrder": [],
"parameters": {
"pageSize": {
"description": "Optional. The number of results to return. Defaults to 10 if field is not set, or set to 0.",
"description": "Optional. The number of results to return. Defaults to 10 if field is not set, or set to 0. Values greater than 10 will be capped to 10.",
"format": "int32",
"location": "query",
"type": "integer"
Expand Down Expand Up @@ -853,7 +853,7 @@
"parameterOrder": [],
"parameters": {
"pageSize": {
"description": "Optional. The number of results to return.",
"description": "Optional. The number of results to return. Defaults to 10 if field is not set, or set to 0. Values greater than 10 will be capped to 10.",
"format": "int32",
"location": "query",
"type": "integer"
Expand Down Expand Up @@ -1154,7 +1154,7 @@
}
}
},
"revision": "20210415",
"revision": "20210419",
"rootUrl": "https://people.googleapis.com/",
"schemas": {
"Address": {
Expand Down Expand Up @@ -2044,6 +2044,11 @@
"$ref": "Person"
},
"type": "array"
},
"totalSize": {
"description": "The total number of other contacts in the list without pagination.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
Expand Down
15 changes: 10 additions & 5 deletions src/apis/people/v1.ts
Expand Up @@ -794,6 +794,10 @@ export namespace people_v1 {
* The list of "Other contacts" returned as Person resources. "Other contacts" support a limited subset of fields. See ListOtherContactsRequest.request_mask for more detailed information.
*/
otherContacts?: Schema$Person[];
/**
* The total number of other contacts in the list without pagination.
*/
totalSize?: number | null;
}
/**
* A person's locale preference.
Expand Down Expand Up @@ -2938,7 +2942,8 @@ export namespace people_v1 {
* // {
* // "nextPageToken": "my_nextPageToken",
* // "nextSyncToken": "my_nextSyncToken",
* // "otherContacts": []
* // "otherContacts": [],
* // "totalSize": 0
* // }
* }
*
Expand Down Expand Up @@ -3064,7 +3069,7 @@ export namespace people_v1 {
*
* // Do the magic
* const res = await people.otherContacts.search({
* // Optional. The number of results to return. Defaults to 10 if field is not set, or set to 0.
* // Optional. The number of results to return. Defaults to 10 if field is not set, or set to 0. Values greater than 10 will be capped to 10.
* pageSize: 'placeholder-value',
* // Required. The plain-text query for the request. The query is used to match prefix phrases of the fields on a person. For example, a person with name "foo name" matches queries such as "f", "fo", "foo", "foo n", "nam", etc., but not "oo n".
* query: 'placeholder-value',
Expand Down Expand Up @@ -3209,7 +3214,7 @@ export namespace people_v1 {
export interface Params$Resource$Othercontacts$Search
extends StandardParameters {
/**
* Optional. The number of results to return. Defaults to 10 if field is not set, or set to 0.
* Optional. The number of results to return. Defaults to 10 if field is not set, or set to 0. Values greater than 10 will be capped to 10.
*/
pageSize?: number;
/**
Expand Down Expand Up @@ -4642,7 +4647,7 @@ export namespace people_v1 {
*
* // Do the magic
* const res = await people.people.searchContacts({
* // Optional. The number of results to return.
* // Optional. The number of results to return. Defaults to 10 if field is not set, or set to 0. Values greater than 10 will be capped to 10.
* pageSize: 'placeholder-value',
* // Required. The plain-text query for the request. The query is used to match prefix phrases of the fields on a person. For example, a person with name "foo name" matches queries such as "f", "fo", "foo", "foo n", "nam", etc., but not "oo n".
* query: 'placeholder-value',
Expand Down Expand Up @@ -5394,7 +5399,7 @@ export namespace people_v1 {
export interface Params$Resource$People$Searchcontacts
extends StandardParameters {
/**
* Optional. The number of results to return.
* Optional. The number of results to return. Defaults to 10 if field is not set, or set to 0. Values greater than 10 will be capped to 10.
*/
pageSize?: number;
/**
Expand Down

0 comments on commit 64eacb4

Please sign in to comment.