Debian Codegraph @

docs/dyn/gmail_v1.users.settings.cse.identities.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="gmail_v1.html">Gmail API</a> . <a href="gmail_v1.users.html">users</a> . <a href="gmail_v1.users.settings.html">settings</a> . <a href="gmail_v1.users.settings.cse.html">cse</a> . <a href="gmail_v1.users.settings.cse.identities.html">identities</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(userId, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">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. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(userId, cseEmailAddress, x__xgafv=None)</a></code></p>
85 <p class="firstline">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. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(userId, cseEmailAddress, x__xgafv=None)</a></code></p>
88 <p class="firstline">Retrieves a client-side encryption identity configuration. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(userId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists the client-side encrypted identities for an authenticated user. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(userId, emailAddress, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">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). For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(userId, body=None, x__xgafv=None)</code>
106 <pre>Creates and configures a client-side encryption identity that&#x27;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. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
107
108 Args:
109 userId: string, The requester&#x27;s primary email address. To indicate the authenticated user, you can use the special value `me`. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # 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. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
114 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address for the sending identity. The email address must be the primary email address of the authenticated user.
115 &quot;primaryKeyPairId&quot;: &quot;A String&quot;, # If a key pair is associated, the ID of the key pair, CseKeyPair.
116 &quot;signAndEncryptKeyPairs&quot;: { # The configuration of a CSE identity that uses different key pairs for signing and encryption. # The configuration of a CSE identity that uses different key pairs for signing and encryption.
117 &quot;encryptionKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that encrypts signed outgoing mail.
118 &quot;signingKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that signs outgoing mail.
119 },
120 }
121
122 x__xgafv: string, V1 error format.
123 Allowed values
124 1 - v1 error format
125 2 - v2 error format
126
127 Returns:
128 An object of the form:
129
130 { # 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. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
131 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address for the sending identity. The email address must be the primary email address of the authenticated user.
132 &quot;primaryKeyPairId&quot;: &quot;A String&quot;, # If a key pair is associated, the ID of the key pair, CseKeyPair.
133 &quot;signAndEncryptKeyPairs&quot;: { # The configuration of a CSE identity that uses different key pairs for signing and encryption. # The configuration of a CSE identity that uses different key pairs for signing and encryption.
134 &quot;encryptionKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that encrypts signed outgoing mail.
135 &quot;signingKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that signs outgoing mail.
136 },
137 }</pre>
138 </div>
139
140 <div class="method">
141 <code class="details" id="delete">delete(userId, cseEmailAddress, x__xgafv=None)</code>
142 <pre>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. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
143
144 Args:
145 userId: string, The requester&#x27;s primary email address. To indicate the authenticated user, you can use the special value `me`. (required)
146 cseEmailAddress: string, The primary email address associated with the client-side encryption identity configuration that&#x27;s removed. (required)
147 x__xgafv: string, V1 error format.
148 Allowed values
149 1 - v1 error format
150 2 - v2 error format
151 </pre>
152 </div>
153
154 <div class="method">
155 <code class="details" id="get">get(userId, cseEmailAddress, x__xgafv=None)</code>
156 <pre>Retrieves a client-side encryption identity configuration. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
157
158 Args:
159 userId: string, The requester&#x27;s primary email address. To indicate the authenticated user, you can use the special value `me`. (required)
160 cseEmailAddress: string, The primary email address associated with the client-side encryption identity configuration that&#x27;s retrieved. (required)
161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
165
166 Returns:
167 An object of the form:
168
169 { # 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. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
170 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address for the sending identity. The email address must be the primary email address of the authenticated user.
171 &quot;primaryKeyPairId&quot;: &quot;A String&quot;, # If a key pair is associated, the ID of the key pair, CseKeyPair.
172 &quot;signAndEncryptKeyPairs&quot;: { # The configuration of a CSE identity that uses different key pairs for signing and encryption. # The configuration of a CSE identity that uses different key pairs for signing and encryption.
173 &quot;encryptionKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that encrypts signed outgoing mail.
174 &quot;signingKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that signs outgoing mail.
175 },
176 }</pre>
177 </div>
178
179 <div class="method">
180 <code class="details" id="list">list(userId, pageSize=None, pageToken=None, x__xgafv=None)</code>
181 <pre>Lists the client-side encrypted identities for an authenticated user. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
182
183 Args:
184 userId: string, The requester&#x27;s primary email address. To indicate the authenticated user, you can use the special value `me`. (required)
185 pageSize: integer, The number of identities to return. If not provided, the page size will default to 20 entries.
186 pageToken: string, Pagination token indicating which page of identities to return. If the token is not supplied, then the API will return the first page of results.
187 x__xgafv: string, V1 error format.
188 Allowed values
189 1 - v1 error format
190 2 - v2 error format
191
192 Returns:
193 An object of the form:
194
195 {
196 &quot;cseIdentities&quot;: [ # One page of the list of CSE identities configured for the user.
197 { # 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. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
198 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address for the sending identity. The email address must be the primary email address of the authenticated user.
199 &quot;primaryKeyPairId&quot;: &quot;A String&quot;, # If a key pair is associated, the ID of the key pair, CseKeyPair.
200 &quot;signAndEncryptKeyPairs&quot;: { # The configuration of a CSE identity that uses different key pairs for signing and encryption. # The configuration of a CSE identity that uses different key pairs for signing and encryption.
201 &quot;encryptionKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that encrypts signed outgoing mail.
202 &quot;signingKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that signs outgoing mail.
203 },
204 },
205 ],
206 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to be passed to a subsequent ListCseIdentities call in order to retrieve the next page of identities. If this value is not returned or is the empty string, then no further pages remain.
207 }</pre>
208 </div>
209
210 <div class="method">
211 <code class="details" id="list_next">list_next()</code>
212 <pre>Retrieves the next page of results.
213
214 Args:
215 previous_request: The request for the previous page. (required)
216 previous_response: The response from the request for the previous page. (required)
217
218 Returns:
219 A request object that you can call &#x27;execute()&#x27; on to request the next
220 page. Returns None if there are no more items in the collection.
221 </pre>
222 </div>
223
224 <div class="method">
225 <code class="details" id="patch">patch(userId, emailAddress, body=None, x__xgafv=None)</code>
226 <pre>Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google&#x27;s [S/MIME certificate profiles](https://support.google.com/a/answer/7300887). For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
227
228 Args:
229 userId: string, The requester&#x27;s primary email address. To indicate the authenticated user, you can use the special value `me`. (required)
230 emailAddress: string, The email address of the client-side encryption identity to update. (required)
231 body: object, The request body.
232 The object takes the form of:
233
234 { # 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. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
235 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address for the sending identity. The email address must be the primary email address of the authenticated user.
236 &quot;primaryKeyPairId&quot;: &quot;A String&quot;, # If a key pair is associated, the ID of the key pair, CseKeyPair.
237 &quot;signAndEncryptKeyPairs&quot;: { # The configuration of a CSE identity that uses different key pairs for signing and encryption. # The configuration of a CSE identity that uses different key pairs for signing and encryption.
238 &quot;encryptionKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that encrypts signed outgoing mail.
239 &quot;signingKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that signs outgoing mail.
240 },
241 }
242
243 x__xgafv: string, V1 error format.
244 Allowed values
245 1 - v1 error format
246 2 - v2 error format
247
248 Returns:
249 An object of the form:
250
251 { # 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. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
252 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address for the sending identity. The email address must be the primary email address of the authenticated user.
253 &quot;primaryKeyPairId&quot;: &quot;A String&quot;, # If a key pair is associated, the ID of the key pair, CseKeyPair.
254 &quot;signAndEncryptKeyPairs&quot;: { # The configuration of a CSE identity that uses different key pairs for signing and encryption. # The configuration of a CSE identity that uses different key pairs for signing and encryption.
255 &quot;encryptionKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that encrypts signed outgoing mail.
256 &quot;signingKeyPairId&quot;: &quot;A String&quot;, # The ID of the CseKeyPair that signs outgoing mail.
257 },
258 }</pre>
259 </div>
260
261 </body></html>