blob: 7ca555b506fa85026ec459d8c9e8b309fe68a25a [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, versionName=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Creates a new release which makes the content of the specified version actively display on the appropriate URL(s).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080084 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Lists the releases that have been created on the specified site.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code class="details" id="create">create(parent, body=None, versionName=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <pre>Creates a new release which makes the content of the specified version actively display on the appropriate URL(s).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098
99Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 parent: string, Required. The site that the release belongs to, in the format: sites/ site-name (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102 The object takes the form of:
103
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700104{ # A `Release` is a particular [collection of configurations and files](sites.versions) that is set to be public at a particular time.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800105 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in the format: sites/ site-name/releases/releaseID This name is provided in the response body when you call the [`CreateRelease`](sites.releases/create) endpoint.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800106 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to 512 characters.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107 &quot;version&quot;: { # A `Version` is the collection of configuration and [static files](sites.versions.files) that determine how a site is displayed. # Output only. The configuration and content that was released.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800108 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800109 &quot;preview&quot;: { # Version preview configuration. If active and unexpired, this version will be accessible via a custom URL even if it is not the currently released version. Deprecated in favor of site channels. # Deprecated in favor of site channels. Version preview configuration for the site version. This configuration specifies whether previewing is enabled for this site version. Version previews allow you to preview your site at a custom URL before releasing it as the live version.
110 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
111 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
112 },
113 &quot;name&quot;: &quot;A String&quot;, # The unique identifier for a version, in the format: sites/site-name /versions/versionID This name is provided in the response body when you call the [`CreateVersion`](../sites.versions/create) endpoint.
114 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
115 &quot;status&quot;: &quot;A String&quot;, # The deploy status of a version. For a successful deploy, call the [`CreateVersion`](sites.versions/create) endpoint to make a new version (`CREATED` status), [upload all desired files](sites.versions/populateFiles) to the version, then [update](sites.versions/patch) the version to the `FINALIZED` status. Note that if you leave the version in the `CREATED` state for more than 12 hours, the system will automatically mark the version as `ABANDONED`. You can also change the status of a version to `DELETED` by calling the [`DeleteVersion`](sites.versions/delete) endpoint.
116 &quot;fileCount&quot;: &quot;A String&quot;, # Output only. The total number of files associated with the version. This value is calculated after a version is `FINALIZED`.
117 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
118 &quot;createUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who created the version.
119 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
120 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
121 },
122 &quot;deleteUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who `DELETED` the version.
123 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
124 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
125 },
126 &quot;versionBytes&quot;: &quot;A String&quot;, # Output only. The total stored bytesize of the version. This value is calculated after a version is `FINALIZED`.
127 &quot;finalizeUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who `FINALIZED` the version.
128 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
129 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
130 },
131 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
132 &quot;a_key&quot;: &quot;A String&quot;,
133 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800134 &quot;config&quot;: { # The configuration for how incoming requests to a site should be routed and processed before serving content. The URL request paths are matched against the specified URL patterns in the configuration, then Hosting applies the applicable configuration according to a specific [priority order](/docs/hosting/full-config#hosting_priority_order). # The configuration for the behavior of the site. This configuration exists in the [`firebase.json`](/docs/cli/#the_firebasejson_file) file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800135 &quot;redirects&quot;: [ # An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
136 { # A [`redirect`](/docs/hosting/full-config#redirects) object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
137 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
138 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
139 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
140 &quot;location&quot;: &quot;A String&quot;, # Required. The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a `:` prefix to identify the segment and an optional `*` to capture the rest of the URL. For example: &quot;glob&quot;: &quot;/:capture*&quot;, &quot;statusCode&quot;: 301, &quot;location&quot;: &quot;https://example.com/foo/:capture&quot;
141 },
142 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800143 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
144 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800145 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
146 &quot;root&quot;: &quot;A String&quot;, # Required. The user-supplied path where country and language specific content will be looked for within the public directory.
147 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800148 &quot;rewrites&quot;: [ # An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
149 { # A [`rewrite`](/docs/hosting/full-config#rewrites) object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
150 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800151 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function name exactly.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800152 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800153 &quot;run&quot;: { # A configured rewrite that directs requests to a Cloud Run service. If the Cloud Run service does not exist when setting or updating your Firebase Hosting configuration, then the request fails. Any errors from the Cloud Run service are passed to the end user (for example, if you delete a service, any requests directed to that service receive a `404` error). # The request will be forwarded to Cloud Run.
154 &quot;region&quot;: &quot;A String&quot;, # Optional. User-provided region where the Cloud Run service is hosted. Defaults to `us-central1` if not supplied.
155 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
156 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800157 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800158 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800159 },
160 ],
161 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
162 &quot;headers&quot;: [ # An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
163 { # A [`header`](/docs/hosting/full-config#headers) is an object that specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800164 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800165 &quot;headers&quot;: { # Required. The additional headers to add to the response.
166 &quot;a_key&quot;: &quot;A String&quot;,
167 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800168 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
169 },
170 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800171 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800172 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800173 &quot;type&quot;: &quot;A String&quot;, # Explains the reason for the release. Specify a value for this field only when creating a `SITE_DISABLE` type release.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800174 &quot;releaseUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who created the release.
175 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
176 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
177 },
178 &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 -0700179}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700180
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700181 versionName: string, The unique identifier for a version, in the format: /sites/site-name /versions/versionID The site-name in this version identifier must match the site-name in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700182 x__xgafv: string, V1 error format.
183 Allowed values
184 1 - v1 error format
185 2 - v2 error format
186
187Returns:
188 An object of the form:
189
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 { # A `Release` is a particular [collection of configurations and files](sites.versions) that is set to be public at a particular time.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800191 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in the format: sites/ site-name/releases/releaseID This name is provided in the response body when you call the [`CreateRelease`](sites.releases/create) endpoint.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800192 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to 512 characters.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700193 &quot;version&quot;: { # A `Version` is the collection of configuration and [static files](sites.versions.files) that determine how a site is displayed. # Output only. The configuration and content that was released.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800194 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800195 &quot;preview&quot;: { # Version preview configuration. If active and unexpired, this version will be accessible via a custom URL even if it is not the currently released version. Deprecated in favor of site channels. # Deprecated in favor of site channels. Version preview configuration for the site version. This configuration specifies whether previewing is enabled for this site version. Version previews allow you to preview your site at a custom URL before releasing it as the live version.
196 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
197 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
198 },
199 &quot;name&quot;: &quot;A String&quot;, # The unique identifier for a version, in the format: sites/site-name /versions/versionID This name is provided in the response body when you call the [`CreateVersion`](../sites.versions/create) endpoint.
200 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
201 &quot;status&quot;: &quot;A String&quot;, # The deploy status of a version. For a successful deploy, call the [`CreateVersion`](sites.versions/create) endpoint to make a new version (`CREATED` status), [upload all desired files](sites.versions/populateFiles) to the version, then [update](sites.versions/patch) the version to the `FINALIZED` status. Note that if you leave the version in the `CREATED` state for more than 12 hours, the system will automatically mark the version as `ABANDONED`. You can also change the status of a version to `DELETED` by calling the [`DeleteVersion`](sites.versions/delete) endpoint.
202 &quot;fileCount&quot;: &quot;A String&quot;, # Output only. The total number of files associated with the version. This value is calculated after a version is `FINALIZED`.
203 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
204 &quot;createUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who created the version.
205 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
206 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
207 },
208 &quot;deleteUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who `DELETED` the version.
209 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
210 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
211 },
212 &quot;versionBytes&quot;: &quot;A String&quot;, # Output only. The total stored bytesize of the version. This value is calculated after a version is `FINALIZED`.
213 &quot;finalizeUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who `FINALIZED` the version.
214 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
215 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
216 },
217 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
218 &quot;a_key&quot;: &quot;A String&quot;,
219 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800220 &quot;config&quot;: { # The configuration for how incoming requests to a site should be routed and processed before serving content. The URL request paths are matched against the specified URL patterns in the configuration, then Hosting applies the applicable configuration according to a specific [priority order](/docs/hosting/full-config#hosting_priority_order). # The configuration for the behavior of the site. This configuration exists in the [`firebase.json`](/docs/cli/#the_firebasejson_file) file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800221 &quot;redirects&quot;: [ # An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
222 { # A [`redirect`](/docs/hosting/full-config#redirects) object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
223 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
224 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
225 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
226 &quot;location&quot;: &quot;A String&quot;, # Required. The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a `:` prefix to identify the segment and an optional `*` to capture the rest of the URL. For example: &quot;glob&quot;: &quot;/:capture*&quot;, &quot;statusCode&quot;: 301, &quot;location&quot;: &quot;https://example.com/foo/:capture&quot;
227 },
228 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800229 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
230 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800231 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
232 &quot;root&quot;: &quot;A String&quot;, # Required. The user-supplied path where country and language specific content will be looked for within the public directory.
233 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800234 &quot;rewrites&quot;: [ # An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
235 { # A [`rewrite`](/docs/hosting/full-config#rewrites) object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
236 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800237 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function name exactly.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800238 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800239 &quot;run&quot;: { # A configured rewrite that directs requests to a Cloud Run service. If the Cloud Run service does not exist when setting or updating your Firebase Hosting configuration, then the request fails. Any errors from the Cloud Run service are passed to the end user (for example, if you delete a service, any requests directed to that service receive a `404` error). # The request will be forwarded to Cloud Run.
240 &quot;region&quot;: &quot;A String&quot;, # Optional. User-provided region where the Cloud Run service is hosted. Defaults to `us-central1` if not supplied.
241 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
242 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800243 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800244 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800245 },
246 ],
247 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
248 &quot;headers&quot;: [ # An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
249 { # A [`header`](/docs/hosting/full-config#headers) is an object that specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800250 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800251 &quot;headers&quot;: { # Required. The additional headers to add to the response.
252 &quot;a_key&quot;: &quot;A String&quot;,
253 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800254 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
255 },
256 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800257 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800258 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800259 &quot;type&quot;: &quot;A String&quot;, # Explains the reason for the release. Specify a value for this field only when creating a `SITE_DISABLE` type release.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800260 &quot;releaseUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who created the release.
261 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
262 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
263 },
264 &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 -0700265 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700266</div>
267
268<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800269 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700270 <pre>Lists the releases that have been created on the specified site.
271
272Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700273 parent: string, Required. The parent for which to list files, in the format: sites/site-name (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800274 pageSize: integer, The page size to return. Defaults to 100.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800275 pageToken: string, The next_page_token from a previous request, if provided.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276 x__xgafv: string, V1 error format.
277 Allowed values
278 1 - v1 error format
279 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700280
281Returns:
282 An object of the form:
283
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800285 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there are additional releases remaining beyond the ones in this response, then supply this token in the next [`list`](../sites.versions.files/list) call to continue with the next set of releases.
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 &quot;releases&quot;: [ # The list of hashes of files that still need to be uploaded, if any exist.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700287 { # A `Release` is a particular [collection of configurations and files](sites.versions) that is set to be public at a particular time.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800288 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in the format: sites/ site-name/releases/releaseID This name is provided in the response body when you call the [`CreateRelease`](sites.releases/create) endpoint.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800289 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to 512 characters.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700290 &quot;version&quot;: { # A `Version` is the collection of configuration and [static files](sites.versions.files) that determine how a site is displayed. # Output only. The configuration and content that was released.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800291 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800292 &quot;preview&quot;: { # Version preview configuration. If active and unexpired, this version will be accessible via a custom URL even if it is not the currently released version. Deprecated in favor of site channels. # Deprecated in favor of site channels. Version preview configuration for the site version. This configuration specifies whether previewing is enabled for this site version. Version previews allow you to preview your site at a custom URL before releasing it as the live version.
293 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
294 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
295 },
296 &quot;name&quot;: &quot;A String&quot;, # The unique identifier for a version, in the format: sites/site-name /versions/versionID This name is provided in the response body when you call the [`CreateVersion`](../sites.versions/create) endpoint.
297 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
298 &quot;status&quot;: &quot;A String&quot;, # The deploy status of a version. For a successful deploy, call the [`CreateVersion`](sites.versions/create) endpoint to make a new version (`CREATED` status), [upload all desired files](sites.versions/populateFiles) to the version, then [update](sites.versions/patch) the version to the `FINALIZED` status. Note that if you leave the version in the `CREATED` state for more than 12 hours, the system will automatically mark the version as `ABANDONED`. You can also change the status of a version to `DELETED` by calling the [`DeleteVersion`](sites.versions/delete) endpoint.
299 &quot;fileCount&quot;: &quot;A String&quot;, # Output only. The total number of files associated with the version. This value is calculated after a version is `FINALIZED`.
300 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
301 &quot;createUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who created the version.
302 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
303 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
304 },
305 &quot;deleteUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who `DELETED` the version.
306 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
307 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
308 },
309 &quot;versionBytes&quot;: &quot;A String&quot;, # Output only. The total stored bytesize of the version. This value is calculated after a version is `FINALIZED`.
310 &quot;finalizeUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who `FINALIZED` the version.
311 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
312 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
313 },
314 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
315 &quot;a_key&quot;: &quot;A String&quot;,
316 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800317 &quot;config&quot;: { # The configuration for how incoming requests to a site should be routed and processed before serving content. The URL request paths are matched against the specified URL patterns in the configuration, then Hosting applies the applicable configuration according to a specific [priority order](/docs/hosting/full-config#hosting_priority_order). # The configuration for the behavior of the site. This configuration exists in the [`firebase.json`](/docs/cli/#the_firebasejson_file) file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800318 &quot;redirects&quot;: [ # An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
319 { # A [`redirect`](/docs/hosting/full-config#redirects) object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
320 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
321 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
322 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
323 &quot;location&quot;: &quot;A String&quot;, # Required. The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a `:` prefix to identify the segment and an optional `*` to capture the rest of the URL. For example: &quot;glob&quot;: &quot;/:capture*&quot;, &quot;statusCode&quot;: 301, &quot;location&quot;: &quot;https://example.com/foo/:capture&quot;
324 },
325 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800326 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
327 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800328 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
329 &quot;root&quot;: &quot;A String&quot;, # Required. The user-supplied path where country and language specific content will be looked for within the public directory.
330 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800331 &quot;rewrites&quot;: [ # An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
332 { # A [`rewrite`](/docs/hosting/full-config#rewrites) object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
333 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800334 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function name exactly.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800335 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800336 &quot;run&quot;: { # A configured rewrite that directs requests to a Cloud Run service. If the Cloud Run service does not exist when setting or updating your Firebase Hosting configuration, then the request fails. Any errors from the Cloud Run service are passed to the end user (for example, if you delete a service, any requests directed to that service receive a `404` error). # The request will be forwarded to Cloud Run.
337 &quot;region&quot;: &quot;A String&quot;, # Optional. User-provided region where the Cloud Run service is hosted. Defaults to `us-central1` if not supplied.
338 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
339 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800340 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800341 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800342 },
343 ],
344 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
345 &quot;headers&quot;: [ # An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
346 { # A [`header`](/docs/hosting/full-config#headers) is an object that specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800347 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800348 &quot;headers&quot;: { # Required. The additional headers to add to the response.
349 &quot;a_key&quot;: &quot;A String&quot;,
350 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800351 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
352 },
353 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800354 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800355 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800356 &quot;type&quot;: &quot;A String&quot;, # Explains the reason for the release. Specify a value for this field only when creating a `SITE_DISABLE` type release.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800357 &quot;releaseUser&quot;: { # Contains metadata about the user who performed an action, such as creating a release or finalizing a version. # Output only. Identifies the user who created the release.
358 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
359 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
360 },
361 &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 -0700362 },
363 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700364 }</pre>
365</div>
366
367<div class="method">
368 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
369 <pre>Retrieves the next page of results.
370
371Args:
372 previous_request: The request for the previous page. (required)
373 previous_response: The response from the request for the previous page. (required)
374
375Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700377 page. Returns None if there are no more items in the collection.
378 </pre>
379</div>
380
381</body></html>