blob: dce0f051ddb0d596d5f34d7c914fc4cbe7394da2 [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></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="firebasehosting_v1beta1.projects.sites.channels.releases.html">releases()</a></code>
79</p>
80<p class="firstline">Returns the releases Resource.</p>
81
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
86 <code><a href="#create">create(parent, body=None, channelId=None, x__xgafv=None)</a></code></p>
87<p class="firstline">Creates a new channel in the specified site.</p>
88<p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
yoshi-code-bota8b35b92021-03-31 13:33:30 -070090<p class="firstline">Deletes the specified channel of the specified site. The `live` channel cannot be deleted.</p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
yoshi-code-bota8b35b92021-03-31 13:33:30 -070093<p class="firstline">Retrieves information for the specified channel of the specified site.</p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080095 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
yoshi-code-bota8b35b92021-03-31 13:33:30 -070096<p class="firstline">Lists the channels for the specified site. All sites have a default `live` channel.</p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<p class="toc_element">
101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700102<p class="firstline">Updates information for the specified channel of the specified site. Implicitly creates the channel if it doesn't already exist.</p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103<h3>Method Details</h3>
104<div class="method">
105 <code class="details" id="close">close()</code>
106 <pre>Close httplib2 connections.</pre>
107</div>
108
109<div class="method">
110 <code class="details" id="create">create(parent, body=None, channelId=None, x__xgafv=None)</code>
111 <pre>Creates a new channel in the specified site.
112
113Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700114 parent: string, Required. The site in which to create this channel, in the format: sites/ SITE_ID (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115 body: object, The request body.
116 The object takes the form of:
117
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700118{ # A `Channel` represents a stream of releases for a site. All sites have a default `live` channel that serves content to the Firebase-provided subdomains and any connected custom domains.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800119 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was created.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700120 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it&#x27;s set directly or via the `ttl` field.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800121 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
122 &quot;a_key&quot;: &quot;A String&quot;,
123 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700124 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
125 &quot;release&quot;: { # A `Release` is a particular [collection of configurations and files](sites.versions) that is set to be public at a particular time. # Output only. The current release for the channel, if any.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800126 &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 -0700127 &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 -0800128 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
129 &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.
130 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
131 &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.
132 },
133 &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 -0800134 &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.
135 &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 -0800136 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
137 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
138 &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 -0800139 { # 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.
140 &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 -0800141 &quot;headers&quot;: { # Required. The additional headers to add to the response.
142 &quot;a_key&quot;: &quot;A String&quot;,
143 },
144 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
145 },
146 ],
147 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
148 &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.
149 },
150 &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 -0800151 { # 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.
152 &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 -0800153 &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;
154 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
155 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
156 },
157 ],
158 &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 -0800159 { # 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 -0800160 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
161 &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 -0800162 &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 -0800163 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
164 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
165 &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.
166 &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.
167 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
168 },
169 },
170 ],
171 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
172 },
173 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800174 &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 Botc2228be2020-11-24 15:48:03 -0800175 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800176 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800177 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800178 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
179 &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.
180 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
181 &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.
182 },
183 &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`.
184 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
185 &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.
186 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
187 &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.
188 },
189 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
190 &quot;a_key&quot;: &quot;A String&quot;,
191 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700192 &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).
193 &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 -0800194 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
195 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
196 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700197 &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 -0800198 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700199 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800200 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800201 &quot;retainedReleaseCount&quot;: 42, # The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
202 &quot;ttl&quot;: &quot;A String&quot;, # Input only. A time-to-live for this channel. Sets `expire_time` to the provided duration past the time of the request.
203 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was last updated.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700204 &quot;url&quot;: &quot;A String&quot;, # Output only. The URL at which the content of this channel&#x27;s current release can be viewed. This URL is a Firebase-provided subdomain of `web.app`. The content of this channel&#x27;s current release can also be viewed at the Firebase-provided subdomain of `firebaseapp.com`. If this channel is the `live` channel for the Hosting site, then the content of this channel&#x27;s current release can also be viewed at any connected custom domains.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800205}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700206
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700207 channelId: string, Required. Immutable. A unique ID within the site that identifies the channel.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700208 x__xgafv: string, V1 error format.
209 Allowed values
210 1 - v1 error format
211 2 - v2 error format
212
213Returns:
214 An object of the form:
215
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700216 { # A `Channel` represents a stream of releases for a site. All sites have a default `live` channel that serves content to the Firebase-provided subdomains and any connected custom domains.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800217 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was created.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700218 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it&#x27;s set directly or via the `ttl` field.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800219 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
220 &quot;a_key&quot;: &quot;A String&quot;,
221 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700222 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
223 &quot;release&quot;: { # A `Release` is a particular [collection of configurations and files](sites.versions) that is set to be public at a particular time. # Output only. The current release for the channel, if any.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800224 &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 -0700225 &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 -0800226 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
227 &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.
228 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
229 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800230 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800231 &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 -0800232 &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.
233 &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 -0800234 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
235 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
236 &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 -0800237 { # 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.
238 &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 -0800239 &quot;headers&quot;: { # Required. The additional headers to add to the response.
240 &quot;a_key&quot;: &quot;A String&quot;,
241 },
242 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800243 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800244 ],
245 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
246 &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 Bot0bf565c2020-12-09 08:56:03 -0800247 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800248 &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 -0800249 { # 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.
250 &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 -0800251 &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;
252 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
253 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
254 },
255 ],
256 &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 -0800257 { # 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 -0800258 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
259 &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 -0800260 &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 -0800261 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
262 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
263 &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.
264 &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.
265 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
266 },
267 },
268 ],
269 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700270 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800271 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
272 &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 Bot0bf565c2020-12-09 08:56:03 -0800273 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
274 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800275 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800276 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
277 &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.
278 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
279 &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.
280 },
281 &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`.
282 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
283 &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.
284 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
285 &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.
286 },
287 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
288 &quot;a_key&quot;: &quot;A String&quot;,
289 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700290 &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).
291 &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 -0800292 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this 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 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700295 &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 -0800296 &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 Bot0bf565c2020-12-09 08:56:03 -0800297 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800298 },
299 &quot;retainedReleaseCount&quot;: 42, # The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
300 &quot;ttl&quot;: &quot;A String&quot;, # Input only. A time-to-live for this channel. Sets `expire_time` to the provided duration past the time of the request.
301 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was last updated.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700302 &quot;url&quot;: &quot;A String&quot;, # Output only. The URL at which the content of this channel&#x27;s current release can be viewed. This URL is a Firebase-provided subdomain of `web.app`. The content of this channel&#x27;s current release can also be viewed at the Firebase-provided subdomain of `firebaseapp.com`. If this channel is the `live` channel for the Hosting site, then the content of this channel&#x27;s current release can also be viewed at any connected custom domains.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800303}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700304</div>
305
306<div class="method">
307 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700308 <pre>Deletes the specified channel of the specified site. The `live` channel cannot be deleted.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700309
310Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700311 name: string, Required. The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700312 x__xgafv: string, V1 error format.
313 Allowed values
314 1 - v1 error format
315 2 - v2 error format
316
317Returns:
318 An object of the form:
319
320 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800321}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700322</div>
323
324<div class="method">
325 <code class="details" id="get">get(name, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700326 <pre>Retrieves information for the specified channel of the specified site.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700327
328Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700329 name: string, Required. The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700330 x__xgafv: string, V1 error format.
331 Allowed values
332 1 - v1 error format
333 2 - v2 error format
334
335Returns:
336 An object of the form:
337
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700338 { # A `Channel` represents a stream of releases for a site. All sites have a default `live` channel that serves content to the Firebase-provided subdomains and any connected custom domains.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800339 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was created.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700340 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it&#x27;s set directly or via the `ttl` field.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800341 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
342 &quot;a_key&quot;: &quot;A String&quot;,
343 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700344 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
345 &quot;release&quot;: { # A `Release` is a particular [collection of configurations and files](sites.versions) that is set to be public at a particular time. # Output only. The current release for the channel, if any.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800346 &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 -0700347 &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 -0800348 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
349 &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.
350 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
351 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800352 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800353 &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 -0800354 &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.
355 &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 -0800356 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
357 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
358 &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 -0800359 { # 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.
360 &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 -0800361 &quot;headers&quot;: { # Required. The additional headers to add to the response.
362 &quot;a_key&quot;: &quot;A String&quot;,
363 },
364 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800365 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800366 ],
367 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
368 &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 Bot0bf565c2020-12-09 08:56:03 -0800369 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800370 &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 -0800371 { # 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.
372 &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 -0800373 &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;
374 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
375 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
376 },
377 ],
378 &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 -0800379 { # 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 -0800380 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
381 &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 -0800382 &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 -0800383 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
384 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
385 &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.
386 &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.
387 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
388 },
389 },
390 ],
391 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700392 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800393 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
394 &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 Bot0bf565c2020-12-09 08:56:03 -0800395 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
396 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800397 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800398 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
399 &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.
400 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
401 &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.
402 },
403 &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`.
404 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
405 &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.
406 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
407 &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.
408 },
409 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
410 &quot;a_key&quot;: &quot;A String&quot;,
411 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700412 &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).
413 &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 -0800414 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
415 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
416 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700417 &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 -0800418 &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 Bot0bf565c2020-12-09 08:56:03 -0800419 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800420 },
421 &quot;retainedReleaseCount&quot;: 42, # The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
422 &quot;ttl&quot;: &quot;A String&quot;, # Input only. A time-to-live for this channel. Sets `expire_time` to the provided duration past the time of the request.
423 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was last updated.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700424 &quot;url&quot;: &quot;A String&quot;, # Output only. The URL at which the content of this channel&#x27;s current release can be viewed. This URL is a Firebase-provided subdomain of `web.app`. The content of this channel&#x27;s current release can also be viewed at the Firebase-provided subdomain of `firebaseapp.com`. If this channel is the `live` channel for the Hosting site, then the content of this channel&#x27;s current release can also be viewed at any connected custom domains.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800425}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700426</div>
427
428<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800429 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700430 <pre>Lists the channels for the specified site. All sites have a default `live` channel.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700431
432Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700433 parent: string, Required. The site for which to list channels, in the format: sites/SITE_ID (required)
434 pageSize: integer, The maximum number of channels to return. The service may return a lower number if fewer channels exist than this maximum number. If unspecified, defaults to 10. The maximum value is 100; values above 100 will be coerced to 100.
435 pageToken: string, A token from a previous call to `ListChannels` that tells the server where to resume listing.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700436 x__xgafv: string, V1 error format.
437 Allowed values
438 1 - v1 error format
439 2 - v2 error format
440
441Returns:
442 An object of the form:
443
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700444 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800445 &quot;channels&quot;: [ # The list of channels.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700446 { # A `Channel` represents a stream of releases for a site. All sites have a default `live` channel that serves content to the Firebase-provided subdomains and any connected custom domains.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800447 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was created.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700448 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it&#x27;s set directly or via the `ttl` field.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800449 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
450 &quot;a_key&quot;: &quot;A String&quot;,
451 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700452 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
453 &quot;release&quot;: { # A `Release` is a particular [collection of configurations and files](sites.versions) that is set to be public at a particular time. # Output only. The current release for the channel, if any.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800454 &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 -0700455 &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 -0800456 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
457 &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.
458 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
459 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800460 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800461 &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 -0800462 &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.
463 &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 -0800464 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
465 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
466 &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 -0800467 { # 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.
468 &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 -0800469 &quot;headers&quot;: { # Required. The additional headers to add to the response.
470 &quot;a_key&quot;: &quot;A String&quot;,
471 },
472 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800473 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800474 ],
475 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
476 &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 Bot0bf565c2020-12-09 08:56:03 -0800477 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800478 &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 -0800479 { # 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.
480 &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 -0800481 &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;
482 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
483 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
484 },
485 ],
486 &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 -0800487 { # 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 -0800488 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
489 &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 -0800490 &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 -0800491 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
492 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
493 &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.
494 &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.
495 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
496 },
497 },
498 ],
499 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700500 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800501 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
502 &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 Bot0bf565c2020-12-09 08:56:03 -0800503 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
504 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800505 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800506 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
507 &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.
508 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
509 &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.
510 },
511 &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`.
512 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
513 &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.
514 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
515 &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.
516 },
517 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
518 &quot;a_key&quot;: &quot;A String&quot;,
519 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700520 &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).
521 &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 -0800522 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
523 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
524 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700525 &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 -0800526 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700527 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800528 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800529 &quot;retainedReleaseCount&quot;: 42, # The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
530 &quot;ttl&quot;: &quot;A String&quot;, # Input only. A time-to-live for this channel. Sets `expire_time` to the provided duration past the time of the request.
531 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was last updated.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700532 &quot;url&quot;: &quot;A String&quot;, # Output only. The URL at which the content of this channel&#x27;s current release can be viewed. This URL is a Firebase-provided subdomain of `web.app`. The content of this channel&#x27;s current release can also be viewed at the Firebase-provided subdomain of `firebaseapp.com`. If this channel is the `live` channel for the Hosting site, then the content of this channel&#x27;s current release can also be viewed at any connected custom domains.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800533 },
534 ],
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700535 &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 `ListChannels`. Page tokens are short-lived and should not be stored.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800536}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700537</div>
538
539<div class="method">
540 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
541 <pre>Retrieves the next page of results.
542
543Args:
544 previous_request: The request for the previous page. (required)
545 previous_response: The response from the request for the previous page. (required)
546
547Returns:
548 A request object that you can call &#x27;execute()&#x27; on to request the next
549 page. Returns None if there are no more items in the collection.
550 </pre>
551</div>
552
553<div class="method">
554 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700555 <pre>Updates information for the specified channel of the specified site. Implicitly creates the channel if it doesn&#x27;t already exist.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700556
557Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700558 name: string, The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700559 body: object, The request body.
560 The object takes the form of:
561
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700562{ # A `Channel` represents a stream of releases for a site. All sites have a default `live` channel that serves content to the Firebase-provided subdomains and any connected custom domains.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800563 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was created.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700564 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it&#x27;s set directly or via the `ttl` field.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800565 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
566 &quot;a_key&quot;: &quot;A String&quot;,
567 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700568 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
569 &quot;release&quot;: { # A `Release` is a particular [collection of configurations and files](sites.versions) that is set to be public at a particular time. # Output only. The current release for the channel, if any.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800570 &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 -0700571 &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 -0800572 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
573 &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.
574 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
575 &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.
576 },
577 &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 -0800578 &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.
579 &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 -0800580 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
581 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
582 &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 -0800583 { # 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.
584 &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 -0800585 &quot;headers&quot;: { # Required. The additional headers to add to the response.
586 &quot;a_key&quot;: &quot;A String&quot;,
587 },
588 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
589 },
590 ],
591 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
592 &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.
593 },
594 &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 -0800595 { # 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.
596 &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 -0800597 &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;
598 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
599 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
600 },
601 ],
602 &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 -0800603 { # 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 -0800604 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
605 &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 -0800606 &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 -0800607 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
608 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
609 &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.
610 &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.
611 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
612 },
613 },
614 ],
615 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
616 },
617 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800618 &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 Botc2228be2020-11-24 15:48:03 -0800619 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800620 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800621 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800622 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
623 &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.
624 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
625 &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.
626 },
627 &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`.
628 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
629 &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.
630 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
631 &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.
632 },
633 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
634 &quot;a_key&quot;: &quot;A String&quot;,
635 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700636 &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).
637 &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 -0800638 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
639 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
640 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700641 &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 -0800642 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700643 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800644 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800645 &quot;retainedReleaseCount&quot;: 42, # The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
646 &quot;ttl&quot;: &quot;A String&quot;, # Input only. A time-to-live for this channel. Sets `expire_time` to the provided duration past the time of the request.
647 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was last updated.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700648 &quot;url&quot;: &quot;A String&quot;, # Output only. The URL at which the content of this channel&#x27;s current release can be viewed. This URL is a Firebase-provided subdomain of `web.app`. The content of this channel&#x27;s current release can also be viewed at the Firebase-provided subdomain of `firebaseapp.com`. If this channel is the `live` channel for the Hosting site, then the content of this channel&#x27;s current release can also be viewed at any connected custom domains.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800649}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700650
651 updateMask: string, A comma-separated list of fields to be updated in this request.
652 x__xgafv: string, V1 error format.
653 Allowed values
654 1 - v1 error format
655 2 - v2 error format
656
657Returns:
658 An object of the form:
659
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700660 { # A `Channel` represents a stream of releases for a site. All sites have a default `live` channel that serves content to the Firebase-provided subdomains and any connected custom domains.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800661 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was created.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700662 &quot;expireTime&quot;: &quot;A String&quot;, # The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it&#x27;s set directly or via the `ttl` field.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800663 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
664 &quot;a_key&quot;: &quot;A String&quot;,
665 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700666 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
667 &quot;release&quot;: { # A `Release` is a particular [collection of configurations and files](sites.versions) that is set to be public at a particular time. # Output only. The current release for the channel, if any.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800668 &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 -0700669 &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 -0800670 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
671 &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.
672 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
673 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800674 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800675 &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 -0800676 &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.
677 &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 -0800678 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
679 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
680 &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 -0800681 { # 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.
682 &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 -0800683 &quot;headers&quot;: { # Required. The additional headers to add to the response.
684 &quot;a_key&quot;: &quot;A String&quot;,
685 },
686 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800687 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800688 ],
689 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
690 &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 Bot0bf565c2020-12-09 08:56:03 -0800691 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800692 &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 -0800693 { # 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.
694 &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 -0800695 &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;
696 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
697 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
698 },
699 ],
700 &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 -0800701 { # 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 -0800702 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
703 &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 -0800704 &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 -0800705 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
706 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
707 &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.
708 &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.
709 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
710 },
711 },
712 ],
713 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700714 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800715 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
716 &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 Bot0bf565c2020-12-09 08:56:03 -0800717 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
718 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800719 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800720 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
721 &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.
722 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
723 &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.
724 },
725 &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`.
726 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
727 &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.
728 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
729 &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.
730 },
731 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
732 &quot;a_key&quot;: &quot;A String&quot;,
733 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700734 &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).
735 &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 -0800736 &quot;active&quot;: True or False, # If true, preview URLs are enabled for this version.
737 &quot;expireTime&quot;: &quot;A String&quot;, # Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
738 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700739 &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 -0800740 &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 Bot0bf565c2020-12-09 08:56:03 -0800741 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800742 },
743 &quot;retainedReleaseCount&quot;: 42, # The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
744 &quot;ttl&quot;: &quot;A String&quot;, # Input only. A time-to-live for this channel. Sets `expire_time` to the provided duration past the time of the request.
745 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the channel was last updated.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700746 &quot;url&quot;: &quot;A String&quot;, # Output only. The URL at which the content of this channel&#x27;s current release can be viewed. This URL is a Firebase-provided subdomain of `web.app`. The content of this channel&#x27;s current release can also be viewed at the Firebase-provided subdomain of `firebaseapp.com`. If this channel is the `live` channel for the Hosting site, then the content of this channel&#x27;s current release can also be viewed at any connected custom domains.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800747}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700748</div>
749
Bu Sun Kim65020912020-05-20 12:08:20 -0700750</body></html>