blob: 9c01d006eb1dabce502d04596ca497ee4c74d278 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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.sites.html">sites</a> . <a href="firebasehosting_v1beta1.sites.releases.html">releases</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, versionName=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a new release which makes the content of the specified version</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<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">
Dan O'Mearadd494642020-05-01 07:42:23 -070088 <code class="details" id="create">create(parent, body=None, versionName=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089 <pre>Creates a new release which makes the content of the specified version
Dan O'Mearadd494642020-05-01 07:42:23 -070090actively display on the appropriate URL(s).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091
92Args:
Dan O'Mearadd494642020-05-01 07:42:23 -070093 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096 The object takes the form of:
97
98{ # A `Release` is a particular
Bu Sun Kim65020912020-05-20 12:08:20 -070099 # [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 Kimd059ad82020-07-22 17:02:09 -0700103 &quot;createUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 # a release or finalizing a version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700105 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 # changed their email address or deleted their account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700109 &quot;name&quot;: &quot;A String&quot;, # The unique identifier for a version, in the format:
110 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/versions/&lt;var&gt;versionID&lt;/var&gt;&lt;/code&gt;
111 # This name is provided in the response body when you call the
112 # [`CreateVersion`](../sites.versions/create) endpoint.
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
114 &quot;a_key&quot;: &quot;A String&quot;,
115 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700116 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
117 &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
118 # in the [`firebase.json`](/docs/cli/#the_firebasejson_file) file.
119 # processed before serving content. The URL request paths are matched against
120 # the specified URL patterns in the configuration, then Hosting applies the
121 # applicable configuration according to a specific
122 # [priority order](/docs/hosting/full-config#hosting_priority_order).
123 &quot;headers&quot;: [ # An array of objects, where each object specifies a URL pattern that, if
124 # matched to the request URL path, triggers Hosting to apply the specified
125 # custom response headers.
126 { # A [`header`](/docs/hosting/full-config#headers) is an object that specifies
127 # a URL pattern that, if matched to the request URL path, triggers Hosting to
128 # apply the specified custom response headers.
129 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied
130 # [glob](/docs/hosting/full-config#glob_pattern_matching) to match
131 # against the request URL path.
132 &quot;headers&quot;: { # Required. The additional headers to add to the response.
133 &quot;a_key&quot;: &quot;A String&quot;,
134 },
135 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
136 # URL path.
137 },
138 ],
139 &quot;redirects&quot;: [ # An array of objects (called redirect rules), where each rule specifies a
140 # URL pattern that, if matched to the request URL path, triggers Hosting to
141 # respond with a redirect to the specified destination path.
142 { # A [`redirect`](/docs/hosting/full-config#redirects) object specifies a URL
143 # pattern that, if matched to the request URL path, triggers Hosting to
144 # respond with a redirect to the specified destination path.
145 &quot;location&quot;: &quot;A String&quot;, # Required. The value to put in the HTTP location header of the response.
146 # &lt;br&gt;The location can contain capture group values from the pattern using
147 # a `:` prefix to identify the segment and an optional `*` to capture the
148 # rest of the URL.
149 # For example:
150 # &lt;code&gt;&quot;glob&quot;: &quot;/:capture*&quot;,
151 # &lt;br&gt;&quot;statusCode&quot;: 301,
152 # &lt;br&gt;&quot;location&quot;: &quot;https://example.com/foo/:capture&quot;&lt;/code&gt;
153 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied
154 # [glob](/docs/hosting/full-config#glob_pattern_matching) to match
155 # against the request URL path.
156 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a
157 # valid 3xx status code.
158 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
159 # URL path.
160 },
161 ],
162 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
163 &quot;rewrites&quot;: [ # An array of objects (called rewrite rules), where each rule specifies a URL
164 # pattern that, if matched to the request URL path, triggers Hosting to
165 # respond as if the service were given the specified destination URL.
166 { # A [`rewrite`](/docs/hosting/full-config#rewrites) object specifies a URL
167 # pattern that, if matched to the request URL path, triggers Hosting to
168 # respond as if the service were given the specified destination URL.
169 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
170 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
171 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied
172 # [glob](/docs/hosting/full-config#glob_pattern_matching) to match
173 # against the request URL path.
174 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
175 # URL path.
176 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function
177 # name exactly.
178 &quot;run&quot;: { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
179 # Cloud Run service does not exist when setting or updating your Firebase
180 # Hosting configuration, then the request fails. Any errors from the Cloud Run
181 # service are passed to the end user (for example, if you delete a service, any
182 # requests directed to that service receive a `404` error).
183 &quot;region&quot;: &quot;A String&quot;, # Optional. User-provided region where the Cloud Run service is hosted.&lt;br&gt;
184 # Defaults to `us-central1` if not supplied.
185 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
186 },
187 },
188 ],
189 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
190 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
191 },
192 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
193 &quot;deleteUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
194 # a release or finalizing a version.
195 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
196 # changed their email address or deleted their account.
197 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
198 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700199 &quot;versionBytes&quot;: &quot;A String&quot;, # Output only. The total stored bytesize of the version.
200 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700201 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
202 &quot;fileCount&quot;: &quot;A String&quot;, # Output only. The total number of files associated with the version.
203 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700204 &quot;status&quot;: &quot;A String&quot;, # The deploy status of a version.
205 # &lt;br&gt;
206 # &lt;br&gt;For a successful deploy, call the
207 # [`CreateVersion`](sites.versions/create) endpoint to make a new version
208 # (`CREATED` status),
209 # [upload all desired files](sites.versions/populateFiles) to the version,
210 # then [update](sites.versions/patch) the version to the `FINALIZED` status.
211 # &lt;br&gt;
212 # &lt;br&gt;Note that if you leave the version in the `CREATED` state for more
213 # than 12&amp;nbsp;hours, the system will automatically mark the version as
214 # `ABANDONED`.
215 # &lt;br&gt;
216 # &lt;br&gt;You can also change the status of a version to `DELETED` by calling the
217 # [`DeleteVersion`](sites.versions/delete) endpoint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700218 &quot;preview&quot;: { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
219 # specfies whether previewing is enabled for this site version. Version
220 # previews allow you to preview your site at a custom URL before
221 # releasing it as the live version.
222 # this version will be accessible via a custom URL even
223 # if it is not the currently released version.
224 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this
225 # version; preview URL requests received after this time will 404.
226 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700228 &quot;finalizeUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 # a release or finalizing a version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
231 # changed their email address or deleted their account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700232 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 },
234 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700235 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to
236 # 512&amp;nbsp;characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700237 &quot;type&quot;: &quot;A String&quot;, # Explains the reason for the release.
238 # &lt;br&gt;Specify a value for this field only when creating a `SITE_DISABLE`
239 # type release.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700240 &quot;releaseUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the release.
241 # a release or finalizing a version.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700242 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
243 # changed their email address or deleted their account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700244 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700245 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700246 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in the format:
247 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/releases/&lt;var&gt;releaseID&lt;/var&gt;&lt;/code&gt;
248 # This name is provided in the response body when you call the
249 # [`CreateRelease`](sites.releases/create) endpoint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700250 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
Bu Sun Kim65020912020-05-20 12:08:20 -0700251}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700252
253 versionName: string, The unique identifier for a version, in the format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700254&lt;code&gt;/sites/&lt;var&gt;site-name&lt;/var&gt;/versions/&lt;var&gt;versionID&lt;/var&gt;&lt;/code&gt;
255The &lt;var&gt;site-name&lt;/var&gt; in this version identifier must match the
256&lt;var&gt;site-name&lt;/var&gt; in the `parent` parameter.
257&lt;br&gt;
258&lt;br&gt;This query parameter must be empty if the `type` field in the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259request body is `SITE_DISABLE`.
260 x__xgafv: string, V1 error format.
261 Allowed values
262 1 - v1 error format
263 2 - v2 error format
264
265Returns:
266 An object of the form:
267
268 { # A `Release` is a particular
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 # [collection of configurations and files](sites.versions)
270 # that is set to be public at a particular time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 &quot;version&quot;: { # A `Version` is the collection of configuration and # Output only. The configuration and content that was released.
272 # [static files](sites.versions.files) that determine how a site is displayed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700273 &quot;createUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700274 # a release or finalizing a version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276 # changed their email address or deleted their account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Bu Sun Kim65020912020-05-20 12:08:20 -0700278 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700279 &quot;name&quot;: &quot;A String&quot;, # The unique identifier for a version, in the format:
280 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/versions/&lt;var&gt;versionID&lt;/var&gt;&lt;/code&gt;
281 # This name is provided in the response body when you call the
282 # [`CreateVersion`](../sites.versions/create) endpoint.
Bu Sun Kim65020912020-05-20 12:08:20 -0700283 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
284 &quot;a_key&quot;: &quot;A String&quot;,
285 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700286 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
287 &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
288 # in the [`firebase.json`](/docs/cli/#the_firebasejson_file) file.
289 # processed before serving content. The URL request paths are matched against
290 # the specified URL patterns in the configuration, then Hosting applies the
291 # applicable configuration according to a specific
292 # [priority order](/docs/hosting/full-config#hosting_priority_order).
293 &quot;headers&quot;: [ # An array of objects, where each object specifies a URL pattern that, if
294 # matched to the request URL path, triggers Hosting to apply the specified
295 # custom response headers.
296 { # A [`header`](/docs/hosting/full-config#headers) is an object that specifies
297 # a URL pattern that, if matched to the request URL path, triggers Hosting to
298 # apply the specified custom response headers.
299 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied
300 # [glob](/docs/hosting/full-config#glob_pattern_matching) to match
301 # against the request URL path.
302 &quot;headers&quot;: { # Required. The additional headers to add to the response.
303 &quot;a_key&quot;: &quot;A String&quot;,
304 },
305 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
306 # URL path.
307 },
308 ],
309 &quot;redirects&quot;: [ # An array of objects (called redirect rules), where each rule specifies a
310 # URL pattern that, if matched to the request URL path, triggers Hosting to
311 # respond with a redirect to the specified destination path.
312 { # A [`redirect`](/docs/hosting/full-config#redirects) object specifies a URL
313 # pattern that, if matched to the request URL path, triggers Hosting to
314 # respond with a redirect to the specified destination path.
315 &quot;location&quot;: &quot;A String&quot;, # Required. The value to put in the HTTP location header of the response.
316 # &lt;br&gt;The location can contain capture group values from the pattern using
317 # a `:` prefix to identify the segment and an optional `*` to capture the
318 # rest of the URL.
319 # For example:
320 # &lt;code&gt;&quot;glob&quot;: &quot;/:capture*&quot;,
321 # &lt;br&gt;&quot;statusCode&quot;: 301,
322 # &lt;br&gt;&quot;location&quot;: &quot;https://example.com/foo/:capture&quot;&lt;/code&gt;
323 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied
324 # [glob](/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 },
331 ],
332 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
333 &quot;rewrites&quot;: [ # An array of objects (called rewrite rules), where each rule specifies a URL
334 # pattern that, if matched to the request URL path, triggers Hosting to
335 # respond as if the service were given the specified destination URL.
336 { # A [`rewrite`](/docs/hosting/full-config#rewrites) object specifies a URL
337 # pattern that, if matched to the request URL path, triggers Hosting to
338 # respond as if the service were given the specified destination URL.
339 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
340 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
341 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied
342 # [glob](/docs/hosting/full-config#glob_pattern_matching) to match
343 # against the request URL path.
344 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
345 # URL path.
346 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function
347 # name exactly.
348 &quot;run&quot;: { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
349 # Cloud Run service does not exist when setting or updating your Firebase
350 # Hosting configuration, then the request fails. Any errors from the Cloud Run
351 # service are passed to the end user (for example, if you delete a service, any
352 # requests directed to that service receive a `404` error).
353 &quot;region&quot;: &quot;A String&quot;, # Optional. User-provided region where the Cloud Run service is hosted.&lt;br&gt;
354 # Defaults to `us-central1` if not supplied.
355 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
356 },
357 },
358 ],
359 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
360 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
361 },
362 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
363 &quot;deleteUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
364 # a release or finalizing a version.
365 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
366 # changed their email address or deleted their account.
367 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
368 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 &quot;versionBytes&quot;: &quot;A String&quot;, # Output only. The total stored bytesize of the version.
370 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700371 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
372 &quot;fileCount&quot;: &quot;A String&quot;, # Output only. The total number of files associated with the version.
373 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700374 &quot;status&quot;: &quot;A String&quot;, # The deploy status of a version.
375 # &lt;br&gt;
376 # &lt;br&gt;For a successful deploy, call the
377 # [`CreateVersion`](sites.versions/create) endpoint to make a new version
378 # (`CREATED` status),
379 # [upload all desired files](sites.versions/populateFiles) to the version,
380 # then [update](sites.versions/patch) the version to the `FINALIZED` status.
381 # &lt;br&gt;
382 # &lt;br&gt;Note that if you leave the version in the `CREATED` state for more
383 # than 12&amp;nbsp;hours, the system will automatically mark the version as
384 # `ABANDONED`.
385 # &lt;br&gt;
386 # &lt;br&gt;You can also change the status of a version to `DELETED` by calling the
387 # [`DeleteVersion`](sites.versions/delete) endpoint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700388 &quot;preview&quot;: { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
389 # specfies whether previewing is enabled for this site version. Version
390 # previews allow you to preview your site at a custom URL before
391 # releasing it as the live version.
392 # this version will be accessible via a custom URL even
393 # if it is not the currently released version.
394 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this
395 # version; preview URL requests received after this time will 404.
396 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700398 &quot;finalizeUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 # a release or finalizing a version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
401 # changed their email address or deleted their account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700402 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 },
404 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700405 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to
406 # 512&amp;nbsp;characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700407 &quot;type&quot;: &quot;A String&quot;, # Explains the reason for the release.
408 # &lt;br&gt;Specify a value for this field only when creating a `SITE_DISABLE`
409 # type release.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700410 &quot;releaseUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the release.
411 # a release or finalizing a version.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700412 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
413 # changed their email address or deleted their account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700414 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700415 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700416 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in the format:
417 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/releases/&lt;var&gt;releaseID&lt;/var&gt;&lt;/code&gt;
418 # This name is provided in the response body when you call the
419 # [`CreateRelease`](sites.releases/create) endpoint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700420 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700422</div>
423
424<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700426 <pre>Lists the releases that have been created on the specified site.
427
428Args:
429 parent: string, Required. The parent for which to list files, in the format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700430&lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;&lt;/code&gt; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700431 pageToken: string, The next_page_token from a previous request, if provided.
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 pageSize: integer, The page size to return. Defaults to 100.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700433 x__xgafv: string, V1 error format.
434 Allowed values
435 1 - v1 error format
436 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700437
438Returns:
439 An object of the form:
440
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 {
442 &quot;releases&quot;: [ # The list of hashes of files that still need to be uploaded, if any exist.
443 { # A `Release` is a particular
444 # [collection of configurations and files](sites.versions)
445 # that is set to be public at a particular time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700446 &quot;version&quot;: { # A `Version` is the collection of configuration and # Output only. The configuration and content that was released.
447 # [static files](sites.versions.files) that determine how a site is displayed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700448 &quot;createUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700449 # a release or finalizing a version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
451 # changed their email address or deleted their account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700452 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Bu Sun Kim65020912020-05-20 12:08:20 -0700453 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700454 &quot;name&quot;: &quot;A String&quot;, # The unique identifier for a version, in the format:
455 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/versions/&lt;var&gt;versionID&lt;/var&gt;&lt;/code&gt;
456 # This name is provided in the response body when you call the
457 # [`CreateVersion`](../sites.versions/create) endpoint.
Bu Sun Kim65020912020-05-20 12:08:20 -0700458 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
459 &quot;a_key&quot;: &quot;A String&quot;,
460 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700461 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
462 &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
463 # in the [`firebase.json`](/docs/cli/#the_firebasejson_file) file.
464 # processed before serving content. The URL request paths are matched against
465 # the specified URL patterns in the configuration, then Hosting applies the
466 # applicable configuration according to a specific
467 # [priority order](/docs/hosting/full-config#hosting_priority_order).
468 &quot;headers&quot;: [ # An array of objects, where each object specifies a URL pattern that, if
469 # matched to the request URL path, triggers Hosting to apply the specified
470 # custom response headers.
471 { # A [`header`](/docs/hosting/full-config#headers) is an object that specifies
472 # a URL pattern that, if matched to the request URL path, triggers Hosting to
473 # apply the specified custom response headers.
474 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied
475 # [glob](/docs/hosting/full-config#glob_pattern_matching) to match
476 # against the request URL path.
477 &quot;headers&quot;: { # Required. The additional headers to add to the response.
478 &quot;a_key&quot;: &quot;A String&quot;,
479 },
480 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
481 # URL path.
482 },
483 ],
484 &quot;redirects&quot;: [ # An array of objects (called redirect rules), where each rule specifies a
485 # URL pattern that, if matched to the request URL path, triggers Hosting to
486 # respond with a redirect to the specified destination path.
487 { # A [`redirect`](/docs/hosting/full-config#redirects) object specifies a URL
488 # pattern that, if matched to the request URL path, triggers Hosting to
489 # respond with a redirect to the specified destination path.
490 &quot;location&quot;: &quot;A String&quot;, # Required. The value to put in the HTTP location header of the response.
491 # &lt;br&gt;The location can contain capture group values from the pattern using
492 # a `:` prefix to identify the segment and an optional `*` to capture the
493 # rest of the URL.
494 # For example:
495 # &lt;code&gt;&quot;glob&quot;: &quot;/:capture*&quot;,
496 # &lt;br&gt;&quot;statusCode&quot;: 301,
497 # &lt;br&gt;&quot;location&quot;: &quot;https://example.com/foo/:capture&quot;&lt;/code&gt;
498 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied
499 # [glob](/docs/hosting/full-config#glob_pattern_matching) to match
500 # against the request URL path.
501 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a
502 # valid 3xx status code.
503 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
504 # URL path.
505 },
506 ],
507 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
508 &quot;rewrites&quot;: [ # An array of objects (called rewrite rules), where each rule specifies a URL
509 # pattern that, if matched to the request URL path, triggers Hosting to
510 # respond as if the service were given the specified destination URL.
511 { # A [`rewrite`](/docs/hosting/full-config#rewrites) object specifies a URL
512 # pattern that, if matched to the request URL path, triggers Hosting to
513 # respond as if the service were given the specified destination URL.
514 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
515 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
516 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied
517 # [glob](/docs/hosting/full-config#glob_pattern_matching) to match
518 # against the request URL path.
519 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request
520 # URL path.
521 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function
522 # name exactly.
523 &quot;run&quot;: { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
524 # Cloud Run service does not exist when setting or updating your Firebase
525 # Hosting configuration, then the request fails. Any errors from the Cloud Run
526 # service are passed to the end user (for example, if you delete a service, any
527 # requests directed to that service receive a `404` error).
528 &quot;region&quot;: &quot;A String&quot;, # Optional. User-provided region where the Cloud Run service is hosted.&lt;br&gt;
529 # Defaults to `us-central1` if not supplied.
530 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
531 },
532 },
533 ],
534 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
535 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
536 },
537 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
538 &quot;deleteUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
539 # a release or finalizing a version.
540 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
541 # changed their email address or deleted their account.
542 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
543 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700544 &quot;versionBytes&quot;: &quot;A String&quot;, # Output only. The total stored bytesize of the version.
545 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700546 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
547 &quot;fileCount&quot;: &quot;A String&quot;, # Output only. The total number of files associated with the version.
548 # &lt;br&gt;This value is calculated after a version is `FINALIZED`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 &quot;status&quot;: &quot;A String&quot;, # The deploy status of a version.
550 # &lt;br&gt;
551 # &lt;br&gt;For a successful deploy, call the
552 # [`CreateVersion`](sites.versions/create) endpoint to make a new version
553 # (`CREATED` status),
554 # [upload all desired files](sites.versions/populateFiles) to the version,
555 # then [update](sites.versions/patch) the version to the `FINALIZED` status.
556 # &lt;br&gt;
557 # &lt;br&gt;Note that if you leave the version in the `CREATED` state for more
558 # than 12&amp;nbsp;hours, the system will automatically mark the version as
559 # `ABANDONED`.
560 # &lt;br&gt;
561 # &lt;br&gt;You can also change the status of a version to `DELETED` by calling the
562 # [`DeleteVersion`](sites.versions/delete) endpoint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700563 &quot;preview&quot;: { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
564 # specfies whether previewing is enabled for this site version. Version
565 # previews allow you to preview your site at a custom URL before
566 # releasing it as the live version.
567 # this version will be accessible via a custom URL even
568 # if it is not the currently released version.
569 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this
570 # version; preview URL requests received after this time will 404.
571 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700573 &quot;finalizeUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 # a release or finalizing a version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
576 # changed their email address or deleted their account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700577 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 },
579 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700580 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to
581 # 512&amp;nbsp;characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700582 &quot;type&quot;: &quot;A String&quot;, # Explains the reason for the release.
583 # &lt;br&gt;Specify a value for this field only when creating a `SITE_DISABLE`
584 # type release.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700585 &quot;releaseUser&quot;: { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who created the release.
586 # a release or finalizing a version.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700587 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has
588 # changed their email address or deleted their account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700589 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700590 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700591 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in the format:
592 # &lt;code&gt;sites/&lt;var&gt;site-name&lt;/var&gt;/releases/&lt;var&gt;releaseID&lt;/var&gt;&lt;/code&gt;
593 # This name is provided in the response body when you call the
594 # [`CreateRelease`](sites.releases/create) endpoint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700595 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
Bu Sun Kim65020912020-05-20 12:08:20 -0700596 },
597 ],
598 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there are additional releases remaining beyond the ones in this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700599 # response, then supply this token in the next
600 # [`list`](../sites.versions.files/list) call to continue with the next set
601 # of releases.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700602 }</pre>
603</div>
604
605<div class="method">
606 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
607 <pre>Retrieves the next page of results.
608
609Args:
610 previous_request: The request for the previous page. (required)
611 previous_response: The response from the request for the previous page. (required)
612
613Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700614 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700615 page. Returns None if there are no more items in the collection.
616 </pre>
617</div>
618
619</body></html>