Skip to content

Commit

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

The following keys were changed:
- resources.users.resources.messages.methods.send.description
- resources.users.resources.settings.resources.cse.resources.identities.methods.create.description
- resources.users.resources.settings.resources.cse.resources.identities.methods.delete.description
- resources.users.resources.settings.resources.cse.resources.identities.methods.get.description
- resources.users.resources.settings.resources.cse.resources.identities.methods.list.description
- resources.users.resources.settings.resources.cse.resources.identities.methods.patch.description
- resources.users.resources.settings.resources.cse.resources.keypairs.methods.create.description
- resources.users.resources.settings.resources.cse.resources.keypairs.methods.disable.description
- resources.users.resources.settings.resources.cse.resources.keypairs.methods.enable.description
- resources.users.resources.settings.resources.cse.resources.keypairs.methods.get.description
- resources.users.resources.settings.resources.cse.resources.keypairs.methods.list.description
- resources.users.resources.settings.resources.cse.resources.keypairs.methods.obliterate.description
- schemas.CseIdentity.description
- schemas.CseKeyPair.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent 53f583e commit 454caaf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
30 changes: 15 additions & 15 deletions discovery/gmail-v1.json
Expand Up @@ -1184,7 +1184,7 @@
]
},
"send": {
"description": "Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers.",
"description": "Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers. For example usage, see [Sending email](https://developers.google.com/gmail/api/guides/sending).",
"flatPath": "gmail/v1/users/{userId}/messages/send",
"httpMethod": "POST",
"id": "gmail.users.messages.send",
Expand Down Expand Up @@ -1638,7 +1638,7 @@
"identities": {
"methods": {
"create": {
"description": "Creates and configures a client-side encryption identity that's authorized to send mail from the user account. Google publishes the S/MIME certificate to a shared domain-wide directory so that people within a Google Workspace organization can encrypt and send mail to the identity. [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Creates and configures a client-side encryption identity that's authorized to send mail from the user account. Google publishes the S/MIME certificate to a shared domain-wide directory so that people within a Google Workspace organization can encrypt and send mail to the identity.",
"flatPath": "gmail/v1/users/{userId}/settings/cse/identities",
"httpMethod": "POST",
"id": "gmail.users.settings.cse.identities.create",
Expand Down Expand Up @@ -1667,7 +1667,7 @@
]
},
"delete": {
"description": "Deletes a client-side encryption identity. The authenticated user can no longer use the identity to send encrypted messages. You cannot restore the identity after you delete it. Instead, use the CreateCseIdentity method to create another identity with the same configuration. [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Deletes a client-side encryption identity. The authenticated user can no longer use the identity to send encrypted messages. You cannot restore the identity after you delete it. Instead, use the CreateCseIdentity method to create another identity with the same configuration.",
"flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}",
"httpMethod": "DELETE",
"id": "gmail.users.settings.cse.identities.delete",
Expand Down Expand Up @@ -1697,7 +1697,7 @@
]
},
"get": {
"description": "Retrieves a client-side encryption identity configuration. [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Retrieves a client-side encryption identity configuration.",
"flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}",
"httpMethod": "GET",
"id": "gmail.users.settings.cse.identities.get",
Expand Down Expand Up @@ -1733,7 +1733,7 @@
]
},
"list": {
"description": "Lists the client-side encrypted identities for an authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Lists the client-side encrypted identities for an authenticated user.",
"flatPath": "gmail/v1/users/{userId}/settings/cse/identities",
"httpMethod": "GET",
"id": "gmail.users.settings.cse.identities.list",
Expand Down Expand Up @@ -1774,7 +1774,7 @@
]
},
"patch": {
"description": "Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887). [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887).",
"flatPath": "gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}",
"httpMethod": "PATCH",
"id": "gmail.users.settings.cse.identities.patch",
Expand Down Expand Up @@ -1814,7 +1814,7 @@
"keypairs": {
"methods": {
"create": {
"description": "Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user.",
"flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs",
"httpMethod": "POST",
"id": "gmail.users.settings.cse.keypairs.create",
Expand Down Expand Up @@ -1843,7 +1843,7 @@
]
},
"disable": {
"description": "Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method. [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method.",
"flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable",
"httpMethod": "POST",
"id": "gmail.users.settings.cse.keypairs.disable",
Expand Down Expand Up @@ -1879,7 +1879,7 @@
]
},
"enable": {
"description": "Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities. [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities.",
"flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable",
"httpMethod": "POST",
"id": "gmail.users.settings.cse.keypairs.enable",
Expand Down Expand Up @@ -1915,7 +1915,7 @@
]
},
"get": {
"description": "Retrieves an existing client-side encryption key pair. [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Retrieves an existing client-side encryption key pair.",
"flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}",
"httpMethod": "GET",
"id": "gmail.users.settings.cse.keypairs.get",
Expand Down Expand Up @@ -1951,7 +1951,7 @@
]
},
"list": {
"description": "Lists client-side encryption key pairs for an authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Lists client-side encryption key pairs for an authenticated user.",
"flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs",
"httpMethod": "GET",
"id": "gmail.users.settings.cse.keypairs.list",
Expand Down Expand Up @@ -1992,7 +1992,7 @@
]
},
"obliterate": {
"description": "Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages. [Beta](https://workspace.google.com/terms/service-terms/index.html).",
"description": "Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages.",
"flatPath": "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate",
"httpMethod": "POST",
"id": "gmail.users.settings.cse.keypairs.obliterate",
Expand Down Expand Up @@ -3077,7 +3077,7 @@
}
}
},
"revision": "20221219",
"revision": "20230123",
"rootUrl": "https://gmail.googleapis.com/",
"schemas": {
"AutoForwarding": {
Expand Down Expand Up @@ -3154,7 +3154,7 @@
"type": "object"
},
"CseIdentity": {
"description": "[Beta](https://workspace.google.com/terms/service-terms/index.html). The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages.",
"description": "The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages.",
"id": "CseIdentity",
"properties": {
"emailAddress": {
Expand All @@ -3169,7 +3169,7 @@
"type": "object"
},
"CseKeyPair": {
"description": "[Beta](https://workspace.google.com/terms/service-terms/index.html). A client-side encryption S/MIME key pair, which is comprised of a public key, its certificate chain, and metadata for its paired private key. Gmail uses the key pair to complete the following tasks: - Sign outgoing client-side encrypted messages. - Save and reopen drafts of client-side encrypted messages. - Save and reopen sent messages. - Decrypt incoming or archived S/MIME messages.",
"description": "A client-side encryption S/MIME key pair, which is comprised of a public key, its certificate chain, and metadata for its paired private key. Gmail uses the key pair to complete the following tasks: - Sign outgoing client-side encrypted messages. - Save and reopen drafts of client-side encrypted messages. - Save and reopen sent messages. - Decrypt incoming or archived S/MIME messages.",
"id": "CseKeyPair",
"properties": {
"disableTime": {
Expand Down
28 changes: 14 additions & 14 deletions src/apis/gmail/v1.ts
Expand Up @@ -162,7 +162,7 @@ export namespace gmail_v1 {
removeLabelIds?: string[] | null;
}
/**
* [Beta](https://workspace.google.com/terms/service-terms/index.html). The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages.
* The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages.
*/
export interface Schema$CseIdentity {
/**
Expand All @@ -175,7 +175,7 @@ export namespace gmail_v1 {
primaryKeyPairId?: string | null;
}
/**
* [Beta](https://workspace.google.com/terms/service-terms/index.html). A client-side encryption S/MIME key pair, which is comprised of a public key, its certificate chain, and metadata for its paired private key. Gmail uses the key pair to complete the following tasks: - Sign outgoing client-side encrypted messages. - Save and reopen drafts of client-side encrypted messages. - Save and reopen sent messages. - Decrypt incoming or archived S/MIME messages.
* A client-side encryption S/MIME key pair, which is comprised of a public key, its certificate chain, and metadata for its paired private key. Gmail uses the key pair to complete the following tasks: - Sign outgoing client-side encrypted messages. - Save and reopen drafts of client-side encrypted messages. - Save and reopen sent messages. - Decrypt incoming or archived S/MIME messages.
*/
export interface Schema$CseKeyPair {
/**
Expand Down Expand Up @@ -4768,7 +4768,7 @@ export namespace gmail_v1 {
}

/**
* Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers.
* Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers. For example usage, see [Sending email](https://developers.google.com/gmail/api/guides/sending).
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -7135,7 +7135,7 @@ export namespace gmail_v1 {
}

/**
* Creates and configures a client-side encryption identity that's authorized to send mail from the user account. Google publishes the S/MIME certificate to a shared domain-wide directory so that people within a Google Workspace organization can encrypt and send mail to the identity. [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Creates and configures a client-side encryption identity that's authorized to send mail from the user account. Google publishes the S/MIME certificate to a shared domain-wide directory so that people within a Google Workspace organization can encrypt and send mail to the identity.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -7276,7 +7276,7 @@ export namespace gmail_v1 {
}

/**
* Deletes a client-side encryption identity. The authenticated user can no longer use the identity to send encrypted messages. You cannot restore the identity after you delete it. Instead, use the CreateCseIdentity method to create another identity with the same configuration. [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Deletes a client-side encryption identity. The authenticated user can no longer use the identity to send encrypted messages. You cannot restore the identity after you delete it. Instead, use the CreateCseIdentity method to create another identity with the same configuration.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -7403,7 +7403,7 @@ export namespace gmail_v1 {
}

/**
* Retrieves a client-side encryption identity configuration. [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Retrieves a client-side encryption identity configuration.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -7541,7 +7541,7 @@ export namespace gmail_v1 {
}

/**
* Lists the client-side encrypted identities for an authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Lists the client-side encrypted identities for an authenticated user.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -7687,7 +7687,7 @@ export namespace gmail_v1 {
}

/**
* Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887). [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887).
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -7904,7 +7904,7 @@ export namespace gmail_v1 {
}

/**
* Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -8055,7 +8055,7 @@ export namespace gmail_v1 {
}

/**
* Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method. [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -8201,7 +8201,7 @@ export namespace gmail_v1 {
}

/**
* Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities. [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -8347,7 +8347,7 @@ export namespace gmail_v1 {
}

/**
* Retrieves an existing client-side encryption key pair. [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Retrieves an existing client-side encryption key pair.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -8490,7 +8490,7 @@ export namespace gmail_v1 {
}

/**
* Lists client-side encryption key pairs for an authenticated user. [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Lists client-side encryption key pairs for an authenticated user.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -8634,7 +8634,7 @@ export namespace gmail_v1 {
}

/**
* Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages. [Beta](https://workspace.google.com/terms/service-terms/index.html).
* Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages.
* @example
* ```js
* // Before running the sample:
Expand Down

0 comments on commit 454caaf

Please sign in to comment.