blob: f52728d124ecbc9542466d77d36f5eb416ef03f9 [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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.sendAs.html">sendAs</a> . <a href="gmail_v1.users.settings.sendAs.smimeInfo.html">smimeInfo</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070078 <code><a href="#delete">delete(userId, sendAsEmail, id)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040079<p class="firstline">Deletes the specified S/MIME config for the specified send-as alias.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#get">get(userId, sendAsEmail, id)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040082<p class="firstline">Gets the specified S/MIME config for the specified send-as alias.</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#insert">insert(userId, sendAsEmail, body=None)</a></code></p>
85<p class="firstline">Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040086<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(userId, sendAsEmail)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040088<p class="firstline">Lists S/MIME configs for the specified send-as alias.</p>
89<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070090 <code><a href="#setDefault">setDefault(userId, sendAsEmail, id)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040091<p class="firstline">Sets the default S/MIME config for the specified send-as alias.</p>
92<h3>Method Details</h3>
93<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -070094 <code class="details" id="delete">delete(userId, sendAsEmail, id)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040095 <pre>Deletes the specified S/MIME config for the specified send-as alias.
96
97Args:
Bu Sun Kim65020912020-05-20 12:08:20 -070098 userId: string, The user&#x27;s email address. The special value me can be used to indicate the authenticated user. (required)
99 sendAsEmail: string, The email address that appears in the &quot;From:&quot; header for mail sent using this alias. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400100 id: string, The immutable ID for the SmimeInfo. (required)
101</pre>
102</div>
103
104<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700105 <code class="details" id="get">get(userId, sendAsEmail, id)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400106 <pre>Gets the specified S/MIME config for the specified send-as alias.
107
108Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700109 userId: string, The user&#x27;s email address. The special value me can be used to indicate the authenticated user. (required)
110 sendAsEmail: string, The email address that appears in the &quot;From:&quot; header for mail sent using this alias. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400111 id: string, The immutable ID for the SmimeInfo. (required)
112
113Returns:
114 An object of the form:
115
116 { # An S/MIME email config.
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &quot;encryptedKeyPassword&quot;: &quot;A String&quot;, # Encrypted key password, when key is encrypted.
118 &quot;expiration&quot;: &quot;A String&quot;, # When the certificate expires (in milliseconds since epoch).
119 &quot;id&quot;: &quot;A String&quot;, # The immutable ID for the SmimeInfo.
120 &quot;isDefault&quot;: True or False, # Whether this SmimeInfo is the default one for this user&#x27;s send-as address.
121 &quot;issuerCn&quot;: &quot;A String&quot;, # The S/MIME certificate issuer&#x27;s common name.
122 &quot;pem&quot;: &quot;A String&quot;, # PEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key).
123 &quot;pkcs12&quot;: &quot;A String&quot;, # PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately.
124 }</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400125</div>
126
127<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 <code class="details" id="insert">insert(userId, sendAsEmail, body=None)</code>
129 <pre>Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400130
131Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 userId: string, The user&#x27;s email address. The special value me can be used to indicate the authenticated user. (required)
133 sendAsEmail: string, The email address that appears in the &quot;From:&quot; header for mail sent using this alias. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700134 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400135 The object takes the form of:
136
137{ # An S/MIME email config.
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 &quot;encryptedKeyPassword&quot;: &quot;A String&quot;, # Encrypted key password, when key is encrypted.
139 &quot;expiration&quot;: &quot;A String&quot;, # When the certificate expires (in milliseconds since epoch).
140 &quot;id&quot;: &quot;A String&quot;, # The immutable ID for the SmimeInfo.
141 &quot;isDefault&quot;: True or False, # Whether this SmimeInfo is the default one for this user&#x27;s send-as address.
142 &quot;issuerCn&quot;: &quot;A String&quot;, # The S/MIME certificate issuer&#x27;s common name.
143 &quot;pem&quot;: &quot;A String&quot;, # PEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key).
144 &quot;pkcs12&quot;: &quot;A String&quot;, # PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately.
145}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400146
147
148Returns:
149 An object of the form:
150
151 { # An S/MIME email config.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;encryptedKeyPassword&quot;: &quot;A String&quot;, # Encrypted key password, when key is encrypted.
153 &quot;expiration&quot;: &quot;A String&quot;, # When the certificate expires (in milliseconds since epoch).
154 &quot;id&quot;: &quot;A String&quot;, # The immutable ID for the SmimeInfo.
155 &quot;isDefault&quot;: True or False, # Whether this SmimeInfo is the default one for this user&#x27;s send-as address.
156 &quot;issuerCn&quot;: &quot;A String&quot;, # The S/MIME certificate issuer&#x27;s common name.
157 &quot;pem&quot;: &quot;A String&quot;, # PEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key).
158 &quot;pkcs12&quot;: &quot;A String&quot;, # PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately.
159 }</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400160</div>
161
162<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700163 <code class="details" id="list">list(userId, sendAsEmail)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400164 <pre>Lists S/MIME configs for the specified send-as alias.
165
166Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 userId: string, The user&#x27;s email address. The special value me can be used to indicate the authenticated user. (required)
168 sendAsEmail: string, The email address that appears in the &quot;From:&quot; header for mail sent using this alias. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400169
170Returns:
171 An object of the form:
172
173 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 &quot;smimeInfo&quot;: [ # List of SmimeInfo.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400175 { # An S/MIME email config.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;encryptedKeyPassword&quot;: &quot;A String&quot;, # Encrypted key password, when key is encrypted.
177 &quot;expiration&quot;: &quot;A String&quot;, # When the certificate expires (in milliseconds since epoch).
178 &quot;id&quot;: &quot;A String&quot;, # The immutable ID for the SmimeInfo.
179 &quot;isDefault&quot;: True or False, # Whether this SmimeInfo is the default one for this user&#x27;s send-as address.
180 &quot;issuerCn&quot;: &quot;A String&quot;, # The S/MIME certificate issuer&#x27;s common name.
181 &quot;pem&quot;: &quot;A String&quot;, # PEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key).
182 &quot;pkcs12&quot;: &quot;A String&quot;, # PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately.
183 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400184 ],
185 }</pre>
186</div>
187
188<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 <code class="details" id="setDefault">setDefault(userId, sendAsEmail, id)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400190 <pre>Sets the default S/MIME config for the specified send-as alias.
191
192Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700193 userId: string, The user&#x27;s email address. The special value me can be used to indicate the authenticated user. (required)
194 sendAsEmail: string, The email address that appears in the &quot;From:&quot; header for mail sent using this alias. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400195 id: string, The immutable ID for the SmimeInfo. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400196</pre>
197</div>
198
199</body></html>