blob: dbaa054ca67a85bf568f1170963ebfbb588c0c28 [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.releases.html">releases</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(parent, body=None, versionName=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a new release which makes the content of the specified version</p>
80<p class="toc_element">
81 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Lists the releases that have been created on the specified site.</p>
83<p class="toc_element">
84 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<h3>Method Details</h3>
87<div class="method">
88 <code class="details" id="create">create(parent, body=None, versionName=None, x__xgafv=None)</code>
89 <pre>Creates a new release which makes the content of the specified version
90actively display on the appropriate URL(s).
91
92Args:
93 parent: string, Required. The site that the release belongs to, in the format:
94&lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;&lt;/code&gt; (required)
95 body: object, The request body.
96 The object takes the form of:
97
98{ # A `Release` is a particular
99 # [collection of configurations and files](sites.versions)
100 # that is set to be public at a particular time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700101 &quot;version&quot;: { # A `Version` is the collection of configuration and # Output only. The configuration and content that was released.
102 # [static files](sites.versions.files) that determine how a site is displayed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700103 &quot;deleteUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
104 # a release or finalizing a version.
105 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
106 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
107 # changed their email address or deleted their account.
108 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700109 &quot;finalizeUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
110 # a release or finalizing a version.
111 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
112 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
113 # changed their email address or deleted their account.
114 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700115 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 &quot;preview&quot;: { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
117 # specfies whether previewing is enabled for this site version. Version
118 # previews allow you to preview your site at a custom URL before
119 # releasing it as the live version.
120 # this version will be accessible via a custom URL even
121 # if it is not the currently released version.
122 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
123 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this
124 # version; preview URL requests received after this time will 404.
125 },
126 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
127 &quot;a_key&quot;: &quot;A String&quot;,
128 },
129 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
130 &quot;versionBytes&quot;: &quot;A String&quot;, # Output only. The total stored bytesize of the version.
131 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
132 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
133 &quot;status&quot;: &quot;A String&quot;, # The deploy status of a version.
134 # &lt;br&gt;
135 # &lt;br&gt;For a successful deploy, call the
136 # [`CreateVersion`](sites.versions/create) endpoint to make a new version
137 # (`CREATED` status),
138 # [upload all desired files](sites.versions/populateFiles) to the version,
139 # then [update](sites.versions/patch) the version to the `FINALIZED` status.
140 # &lt;br&gt;
141 # &lt;br&gt;Note that if you leave the version in the `CREATED` state for more
142 # than 12&amp;nbsp;hours, the system will automatically mark the version as
143 # `ABANDONED`.
144 # &lt;br&gt;
145 # &lt;br&gt;You can also change the status of a version to `DELETED` by calling the
146 # [`DeleteVersion`](sites.versions/delete) endpoint.
147 &quot;config&quot;: { # The configuration for how incoming requests to a site should be routed and # The configuration for the behavior of the site. This configuration exists
148 # in the [`firebase.json`](/docs/cli/#the_firebasejson_file) file.
149 # processed before serving content. The patterns are matched and applied
150 # according to a specific
151 # [priority order](/docs/hosting/full-config#hosting_priority_order).
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;redirects&quot;: [ # A list of globs that will cause the response to redirect to another
153 # location.
154 { # A [`redirect`](/docs/hosting/full-config#redirects) represents the
155 # configuration for returning an HTTP redirect response given a matching
156 # request URL path.
157 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob
158 # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
159 # against the request URL path.
160 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a
161 # valid 3xx status code.
162 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
163 # URL path.
164 &quot;location&quot;: &quot;A String&quot;, # Required. The value to put in the HTTP location header of the response.
165 # &lt;br&gt;The location can contain capture group values from the pattern using
166 # a `:` prefix to identify the segment and an optional `*` to capture the
167 # rest of the URL.
168 # For example:
169 # &lt;code&gt;&quot;glob&quot;: &quot;/:capture*&quot;,
170 # &lt;br&gt;&quot;statusCode&quot;: 301,
171 # &lt;br&gt;&quot;location&quot;: &quot;https://example.com/foo/:capture&quot;&lt;/code&gt;
172 },
173 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700174 &quot;headers&quot;: [ # A list of custom response headers that are added to the content if the
175 # request URL path matches the glob.
176 { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
177 # add to a response should the request URL path match the pattern.
178 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
179 # URL path.
180 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob
181 # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
182 # against the request URL path.
183 &quot;headers&quot;: { # Required. The additional headers to add to the response.
184 &quot;a_key&quot;: &quot;A String&quot;,
185 },
186 },
187 ],
188 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
189 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
190 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
191 &quot;rewrites&quot;: [ # A list of rewrites that will act as if the service were given the
192 # destination URL.
193 { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
194 # content rewrite on the version. If the pattern matches, the request will be
195 # handled as if it were to the destination path specified in the
196 # configuration.
197 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
198 # URL path.
199 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
200 &quot;run&quot;: { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
201 # Cloud Run service does not exist when setting or updating your Firebase
202 # Hosting configuration, then the request fails. Any errors from the Cloud Run
203 # service are passed to the end user (for example, if you delete a service, any
204 # requests directed to that service receive a `404` error).
205 &quot;region&quot;: &quot;A String&quot;, # Optional. User-provided region where the Cloud Run service is hosted.&lt;br&gt;
206 # Defaults to `us-central1` if not supplied.
207 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
208 },
209 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob
210 # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
211 # against the request URL path.
212 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
213 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function
214 # name exactly.
215 },
216 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 },
218 &quot;name&quot;: &quot;A String&quot;, # The unique identifier for a version, in the format:
219 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/versions/&lt;var&gt;versionID&lt;/var&gt;&lt;/code&gt;
220 # This name is provided in the response body when you call the
221 # [`CreateVersion`](../sites.versions/create) endpoint.
222 &quot;createUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the version.
223 # a release or finalizing a version.
224 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
225 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
226 # changed their email address or deleted their account.
227 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700228 &quot;fileCount&quot;: &quot;A String&quot;, # Output only. The total number of files associated with the version.
229 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700231 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to
232 # 512&amp;nbsp;characters.
233 &quot;releaseUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the release.
234 # a release or finalizing a version.
235 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
236 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
237 # changed their email address or deleted their account.
238 },
239 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
240 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in the format:
241 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/releases/&lt;var&gt;releaseID&lt;/var&gt;&lt;/code&gt;
242 # This name is provided in the response body when you call the
243 # [`CreateRelease`](sites.releases/create) endpoint.
244 &quot;type&quot;: &quot;A String&quot;, # Explains the reason for the release.
245 # &lt;br&gt;Specify a value for this field only when creating a `SITE_DISABLE`
246 # type release.
Bu Sun Kim65020912020-05-20 12:08:20 -0700247}
248
249 versionName: string, The unique identifier for a version, in the format:
250&lt;code&gt;/sites/&lt;var&gt;site-name&lt;/var&gt;/versions/&lt;var&gt;versionID&lt;/var&gt;&lt;/code&gt;
251The &lt;var&gt;site-name&lt;/var&gt; in this version identifier must match the
252&lt;var&gt;site-name&lt;/var&gt; in the `parent` parameter.
253&lt;br&gt;
254&lt;br&gt;This query parameter must be empty if the `type` field in the
255request body is `SITE_DISABLE`.
256 x__xgafv: string, V1 error format.
257 Allowed values
258 1 - v1 error format
259 2 - v2 error format
260
261Returns:
262 An object of the form:
263
264 { # A `Release` is a particular
265 # [collection of configurations and files](sites.versions)
266 # that is set to be public at a particular time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 &quot;version&quot;: { # A `Version` is the collection of configuration and # Output only. The configuration and content that was released.
268 # [static files](sites.versions.files) that determine how a site is displayed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &quot;deleteUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
270 # a release or finalizing a version.
271 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
272 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
273 # changed their email address or deleted their account.
274 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 &quot;finalizeUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
276 # a release or finalizing a version.
277 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
278 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
279 # changed their email address or deleted their account.
280 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700281 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 &quot;preview&quot;: { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
283 # specfies whether previewing is enabled for this site version. Version
284 # previews allow you to preview your site at a custom URL before
285 # releasing it as the live version.
286 # this version will be accessible via a custom URL even
287 # if it is not the currently released version.
288 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
289 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this
290 # version; preview URL requests received after this time will 404.
291 },
292 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
293 &quot;a_key&quot;: &quot;A String&quot;,
294 },
295 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
296 &quot;versionBytes&quot;: &quot;A String&quot;, # Output only. The total stored bytesize of the version.
297 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
298 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
299 &quot;status&quot;: &quot;A String&quot;, # The deploy status of a version.
300 # &lt;br&gt;
301 # &lt;br&gt;For a successful deploy, call the
302 # [`CreateVersion`](sites.versions/create) endpoint to make a new version
303 # (`CREATED` status),
304 # [upload all desired files](sites.versions/populateFiles) to the version,
305 # then [update](sites.versions/patch) the version to the `FINALIZED` status.
306 # &lt;br&gt;
307 # &lt;br&gt;Note that if you leave the version in the `CREATED` state for more
308 # than 12&amp;nbsp;hours, the system will automatically mark the version as
309 # `ABANDONED`.
310 # &lt;br&gt;
311 # &lt;br&gt;You can also change the status of a version to `DELETED` by calling the
312 # [`DeleteVersion`](sites.versions/delete) endpoint.
313 &quot;config&quot;: { # The configuration for how incoming requests to a site should be routed and # The configuration for the behavior of the site. This configuration exists
314 # in the [`firebase.json`](/docs/cli/#the_firebasejson_file) file.
315 # processed before serving content. The patterns are matched and applied
316 # according to a specific
317 # [priority order](/docs/hosting/full-config#hosting_priority_order).
Bu Sun Kim65020912020-05-20 12:08:20 -0700318 &quot;redirects&quot;: [ # A list of globs that will cause the response to redirect to another
319 # location.
320 { # A [`redirect`](/docs/hosting/full-config#redirects) represents the
321 # configuration for returning an HTTP redirect response given a matching
322 # request URL path.
323 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob
324 # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
325 # against the request URL path.
326 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a
327 # valid 3xx status code.
328 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
329 # URL path.
330 &quot;location&quot;: &quot;A String&quot;, # Required. The value to put in the HTTP location header of the response.
331 # &lt;br&gt;The location can contain capture group values from the pattern using
332 # a `:` prefix to identify the segment and an optional `*` to capture the
333 # rest of the URL.
334 # For example:
335 # &lt;code&gt;&quot;glob&quot;: &quot;/:capture*&quot;,
336 # &lt;br&gt;&quot;statusCode&quot;: 301,
337 # &lt;br&gt;&quot;location&quot;: &quot;https://example.com/foo/:capture&quot;&lt;/code&gt;
338 },
339 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700340 &quot;headers&quot;: [ # A list of custom response headers that are added to the content if the
341 # request URL path matches the glob.
342 { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
343 # add to a response should the request URL path match the pattern.
344 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
345 # URL path.
346 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob
347 # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
348 # against the request URL path.
349 &quot;headers&quot;: { # Required. The additional headers to add to the response.
350 &quot;a_key&quot;: &quot;A String&quot;,
351 },
352 },
353 ],
354 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
355 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
356 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
357 &quot;rewrites&quot;: [ # A list of rewrites that will act as if the service were given the
358 # destination URL.
359 { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
360 # content rewrite on the version. If the pattern matches, the request will be
361 # handled as if it were to the destination path specified in the
362 # configuration.
363 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
364 # URL path.
365 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
366 &quot;run&quot;: { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
367 # Cloud Run service does not exist when setting or updating your Firebase
368 # Hosting configuration, then the request fails. Any errors from the Cloud Run
369 # service are passed to the end user (for example, if you delete a service, any
370 # requests directed to that service receive a `404` error).
371 &quot;region&quot;: &quot;A String&quot;, # Optional. User-provided region where the Cloud Run service is hosted.&lt;br&gt;
372 # Defaults to `us-central1` if not supplied.
373 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
374 },
375 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob
376 # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
377 # against the request URL path.
378 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
379 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function
380 # name exactly.
381 },
382 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 },
384 &quot;name&quot;: &quot;A String&quot;, # The unique identifier for a version, in the format:
385 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/versions/&lt;var&gt;versionID&lt;/var&gt;&lt;/code&gt;
386 # This name is provided in the response body when you call the
387 # [`CreateVersion`](../sites.versions/create) endpoint.
388 &quot;createUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the version.
389 # a release or finalizing a version.
390 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
391 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
392 # changed their email address or deleted their account.
393 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700394 &quot;fileCount&quot;: &quot;A String&quot;, # Output only. The total number of files associated with the version.
395 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700397 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to
398 # 512&amp;nbsp;characters.
399 &quot;releaseUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the release.
400 # a release or finalizing a version.
401 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
402 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
403 # changed their email address or deleted their account.
404 },
405 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
406 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in the format:
407 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/releases/&lt;var&gt;releaseID&lt;/var&gt;&lt;/code&gt;
408 # This name is provided in the response body when you call the
409 # [`CreateRelease`](sites.releases/create) endpoint.
410 &quot;type&quot;: &quot;A String&quot;, # Explains the reason for the release.
411 # &lt;br&gt;Specify a value for this field only when creating a `SITE_DISABLE`
412 # type release.
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 }</pre>
414</div>
415
416<div class="method">
417 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
418 <pre>Lists the releases that have been created on the specified site.
419
420Args:
421 parent: string, Required. The parent for which to list files, in the format:
422&lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;&lt;/code&gt; (required)
423 pageToken: string, The next_page_token from a previous request, if provided.
424 pageSize: integer, The page size to return. Defaults to 100.
425 x__xgafv: string, V1 error format.
426 Allowed values
427 1 - v1 error format
428 2 - v2 error format
429
430Returns:
431 An object of the form:
432
433 {
434 &quot;releases&quot;: [ # The list of hashes of files that still need to be uploaded, if any exist.
435 { # A `Release` is a particular
436 # [collection of configurations and files](sites.versions)
437 # that is set to be public at a particular time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700438 &quot;version&quot;: { # A `Version` is the collection of configuration and # Output only. The configuration and content that was released.
439 # [static files](sites.versions.files) that determine how a site is displayed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700440 &quot;deleteUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
441 # a release or finalizing a version.
442 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
443 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
444 # changed their email address or deleted their account.
445 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700446 &quot;finalizeUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
447 # a release or finalizing a version.
448 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
449 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
450 # changed their email address or deleted their account.
451 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700452 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700453 &quot;preview&quot;: { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
454 # specfies whether previewing is enabled for this site version. Version
455 # previews allow you to preview your site at a custom URL before
456 # releasing it as the live version.
457 # this version will be accessible via a custom URL even
458 # if it is not the currently released version.
459 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
460 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this
461 # version; preview URL requests received after this time will 404.
462 },
463 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
464 &quot;a_key&quot;: &quot;A String&quot;,
465 },
466 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
467 &quot;versionBytes&quot;: &quot;A String&quot;, # Output only. The total stored bytesize of the version.
468 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
469 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
470 &quot;status&quot;: &quot;A String&quot;, # The deploy status of a version.
471 # &lt;br&gt;
472 # &lt;br&gt;For a successful deploy, call the
473 # [`CreateVersion`](sites.versions/create) endpoint to make a new version
474 # (`CREATED` status),
475 # [upload all desired files](sites.versions/populateFiles) to the version,
476 # then [update](sites.versions/patch) the version to the `FINALIZED` status.
477 # &lt;br&gt;
478 # &lt;br&gt;Note that if you leave the version in the `CREATED` state for more
479 # than 12&amp;nbsp;hours, the system will automatically mark the version as
480 # `ABANDONED`.
481 # &lt;br&gt;
482 # &lt;br&gt;You can also change the status of a version to `DELETED` by calling the
483 # [`DeleteVersion`](sites.versions/delete) endpoint.
484 &quot;config&quot;: { # The configuration for how incoming requests to a site should be routed and # The configuration for the behavior of the site. This configuration exists
485 # in the [`firebase.json`](/docs/cli/#the_firebasejson_file) file.
486 # processed before serving content. The patterns are matched and applied
487 # according to a specific
488 # [priority order](/docs/hosting/full-config#hosting_priority_order).
Bu Sun Kim65020912020-05-20 12:08:20 -0700489 &quot;redirects&quot;: [ # A list of globs that will cause the response to redirect to another
490 # location.
491 { # A [`redirect`](/docs/hosting/full-config#redirects) represents the
492 # configuration for returning an HTTP redirect response given a matching
493 # request URL path.
494 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob
495 # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
496 # against the request URL path.
497 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a
498 # valid 3xx status code.
499 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
500 # URL path.
501 &quot;location&quot;: &quot;A String&quot;, # Required. The value to put in the HTTP location header of the response.
502 # &lt;br&gt;The location can contain capture group values from the pattern using
503 # a `:` prefix to identify the segment and an optional `*` to capture the
504 # rest of the URL.
505 # For example:
506 # &lt;code&gt;&quot;glob&quot;: &quot;/:capture*&quot;,
507 # &lt;br&gt;&quot;statusCode&quot;: 301,
508 # &lt;br&gt;&quot;location&quot;: &quot;https://example.com/foo/:capture&quot;&lt;/code&gt;
509 },
510 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700511 &quot;headers&quot;: [ # A list of custom response headers that are added to the content if the
512 # request URL path matches the glob.
513 { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
514 # add to a response should the request URL path match the pattern.
515 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
516 # URL path.
517 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob
518 # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
519 # against the request URL path.
520 &quot;headers&quot;: { # Required. The additional headers to add to the response.
521 &quot;a_key&quot;: &quot;A String&quot;,
522 },
523 },
524 ],
525 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
526 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
527 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
528 &quot;rewrites&quot;: [ # A list of rewrites that will act as if the service were given the
529 # destination URL.
530 { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
531 # content rewrite on the version. If the pattern matches, the request will be
532 # handled as if it were to the destination path specified in the
533 # configuration.
534 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
535 # URL path.
536 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
537 &quot;run&quot;: { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
538 # Cloud Run service does not exist when setting or updating your Firebase
539 # Hosting configuration, then the request fails. Any errors from the Cloud Run
540 # service are passed to the end user (for example, if you delete a service, any
541 # requests directed to that service receive a `404` error).
542 &quot;region&quot;: &quot;A String&quot;, # Optional. User-provided region where the Cloud Run service is hosted.&lt;br&gt;
543 # Defaults to `us-central1` if not supplied.
544 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
545 },
546 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob
547 # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
548 # against the request URL path.
549 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
550 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function
551 # name exactly.
552 },
553 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700554 },
555 &quot;name&quot;: &quot;A String&quot;, # The unique identifier for a version, in the format:
556 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/versions/&lt;var&gt;versionID&lt;/var&gt;&lt;/code&gt;
557 # This name is provided in the response body when you call the
558 # [`CreateVersion`](../sites.versions/create) endpoint.
559 &quot;createUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the version.
560 # a release or finalizing a version.
561 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
562 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
563 # changed their email address or deleted their account.
564 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700565 &quot;fileCount&quot;: &quot;A String&quot;, # Output only. The total number of files associated with the version.
566 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700568 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to
569 # 512&amp;nbsp;characters.
570 &quot;releaseUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the release.
571 # a release or finalizing a version.
572 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
573 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
574 # changed their email address or deleted their account.
575 },
576 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
577 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in the format:
578 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/releases/&lt;var&gt;releaseID&lt;/var&gt;&lt;/code&gt;
579 # This name is provided in the response body when you call the
580 # [`CreateRelease`](sites.releases/create) endpoint.
581 &quot;type&quot;: &quot;A String&quot;, # Explains the reason for the release.
582 # &lt;br&gt;Specify a value for this field only when creating a `SITE_DISABLE`
583 # type release.
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 },
585 ],
586 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there are additional releases remaining beyond the ones in this
587 # response, then supply this token in the next
588 # [`list`](../sites.versions.files/list) call to continue with the next set
589 # of releases.
590 }</pre>
591</div>
592
593<div class="method">
594 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
595 <pre>Retrieves the next page of results.
596
597Args:
598 previous_request: The request for the previous page. (required)
599 previous_response: The response from the request for the previous page. (required)
600
601Returns:
602 A request object that you can call &#x27;execute()&#x27; on to request the next
603 page. Returns None if there are no more items in the collection.
604 </pre>
605</div>
606
607</body></html>