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.MiscKeyword.description
- schemas.MiscKeyword.id
- schemas.MiscKeyword.properties.formattedType.description
- schemas.MiscKeyword.properties.formattedType.readOnly
- schemas.MiscKeyword.properties.formattedType.type
- schemas.MiscKeyword.properties.metadata.$ref
- schemas.MiscKeyword.properties.metadata.description
- schemas.MiscKeyword.properties.type.description
- schemas.MiscKeyword.properties.type.enum
- schemas.MiscKeyword.properties.type.enumDescriptions
- schemas.MiscKeyword.properties.type.type
- schemas.MiscKeyword.properties.value.description
- schemas.MiscKeyword.properties.value.type
- schemas.MiscKeyword.type
- schemas.Person.properties.miscKeywords.description
- schemas.Person.properties.miscKeywords.items.$ref
- schemas.Person.properties.miscKeywords.type

The following keys were changed:
- resources.people.methods.createContact.parameters.personFields.description
- resources.people.methods.deleteContactPhoto.parameters.personFields.description
- resources.people.methods.get.parameters.personFields.description
- resources.people.methods.getBatchGet.parameters.personFields.description
- resources.people.methods.listDirectoryPeople.parameters.readMask.description
- resources.people.methods.searchDirectoryPeople.parameters.readMask.description
- resources.people.methods.updateContact.parameters.personFields.description
- resources.people.methods.updateContact.parameters.updatePersonFields.description
- resources.people.resources.connections.methods.list.parameters.personFields.description
- schemas.CopyOtherContactToMyContactsGroupRequest.properties.readMask.description
- schemas.UpdateContactPhotoRequest.properties.personFields.description
  • Loading branch information
yoshi-automation authored and sofisl committed Aug 3, 2020
1 parent b1af31a commit 25508d0
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 41 deletions.
83 changes: 71 additions & 12 deletions discovery/people-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
"parameterOrder": [],
"parameters": {
"personFields": {
"description": "Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Defaults to all fields if not set. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"description": "Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Defaults to all fields if not set. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -501,7 +501,7 @@
],
"parameters": {
"personFields": {
"description": "Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post mutate get. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"description": "Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post mutate get. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -550,7 +550,7 @@
],
"parameters": {
"personFields": {
"description": "Required. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"description": "Required. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -613,7 +613,7 @@
"parameterOrder": [],
"parameters": {
"personFields": {
"description": "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 * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"description": "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 * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -700,7 +700,7 @@
"type": "string"
},
"readMask": {
"description": "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 * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"description": "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 * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -778,7 +778,7 @@
"type": "string"
},
"readMask": {
"description": "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 * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"description": "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 * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -818,7 +818,7 @@
],
"parameters": {
"personFields": {
"description": "Optional. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Defaults to all fields if not set. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"description": "Optional. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Defaults to all fields if not set. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -849,7 +849,7 @@
"type": "string"
},
"updatePersonFields": {
"description": "Required. A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All updated fields will be replaced. Valid values are: * addresses * biographies * birthdays * calendarUrls * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * names * nicknames * occupations * organizations * phoneNumbers * relations * residences * sipAddresses * urls * userDefined",
"description": "Required. A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All updated fields will be replaced. Valid values are: * addresses * biographies * birthdays * calendarUrls * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * relations * residences * sipAddresses * urls * userDefined",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -919,7 +919,7 @@
"type": "string"
},
"personFields": {
"description": "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 * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"description": "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 * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -997,7 +997,7 @@
}
}
},
"revision": "20200727",
"revision": "20200730",
"rootUrl": "https://people.googleapis.com/",
"schemas": {
"Address": {
Expand Down Expand Up @@ -1305,7 +1305,7 @@
"type": "string"
},
"readMask": {
"description": "Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to the copy mask with metadata and membership fields if not set. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"description": "Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to the copy mask with metadata and membership fields if not set. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"format": "google-fieldmask",
"type": "string"
},
Expand Down Expand Up @@ -1752,6 +1752,58 @@
},
"type": "object"
},
"MiscKeyword": {
"description": "A person's miscellaneous keyword.",
"id": "MiscKeyword",
"properties": {
"formattedType": {
"description": "Output only. The type of the miscellaneous keyword translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.",
"readOnly": true,
"type": "string"
},
"metadata": {
"$ref": "FieldMetadata",
"description": "Metadata about the miscellaneous keyword."
},
"type": {
"description": "The miscellaneous keyword type.",
"enum": [
"TYPE_UNSPECIFIED",
"OUTLOOK_BILLING_INFORMATION",
"OUTLOOK_DIRECTORY_SERVER",
"OUTLOOK_KEYWORD",
"OUTLOOK_MILEAGE",
"OUTLOOK_PRIORITY",
"OUTLOOK_SENSITIVITY",
"OUTLOOK_SUBJECT",
"OUTLOOK_USER",
"HOME",
"WORK",
"OTHER"
],
"enumDescriptions": [
"Unspecified.",
"Outlook field for billing information.",
"Outlook field for directory server.",
"Outlook field for keyword.",
"Outlook field for mileage.",
"Outlook field for priority.",
"Outlook field for sensitivity.",
"Outlook field for subject.",
"Outlook field for user.",
"Home.",
"Work.",
"Other."
],
"type": "string"
},
"value": {
"description": "The value of the miscellaneous keyword.",
"type": "string"
}
},
"type": "object"
},
"ModifyContactGroupMembersRequest": {
"description": "A request to modify an existing contact group's members. Contacts can be removed from any group but they can only be added to a user group or \"myContacts\" or \"starred\" system groups.",
"id": "ModifyContactGroupMembersRequest",
Expand Down Expand Up @@ -2123,6 +2175,13 @@
"description": "Output only. Metadata about the person.",
"readOnly": true
},
"miscKeywords": {
"description": "The person's miscellaneous keywords.",
"items": {
"$ref": "MiscKeyword"
},
"type": "array"
},
"names": {
"description": "The person's names. This field is a singleton for contact sources.",
"items": {
Expand Down Expand Up @@ -2660,7 +2719,7 @@
"id": "UpdateContactPhotoRequest",
"properties": {
"personFields": {
"description": "Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post mutate get. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"description": "Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post mutate get. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * userDefined",
"format": "google-fieldmask",
"type": "string"
},
Expand Down
Loading

0 comments on commit 25508d0

Please sign in to comment.