blob: 734dff63e2360a71af00ef2811d36ef3222d3bec [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<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="firebasehosting_v1beta1.html">Firebase Hosting API</a> . <a href="firebasehosting_v1beta1.projects.html">projects</a> . <a href="firebasehosting_v1beta1.projects.sites.html">sites</a> . <a href="firebasehosting_v1beta1.projects.sites.domains.html">domains</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a domain mapping on the specified site.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes the existing domain mapping on the specified site.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets a domain mapping on the specified site.</p>
86<p class="toc_element">
87 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Lists the domains for the specified site.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Updates the specified domain mapping, creating the mapping as if it does</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
98 <pre>Creates a domain mapping on the specified site.
99
100Args:
101 parent: string, Required. The parent to create the domain association for, in the format:
102&lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;&lt;/code&gt; (required)
103 body: object, The request body.
104 The object takes the form of:
105
106{ # The intended behavior and status information of a domain.
107 &quot;domainRedirect&quot;: { # Defines the behavior of a domain-level redirect. Domain redirects preserve # If set, the domain should redirect with the provided parameters.
108 # the path of the redirect but replace the requested domain with the one
109 # specified in the redirect configuration.
110 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name to redirect to.
111 &quot;type&quot;: &quot;A String&quot;, # Required. The redirect status code.
112 },
113 &quot;status&quot;: &quot;A String&quot;, # Output only. Additional status of the domain association.
114 &quot;site&quot;: &quot;A String&quot;, # Required. The site name of the association.
115 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name of the association.
116 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the domain was last updated.
117 &quot;provisioning&quot;: { # The current certificate provisioning status information for a domain. # Output only. Information about the provisioning of certificates and the
118 # health of the DNS resolution for the domain.
119 &quot;dnsFetchTime&quot;: &quot;A String&quot;, # The time at which the last DNS fetch occurred.
120 &quot;certChallengeDns&quot;: { # Represents a DNS certificate challenge. # The DNS challenge for generating a certificate.
121 &quot;domainName&quot;: &quot;A String&quot;, # The domain name upon which the DNS challenge must be satisfied.
122 &quot;token&quot;: &quot;A String&quot;, # The value that must be present as a TXT record on the domain name to
123 # satisfy the challenge.
124 },
125 &quot;certStatus&quot;: &quot;A String&quot;, # The certificate provisioning status; updated when Firebase Hosting
126 # provisions an SSL certificate for the domain.
127 &quot;certChallengeDiscoveredTxt&quot;: [ # The TXT records (for the certificate challenge) that were found at the last
128 # DNS fetch.
129 &quot;A String&quot;,
130 ],
131 &quot;discoveredIps&quot;: [ # The IPs found at the last DNS fetch.
132 &quot;A String&quot;,
133 ],
134 &quot;expectedIps&quot;: [ # The list of IPs to which the domain is expected to resolve.
135 &quot;A String&quot;,
136 ],
137 &quot;dnsStatus&quot;: &quot;A String&quot;, # The DNS record match status as of the last DNS fetch.
138 &quot;certChallengeHttp&quot;: { # Represents an HTTP certificate challenge. # The HTTP challenge for generating a certificate.
139 &quot;token&quot;: &quot;A String&quot;, # The token to serve at the specified URL path to satisfy the certificate
140 # challenge.
141 &quot;path&quot;: &quot;A String&quot;, # The URL path on which to serve the specified token to satisfy the
142 # certificate challenge.
143 },
144 },
145}
146
147 x__xgafv: string, V1 error format.
148 Allowed values
149 1 - v1 error format
150 2 - v2 error format
151
152Returns:
153 An object of the form:
154
155 { # The intended behavior and status information of a domain.
156 &quot;domainRedirect&quot;: { # Defines the behavior of a domain-level redirect. Domain redirects preserve # If set, the domain should redirect with the provided parameters.
157 # the path of the redirect but replace the requested domain with the one
158 # specified in the redirect configuration.
159 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name to redirect to.
160 &quot;type&quot;: &quot;A String&quot;, # Required. The redirect status code.
161 },
162 &quot;status&quot;: &quot;A String&quot;, # Output only. Additional status of the domain association.
163 &quot;site&quot;: &quot;A String&quot;, # Required. The site name of the association.
164 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name of the association.
165 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the domain was last updated.
166 &quot;provisioning&quot;: { # The current certificate provisioning status information for a domain. # Output only. Information about the provisioning of certificates and the
167 # health of the DNS resolution for the domain.
168 &quot;dnsFetchTime&quot;: &quot;A String&quot;, # The time at which the last DNS fetch occurred.
169 &quot;certChallengeDns&quot;: { # Represents a DNS certificate challenge. # The DNS challenge for generating a certificate.
170 &quot;domainName&quot;: &quot;A String&quot;, # The domain name upon which the DNS challenge must be satisfied.
171 &quot;token&quot;: &quot;A String&quot;, # The value that must be present as a TXT record on the domain name to
172 # satisfy the challenge.
173 },
174 &quot;certStatus&quot;: &quot;A String&quot;, # The certificate provisioning status; updated when Firebase Hosting
175 # provisions an SSL certificate for the domain.
176 &quot;certChallengeDiscoveredTxt&quot;: [ # The TXT records (for the certificate challenge) that were found at the last
177 # DNS fetch.
178 &quot;A String&quot;,
179 ],
180 &quot;discoveredIps&quot;: [ # The IPs found at the last DNS fetch.
181 &quot;A String&quot;,
182 ],
183 &quot;expectedIps&quot;: [ # The list of IPs to which the domain is expected to resolve.
184 &quot;A String&quot;,
185 ],
186 &quot;dnsStatus&quot;: &quot;A String&quot;, # The DNS record match status as of the last DNS fetch.
187 &quot;certChallengeHttp&quot;: { # Represents an HTTP certificate challenge. # The HTTP challenge for generating a certificate.
188 &quot;token&quot;: &quot;A String&quot;, # The token to serve at the specified URL path to satisfy the certificate
189 # challenge.
190 &quot;path&quot;: &quot;A String&quot;, # The URL path on which to serve the specified token to satisfy the
191 # certificate challenge.
192 },
193 },
194 }</pre>
195</div>
196
197<div class="method">
198 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
199 <pre>Deletes the existing domain mapping on the specified site.
200
201Args:
202 name: string, Required. The name of the domain association to delete. (required)
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208Returns:
209 An object of the form:
210
211 { # A generic empty message that you can re-use to avoid defining duplicated
212 # empty messages in your APIs. A typical example is to use it as the request
213 # or the response type of an API method. For instance:
214 #
215 # service Foo {
216 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
217 # }
218 #
219 # The JSON representation for `Empty` is empty JSON object `{}`.
220 }</pre>
221</div>
222
223<div class="method">
224 <code class="details" id="get">get(name, x__xgafv=None)</code>
225 <pre>Gets a domain mapping on the specified site.
226
227Args:
228 name: string, Required. The name of the domain configuration to get. (required)
229 x__xgafv: string, V1 error format.
230 Allowed values
231 1 - v1 error format
232 2 - v2 error format
233
234Returns:
235 An object of the form:
236
237 { # The intended behavior and status information of a domain.
238 &quot;domainRedirect&quot;: { # Defines the behavior of a domain-level redirect. Domain redirects preserve # If set, the domain should redirect with the provided parameters.
239 # the path of the redirect but replace the requested domain with the one
240 # specified in the redirect configuration.
241 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name to redirect to.
242 &quot;type&quot;: &quot;A String&quot;, # Required. The redirect status code.
243 },
244 &quot;status&quot;: &quot;A String&quot;, # Output only. Additional status of the domain association.
245 &quot;site&quot;: &quot;A String&quot;, # Required. The site name of the association.
246 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name of the association.
247 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the domain was last updated.
248 &quot;provisioning&quot;: { # The current certificate provisioning status information for a domain. # Output only. Information about the provisioning of certificates and the
249 # health of the DNS resolution for the domain.
250 &quot;dnsFetchTime&quot;: &quot;A String&quot;, # The time at which the last DNS fetch occurred.
251 &quot;certChallengeDns&quot;: { # Represents a DNS certificate challenge. # The DNS challenge for generating a certificate.
252 &quot;domainName&quot;: &quot;A String&quot;, # The domain name upon which the DNS challenge must be satisfied.
253 &quot;token&quot;: &quot;A String&quot;, # The value that must be present as a TXT record on the domain name to
254 # satisfy the challenge.
255 },
256 &quot;certStatus&quot;: &quot;A String&quot;, # The certificate provisioning status; updated when Firebase Hosting
257 # provisions an SSL certificate for the domain.
258 &quot;certChallengeDiscoveredTxt&quot;: [ # The TXT records (for the certificate challenge) that were found at the last
259 # DNS fetch.
260 &quot;A String&quot;,
261 ],
262 &quot;discoveredIps&quot;: [ # The IPs found at the last DNS fetch.
263 &quot;A String&quot;,
264 ],
265 &quot;expectedIps&quot;: [ # The list of IPs to which the domain is expected to resolve.
266 &quot;A String&quot;,
267 ],
268 &quot;dnsStatus&quot;: &quot;A String&quot;, # The DNS record match status as of the last DNS fetch.
269 &quot;certChallengeHttp&quot;: { # Represents an HTTP certificate challenge. # The HTTP challenge for generating a certificate.
270 &quot;token&quot;: &quot;A String&quot;, # The token to serve at the specified URL path to satisfy the certificate
271 # challenge.
272 &quot;path&quot;: &quot;A String&quot;, # The URL path on which to serve the specified token to satisfy the
273 # certificate challenge.
274 },
275 },
276 }</pre>
277</div>
278
279<div class="method">
280 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
281 <pre>Lists the domains for the specified site.
282
283Args:
284 parent: string, Required. The parent for which to list domains, in the format:
285&lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;&lt;/code&gt; (required)
286 pageToken: string, The next_page_token from a previous request, if provided.
287 pageSize: integer, The page size to return. Defaults to 50.
288 x__xgafv: string, V1 error format.
289 Allowed values
290 1 - v1 error format
291 2 - v2 error format
292
293Returns:
294 An object of the form:
295
296 { # The response to listing Domains.
297 &quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token, if more results exist.
298 &quot;domains&quot;: [ # The list of domains, if any exist.
299 { # The intended behavior and status information of a domain.
300 &quot;domainRedirect&quot;: { # Defines the behavior of a domain-level redirect. Domain redirects preserve # If set, the domain should redirect with the provided parameters.
301 # the path of the redirect but replace the requested domain with the one
302 # specified in the redirect configuration.
303 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name to redirect to.
304 &quot;type&quot;: &quot;A String&quot;, # Required. The redirect status code.
305 },
306 &quot;status&quot;: &quot;A String&quot;, # Output only. Additional status of the domain association.
307 &quot;site&quot;: &quot;A String&quot;, # Required. The site name of the association.
308 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name of the association.
309 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the domain was last updated.
310 &quot;provisioning&quot;: { # The current certificate provisioning status information for a domain. # Output only. Information about the provisioning of certificates and the
311 # health of the DNS resolution for the domain.
312 &quot;dnsFetchTime&quot;: &quot;A String&quot;, # The time at which the last DNS fetch occurred.
313 &quot;certChallengeDns&quot;: { # Represents a DNS certificate challenge. # The DNS challenge for generating a certificate.
314 &quot;domainName&quot;: &quot;A String&quot;, # The domain name upon which the DNS challenge must be satisfied.
315 &quot;token&quot;: &quot;A String&quot;, # The value that must be present as a TXT record on the domain name to
316 # satisfy the challenge.
317 },
318 &quot;certStatus&quot;: &quot;A String&quot;, # The certificate provisioning status; updated when Firebase Hosting
319 # provisions an SSL certificate for the domain.
320 &quot;certChallengeDiscoveredTxt&quot;: [ # The TXT records (for the certificate challenge) that were found at the last
321 # DNS fetch.
322 &quot;A String&quot;,
323 ],
324 &quot;discoveredIps&quot;: [ # The IPs found at the last DNS fetch.
325 &quot;A String&quot;,
326 ],
327 &quot;expectedIps&quot;: [ # The list of IPs to which the domain is expected to resolve.
328 &quot;A String&quot;,
329 ],
330 &quot;dnsStatus&quot;: &quot;A String&quot;, # The DNS record match status as of the last DNS fetch.
331 &quot;certChallengeHttp&quot;: { # Represents an HTTP certificate challenge. # The HTTP challenge for generating a certificate.
332 &quot;token&quot;: &quot;A String&quot;, # The token to serve at the specified URL path to satisfy the certificate
333 # challenge.
334 &quot;path&quot;: &quot;A String&quot;, # The URL path on which to serve the specified token to satisfy the
335 # certificate challenge.
336 },
337 },
338 },
339 ],
340 }</pre>
341</div>
342
343<div class="method">
344 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
345 <pre>Retrieves the next page of results.
346
347Args:
348 previous_request: The request for the previous page. (required)
349 previous_response: The response from the request for the previous page. (required)
350
351Returns:
352 A request object that you can call &#x27;execute()&#x27; on to request the next
353 page. Returns None if there are no more items in the collection.
354 </pre>
355</div>
356
357<div class="method">
358 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
359 <pre>Updates the specified domain mapping, creating the mapping as if it does
360not exist.
361
362Args:
363 name: string, Required. The name of the domain association to update or create, if an
364association doesn&#x27;t already exist. (required)
365 body: object, The request body.
366 The object takes the form of:
367
368{ # The intended behavior and status information of a domain.
369 &quot;domainRedirect&quot;: { # Defines the behavior of a domain-level redirect. Domain redirects preserve # If set, the domain should redirect with the provided parameters.
370 # the path of the redirect but replace the requested domain with the one
371 # specified in the redirect configuration.
372 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name to redirect to.
373 &quot;type&quot;: &quot;A String&quot;, # Required. The redirect status code.
374 },
375 &quot;status&quot;: &quot;A String&quot;, # Output only. Additional status of the domain association.
376 &quot;site&quot;: &quot;A String&quot;, # Required. The site name of the association.
377 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name of the association.
378 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the domain was last updated.
379 &quot;provisioning&quot;: { # The current certificate provisioning status information for a domain. # Output only. Information about the provisioning of certificates and the
380 # health of the DNS resolution for the domain.
381 &quot;dnsFetchTime&quot;: &quot;A String&quot;, # The time at which the last DNS fetch occurred.
382 &quot;certChallengeDns&quot;: { # Represents a DNS certificate challenge. # The DNS challenge for generating a certificate.
383 &quot;domainName&quot;: &quot;A String&quot;, # The domain name upon which the DNS challenge must be satisfied.
384 &quot;token&quot;: &quot;A String&quot;, # The value that must be present as a TXT record on the domain name to
385 # satisfy the challenge.
386 },
387 &quot;certStatus&quot;: &quot;A String&quot;, # The certificate provisioning status; updated when Firebase Hosting
388 # provisions an SSL certificate for the domain.
389 &quot;certChallengeDiscoveredTxt&quot;: [ # The TXT records (for the certificate challenge) that were found at the last
390 # DNS fetch.
391 &quot;A String&quot;,
392 ],
393 &quot;discoveredIps&quot;: [ # The IPs found at the last DNS fetch.
394 &quot;A String&quot;,
395 ],
396 &quot;expectedIps&quot;: [ # The list of IPs to which the domain is expected to resolve.
397 &quot;A String&quot;,
398 ],
399 &quot;dnsStatus&quot;: &quot;A String&quot;, # The DNS record match status as of the last DNS fetch.
400 &quot;certChallengeHttp&quot;: { # Represents an HTTP certificate challenge. # The HTTP challenge for generating a certificate.
401 &quot;token&quot;: &quot;A String&quot;, # The token to serve at the specified URL path to satisfy the certificate
402 # challenge.
403 &quot;path&quot;: &quot;A String&quot;, # The URL path on which to serve the specified token to satisfy the
404 # certificate challenge.
405 },
406 },
407}
408
409 x__xgafv: string, V1 error format.
410 Allowed values
411 1 - v1 error format
412 2 - v2 error format
413
414Returns:
415 An object of the form:
416
417 { # The intended behavior and status information of a domain.
418 &quot;domainRedirect&quot;: { # Defines the behavior of a domain-level redirect. Domain redirects preserve # If set, the domain should redirect with the provided parameters.
419 # the path of the redirect but replace the requested domain with the one
420 # specified in the redirect configuration.
421 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name to redirect to.
422 &quot;type&quot;: &quot;A String&quot;, # Required. The redirect status code.
423 },
424 &quot;status&quot;: &quot;A String&quot;, # Output only. Additional status of the domain association.
425 &quot;site&quot;: &quot;A String&quot;, # Required. The site name of the association.
426 &quot;domainName&quot;: &quot;A String&quot;, # Required. The domain name of the association.
427 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the domain was last updated.
428 &quot;provisioning&quot;: { # The current certificate provisioning status information for a domain. # Output only. Information about the provisioning of certificates and the
429 # health of the DNS resolution for the domain.
430 &quot;dnsFetchTime&quot;: &quot;A String&quot;, # The time at which the last DNS fetch occurred.
431 &quot;certChallengeDns&quot;: { # Represents a DNS certificate challenge. # The DNS challenge for generating a certificate.
432 &quot;domainName&quot;: &quot;A String&quot;, # The domain name upon which the DNS challenge must be satisfied.
433 &quot;token&quot;: &quot;A String&quot;, # The value that must be present as a TXT record on the domain name to
434 # satisfy the challenge.
435 },
436 &quot;certStatus&quot;: &quot;A String&quot;, # The certificate provisioning status; updated when Firebase Hosting
437 # provisions an SSL certificate for the domain.
438 &quot;certChallengeDiscoveredTxt&quot;: [ # The TXT records (for the certificate challenge) that were found at the last
439 # DNS fetch.
440 &quot;A String&quot;,
441 ],
442 &quot;discoveredIps&quot;: [ # The IPs found at the last DNS fetch.
443 &quot;A String&quot;,
444 ],
445 &quot;expectedIps&quot;: [ # The list of IPs to which the domain is expected to resolve.
446 &quot;A String&quot;,
447 ],
448 &quot;dnsStatus&quot;: &quot;A String&quot;, # The DNS record match status as of the last DNS fetch.
449 &quot;certChallengeHttp&quot;: { # Represents an HTTP certificate challenge. # The HTTP challenge for generating a certificate.
450 &quot;token&quot;: &quot;A String&quot;, # The token to serve at the specified URL path to satisfy the certificate
451 # challenge.
452 &quot;path&quot;: &quot;A String&quot;, # The URL path on which to serve the specified token to satisfy the
453 # certificate challenge.
454 },
455 },
456 }</pre>
457</div>
458
459</body></html>