blob: 4bf5434280dfa5cf3f18a6ac2e14594ce76ae5e1 [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.sites.html">sites</a> . <a href="firebasehosting_v1beta1.sites.channels.html">channels</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="firebasehosting_v1beta1.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 Botcc94ec82021-01-15 07:10:04 -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).
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700193 &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 -0800194 &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 -0700195 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800196 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800197 &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.
198 &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.
199 &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 -0700200 &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 -0800201}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700202
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700203 channelId: string, Required. Immutable. A unique ID within the site that identifies the channel.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700204 x__xgafv: string, V1 error format.
205 Allowed values
206 1 - v1 error format
207 2 - v2 error format
208
209Returns:
210 An object of the form:
211
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700212 { # 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 -0800213 &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 -0700214 &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 -0800215 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
216 &quot;a_key&quot;: &quot;A String&quot;,
217 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700218 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
219 &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 -0800220 &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 -0700221 &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 -0800222 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
223 &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.
224 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
225 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800226 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800227 &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 -0800228 &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.
229 &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 -0800230 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
231 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
232 &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 -0800233 { # 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.
234 &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 -0800235 &quot;headers&quot;: { # Required. The additional headers to add to the response.
236 &quot;a_key&quot;: &quot;A String&quot;,
237 },
238 &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 -0800239 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800240 ],
241 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
242 &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 -0800243 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800244 &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 -0800245 { # 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.
246 &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 -0800247 &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;
248 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
249 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
250 },
251 ],
252 &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 -0800253 { # 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 -0800254 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
255 &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 -0800256 &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 -0800257 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
258 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
259 &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.
260 &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.
261 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
262 },
263 },
264 ],
265 &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 -0700266 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800267 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
268 &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 -0800269 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
270 &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 -0800271 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800272 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
273 &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.
274 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
275 &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.
276 },
277 &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`.
278 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
279 &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.
280 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
281 &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.
282 },
283 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
284 &quot;a_key&quot;: &quot;A String&quot;,
285 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700286 &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).
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700287 &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 -0800288 &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 -0800289 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800290 },
291 &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.
292 &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.
293 &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 -0700294 &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 -0800295}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700296</div>
297
298<div class="method">
299 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700300 <pre>Deletes the specified channel of the specified site. The `live` channel cannot be deleted.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700301
302Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700303 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 -0700304 x__xgafv: string, V1 error format.
305 Allowed values
306 1 - v1 error format
307 2 - v2 error format
308
309Returns:
310 An object of the form:
311
312 { # 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 -0800313}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700314</div>
315
316<div class="method">
317 <code class="details" id="get">get(name, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700318 <pre>Retrieves information for the specified channel of the specified site.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700319
320Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700321 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 -0700322 x__xgafv: string, V1 error format.
323 Allowed values
324 1 - v1 error format
325 2 - v2 error format
326
327Returns:
328 An object of the form:
329
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700330 { # 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 -0800331 &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 -0700332 &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 -0800333 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
334 &quot;a_key&quot;: &quot;A String&quot;,
335 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700336 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
337 &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 -0800338 &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 -0700339 &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 -0800340 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
341 &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.
342 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
343 &quot;imageUrl&quot;: &quot;A String&quot;, # A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800344 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800345 &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 -0800346 &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.
347 &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 -0800348 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
349 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
350 &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 -0800351 { # 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.
352 &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 -0800353 &quot;headers&quot;: { # Required. The additional headers to add to the response.
354 &quot;a_key&quot;: &quot;A String&quot;,
355 },
356 &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 -0800357 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800358 ],
359 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
360 &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 -0800361 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800362 &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 -0800363 { # 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.
364 &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 -0800365 &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;
366 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
367 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
368 },
369 ],
370 &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 -0800371 { # 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 -0800372 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
373 &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 -0800374 &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 -0800375 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
376 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
377 &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.
378 &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.
379 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
380 },
381 },
382 ],
383 &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 -0700384 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800385 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
386 &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 -0800387 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
388 &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 -0800389 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800390 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
391 &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.
392 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
393 &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.
394 },
395 &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`.
396 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
397 &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.
398 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
399 &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.
400 },
401 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
402 &quot;a_key&quot;: &quot;A String&quot;,
403 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700404 &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).
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700405 &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 -0800406 &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 -0800407 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800408 },
409 &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.
410 &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.
411 &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 -0700412 &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 -0800413}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700414</div>
415
416<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800417 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700418 <pre>Lists the channels for the specified site. All sites have a default `live` channel.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700419
420Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700421 parent: string, Required. The site for which to list channels, in the format: sites/SITE_ID (required)
422 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.
423 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 -0700424 x__xgafv: string, V1 error format.
425 Allowed values
426 1 - v1 error format
427 2 - v2 error format
428
429Returns:
430 An object of the form:
431
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700432 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800433 &quot;channels&quot;: [ # The list of channels.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700434 { # 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 -0800435 &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 -0700436 &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 -0800437 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
438 &quot;a_key&quot;: &quot;A String&quot;,
439 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700440 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
441 &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 -0800442 &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 -0700443 &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 -0800444 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
445 &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.
446 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
447 &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 -0800448 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800449 &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 -0800450 &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.
451 &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 -0800452 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
453 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
454 &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 -0800455 { # 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.
456 &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 -0800457 &quot;headers&quot;: { # Required. The additional headers to add to the response.
458 &quot;a_key&quot;: &quot;A String&quot;,
459 },
460 &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 -0800461 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800462 ],
463 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
464 &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 -0800465 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800466 &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 -0800467 { # 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.
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;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;
470 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
471 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
472 },
473 ],
474 &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 -0800475 { # 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 -0800476 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
477 &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 -0800478 &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 -0800479 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
480 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
481 &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.
482 &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.
483 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
484 },
485 },
486 ],
487 &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 -0700488 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800489 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
490 &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 -0800491 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
492 &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 -0800493 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800494 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
495 &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.
496 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
497 &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.
498 },
499 &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`.
500 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
501 &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.
502 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
503 &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.
504 },
505 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
506 &quot;a_key&quot;: &quot;A String&quot;,
507 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700508 &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).
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700509 &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 -0800510 &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 -0700511 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800512 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800513 &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.
514 &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.
515 &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 -0700516 &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 -0800517 },
518 ],
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700519 &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 -0800520}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700521</div>
522
523<div class="method">
524 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
525 <pre>Retrieves the next page of results.
526
527Args:
528 previous_request: The request for the previous page. (required)
529 previous_response: The response from the request for the previous page. (required)
530
531Returns:
532 A request object that you can call &#x27;execute()&#x27; on to request the next
533 page. Returns None if there are no more items in the collection.
534 </pre>
535</div>
536
537<div class="method">
538 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700539 <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 -0700540
541Args:
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700542 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 -0700543 body: object, The request body.
544 The object takes the form of:
545
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700546{ # 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 -0800547 &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 -0700548 &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 -0800549 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
550 &quot;a_key&quot;: &quot;A String&quot;,
551 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700552 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
553 &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 -0800554 &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 -0700555 &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 -0800556 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
557 &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.
558 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
559 &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.
560 },
561 &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 -0800562 &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.
563 &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 -0800564 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
565 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
566 &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 -0800567 { # 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.
568 &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 -0800569 &quot;headers&quot;: { # Required. The additional headers to add to the response.
570 &quot;a_key&quot;: &quot;A String&quot;,
571 },
572 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
573 },
574 ],
575 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
576 &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.
577 },
578 &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 -0800579 { # 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.
580 &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 -0800581 &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;
582 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
583 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
584 },
585 ],
586 &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 -0800587 { # 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 -0800588 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
589 &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 -0800590 &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 -0800591 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
592 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
593 &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.
594 &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.
595 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
596 },
597 },
598 ],
599 &quot;trailingSlashBehavior&quot;: &quot;A String&quot;, # Defines how to handle a trailing slash in the URL path.
600 },
601 &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 -0800602 &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 -0800603 &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 -0800604 &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 -0800605 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800606 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
607 &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.
608 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
609 &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.
610 },
611 &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`.
612 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
613 &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.
614 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
615 &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.
616 },
617 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
618 &quot;a_key&quot;: &quot;A String&quot;,
619 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700620 &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).
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700621 &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 -0800622 &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 -0700623 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800624 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800625 &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.
626 &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.
627 &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 -0700628 &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 -0800629}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700630
631 updateMask: string, A comma-separated list of fields to be updated in this request.
632 x__xgafv: string, V1 error format.
633 Allowed values
634 1 - v1 error format
635 2 - v2 error format
636
637Returns:
638 An object of the form:
639
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700640 { # 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 -0800641 &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 -0700642 &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 -0800643 &quot;labels&quot;: { # Text labels used for extra metadata and/or filtering.
644 &quot;a_key&quot;: &quot;A String&quot;,
645 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700646 &quot;name&quot;: &quot;A String&quot;, # The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID
647 &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 -0800648 &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 -0700649 &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 -0800650 &quot;releaseTime&quot;: &quot;A String&quot;, # Output only. The time at which the version is set to be public.
651 &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.
652 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
653 &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 -0800654 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800655 &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 -0800656 &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.
657 &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 -0800658 &quot;appAssociation&quot;: &quot;A String&quot;, # How to handle well known App Association files.
659 &quot;cleanUrls&quot;: True or False, # Defines whether to drop the file extension from uploaded files.
660 &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 -0800661 { # 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.
662 &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 -0800663 &quot;headers&quot;: { # Required. The additional headers to add to the response.
664 &quot;a_key&quot;: &quot;A String&quot;,
665 },
666 &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 -0800667 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800668 ],
669 &quot;i18n&quot;: { # If provided, i18n rewrites are enabled. # Optional. Defines i18n rewrite behavior.
670 &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 -0800671 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800672 &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 -0800673 { # 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.
674 &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 -0800675 &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;
676 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
677 &quot;statusCode&quot;: 42, # Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
678 },
679 ],
680 &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 -0800681 { # 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 -0800682 &quot;dynamicLinks&quot;: True or False, # The request will be forwarded to Firebase Dynamic Links.
683 &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 -0800684 &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 -0800685 &quot;path&quot;: &quot;A String&quot;, # The URL path to rewrite the request to.
686 &quot;regex&quot;: &quot;A String&quot;, # The user-supplied RE2 regular expression to match against the request URL path.
687 &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.
688 &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.
689 &quot;serviceId&quot;: &quot;A String&quot;, # Required. User-defined ID of the Cloud Run service.
690 },
691 },
692 ],
693 &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 -0700694 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800695 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was created.
696 &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 -0800697 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
698 &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 -0800699 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800700 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `DELETED`.
701 &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.
702 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
703 &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.
704 },
705 &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`.
706 &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time at which the version was `FINALIZED`.
707 &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.
708 &quot;email&quot;: &quot;A String&quot;, # The email address of the user when the user performed the action.
709 &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.
710 },
711 &quot;labels&quot;: { # The labels used for extra metadata and/or filtering.
712 &quot;a_key&quot;: &quot;A String&quot;,
713 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700714 &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).
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700715 &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 -0800716 &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 -0800717 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800718 },
719 &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.
720 &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.
721 &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 -0700722 &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 -0800723}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700724</div>
725
Bu Sun Kim65020912020-05-20 12:08:20 -0700726</body></html>