blob: 08dd85d3cd3fd028327ab7d25a963eb0d00e60a4 [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.channels.html">channels</a> . <a href="firebasehosting_v1beta1.projects.sites.channels.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">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#create">create(parent, body=None, versionName=None, x__xgafv=None)</a></code></p>
yoshi-code-bot69706592021-03-03 03:54:02 -080082<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 Kim65020912020-05-20 12:08:20 -070083<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080084 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
yoshi-code-bota8b35b92021-03-31 13:33:30 -070085<p class="firstline">Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070086<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">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code class="details" id="create">create(parent, body=None, versionName=None, x__xgafv=None)</code>
yoshi-code-bot69706592021-03-03 03:54:02 -080097 <pre>Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).
Bu Sun Kim65020912020-05-20 12:08:20 -070098
99Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700100 parent: string, Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700101 body: object, The request body.
102 The object takes the form of:
103
yoshi-code-bota8b35b92021-03-31 13:33:30 -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 Bot0d561ef2020-11-25 07:50:41 -0800105 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to 512 characters.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700106 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in either of the following formats: - sites/SITE_ID/releases/RELEASE_ID - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID This name is provided in the response body when you call [`releases.create`](sites.releases/create) or [`channels.releases.create`](sites.channels.releases/create).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800107 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
108 &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.
109 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
110 &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.
111 },
112 &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-code-bot69706592021-03-03 03:54:02 -0800113 &quot;version&quot;: { # A `Version` is a configuration and a collection of static files which determine how a site is displayed. # Output only. The configuration and content that was released.
114 &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](https://firebase.google.com/docs/hosting/full-config#hosting_priority_order). # The configuration for the behavior of the site. This configuration exists in the [`firebase.json`](https://firebase.google.com/docs/cli/#the_firebasejson_file) file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800115 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
116 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
117 &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.
yoshi-code-bot69706592021-03-03 03:54:02 -0800118 { # A [`Header`](https://firebase.google.com/docs/hosting/full-config#headers) specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
119 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800120 &quot;headers&quot;: { # Required. The additional headers to add to the response.
121 &quot;a_key&quot;: &quot;A String&quot;,
122 },
123 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
124 },
125 ],
126 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
127 &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.
128 },
129 &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.
yoshi-code-bot69706592021-03-03 03:54:02 -0800130 { # A [`Redirect`](https://firebase.google.com/docs/hosting/full-config#redirects) specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
131 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800132 &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;
133 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
134 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
135 },
136 ],
137 &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.
yoshi-code-bot69706592021-03-03 03:54:02 -0800138 { # A [`Rewrite`](https://firebase.google.com/docs/hosting/full-config#rewrites) 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800139 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
140 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function name exactly.
yoshi-code-bot69706592021-03-03 03:54:02 -0800141 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800142 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
143 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
144 &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.
145 &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.
146 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
147 },
148 },
149 ],
150 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
151 },
152 &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 -0800153 &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.
154 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
155 &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.
156 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800157 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
158 &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.
159 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
160 &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.
161 },
162 &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`.
163 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
164 &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.
165 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
166 &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.
167 },
168 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
169 &quot;a_key&quot;: &quot;A String&quot;,
170 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700171 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call [`CreateVersion`](sites.versions/create).
172 &quot;preview&quot;: { # Deprecated in favor of [site channels](sites.channels). # Deprecated in favor of [site channels](sites.channels).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800173 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
174 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800175 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700176 &quot;status&quot;: &quot;A String&quot;, # The deploy status of the version. For a successful deploy, call [`CreateVersion`](sites.versions/create) 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 [`DeleteVersion`](sites.versions/delete).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800177 &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`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800178 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700179}
180
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700181 versionName: string, The unique identifier for a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_ID in this version identifier must match the SITE_ID in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.
Bu Sun Kim65020912020-05-20 12:08:20 -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
yoshi-code-bota8b35b92021-03-31 13:33:30 -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 Botcc94ec82021-01-15 07:10:04 -0800191 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to 512 characters.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700192 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in either of the following formats: - sites/SITE_ID/releases/RELEASE_ID - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID This name is provided in the response body when you call [`releases.create`](sites.releases/create) or [`channels.releases.create`](sites.channels.releases/create).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800193 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
194 &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.
195 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
196 &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.
197 },
198 &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-code-bot69706592021-03-03 03:54:02 -0800199 &quot;version&quot;: { # A `Version` is a configuration and a collection of static files which determine how a site is displayed. # Output only. The configuration and content that was released.
200 &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](https://firebase.google.com/docs/hosting/full-config#hosting_priority_order). # The configuration for the behavior of the site. This configuration exists in the [`firebase.json`](https://firebase.google.com/docs/cli/#the_firebasejson_file) file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800201 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
202 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
203 &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.
yoshi-code-bot69706592021-03-03 03:54:02 -0800204 { # A [`Header`](https://firebase.google.com/docs/hosting/full-config#headers) specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
205 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800206 &quot;headers&quot;: { # Required. The additional headers to add to the response.
207 &quot;a_key&quot;: &quot;A String&quot;,
208 },
209 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800210 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800211 ],
212 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
213 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800214 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800215 &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.
yoshi-code-bot69706592021-03-03 03:54:02 -0800216 { # A [`Redirect`](https://firebase.google.com/docs/hosting/full-config#redirects) specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
217 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800218 &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;
219 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
220 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
221 },
222 ],
223 &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.
yoshi-code-bot69706592021-03-03 03:54:02 -0800224 { # A [`Rewrite`](https://firebase.google.com/docs/hosting/full-config#rewrites) 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800225 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
226 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function name exactly.
yoshi-code-bot69706592021-03-03 03:54:02 -0800227 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800228 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
229 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
230 &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.
231 &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.
232 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
233 },
234 },
235 ],
236 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800237 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800238 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
239 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800240 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
241 &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.
242 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800243 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
244 &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.
245 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
246 &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.
247 },
248 &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`.
249 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
250 &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.
251 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
252 &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.
253 },
254 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
255 &quot;a_key&quot;: &quot;A String&quot;,
256 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700257 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call [`CreateVersion`](sites.versions/create).
258 &quot;preview&quot;: { # Deprecated in favor of [site channels](sites.channels). # Deprecated in favor of [site channels](sites.channels).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800259 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
260 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
261 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700262 &quot;status&quot;: &quot;A String&quot;, # The deploy status of the version. For a successful deploy, call [`CreateVersion`](sites.versions/create) 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 [`DeleteVersion`](sites.versions/delete).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800263 &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`.
264 },
265}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700266</div>
267
268<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800269 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700270 <pre>Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.
Bu Sun Kim65020912020-05-20 12:08:20 -0700271
272Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700273 parent: string, Required. The site or channel for which to list releases, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID (required)
yoshi-code-bot69706592021-03-03 03:54:02 -0800274 pageSize: integer, The maximum number of releases to return. The service may return a lower number if fewer releases exist than this maximum number. If unspecified, defaults to 100.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700275 pageToken: string, A token from a previous call to `releases.list` or `channels.releases.list` that tells the server where to resume listing.
Bu Sun Kim65020912020-05-20 12:08:20 -0700276 x__xgafv: string, V1 error format.
277 Allowed values
278 1 - v1 error format
279 2 - v2 error format
280
281Returns:
282 An object of the form:
283
284 {
yoshi-code-bot69706592021-03-03 03:54:02 -0800285 &quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token, if more results exist beyond the ones in this response. Include this token in your next call to `ListReleases`. Page tokens are short-lived and should not be stored.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800286 &quot;releases&quot;: [ # The list of hashes of files that still need to be uploaded, if any exist.
yoshi-code-bota8b35b92021-03-31 13:33:30 -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 Botcc94ec82021-01-15 07:10:04 -0800288 &quot;message&quot;: &quot;A String&quot;, # The deploy description when the release was created. The value can be up to 512 characters.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700289 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier for the release, in either of the following formats: - sites/SITE_ID/releases/RELEASE_ID - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID This name is provided in the response body when you call [`releases.create`](sites.releases/create) or [`channels.releases.create`](sites.channels.releases/create).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800290 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
291 &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.
292 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
293 &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.
294 },
295 &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-code-bot69706592021-03-03 03:54:02 -0800296 &quot;version&quot;: { # A `Version` is a configuration and a collection of static files which determine how a site is displayed. # Output only. The configuration and content that was released.
297 &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](https://firebase.google.com/docs/hosting/full-config#hosting_priority_order). # The configuration for the behavior of the site. This configuration exists in the [`firebase.json`](https://firebase.google.com/docs/cli/#the_firebasejson_file) file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800298 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
299 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
300 &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.
yoshi-code-bot69706592021-03-03 03:54:02 -0800301 { # A [`Header`](https://firebase.google.com/docs/hosting/full-config#headers) specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
302 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800303 &quot;headers&quot;: { # Required. The additional headers to add to the response.
304 &quot;a_key&quot;: &quot;A String&quot;,
305 },
306 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800307 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800308 ],
309 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
310 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800311 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800312 &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.
yoshi-code-bot69706592021-03-03 03:54:02 -0800313 { # A [`Redirect`](https://firebase.google.com/docs/hosting/full-config#redirects) specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
314 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800315 &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;
316 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
317 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
318 },
319 ],
320 &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.
yoshi-code-bot69706592021-03-03 03:54:02 -0800321 { # A [`Rewrite`](https://firebase.google.com/docs/hosting/full-config#rewrites) 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800322 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
323 &quot;function&quot;: &quot;A String&quot;, # The function to proxy requests to. Must match the exported function name exactly.
yoshi-code-bot69706592021-03-03 03:54:02 -0800324 &quot;glob&quot;: &quot;A String&quot;, # The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800325 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
326 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
327 &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.
328 &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.
329 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
330 },
331 },
332 ],
333 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800334 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800335 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
336 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800337 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
338 &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.
339 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800340 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
341 &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.
342 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
343 &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.
344 },
345 &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`.
346 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
347 &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.
348 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
349 &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.
350 },
351 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
352 &quot;a_key&quot;: &quot;A String&quot;,
353 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700354 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call [`CreateVersion`](sites.versions/create).
355 &quot;preview&quot;: { # Deprecated in favor of [site channels](sites.channels). # Deprecated in favor of [site channels](sites.channels).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800356 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
357 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
358 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700359 &quot;status&quot;: &quot;A String&quot;, # The deploy status of the version. For a successful deploy, call [`CreateVersion`](sites.versions/create) 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 [`DeleteVersion`](sites.versions/delete).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800360 &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`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700361 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800362 },
363 ],
364}</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700365</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:
376 A request object that you can call &#x27;execute()&#x27; on to request the next
377 page. Returns None if there are no more items in the collection.
378 </pre>
379</div>
380
381</body></html>