Skip to content

Commit

Permalink
fix(people): update the API
Browse files Browse the repository at this point in the history
#### people:v1
The following keys were changed:
- resources.people.methods.createContact.description
- resources.people.methods.get.description
- resources.people.methods.getBatchGet.description
- resources.people.resources.connections.methods.list.description
  • Loading branch information
yoshi-automation authored and sofisl committed Nov 13, 2020
1 parent 8b0ae80 commit 3fa1deb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions discovery/people-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@
"people": {
"methods": {
"createContact": {
"description": "Create a new contact and return the person resource for that contact. The request throws a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names",
"description": "Create a new contact and return the person resource for that contact. The request returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names",
"flatPath": "v1/people:createContact",
"httpMethod": "POST",
"id": "people.people.createContact",
Expand Down Expand Up @@ -541,7 +541,7 @@
]
},
"get": {
"description": "Provides information about a person by specifying a resource name. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.",
"description": "Provides information about a person by specifying a resource name. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.",
"flatPath": "v1/people/{peopleId}",
"httpMethod": "GET",
"id": "people.people.get",
Expand Down Expand Up @@ -606,7 +606,7 @@
]
},
"getBatchGet": {
"description": "Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.",
"description": "Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.",
"flatPath": "v1/people:batchGet",
"httpMethod": "GET",
"id": "people.people.getBatchGet",
Expand Down Expand Up @@ -899,7 +899,7 @@
"connections": {
"methods": {
"list": {
"description": "Provides a list of the authenticated user's contacts. The request throws a 400 error if 'personFields' is not specified.",
"description": "Provides a list of the authenticated user's contacts. The request returns a 400 error if `personFields` is not specified. The request returns a 410 error if `sync_token` is specified and is expired. Sync tokens expire after 7 days. A request without `sync_token` should be made and all contacts should be synced.",
"flatPath": "v1/people/{peopleId}/connections",
"httpMethod": "GET",
"id": "people.people.connections.list",
Expand Down Expand Up @@ -997,7 +997,7 @@
}
}
},
"revision": "20201026",
"revision": "20201111",
"rootUrl": "https://people.googleapis.com/",
"schemas": {
"Address": {
Expand Down
8 changes: 4 additions & 4 deletions src/apis/people/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2936,7 +2936,7 @@ export namespace people_v1 {
}

/**
* Create a new contact and return the person resource for that contact. The request throws a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names
* Create a new contact and return the person resource for that contact. The request returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -3416,7 +3416,7 @@ export namespace people_v1 {
}

/**
* Provides information about a person by specifying a resource name. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.
* Provides information about a person by specifying a resource name. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -3599,7 +3599,7 @@ export namespace people_v1 {
}

/**
* Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request throws a 400 error if 'personFields' is not specified.
* Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -4589,7 +4589,7 @@ export namespace people_v1 {
}

/**
* Provides a list of the authenticated user's contacts. The request throws a 400 error if 'personFields' is not specified.
* Provides a list of the authenticated user's contacts. The request returns a 400 error if `personFields` is not specified. The request returns a 410 error if `sync_token` is specified and is expired. Sync tokens expire after 7 days. A request without `sync_token` should be made and all contacts should be synced.
* @example
* ```js
* // Before running the sample:
Expand Down

0 comments on commit 3fa1deb

Please sign in to comment.