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:
- resources.people.methods.searchContacts.parameters.sources.description
- resources.people.methods.searchContacts.parameters.sources.enum
- resources.people.methods.searchContacts.parameters.sources.enumDescriptions
- resources.people.methods.searchContacts.parameters.sources.location
- resources.people.methods.searchContacts.parameters.sources.repeated
- resources.people.methods.searchContacts.parameters.sources.type
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 20, 2021
1 parent 4a4182b commit ac165ec
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
20 changes: 19 additions & 1 deletion discovery/people-v1.json
Expand Up @@ -868,6 +868,24 @@
"format": "google-fieldmask",
"location": "query",
"type": "string"
},
"sources": {
"description": "Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT if not set.",
"enum": [
"READ_SOURCE_TYPE_UNSPECIFIED",
"READ_SOURCE_TYPE_PROFILE",
"READ_SOURCE_TYPE_CONTACT",
"READ_SOURCE_TYPE_DOMAIN_CONTACT"
],
"enumDescriptions": [
"Unspecified.",
"Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.",
"Returns SourceType.CONTACT.",
"Returns SourceType.DOMAIN_CONTACT."
],
"location": "query",
"repeated": true,
"type": "string"
}
},
"path": "v1/people:searchContacts",
Expand Down Expand Up @@ -1136,7 +1154,7 @@
}
}
},
"revision": "20210330",
"revision": "20210415",
"rootUrl": "https://people.googleapis.com/",
"schemas": {
"Address": {
Expand Down
6 changes: 6 additions & 0 deletions src/apis/people/v1.ts
Expand Up @@ -4648,6 +4648,8 @@ export namespace people_v1 {
* query: 'placeholder-value',
* // 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
* readMask: 'placeholder-value',
* // Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT if not set.
* sources: 'placeholder-value',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -5403,6 +5405,10 @@ export namespace people_v1 {
* 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
*/
readMask?: string;
/**
* Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT if not set.
*/
sources?: string[];
}
export interface Params$Resource$People$Searchdirectorypeople
extends StandardParameters {
Expand Down

0 comments on commit ac165ec

Please sign in to comment.