1{
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
7 },
8 "https://www.googleapis.com/auth/cloud-platform.read-only": {
9 "description": "View your data across Google Cloud services and see the email address of your Google Account"
10 },
11 "https://www.googleapis.com/auth/firebase": {
12 "description": "View and administer all your Firebase data and settings"
13 },
14 "https://www.googleapis.com/auth/firebase.readonly": {
15 "description": "View all your Firebase data and settings"
16 }
17 }
18 }
19 },
20 "basePath": "",
21 "baseUrl": "https://firebasehosting.googleapis.com/",
22 "batchPath": "batch",
23 "canonicalName": "Firebase Hosting",
24 "description": "The Firebase Hosting REST API enables programmatic and customizable management and deployments to your Firebase-hosted sites. Use this REST API to create and manage channels and sites as well as to deploy new or updated hosting configurations and content files.",
25 "discoveryVersion": "v1",
26 "documentationLink": "https://firebase.google.com/docs/hosting/",
27 "fullyEncodeReservedExpansion": true,
28 "icons": {
29 "x16": "http://www.google.com/images/icons/product/search-16.gif",
30 "x32": "http://www.google.com/images/icons/product/search-32.gif"
31 },
32 "id": "firebasehosting:v1beta1",
33 "kind": "discovery#restDescription",
34 "mtlsRootUrl": "https://firebasehosting.mtls.googleapis.com/",
35 "name": "firebasehosting",
36 "ownerDomain": "google.com",
37 "ownerName": "Google",
38 "parameters": {
39 "$.xgafv": {
40 "description": "V1 error format.",
41 "enum": [
42 "1",
43 "2"
44 ],
45 "enumDescriptions": [
46 "v1 error format",
47 "v2 error format"
48 ],
49 "location": "query",
50 "type": "string"
51 },
52 "access_token": {
53 "description": "OAuth access token.",
54 "location": "query",
55 "type": "string"
56 },
57 "alt": {
58 "default": "json",
59 "description": "Data format for response.",
60 "enum": [
61 "json",
62 "media",
63 "proto"
64 ],
65 "enumDescriptions": [
66 "Responses with Content-Type of application/json",
67 "Media download with context-dependent Content-Type",
68 "Responses with Content-Type of application/x-protobuf"
69 ],
70 "location": "query",
71 "type": "string"
72 },
73 "callback": {
74 "description": "JSONP",
75 "location": "query",
76 "type": "string"
77 },
78 "fields": {
79 "description": "Selector specifying which fields to include in a partial response.",
80 "location": "query",
81 "type": "string"
82 },
83 "key": {
84 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
85 "location": "query",
86 "type": "string"
87 },
88 "oauth_token": {
89 "description": "OAuth 2.0 token for the current user.",
90 "location": "query",
91 "type": "string"
92 },
93 "prettyPrint": {
94 "default": "true",
95 "description": "Returns response with indentations and line breaks.",
96 "location": "query",
97 "type": "boolean"
98 },
99 "quotaUser": {
100 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
101 "location": "query",
102 "type": "string"
103 },
104 "uploadType": {
105 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
106 "location": "query",
107 "type": "string"
108 },
109 "upload_protocol": {
110 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
111 "location": "query",
112 "type": "string"
113 }
114 },
115 "protocol": "rest",
116 "resources": {
117 "projects": {
118 "resources": {
119 "operations": {
120 "methods": {
121 "get": {
122 "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
123 "flatPath": "v1beta1/projects/{projectsId}/operations/{operationsId}",
124 "httpMethod": "GET",
125 "id": "firebasehosting.projects.operations.get",
126 "parameterOrder": [
127 "name"
128 ],
129 "parameters": {
130 "name": {
131 "description": "The name of the operation resource.",
132 "location": "path",
133 "pattern": "^projects/[^/]+/operations/[^/]+$",
134 "required": true,
135 "type": "string"
136 }
137 },
138 "path": "v1beta1/{+name}",
139 "response": {
140 "$ref": "Operation"
141 },
142 "scopes": [
143 "https://www.googleapis.com/auth/cloud-platform",
144 "https://www.googleapis.com/auth/cloud-platform.read-only",
145 "https://www.googleapis.com/auth/firebase",
146 "https://www.googleapis.com/auth/firebase.readonly"
147 ]
148 }
149 }
150 },
151 "sites": {
152 "methods": {
153 "create": {
154 "description": "Creates a new Hosting Site in the specified parent Firebase project. Note that Hosting sites can take several minutes to propagate through Firebase systems.",
155 "flatPath": "v1beta1/projects/{projectsId}/sites",
156 "httpMethod": "POST",
157 "id": "firebasehosting.projects.sites.create",
158 "parameterOrder": [
159 "parent"
160 ],
161 "parameters": {
162 "parent": {
163 "description": "Required. The Firebase project in which to create a Hosting site, in the format: projects/PROJECT_IDENTIFIER Refer to the `Site` [`name`](../projects#Site.FIELDS.name) field for details about PROJECT_IDENTIFIER values.",
164 "location": "path",
165 "pattern": "^projects/[^/]+$",
166 "required": true,
167 "type": "string"
168 },
169 "siteId": {
170 "description": "Required. Immutable. A globally unique identifier for the Hosting site. This identifier is used to construct the Firebase-provisioned subdomains for the site, so it must also be a valid domain name label.",
171 "location": "query",
172 "type": "string"
173 },
174 "validateOnly": {
175 "description": "Optional. If set, validates that the site_id is available and that the request would succeed, returning the expected resulting site or error.",
176 "location": "query",
177 "type": "boolean"
178 }
179 },
180 "path": "v1beta1/{+parent}/sites",
181 "request": {
182 "$ref": "Site"
183 },
184 "response": {
185 "$ref": "Site"
186 },
187 "scopes": [
188 "https://www.googleapis.com/auth/cloud-platform",
189 "https://www.googleapis.com/auth/firebase"
190 ]
191 },
192 "delete": {
193 "description": "Deletes the specified Hosting Site from the specified parent Firebase project.",
194 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}",
195 "httpMethod": "DELETE",
196 "id": "firebasehosting.projects.sites.delete",
197 "parameterOrder": [
198 "name"
199 ],
200 "parameters": {
201 "name": {
202 "description": "Required. The fully-qualified resource name for the Hosting site, in the format: projects/PROJECT_IDENTIFIER/sites/SITE_ID Refer to the `Site` [`name`](../projects#Site.FIELDS.name) field for details about PROJECT_IDENTIFIER values.",
203 "location": "path",
204 "pattern": "^projects/[^/]+/sites/[^/]+$",
205 "required": true,
206 "type": "string"
207 }
208 },
209 "path": "v1beta1/{+name}",
210 "response": {
211 "$ref": "Empty"
212 },
213 "scopes": [
214 "https://www.googleapis.com/auth/cloud-platform",
215 "https://www.googleapis.com/auth/firebase"
216 ]
217 },
218 "get": {
219 "description": "Gets the specified Hosting Site.",
220 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}",
221 "httpMethod": "GET",
222 "id": "firebasehosting.projects.sites.get",
223 "parameterOrder": [
224 "name"
225 ],
226 "parameters": {
227 "name": {
228 "description": "Required. The fully-qualified resource name for the Hosting site, in the format: projects/PROJECT_IDENTIFIER/sites/SITE_ID Refer to the `Site` [`name`](../projects#Site.FIELDS.name) field for details about PROJECT_IDENTIFIER values. Since a SITE_ID is a globally unique identifier, you can also use the unique sub-collection resource access pattern, in the format: projects/-/sites/SITE_ID",
229 "location": "path",
230 "pattern": "^projects/[^/]+/sites/[^/]+$",
231 "required": true,
232 "type": "string"
233 }
234 },
235 "path": "v1beta1/{+name}",
236 "response": {
237 "$ref": "Site"
238 },
239 "scopes": [
240 "https://www.googleapis.com/auth/cloud-platform",
241 "https://www.googleapis.com/auth/cloud-platform.read-only",
242 "https://www.googleapis.com/auth/firebase",
243 "https://www.googleapis.com/auth/firebase.readonly"
244 ]
245 },
246 "getConfig": {
247 "description": "Gets the Hosting metadata for a specific site.",
248 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/config",
249 "httpMethod": "GET",
250 "id": "firebasehosting.projects.sites.getConfig",
251 "parameterOrder": [
252 "name"
253 ],
254 "parameters": {
255 "name": {
256 "description": "Required. The site for which to get the SiteConfig, in the format: sites/ site-name/config",
257 "location": "path",
258 "pattern": "^projects/[^/]+/sites/[^/]+/config$",
259 "required": true,
260 "type": "string"
261 }
262 },
263 "path": "v1beta1/{+name}",
264 "response": {
265 "$ref": "SiteConfig"
266 },
267 "scopes": [
268 "https://www.googleapis.com/auth/cloud-platform",
269 "https://www.googleapis.com/auth/cloud-platform.read-only",
270 "https://www.googleapis.com/auth/firebase",
271 "https://www.googleapis.com/auth/firebase.readonly"
272 ]
273 },
274 "list": {
275 "description": "Lists each Hosting Site associated with the specified parent Firebase project.",
276 "flatPath": "v1beta1/projects/{projectsId}/sites",
277 "httpMethod": "GET",
278 "id": "firebasehosting.projects.sites.list",
279 "parameterOrder": [
280 "parent"
281 ],
282 "parameters": {
283 "pageSize": {
284 "description": "Optional. The maximum number of sites to return. The service may return a lower number if fewer sites exist than this maximum number. If unspecified, defaults to 40.",
285 "format": "int32",
286 "location": "query",
287 "type": "integer"
288 },
289 "pageToken": {
290 "description": "Optional. A token from a previous call to `ListSites` that tells the server where to resume listing.",
291 "location": "query",
292 "type": "string"
293 },
294 "parent": {
295 "description": "Required. The Firebase project for which to list sites, in the format: projects/PROJECT_IDENTIFIER Refer to the `Site` [`name`](../projects#Site.FIELDS.name) field for details about PROJECT_IDENTIFIER values.",
296 "location": "path",
297 "pattern": "^projects/[^/]+$",
298 "required": true,
299 "type": "string"
300 }
301 },
302 "path": "v1beta1/{+parent}/sites",
303 "response": {
304 "$ref": "ListSitesResponse"
305 },
306 "scopes": [
307 "https://www.googleapis.com/auth/cloud-platform",
308 "https://www.googleapis.com/auth/cloud-platform.read-only",
309 "https://www.googleapis.com/auth/firebase",
310 "https://www.googleapis.com/auth/firebase.readonly"
311 ]
312 },
313 "patch": {
314 "description": "Updates attributes of the specified Hosting Site.",
315 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}",
316 "httpMethod": "PATCH",
317 "id": "firebasehosting.projects.sites.patch",
318 "parameterOrder": [
319 "name"
320 ],
321 "parameters": {
322 "name": {
323 "description": "Output only. The fully-qualified resource name of the Hosting site, in the format: projects/PROJECT_IDENTIFIER/sites/SITE_ID PROJECT_IDENTIFIER: the Firebase project's [`ProjectNumber`](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510).",
324 "location": "path",
325 "pattern": "^projects/[^/]+/sites/[^/]+$",
326 "required": true,
327 "type": "string"
328 },
329 "updateMask": {
330 "description": "A set of field names from your Site that you want to update.",
331 "format": "google-fieldmask",
332 "location": "query",
333 "type": "string"
334 }
335 },
336 "path": "v1beta1/{+name}",
337 "request": {
338 "$ref": "Site"
339 },
340 "response": {
341 "$ref": "Site"
342 },
343 "scopes": [
344 "https://www.googleapis.com/auth/cloud-platform",
345 "https://www.googleapis.com/auth/firebase"
346 ]
347 },
348 "updateConfig": {
349 "description": "Sets the Hosting metadata for a specific site.",
350 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/config",
351 "httpMethod": "PATCH",
352 "id": "firebasehosting.projects.sites.updateConfig",
353 "parameterOrder": [
354 "name"
355 ],
356 "parameters": {
357 "name": {
358 "description": "Required. The site for which to update the SiteConfig, in the format: sites/ site-name/config",
359 "location": "path",
360 "pattern": "^projects/[^/]+/sites/[^/]+/config$",
361 "required": true,
362 "type": "string"
363 },
364 "updateMask": {
365 "description": "A set of field names from your [site configuration](../sites.SiteConfig) that you want to update. A field will be overwritten if, and only if, it's in the mask. If a mask is not provided then a default mask of only [`max_versions`](../sites.SiteConfig.max_versions) will be used.",
366 "format": "google-fieldmask",
367 "location": "query",
368 "type": "string"
369 }
370 },
371 "path": "v1beta1/{+name}",
372 "request": {
373 "$ref": "SiteConfig"
374 },
375 "response": {
376 "$ref": "SiteConfig"
377 },
378 "scopes": [
379 "https://www.googleapis.com/auth/cloud-platform",
380 "https://www.googleapis.com/auth/firebase"
381 ]
382 }
383 },
384 "resources": {
385 "channels": {
386 "methods": {
387 "create": {
388 "description": "Creates a new channel in the specified site.",
389 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels",
390 "httpMethod": "POST",
391 "id": "firebasehosting.projects.sites.channels.create",
392 "parameterOrder": [
393 "parent"
394 ],
395 "parameters": {
396 "channelId": {
397 "description": "Required. Immutable. A unique ID within the site that identifies the channel.",
398 "location": "query",
399 "type": "string"
400 },
401 "parent": {
402 "description": "Required. The site in which to create this channel, in the format: sites/ SITE_ID",
403 "location": "path",
404 "pattern": "^projects/[^/]+/sites/[^/]+$",
405 "required": true,
406 "type": "string"
407 }
408 },
409 "path": "v1beta1/{+parent}/channels",
410 "request": {
411 "$ref": "Channel"
412 },
413 "response": {
414 "$ref": "Channel"
415 },
416 "scopes": [
417 "https://www.googleapis.com/auth/cloud-platform",
418 "https://www.googleapis.com/auth/firebase"
419 ]
420 },
421 "delete": {
422 "description": "Deletes the specified channel of the specified site. The `live` channel cannot be deleted.",
423 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels/{channelsId}",
424 "httpMethod": "DELETE",
425 "id": "firebasehosting.projects.sites.channels.delete",
426 "parameterOrder": [
427 "name"
428 ],
429 "parameters": {
430 "name": {
431 "description": "Required. The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID",
432 "location": "path",
433 "pattern": "^projects/[^/]+/sites/[^/]+/channels/[^/]+$",
434 "required": true,
435 "type": "string"
436 }
437 },
438 "path": "v1beta1/{+name}",
439 "response": {
440 "$ref": "Empty"
441 },
442 "scopes": [
443 "https://www.googleapis.com/auth/cloud-platform",
444 "https://www.googleapis.com/auth/firebase"
445 ]
446 },
447 "get": {
448 "description": "Retrieves information for the specified channel of the specified site.",
449 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels/{channelsId}",
450 "httpMethod": "GET",
451 "id": "firebasehosting.projects.sites.channels.get",
452 "parameterOrder": [
453 "name"
454 ],
455 "parameters": {
456 "name": {
457 "description": "Required. The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID",
458 "location": "path",
459 "pattern": "^projects/[^/]+/sites/[^/]+/channels/[^/]+$",
460 "required": true,
461 "type": "string"
462 }
463 },
464 "path": "v1beta1/{+name}",
465 "response": {
466 "$ref": "Channel"
467 },
468 "scopes": [
469 "https://www.googleapis.com/auth/cloud-platform",
470 "https://www.googleapis.com/auth/cloud-platform.read-only",
471 "https://www.googleapis.com/auth/firebase",
472 "https://www.googleapis.com/auth/firebase.readonly"
473 ]
474 },
475 "list": {
476 "description": "Lists the channels for the specified site. All sites have a default `live` channel.",
477 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels",
478 "httpMethod": "GET",
479 "id": "firebasehosting.projects.sites.channels.list",
480 "parameterOrder": [
481 "parent"
482 ],
483 "parameters": {
484 "pageSize": {
485 "description": "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.",
486 "format": "int32",
487 "location": "query",
488 "type": "integer"
489 },
490 "pageToken": {
491 "description": "A token from a previous call to `ListChannels` that tells the server where to resume listing.",
492 "location": "query",
493 "type": "string"
494 },
495 "parent": {
496 "description": "Required. The site for which to list channels, in the format: sites/SITE_ID",
497 "location": "path",
498 "pattern": "^projects/[^/]+/sites/[^/]+$",
499 "required": true,
500 "type": "string"
501 }
502 },
503 "path": "v1beta1/{+parent}/channels",
504 "response": {
505 "$ref": "ListChannelsResponse"
506 },
507 "scopes": [
508 "https://www.googleapis.com/auth/cloud-platform",
509 "https://www.googleapis.com/auth/cloud-platform.read-only",
510 "https://www.googleapis.com/auth/firebase",
511 "https://www.googleapis.com/auth/firebase.readonly"
512 ]
513 },
514 "patch": {
515 "description": "Updates information for the specified channel of the specified site. Implicitly creates the channel if it doesn't already exist.",
516 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels/{channelsId}",
517 "httpMethod": "PATCH",
518 "id": "firebasehosting.projects.sites.channels.patch",
519 "parameterOrder": [
520 "name"
521 ],
522 "parameters": {
523 "name": {
524 "description": "The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID",
525 "location": "path",
526 "pattern": "^projects/[^/]+/sites/[^/]+/channels/[^/]+$",
527 "required": true,
528 "type": "string"
529 },
530 "updateMask": {
531 "description": "A comma-separated list of fields to be updated in this request.",
532 "format": "google-fieldmask",
533 "location": "query",
534 "type": "string"
535 }
536 },
537 "path": "v1beta1/{+name}",
538 "request": {
539 "$ref": "Channel"
540 },
541 "response": {
542 "$ref": "Channel"
543 },
544 "scopes": [
545 "https://www.googleapis.com/auth/cloud-platform",
546 "https://www.googleapis.com/auth/firebase"
547 ]
548 }
549 },
550 "resources": {
551 "releases": {
552 "methods": {
553 "create": {
554 "description": "Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).",
555 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels/{channelsId}/releases",
556 "httpMethod": "POST",
557 "id": "firebasehosting.projects.sites.channels.releases.create",
558 "parameterOrder": [
559 "parent"
560 ],
561 "parameters": {
562 "parent": {
563 "description": "Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID",
564 "location": "path",
565 "pattern": "^projects/[^/]+/sites/[^/]+/channels/[^/]+$",
566 "required": true,
567 "type": "string"
568 },
569 "versionName": {
570 "description": " The unique identifier for a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_ID in this version identifier must match the SITE_ID in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.",
571 "location": "query",
572 "type": "string"
573 }
574 },
575 "path": "v1beta1/{+parent}/releases",
576 "request": {
577 "$ref": "Release"
578 },
579 "response": {
580 "$ref": "Release"
581 },
582 "scopes": [
583 "https://www.googleapis.com/auth/cloud-platform",
584 "https://www.googleapis.com/auth/firebase"
585 ]
586 },
587 "get": {
588 "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.",
589 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels/{channelsId}/releases/{releasesId}",
590 "httpMethod": "GET",
591 "id": "firebasehosting.projects.sites.channels.releases.get",
592 "parameterOrder": [
593 "name"
594 ],
595 "parameters": {
596 "name": {
597 "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ",
598 "location": "path",
599 "pattern": "^projects/[^/]+/sites/[^/]+/channels/[^/]+/releases/[^/]+$",
600 "required": true,
601 "type": "string"
602 }
603 },
604 "path": "v1beta1/{+name}",
605 "response": {
606 "$ref": "Release"
607 },
608 "scopes": [
609 "https://www.googleapis.com/auth/cloud-platform",
610 "https://www.googleapis.com/auth/cloud-platform.read-only",
611 "https://www.googleapis.com/auth/firebase",
612 "https://www.googleapis.com/auth/firebase.readonly"
613 ]
614 },
615 "list": {
616 "description": "Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.",
617 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/channels/{channelsId}/releases",
618 "httpMethod": "GET",
619 "id": "firebasehosting.projects.sites.channels.releases.list",
620 "parameterOrder": [
621 "parent"
622 ],
623 "parameters": {
624 "pageSize": {
625 "description": "The maximum number of releases to return. The service may return a lower number if fewer releases exist than this maximum number. If unspecified, defaults to 100.",
626 "format": "int32",
627 "location": "query",
628 "type": "integer"
629 },
630 "pageToken": {
631 "description": "A token from a previous call to `releases.list` or `channels.releases.list` that tells the server where to resume listing.",
632 "location": "query",
633 "type": "string"
634 },
635 "parent": {
636 "description": "Required. The site or channel for which to list releases, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID ",
637 "location": "path",
638 "pattern": "^projects/[^/]+/sites/[^/]+/channels/[^/]+$",
639 "required": true,
640 "type": "string"
641 }
642 },
643 "path": "v1beta1/{+parent}/releases",
644 "response": {
645 "$ref": "ListReleasesResponse"
646 },
647 "scopes": [
648 "https://www.googleapis.com/auth/cloud-platform",
649 "https://www.googleapis.com/auth/cloud-platform.read-only",
650 "https://www.googleapis.com/auth/firebase",
651 "https://www.googleapis.com/auth/firebase.readonly"
652 ]
653 }
654 }
655 }
656 }
657 },
658 "customDomains": {
659 "methods": {
660 "create": {
661 "description": "Creates a `CustomDomain`.",
662 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/customDomains",
663 "httpMethod": "POST",
664 "id": "firebasehosting.projects.sites.customDomains.create",
665 "parameterOrder": [
666 "parent"
667 ],
668 "parameters": {
669 "customDomainId": {
670 "description": "Required. The ID of the `CustomDomain`, which is the domain name you'd like to use with Firebase Hosting.",
671 "location": "query",
672 "type": "string"
673 },
674 "parent": {
675 "description": "Required. The custom domain's parent, specifically a Firebase Hosting `Site`.",
676 "location": "path",
677 "pattern": "^projects/[^/]+/sites/[^/]+$",
678 "required": true,
679 "type": "string"
680 },
681 "validateOnly": {
682 "description": "If true, Hosting validates that it's possible to complete your request but doesn't actually create a new `CustomDomain`.",
683 "location": "query",
684 "type": "boolean"
685 }
686 },
687 "path": "v1beta1/{+parent}/customDomains",
688 "request": {
689 "$ref": "CustomDomain"
690 },
691 "response": {
692 "$ref": "Operation"
693 },
694 "scopes": [
695 "https://www.googleapis.com/auth/cloud-platform",
696 "https://www.googleapis.com/auth/firebase"
697 ]
698 },
699 "delete": {
700 "description": "Deletes the specified `CustomDomain`.",
701 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}",
702 "httpMethod": "DELETE",
703 "id": "firebasehosting.projects.sites.customDomains.delete",
704 "parameterOrder": [
705 "name"
706 ],
707 "parameters": {
708 "allowMissing": {
709 "description": "If true, the request succeeds even if the `CustomDomain` doesn't exist.",
710 "location": "query",
711 "type": "boolean"
712 },
713 "etag": {
714 "description": "A tag that represents the state of the `CustomDomain` as you know it. If present, the supplied tag must match the current value on your `CustomDomain`, or the request fails.",
715 "location": "query",
716 "type": "string"
717 },
718 "name": {
719 "description": "Required. The name of the `CustomDomain` to delete.",
720 "location": "path",
721 "pattern": "^projects/[^/]+/sites/[^/]+/customDomains/[^/]+$",
722 "required": true,
723 "type": "string"
724 },
725 "validateOnly": {
726 "description": "If true, Hosting validates that it's possible to complete your request but doesn't actually delete the `CustomDomain`.",
727 "location": "query",
728 "type": "boolean"
729 }
730 },
731 "path": "v1beta1/{+name}",
732 "response": {
733 "$ref": "Operation"
734 },
735 "scopes": [
736 "https://www.googleapis.com/auth/cloud-platform",
737 "https://www.googleapis.com/auth/firebase"
738 ]
739 },
740 "get": {
741 "description": "Gets the specified `CustomDomain`.",
742 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}",
743 "httpMethod": "GET",
744 "id": "firebasehosting.projects.sites.customDomains.get",
745 "parameterOrder": [
746 "name"
747 ],
748 "parameters": {
749 "name": {
750 "description": "Required. The name of the `CustomDomain` to get.",
751 "location": "path",
752 "pattern": "^projects/[^/]+/sites/[^/]+/customDomains/[^/]+$",
753 "required": true,
754 "type": "string"
755 }
756 },
757 "path": "v1beta1/{+name}",
758 "response": {
759 "$ref": "CustomDomain"
760 },
761 "scopes": [
762 "https://www.googleapis.com/auth/cloud-platform",
763 "https://www.googleapis.com/auth/cloud-platform.read-only",
764 "https://www.googleapis.com/auth/firebase",
765 "https://www.googleapis.com/auth/firebase.readonly"
766 ]
767 },
768 "list": {
769 "description": "Lists each `CustomDomain` associated with the specified parent Hosting site. Returns `CustomDomain`s in a consistent, but undefined, order to facilitate pagination.",
770 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/customDomains",
771 "httpMethod": "GET",
772 "id": "firebasehosting.projects.sites.customDomains.list",
773 "parameterOrder": [
774 "parent"
775 ],
776 "parameters": {
777 "pageSize": {
778 "description": "The max number of `CustomDomain` entities to return in a request. Defaults to 10.",
779 "format": "int32",
780 "location": "query",
781 "type": "integer"
782 },
783 "pageToken": {
784 "description": "A token from a previous call to `ListCustomDomains` that tells the server where to resume listing.",
785 "location": "query",
786 "type": "string"
787 },
788 "parent": {
789 "description": "Required. The Firebase Hosting `Site` with `CustomDomain` entities you'd like to list.",
790 "location": "path",
791 "pattern": "^projects/[^/]+/sites/[^/]+$",
792 "required": true,
793 "type": "string"
794 },
795 "showDeleted": {
796 "description": "If true, the request returns soft-deleted `CustomDomain`s that haven't been fully-deleted yet. To restore deleted `CustomDomain`s, make an `UndeleteCustomDomain` request.",
797 "location": "query",
798 "type": "boolean"
799 }
800 },
801 "path": "v1beta1/{+parent}/customDomains",
802 "response": {
803 "$ref": "ListCustomDomainsResponse"
804 },
805 "scopes": [
806 "https://www.googleapis.com/auth/cloud-platform",
807 "https://www.googleapis.com/auth/cloud-platform.read-only",
808 "https://www.googleapis.com/auth/firebase",
809 "https://www.googleapis.com/auth/firebase.readonly"
810 ]
811 },
812 "patch": {
813 "description": "Updates the specified `CustomDomain`.",
814 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}",
815 "httpMethod": "PATCH",
816 "id": "firebasehosting.projects.sites.customDomains.patch",
817 "parameterOrder": [
818 "name"
819 ],
820 "parameters": {
821 "allowMissing": {
822 "description": "If true, Hosting creates the `CustomDomain` if it doesn't already exist.",
823 "location": "query",
824 "type": "boolean"
825 },
826 "name": {
827 "description": "Output only. The fully-qualified name of the `CustomDomain`.",
828 "location": "path",
829 "pattern": "^projects/[^/]+/sites/[^/]+/customDomains/[^/]+$",
830 "required": true,
831 "type": "string"
832 },
833 "updateMask": {
834 "description": "The set of field names from your `CustomDomain` that you want to update. A field will be overwritten if, and only if, it's in the mask. If you don't provide a mask, Hosting updates the entire `CustomDomain`.",
835 "format": "google-fieldmask",
836 "location": "query",
837 "type": "string"
838 },
839 "validateOnly": {
840 "description": "If true, Hosting validates that it's possible to complete your request but doesn't actually create or update the `CustomDomain`.",
841 "location": "query",
842 "type": "boolean"
843 }
844 },
845 "path": "v1beta1/{+name}",
846 "request": {
847 "$ref": "CustomDomain"
848 },
849 "response": {
850 "$ref": "Operation"
851 },
852 "scopes": [
853 "https://www.googleapis.com/auth/cloud-platform",
854 "https://www.googleapis.com/auth/firebase"
855 ]
856 },
857 "undelete": {
858 "description": "Undeletes the specified `CustomDomain` if it has been soft-deleted. Hosting retains soft-deleted custom domains for around 30 days before permanently deleting them.",
859 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}:undelete",
860 "httpMethod": "POST",
861 "id": "firebasehosting.projects.sites.customDomains.undelete",
862 "parameterOrder": [
863 "name"
864 ],
865 "parameters": {
866 "name": {
867 "description": "Required. The name of the `CustomDomain` to delete.",
868 "location": "path",
869 "pattern": "^projects/[^/]+/sites/[^/]+/customDomains/[^/]+$",
870 "required": true,
871 "type": "string"
872 }
873 },
874 "path": "v1beta1/{+name}:undelete",
875 "request": {
876 "$ref": "UndeleteCustomDomainRequest"
877 },
878 "response": {
879 "$ref": "Operation"
880 },
881 "scopes": [
882 "https://www.googleapis.com/auth/cloud-platform",
883 "https://www.googleapis.com/auth/firebase"
884 ]
885 }
886 },
887 "resources": {
888 "operations": {
889 "methods": {
890 "get": {
891 "description": "Gets the latest state of a long-running operation. Use this method to poll the operation result at intervals as recommended by the API service.",
892 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}/operations/{operationsId}",
893 "httpMethod": "GET",
894 "id": "firebasehosting.projects.sites.customDomains.operations.get",
895 "parameterOrder": [
896 "name"
897 ],
898 "parameters": {
899 "name": {
900 "description": "The name of the operation resource.",
901 "location": "path",
902 "pattern": "^projects/[^/]+/sites/[^/]+/customDomains/[^/]+/operations/[^/]+$",
903 "required": true,
904 "type": "string"
905 }
906 },
907 "path": "v1beta1/{+name}",
908 "response": {
909 "$ref": "Operation"
910 },
911 "scopes": [
912 "https://www.googleapis.com/auth/cloud-platform",
913 "https://www.googleapis.com/auth/cloud-platform.read-only",
914 "https://www.googleapis.com/auth/firebase",
915 "https://www.googleapis.com/auth/firebase.readonly"
916 ]
917 },
918 "list": {
919 "description": "Lists operations that match the specified filter in the request.",
920 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/customDomains/{customDomainsId}/operations",
921 "httpMethod": "GET",
922 "id": "firebasehosting.projects.sites.customDomains.operations.list",
923 "parameterOrder": [
924 "name"
925 ],
926 "parameters": {
927 "filter": {
928 "description": "The standard list filter.",
929 "location": "query",
930 "type": "string"
931 },
932 "name": {
933 "description": "The name of the operation's parent resource.",
934 "location": "path",
935 "pattern": "^projects/[^/]+/sites/[^/]+/customDomains/[^/]+$",
936 "required": true,
937 "type": "string"
938 },
939 "pageSize": {
940 "description": "The standard list page size.",
941 "format": "int32",
942 "location": "query",
943 "type": "integer"
944 },
945 "pageToken": {
946 "description": "The standard list page token.",
947 "location": "query",
948 "type": "string"
949 }
950 },
951 "path": "v1beta1/{+name}/operations",
952 "response": {
953 "$ref": "ListOperationsResponse"
954 },
955 "scopes": [
956 "https://www.googleapis.com/auth/cloud-platform",
957 "https://www.googleapis.com/auth/cloud-platform.read-only",
958 "https://www.googleapis.com/auth/firebase",
959 "https://www.googleapis.com/auth/firebase.readonly"
960 ]
961 }
962 }
963 }
964 }
965 },
966 "domains": {
967 "methods": {
968 "create": {
969 "description": "Creates a domain mapping on the specified site.",
970 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/domains",
971 "httpMethod": "POST",
972 "id": "firebasehosting.projects.sites.domains.create",
973 "parameterOrder": [
974 "parent"
975 ],
976 "parameters": {
977 "parent": {
978 "description": "Required. The parent to create the domain association for, in the format: sites/site-name",
979 "location": "path",
980 "pattern": "^projects/[^/]+/sites/[^/]+$",
981 "required": true,
982 "type": "string"
983 }
984 },
985 "path": "v1beta1/{+parent}/domains",
986 "request": {
987 "$ref": "Domain"
988 },
989 "response": {
990 "$ref": "Domain"
991 },
992 "scopes": [
993 "https://www.googleapis.com/auth/cloud-platform",
994 "https://www.googleapis.com/auth/firebase"
995 ]
996 },
997 "delete": {
998 "description": "Deletes the existing domain mapping on the specified site.",
999 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/domains/{domainsId}",
1000 "httpMethod": "DELETE",
1001 "id": "firebasehosting.projects.sites.domains.delete",
1002 "parameterOrder": [
1003 "name"
1004 ],
1005 "parameters": {
1006 "name": {
1007 "description": "Required. The name of the domain association to delete.",
1008 "location": "path",
1009 "pattern": "^projects/[^/]+/sites/[^/]+/domains/[^/]+$",
1010 "required": true,
1011 "type": "string"
1012 }
1013 },
1014 "path": "v1beta1/{+name}",
1015 "response": {
1016 "$ref": "Empty"
1017 },
1018 "scopes": [
1019 "https://www.googleapis.com/auth/cloud-platform",
1020 "https://www.googleapis.com/auth/firebase"
1021 ]
1022 },
1023 "get": {
1024 "description": "Gets a domain mapping on the specified site.",
1025 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/domains/{domainsId}",
1026 "httpMethod": "GET",
1027 "id": "firebasehosting.projects.sites.domains.get",
1028 "parameterOrder": [
1029 "name"
1030 ],
1031 "parameters": {
1032 "name": {
1033 "description": "Required. The name of the domain configuration to get.",
1034 "location": "path",
1035 "pattern": "^projects/[^/]+/sites/[^/]+/domains/[^/]+$",
1036 "required": true,
1037 "type": "string"
1038 }
1039 },
1040 "path": "v1beta1/{+name}",
1041 "response": {
1042 "$ref": "Domain"
1043 },
1044 "scopes": [
1045 "https://www.googleapis.com/auth/cloud-platform",
1046 "https://www.googleapis.com/auth/cloud-platform.read-only",
1047 "https://www.googleapis.com/auth/firebase",
1048 "https://www.googleapis.com/auth/firebase.readonly"
1049 ]
1050 },
1051 "list": {
1052 "description": "Lists the domains for the specified site.",
1053 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/domains",
1054 "httpMethod": "GET",
1055 "id": "firebasehosting.projects.sites.domains.list",
1056 "parameterOrder": [
1057 "parent"
1058 ],
1059 "parameters": {
1060 "pageSize": {
1061 "description": "The page size to return. Defaults to 50.",
1062 "format": "int32",
1063 "location": "query",
1064 "type": "integer"
1065 },
1066 "pageToken": {
1067 "description": "The next_page_token from a previous request, if provided.",
1068 "location": "query",
1069 "type": "string"
1070 },
1071 "parent": {
1072 "description": "Required. The parent for which to list domains, in the format: sites/ site-name",
1073 "location": "path",
1074 "pattern": "^projects/[^/]+/sites/[^/]+$",
1075 "required": true,
1076 "type": "string"
1077 }
1078 },
1079 "path": "v1beta1/{+parent}/domains",
1080 "response": {
1081 "$ref": "ListDomainsResponse"
1082 },
1083 "scopes": [
1084 "https://www.googleapis.com/auth/cloud-platform",
1085 "https://www.googleapis.com/auth/cloud-platform.read-only",
1086 "https://www.googleapis.com/auth/firebase",
1087 "https://www.googleapis.com/auth/firebase.readonly"
1088 ]
1089 },
1090 "update": {
1091 "description": "Updates the specified domain mapping, creating the mapping as if it does not exist.",
1092 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/domains/{domainsId}",
1093 "httpMethod": "PUT",
1094 "id": "firebasehosting.projects.sites.domains.update",
1095 "parameterOrder": [
1096 "name"
1097 ],
1098 "parameters": {
1099 "name": {
1100 "description": "Required. The name of the domain association to update or create, if an association doesn't already exist.",
1101 "location": "path",
1102 "pattern": "^projects/[^/]+/sites/[^/]+/domains/[^/]+$",
1103 "required": true,
1104 "type": "string"
1105 }
1106 },
1107 "path": "v1beta1/{+name}",
1108 "request": {
1109 "$ref": "Domain"
1110 },
1111 "response": {
1112 "$ref": "Domain"
1113 },
1114 "scopes": [
1115 "https://www.googleapis.com/auth/cloud-platform",
1116 "https://www.googleapis.com/auth/firebase"
1117 ]
1118 }
1119 }
1120 },
1121 "releases": {
1122 "methods": {
1123 "create": {
1124 "description": "Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).",
1125 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/releases",
1126 "httpMethod": "POST",
1127 "id": "firebasehosting.projects.sites.releases.create",
1128 "parameterOrder": [
1129 "parent"
1130 ],
1131 "parameters": {
1132 "parent": {
1133 "description": "Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID",
1134 "location": "path",
1135 "pattern": "^projects/[^/]+/sites/[^/]+$",
1136 "required": true,
1137 "type": "string"
1138 },
1139 "versionName": {
1140 "description": " The unique identifier for a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_ID in this version identifier must match the SITE_ID in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.",
1141 "location": "query",
1142 "type": "string"
1143 }
1144 },
1145 "path": "v1beta1/{+parent}/releases",
1146 "request": {
1147 "$ref": "Release"
1148 },
1149 "response": {
1150 "$ref": "Release"
1151 },
1152 "scopes": [
1153 "https://www.googleapis.com/auth/cloud-platform",
1154 "https://www.googleapis.com/auth/firebase"
1155 ]
1156 },
1157 "get": {
1158 "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.",
1159 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/releases/{releasesId}",
1160 "httpMethod": "GET",
1161 "id": "firebasehosting.projects.sites.releases.get",
1162 "parameterOrder": [
1163 "name"
1164 ],
1165 "parameters": {
1166 "name": {
1167 "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ",
1168 "location": "path",
1169 "pattern": "^projects/[^/]+/sites/[^/]+/releases/[^/]+$",
1170 "required": true,
1171 "type": "string"
1172 }
1173 },
1174 "path": "v1beta1/{+name}",
1175 "response": {
1176 "$ref": "Release"
1177 },
1178 "scopes": [
1179 "https://www.googleapis.com/auth/cloud-platform",
1180 "https://www.googleapis.com/auth/cloud-platform.read-only",
1181 "https://www.googleapis.com/auth/firebase",
1182 "https://www.googleapis.com/auth/firebase.readonly"
1183 ]
1184 },
1185 "list": {
1186 "description": "Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.",
1187 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/releases",
1188 "httpMethod": "GET",
1189 "id": "firebasehosting.projects.sites.releases.list",
1190 "parameterOrder": [
1191 "parent"
1192 ],
1193 "parameters": {
1194 "pageSize": {
1195 "description": "The maximum number of releases to return. The service may return a lower number if fewer releases exist than this maximum number. If unspecified, defaults to 100.",
1196 "format": "int32",
1197 "location": "query",
1198 "type": "integer"
1199 },
1200 "pageToken": {
1201 "description": "A token from a previous call to `releases.list` or `channels.releases.list` that tells the server where to resume listing.",
1202 "location": "query",
1203 "type": "string"
1204 },
1205 "parent": {
1206 "description": "Required. The site or channel for which to list releases, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID ",
1207 "location": "path",
1208 "pattern": "^projects/[^/]+/sites/[^/]+$",
1209 "required": true,
1210 "type": "string"
1211 }
1212 },
1213 "path": "v1beta1/{+parent}/releases",
1214 "response": {
1215 "$ref": "ListReleasesResponse"
1216 },
1217 "scopes": [
1218 "https://www.googleapis.com/auth/cloud-platform",
1219 "https://www.googleapis.com/auth/cloud-platform.read-only",
1220 "https://www.googleapis.com/auth/firebase",
1221 "https://www.googleapis.com/auth/firebase.readonly"
1222 ]
1223 }
1224 }
1225 },
1226 "versions": {
1227 "methods": {
1228 "clone": {
1229 "description": "Creates a new version on the specified target site using the content of the specified version.",
1230 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions:clone",
1231 "httpMethod": "POST",
1232 "id": "firebasehosting.projects.sites.versions.clone",
1233 "parameterOrder": [
1234 "parent"
1235 ],
1236 "parameters": {
1237 "parent": {
1238 "description": "Required. The target site for the cloned version, in the format: sites/ SITE_ID",
1239 "location": "path",
1240 "pattern": "^projects/[^/]+/sites/[^/]+$",
1241 "required": true,
1242 "type": "string"
1243 }
1244 },
1245 "path": "v1beta1/{+parent}/versions:clone",
1246 "request": {
1247 "$ref": "CloneVersionRequest"
1248 },
1249 "response": {
1250 "$ref": "Operation"
1251 },
1252 "scopes": [
1253 "https://www.googleapis.com/auth/cloud-platform",
1254 "https://www.googleapis.com/auth/firebase"
1255 ]
1256 },
1257 "create": {
1258 "description": "Creates a new version for the specified site.",
1259 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions",
1260 "httpMethod": "POST",
1261 "id": "firebasehosting.projects.sites.versions.create",
1262 "parameterOrder": [
1263 "parent"
1264 ],
1265 "parameters": {
1266 "parent": {
1267 "description": "Required. The site in which to create the version, in the format: sites/ SITE_ID",
1268 "location": "path",
1269 "pattern": "^projects/[^/]+/sites/[^/]+$",
1270 "required": true,
1271 "type": "string"
1272 },
1273 "sizeBytes": {
1274 "description": "The self-reported size of the version. This value is used for a pre-emptive quota check for legacy version uploads.",
1275 "format": "int64",
1276 "location": "query",
1277 "type": "string"
1278 },
1279 "versionId": {
1280 "deprecated": true,
1281 "description": "A unique id for the new version. This is was only specified for legacy version creations, and should be blank.",
1282 "location": "query",
1283 "type": "string"
1284 }
1285 },
1286 "path": "v1beta1/{+parent}/versions",
1287 "request": {
1288 "$ref": "Version"
1289 },
1290 "response": {
1291 "$ref": "Version"
1292 },
1293 "scopes": [
1294 "https://www.googleapis.com/auth/cloud-platform",
1295 "https://www.googleapis.com/auth/firebase"
1296 ]
1297 },
1298 "delete": {
1299 "description": "Deletes the specified version.",
1300 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions/{versionsId}",
1301 "httpMethod": "DELETE",
1302 "id": "firebasehosting.projects.sites.versions.delete",
1303 "parameterOrder": [
1304 "name"
1305 ],
1306 "parameters": {
1307 "name": {
1308 "description": "Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID",
1309 "location": "path",
1310 "pattern": "^projects/[^/]+/sites/[^/]+/versions/[^/]+$",
1311 "required": true,
1312 "type": "string"
1313 }
1314 },
1315 "path": "v1beta1/{+name}",
1316 "response": {
1317 "$ref": "Empty"
1318 },
1319 "scopes": [
1320 "https://www.googleapis.com/auth/cloud-platform",
1321 "https://www.googleapis.com/auth/firebase"
1322 ]
1323 },
1324 "get": {
1325 "description": "Get the specified version that has been created for the specified site. This can include versions that were created for the default `live` channel or for any active preview channels for the specified site.",
1326 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions/{versionsId}",
1327 "httpMethod": "GET",
1328 "id": "firebasehosting.projects.sites.versions.get",
1329 "parameterOrder": [
1330 "name"
1331 ],
1332 "parameters": {
1333 "name": {
1334 "description": "Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID",
1335 "location": "path",
1336 "pattern": "^projects/[^/]+/sites/[^/]+/versions/[^/]+$",
1337 "required": true,
1338 "type": "string"
1339 }
1340 },
1341 "path": "v1beta1/{+name}",
1342 "response": {
1343 "$ref": "Version"
1344 },
1345 "scopes": [
1346 "https://www.googleapis.com/auth/cloud-platform",
1347 "https://www.googleapis.com/auth/cloud-platform.read-only",
1348 "https://www.googleapis.com/auth/firebase",
1349 "https://www.googleapis.com/auth/firebase.readonly"
1350 ]
1351 },
1352 "list": {
1353 "description": "Lists the versions that have been created for the specified site. This list includes versions for both the default `live` channel and any active preview channels for the specified site.",
1354 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions",
1355 "httpMethod": "GET",
1356 "id": "firebasehosting.projects.sites.versions.list",
1357 "parameterOrder": [
1358 "parent"
1359 ],
1360 "parameters": {
1361 "filter": {
1362 "description": "A filter string used to return a subset of versions in the response. The currently supported fields for filtering are: `name`, `status`, and `create_time`. Learn more about filtering in Google's [AIP 160 standard](https://google.aip.dev/160).",
1363 "location": "query",
1364 "type": "string"
1365 },
1366 "pageSize": {
1367 "description": "The maximum number of versions to return. The service may return a lower number if fewer versions exist than this maximum number. If unspecified, defaults to 25. The maximum value is 100; values above 100 will be coerced to 100.",
1368 "format": "int32",
1369 "location": "query",
1370 "type": "integer"
1371 },
1372 "pageToken": {
1373 "description": "A token from a previous call to `ListVersions` that tells the server where to resume listing.",
1374 "location": "query",
1375 "type": "string"
1376 },
1377 "parent": {
1378 "description": "Required. The site or channel for which to list versions, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID ",
1379 "location": "path",
1380 "pattern": "^projects/[^/]+/sites/[^/]+$",
1381 "required": true,
1382 "type": "string"
1383 }
1384 },
1385 "path": "v1beta1/{+parent}/versions",
1386 "response": {
1387 "$ref": "ListVersionsResponse"
1388 },
1389 "scopes": [
1390 "https://www.googleapis.com/auth/cloud-platform",
1391 "https://www.googleapis.com/auth/cloud-platform.read-only",
1392 "https://www.googleapis.com/auth/firebase",
1393 "https://www.googleapis.com/auth/firebase.readonly"
1394 ]
1395 },
1396 "patch": {
1397 "description": " Updates the specified metadata for the specified version. This method will fail with `FAILED_PRECONDITION` in the event of an invalid state transition. The supported [state](../sites.versions#versionstatus) transitions for a version are from `CREATED` to `FINALIZED`. Use [`DeleteVersion`](delete) to set the status of a version to `DELETED`.",
1398 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions/{versionsId}",
1399 "httpMethod": "PATCH",
1400 "id": "firebasehosting.projects.sites.versions.patch",
1401 "parameterOrder": [
1402 "name"
1403 ],
1404 "parameters": {
1405 "name": {
1406 "description": "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).",
1407 "location": "path",
1408 "pattern": "^projects/[^/]+/sites/[^/]+/versions/[^/]+$",
1409 "required": true,
1410 "type": "string"
1411 },
1412 "updateMask": {
1413 "description": "A set of field names from your [version](../sites.versions) that you want to update. A field will be overwritten if, and only if, it's in the mask. If a mask is not provided then a default mask of only [`status`](../sites.versions#Version.FIELDS.status) will be used.",
1414 "format": "google-fieldmask",
1415 "location": "query",
1416 "type": "string"
1417 }
1418 },
1419 "path": "v1beta1/{+name}",
1420 "request": {
1421 "$ref": "Version"
1422 },
1423 "response": {
1424 "$ref": "Version"
1425 },
1426 "scopes": [
1427 "https://www.googleapis.com/auth/cloud-platform",
1428 "https://www.googleapis.com/auth/firebase"
1429 ]
1430 },
1431 "populateFiles": {
1432 "description": " Adds content files to the specified version. Each file must be under 2 GB.",
1433 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions/{versionsId}:populateFiles",
1434 "httpMethod": "POST",
1435 "id": "firebasehosting.projects.sites.versions.populateFiles",
1436 "parameterOrder": [
1437 "parent"
1438 ],
1439 "parameters": {
1440 "parent": {
1441 "description": "Required. The version to which to add files, in the format: sites/SITE_ID /versions/VERSION_ID",
1442 "location": "path",
1443 "pattern": "^projects/[^/]+/sites/[^/]+/versions/[^/]+$",
1444 "required": true,
1445 "type": "string"
1446 }
1447 },
1448 "path": "v1beta1/{+parent}:populateFiles",
1449 "request": {
1450 "$ref": "PopulateVersionFilesRequest"
1451 },
1452 "response": {
1453 "$ref": "PopulateVersionFilesResponse"
1454 },
1455 "scopes": [
1456 "https://www.googleapis.com/auth/cloud-platform",
1457 "https://www.googleapis.com/auth/firebase"
1458 ]
1459 }
1460 },
1461 "resources": {
1462 "files": {
1463 "methods": {
1464 "list": {
1465 "description": "Lists the remaining files to be uploaded for the specified version.",
1466 "flatPath": "v1beta1/projects/{projectsId}/sites/{sitesId}/versions/{versionsId}/files",
1467 "httpMethod": "GET",
1468 "id": "firebasehosting.projects.sites.versions.files.list",
1469 "parameterOrder": [
1470 "parent"
1471 ],
1472 "parameters": {
1473 "pageSize": {
1474 "description": "The maximum number of version files to return. The service may return a lower number if fewer version files exist than this maximum number. If unspecified, defaults to 1000.",
1475 "format": "int32",
1476 "location": "query",
1477 "type": "integer"
1478 },
1479 "pageToken": {
1480 "description": "A token from a previous call to `ListVersionFiles` that tells the server where to resume listing.",
1481 "location": "query",
1482 "type": "string"
1483 },
1484 "parent": {
1485 "description": "Required. The version for which to list files, in the format: sites/SITE_ID /versions/VERSION_ID",
1486 "location": "path",
1487 "pattern": "^projects/[^/]+/sites/[^/]+/versions/[^/]+$",
1488 "required": true,
1489 "type": "string"
1490 },
1491 "status": {
1492 "description": " The type of files that should be listed for the specified version.",
1493 "enum": [
1494 "STATUS_UNSPECIFIED",
1495 "EXPECTED",
1496 "ACTIVE"
1497 ],
1498 "enumDescriptions": [
1499 "The default status; should not be intentionally used.",
1500 "The file has been included in the version and is expected to be uploaded in the near future.",
1501 "The file has already been uploaded to Firebase Hosting."
1502 ],
1503 "location": "query",
1504 "type": "string"
1505 }
1506 },
1507 "path": "v1beta1/{+parent}/files",
1508 "response": {
1509 "$ref": "ListVersionFilesResponse"
1510 },
1511 "scopes": [
1512 "https://www.googleapis.com/auth/cloud-platform",
1513 "https://www.googleapis.com/auth/cloud-platform.read-only",
1514 "https://www.googleapis.com/auth/firebase",
1515 "https://www.googleapis.com/auth/firebase.readonly"
1516 ]
1517 }
1518 }
1519 }
1520 }
1521 }
1522 }
1523 }
1524 }
1525 },
1526 "sites": {
1527 "methods": {
1528 "getConfig": {
1529 "description": "Gets the Hosting metadata for a specific site.",
1530 "flatPath": "v1beta1/sites/{sitesId}/config",
1531 "httpMethod": "GET",
1532 "id": "firebasehosting.sites.getConfig",
1533 "parameterOrder": [
1534 "name"
1535 ],
1536 "parameters": {
1537 "name": {
1538 "description": "Required. The site for which to get the SiteConfig, in the format: sites/ site-name/config",
1539 "location": "path",
1540 "pattern": "^sites/[^/]+/config$",
1541 "required": true,
1542 "type": "string"
1543 }
1544 },
1545 "path": "v1beta1/{+name}",
1546 "response": {
1547 "$ref": "SiteConfig"
1548 },
1549 "scopes": [
1550 "https://www.googleapis.com/auth/cloud-platform",
1551 "https://www.googleapis.com/auth/cloud-platform.read-only",
1552 "https://www.googleapis.com/auth/firebase",
1553 "https://www.googleapis.com/auth/firebase.readonly"
1554 ]
1555 },
1556 "updateConfig": {
1557 "description": "Sets the Hosting metadata for a specific site.",
1558 "flatPath": "v1beta1/sites/{sitesId}/config",
1559 "httpMethod": "PATCH",
1560 "id": "firebasehosting.sites.updateConfig",
1561 "parameterOrder": [
1562 "name"
1563 ],
1564 "parameters": {
1565 "name": {
1566 "description": "Required. The site for which to update the SiteConfig, in the format: sites/ site-name/config",
1567 "location": "path",
1568 "pattern": "^sites/[^/]+/config$",
1569 "required": true,
1570 "type": "string"
1571 },
1572 "updateMask": {
1573 "description": "A set of field names from your [site configuration](../sites.SiteConfig) that you want to update. A field will be overwritten if, and only if, it's in the mask. If a mask is not provided then a default mask of only [`max_versions`](../sites.SiteConfig.max_versions) will be used.",
1574 "format": "google-fieldmask",
1575 "location": "query",
1576 "type": "string"
1577 }
1578 },
1579 "path": "v1beta1/{+name}",
1580 "request": {
1581 "$ref": "SiteConfig"
1582 },
1583 "response": {
1584 "$ref": "SiteConfig"
1585 },
1586 "scopes": [
1587 "https://www.googleapis.com/auth/cloud-platform",
1588 "https://www.googleapis.com/auth/firebase"
1589 ]
1590 }
1591 },
1592 "resources": {
1593 "channels": {
1594 "methods": {
1595 "create": {
1596 "description": "Creates a new channel in the specified site.",
1597 "flatPath": "v1beta1/sites/{sitesId}/channels",
1598 "httpMethod": "POST",
1599 "id": "firebasehosting.sites.channels.create",
1600 "parameterOrder": [
1601 "parent"
1602 ],
1603 "parameters": {
1604 "channelId": {
1605 "description": "Required. Immutable. A unique ID within the site that identifies the channel.",
1606 "location": "query",
1607 "type": "string"
1608 },
1609 "parent": {
1610 "description": "Required. The site in which to create this channel, in the format: sites/ SITE_ID",
1611 "location": "path",
1612 "pattern": "^sites/[^/]+$",
1613 "required": true,
1614 "type": "string"
1615 }
1616 },
1617 "path": "v1beta1/{+parent}/channels",
1618 "request": {
1619 "$ref": "Channel"
1620 },
1621 "response": {
1622 "$ref": "Channel"
1623 },
1624 "scopes": [
1625 "https://www.googleapis.com/auth/cloud-platform",
1626 "https://www.googleapis.com/auth/firebase"
1627 ]
1628 },
1629 "delete": {
1630 "description": "Deletes the specified channel of the specified site. The `live` channel cannot be deleted.",
1631 "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}",
1632 "httpMethod": "DELETE",
1633 "id": "firebasehosting.sites.channels.delete",
1634 "parameterOrder": [
1635 "name"
1636 ],
1637 "parameters": {
1638 "name": {
1639 "description": "Required. The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID",
1640 "location": "path",
1641 "pattern": "^sites/[^/]+/channels/[^/]+$",
1642 "required": true,
1643 "type": "string"
1644 }
1645 },
1646 "path": "v1beta1/{+name}",
1647 "response": {
1648 "$ref": "Empty"
1649 },
1650 "scopes": [
1651 "https://www.googleapis.com/auth/cloud-platform",
1652 "https://www.googleapis.com/auth/firebase"
1653 ]
1654 },
1655 "get": {
1656 "description": "Retrieves information for the specified channel of the specified site.",
1657 "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}",
1658 "httpMethod": "GET",
1659 "id": "firebasehosting.sites.channels.get",
1660 "parameterOrder": [
1661 "name"
1662 ],
1663 "parameters": {
1664 "name": {
1665 "description": "Required. The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID",
1666 "location": "path",
1667 "pattern": "^sites/[^/]+/channels/[^/]+$",
1668 "required": true,
1669 "type": "string"
1670 }
1671 },
1672 "path": "v1beta1/{+name}",
1673 "response": {
1674 "$ref": "Channel"
1675 },
1676 "scopes": [
1677 "https://www.googleapis.com/auth/cloud-platform",
1678 "https://www.googleapis.com/auth/cloud-platform.read-only",
1679 "https://www.googleapis.com/auth/firebase",
1680 "https://www.googleapis.com/auth/firebase.readonly"
1681 ]
1682 },
1683 "list": {
1684 "description": "Lists the channels for the specified site. All sites have a default `live` channel.",
1685 "flatPath": "v1beta1/sites/{sitesId}/channels",
1686 "httpMethod": "GET",
1687 "id": "firebasehosting.sites.channels.list",
1688 "parameterOrder": [
1689 "parent"
1690 ],
1691 "parameters": {
1692 "pageSize": {
1693 "description": "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.",
1694 "format": "int32",
1695 "location": "query",
1696 "type": "integer"
1697 },
1698 "pageToken": {
1699 "description": "A token from a previous call to `ListChannels` that tells the server where to resume listing.",
1700 "location": "query",
1701 "type": "string"
1702 },
1703 "parent": {
1704 "description": "Required. The site for which to list channels, in the format: sites/SITE_ID",
1705 "location": "path",
1706 "pattern": "^sites/[^/]+$",
1707 "required": true,
1708 "type": "string"
1709 }
1710 },
1711 "path": "v1beta1/{+parent}/channels",
1712 "response": {
1713 "$ref": "ListChannelsResponse"
1714 },
1715 "scopes": [
1716 "https://www.googleapis.com/auth/cloud-platform",
1717 "https://www.googleapis.com/auth/cloud-platform.read-only",
1718 "https://www.googleapis.com/auth/firebase",
1719 "https://www.googleapis.com/auth/firebase.readonly"
1720 ]
1721 },
1722 "patch": {
1723 "description": "Updates information for the specified channel of the specified site. Implicitly creates the channel if it doesn't already exist.",
1724 "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}",
1725 "httpMethod": "PATCH",
1726 "id": "firebasehosting.sites.channels.patch",
1727 "parameterOrder": [
1728 "name"
1729 ],
1730 "parameters": {
1731 "name": {
1732 "description": "The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID",
1733 "location": "path",
1734 "pattern": "^sites/[^/]+/channels/[^/]+$",
1735 "required": true,
1736 "type": "string"
1737 },
1738 "updateMask": {
1739 "description": "A comma-separated list of fields to be updated in this request.",
1740 "format": "google-fieldmask",
1741 "location": "query",
1742 "type": "string"
1743 }
1744 },
1745 "path": "v1beta1/{+name}",
1746 "request": {
1747 "$ref": "Channel"
1748 },
1749 "response": {
1750 "$ref": "Channel"
1751 },
1752 "scopes": [
1753 "https://www.googleapis.com/auth/cloud-platform",
1754 "https://www.googleapis.com/auth/firebase"
1755 ]
1756 }
1757 },
1758 "resources": {
1759 "releases": {
1760 "methods": {
1761 "create": {
1762 "description": "Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).",
1763 "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}/releases",
1764 "httpMethod": "POST",
1765 "id": "firebasehosting.sites.channels.releases.create",
1766 "parameterOrder": [
1767 "parent"
1768 ],
1769 "parameters": {
1770 "parent": {
1771 "description": "Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID",
1772 "location": "path",
1773 "pattern": "^sites/[^/]+/channels/[^/]+$",
1774 "required": true,
1775 "type": "string"
1776 },
1777 "versionName": {
1778 "description": " The unique identifier for a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_ID in this version identifier must match the SITE_ID in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.",
1779 "location": "query",
1780 "type": "string"
1781 }
1782 },
1783 "path": "v1beta1/{+parent}/releases",
1784 "request": {
1785 "$ref": "Release"
1786 },
1787 "response": {
1788 "$ref": "Release"
1789 },
1790 "scopes": [
1791 "https://www.googleapis.com/auth/cloud-platform",
1792 "https://www.googleapis.com/auth/firebase"
1793 ]
1794 },
1795 "get": {
1796 "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.",
1797 "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}/releases/{releasesId}",
1798 "httpMethod": "GET",
1799 "id": "firebasehosting.sites.channels.releases.get",
1800 "parameterOrder": [
1801 "name"
1802 ],
1803 "parameters": {
1804 "name": {
1805 "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ",
1806 "location": "path",
1807 "pattern": "^sites/[^/]+/channels/[^/]+/releases/[^/]+$",
1808 "required": true,
1809 "type": "string"
1810 }
1811 },
1812 "path": "v1beta1/{+name}",
1813 "response": {
1814 "$ref": "Release"
1815 },
1816 "scopes": [
1817 "https://www.googleapis.com/auth/cloud-platform",
1818 "https://www.googleapis.com/auth/cloud-platform.read-only",
1819 "https://www.googleapis.com/auth/firebase",
1820 "https://www.googleapis.com/auth/firebase.readonly"
1821 ]
1822 },
1823 "list": {
1824 "description": "Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.",
1825 "flatPath": "v1beta1/sites/{sitesId}/channels/{channelsId}/releases",
1826 "httpMethod": "GET",
1827 "id": "firebasehosting.sites.channels.releases.list",
1828 "parameterOrder": [
1829 "parent"
1830 ],
1831 "parameters": {
1832 "pageSize": {
1833 "description": "The maximum number of releases to return. The service may return a lower number if fewer releases exist than this maximum number. If unspecified, defaults to 100.",
1834 "format": "int32",
1835 "location": "query",
1836 "type": "integer"
1837 },
1838 "pageToken": {
1839 "description": "A token from a previous call to `releases.list` or `channels.releases.list` that tells the server where to resume listing.",
1840 "location": "query",
1841 "type": "string"
1842 },
1843 "parent": {
1844 "description": "Required. The site or channel for which to list releases, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID ",
1845 "location": "path",
1846 "pattern": "^sites/[^/]+/channels/[^/]+$",
1847 "required": true,
1848 "type": "string"
1849 }
1850 },
1851 "path": "v1beta1/{+parent}/releases",
1852 "response": {
1853 "$ref": "ListReleasesResponse"
1854 },
1855 "scopes": [
1856 "https://www.googleapis.com/auth/cloud-platform",
1857 "https://www.googleapis.com/auth/cloud-platform.read-only",
1858 "https://www.googleapis.com/auth/firebase",
1859 "https://www.googleapis.com/auth/firebase.readonly"
1860 ]
1861 }
1862 }
1863 }
1864 }
1865 },
1866 "domains": {
1867 "methods": {
1868 "create": {
1869 "description": "Creates a domain mapping on the specified site.",
1870 "flatPath": "v1beta1/sites/{sitesId}/domains",
1871 "httpMethod": "POST",
1872 "id": "firebasehosting.sites.domains.create",
1873 "parameterOrder": [
1874 "parent"
1875 ],
1876 "parameters": {
1877 "parent": {
1878 "description": "Required. The parent to create the domain association for, in the format: sites/site-name",
1879 "location": "path",
1880 "pattern": "^sites/[^/]+$",
1881 "required": true,
1882 "type": "string"
1883 }
1884 },
1885 "path": "v1beta1/{+parent}/domains",
1886 "request": {
1887 "$ref": "Domain"
1888 },
1889 "response": {
1890 "$ref": "Domain"
1891 },
1892 "scopes": [
1893 "https://www.googleapis.com/auth/cloud-platform",
1894 "https://www.googleapis.com/auth/firebase"
1895 ]
1896 },
1897 "delete": {
1898 "description": "Deletes the existing domain mapping on the specified site.",
1899 "flatPath": "v1beta1/sites/{sitesId}/domains/{domainsId}",
1900 "httpMethod": "DELETE",
1901 "id": "firebasehosting.sites.domains.delete",
1902 "parameterOrder": [
1903 "name"
1904 ],
1905 "parameters": {
1906 "name": {
1907 "description": "Required. The name of the domain association to delete.",
1908 "location": "path",
1909 "pattern": "^sites/[^/]+/domains/[^/]+$",
1910 "required": true,
1911 "type": "string"
1912 }
1913 },
1914 "path": "v1beta1/{+name}",
1915 "response": {
1916 "$ref": "Empty"
1917 },
1918 "scopes": [
1919 "https://www.googleapis.com/auth/cloud-platform",
1920 "https://www.googleapis.com/auth/firebase"
1921 ]
1922 },
1923 "get": {
1924 "description": "Gets a domain mapping on the specified site.",
1925 "flatPath": "v1beta1/sites/{sitesId}/domains/{domainsId}",
1926 "httpMethod": "GET",
1927 "id": "firebasehosting.sites.domains.get",
1928 "parameterOrder": [
1929 "name"
1930 ],
1931 "parameters": {
1932 "name": {
1933 "description": "Required. The name of the domain configuration to get.",
1934 "location": "path",
1935 "pattern": "^sites/[^/]+/domains/[^/]+$",
1936 "required": true,
1937 "type": "string"
1938 }
1939 },
1940 "path": "v1beta1/{+name}",
1941 "response": {
1942 "$ref": "Domain"
1943 },
1944 "scopes": [
1945 "https://www.googleapis.com/auth/cloud-platform",
1946 "https://www.googleapis.com/auth/cloud-platform.read-only",
1947 "https://www.googleapis.com/auth/firebase",
1948 "https://www.googleapis.com/auth/firebase.readonly"
1949 ]
1950 },
1951 "list": {
1952 "description": "Lists the domains for the specified site.",
1953 "flatPath": "v1beta1/sites/{sitesId}/domains",
1954 "httpMethod": "GET",
1955 "id": "firebasehosting.sites.domains.list",
1956 "parameterOrder": [
1957 "parent"
1958 ],
1959 "parameters": {
1960 "pageSize": {
1961 "description": "The page size to return. Defaults to 50.",
1962 "format": "int32",
1963 "location": "query",
1964 "type": "integer"
1965 },
1966 "pageToken": {
1967 "description": "The next_page_token from a previous request, if provided.",
1968 "location": "query",
1969 "type": "string"
1970 },
1971 "parent": {
1972 "description": "Required. The parent for which to list domains, in the format: sites/ site-name",
1973 "location": "path",
1974 "pattern": "^sites/[^/]+$",
1975 "required": true,
1976 "type": "string"
1977 }
1978 },
1979 "path": "v1beta1/{+parent}/domains",
1980 "response": {
1981 "$ref": "ListDomainsResponse"
1982 },
1983 "scopes": [
1984 "https://www.googleapis.com/auth/cloud-platform",
1985 "https://www.googleapis.com/auth/cloud-platform.read-only",
1986 "https://www.googleapis.com/auth/firebase",
1987 "https://www.googleapis.com/auth/firebase.readonly"
1988 ]
1989 },
1990 "update": {
1991 "description": "Updates the specified domain mapping, creating the mapping as if it does not exist.",
1992 "flatPath": "v1beta1/sites/{sitesId}/domains/{domainsId}",
1993 "httpMethod": "PUT",
1994 "id": "firebasehosting.sites.domains.update",
1995 "parameterOrder": [
1996 "name"
1997 ],
1998 "parameters": {
1999 "name": {
2000 "description": "Required. The name of the domain association to update or create, if an association doesn't already exist.",
2001 "location": "path",
2002 "pattern": "^sites/[^/]+/domains/[^/]+$",
2003 "required": true,
2004 "type": "string"
2005 }
2006 },
2007 "path": "v1beta1/{+name}",
2008 "request": {
2009 "$ref": "Domain"
2010 },
2011 "response": {
2012 "$ref": "Domain"
2013 },
2014 "scopes": [
2015 "https://www.googleapis.com/auth/cloud-platform",
2016 "https://www.googleapis.com/auth/firebase"
2017 ]
2018 }
2019 }
2020 },
2021 "releases": {
2022 "methods": {
2023 "create": {
2024 "description": "Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s).",
2025 "flatPath": "v1beta1/sites/{sitesId}/releases",
2026 "httpMethod": "POST",
2027 "id": "firebasehosting.sites.releases.create",
2028 "parameterOrder": [
2029 "parent"
2030 ],
2031 "parameters": {
2032 "parent": {
2033 "description": "Required. The site or channel to which the release belongs, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID",
2034 "location": "path",
2035 "pattern": "^sites/[^/]+$",
2036 "required": true,
2037 "type": "string"
2038 },
2039 "versionName": {
2040 "description": " The unique identifier for a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_ID in this version identifier must match the SITE_ID in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.",
2041 "location": "query",
2042 "type": "string"
2043 }
2044 },
2045 "path": "v1beta1/{+parent}/releases",
2046 "request": {
2047 "$ref": "Release"
2048 },
2049 "response": {
2050 "$ref": "Release"
2051 },
2052 "scopes": [
2053 "https://www.googleapis.com/auth/cloud-platform",
2054 "https://www.googleapis.com/auth/firebase"
2055 ]
2056 },
2057 "get": {
2058 "description": "Gets the specified release for a site or channel. When used to get a release for a site, this can get releases for both the default `live` channel and any active preview channels for the specified site.",
2059 "flatPath": "v1beta1/sites/{sitesId}/releases/{releasesId}",
2060 "httpMethod": "GET",
2061 "id": "firebasehosting.sites.releases.get",
2062 "parameterOrder": [
2063 "name"
2064 ],
2065 "parameters": {
2066 "name": {
2067 "description": "Required. The fully-qualified resource name for the Hosting release, in either of the following formats: - sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID - sites/SITE_ID/releases/RELEASE_ID ",
2068 "location": "path",
2069 "pattern": "^sites/[^/]+/releases/[^/]+$",
2070 "required": true,
2071 "type": "string"
2072 }
2073 },
2074 "path": "v1beta1/{+name}",
2075 "response": {
2076 "$ref": "Release"
2077 },
2078 "scopes": [
2079 "https://www.googleapis.com/auth/cloud-platform",
2080 "https://www.googleapis.com/auth/cloud-platform.read-only",
2081 "https://www.googleapis.com/auth/firebase",
2082 "https://www.googleapis.com/auth/firebase.readonly"
2083 ]
2084 },
2085 "list": {
2086 "description": "Lists the releases that have been created for the specified site or channel. When used to list releases for a site, this list includes releases for both the default `live` channel and any active preview channels for the specified site.",
2087 "flatPath": "v1beta1/sites/{sitesId}/releases",
2088 "httpMethod": "GET",
2089 "id": "firebasehosting.sites.releases.list",
2090 "parameterOrder": [
2091 "parent"
2092 ],
2093 "parameters": {
2094 "pageSize": {
2095 "description": "The maximum number of releases to return. The service may return a lower number if fewer releases exist than this maximum number. If unspecified, defaults to 100.",
2096 "format": "int32",
2097 "location": "query",
2098 "type": "integer"
2099 },
2100 "pageToken": {
2101 "description": "A token from a previous call to `releases.list` or `channels.releases.list` that tells the server where to resume listing.",
2102 "location": "query",
2103 "type": "string"
2104 },
2105 "parent": {
2106 "description": "Required. The site or channel for which to list releases, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID ",
2107 "location": "path",
2108 "pattern": "^sites/[^/]+$",
2109 "required": true,
2110 "type": "string"
2111 }
2112 },
2113 "path": "v1beta1/{+parent}/releases",
2114 "response": {
2115 "$ref": "ListReleasesResponse"
2116 },
2117 "scopes": [
2118 "https://www.googleapis.com/auth/cloud-platform",
2119 "https://www.googleapis.com/auth/cloud-platform.read-only",
2120 "https://www.googleapis.com/auth/firebase",
2121 "https://www.googleapis.com/auth/firebase.readonly"
2122 ]
2123 }
2124 }
2125 },
2126 "versions": {
2127 "methods": {
2128 "clone": {
2129 "description": "Creates a new version on the specified target site using the content of the specified version.",
2130 "flatPath": "v1beta1/sites/{sitesId}/versions:clone",
2131 "httpMethod": "POST",
2132 "id": "firebasehosting.sites.versions.clone",
2133 "parameterOrder": [
2134 "parent"
2135 ],
2136 "parameters": {
2137 "parent": {
2138 "description": "Required. The target site for the cloned version, in the format: sites/ SITE_ID",
2139 "location": "path",
2140 "pattern": "^sites/[^/]+$",
2141 "required": true,
2142 "type": "string"
2143 }
2144 },
2145 "path": "v1beta1/{+parent}/versions:clone",
2146 "request": {
2147 "$ref": "CloneVersionRequest"
2148 },
2149 "response": {
2150 "$ref": "Operation"
2151 },
2152 "scopes": [
2153 "https://www.googleapis.com/auth/cloud-platform",
2154 "https://www.googleapis.com/auth/firebase"
2155 ]
2156 },
2157 "create": {
2158 "description": "Creates a new version for the specified site.",
2159 "flatPath": "v1beta1/sites/{sitesId}/versions",
2160 "httpMethod": "POST",
2161 "id": "firebasehosting.sites.versions.create",
2162 "parameterOrder": [
2163 "parent"
2164 ],
2165 "parameters": {
2166 "parent": {
2167 "description": "Required. The site in which to create the version, in the format: sites/ SITE_ID",
2168 "location": "path",
2169 "pattern": "^sites/[^/]+$",
2170 "required": true,
2171 "type": "string"
2172 },
2173 "sizeBytes": {
2174 "description": "The self-reported size of the version. This value is used for a pre-emptive quota check for legacy version uploads.",
2175 "format": "int64",
2176 "location": "query",
2177 "type": "string"
2178 },
2179 "versionId": {
2180 "deprecated": true,
2181 "description": "A unique id for the new version. This is was only specified for legacy version creations, and should be blank.",
2182 "location": "query",
2183 "type": "string"
2184 }
2185 },
2186 "path": "v1beta1/{+parent}/versions",
2187 "request": {
2188 "$ref": "Version"
2189 },
2190 "response": {
2191 "$ref": "Version"
2192 },
2193 "scopes": [
2194 "https://www.googleapis.com/auth/cloud-platform",
2195 "https://www.googleapis.com/auth/firebase"
2196 ]
2197 },
2198 "delete": {
2199 "description": "Deletes the specified version.",
2200 "flatPath": "v1beta1/sites/{sitesId}/versions/{versionsId}",
2201 "httpMethod": "DELETE",
2202 "id": "firebasehosting.sites.versions.delete",
2203 "parameterOrder": [
2204 "name"
2205 ],
2206 "parameters": {
2207 "name": {
2208 "description": "Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID",
2209 "location": "path",
2210 "pattern": "^sites/[^/]+/versions/[^/]+$",
2211 "required": true,
2212 "type": "string"
2213 }
2214 },
2215 "path": "v1beta1/{+name}",
2216 "response": {
2217 "$ref": "Empty"
2218 },
2219 "scopes": [
2220 "https://www.googleapis.com/auth/cloud-platform",
2221 "https://www.googleapis.com/auth/firebase"
2222 ]
2223 },
2224 "get": {
2225 "description": "Get the specified version that has been created for the specified site. This can include versions that were created for the default `live` channel or for any active preview channels for the specified site.",
2226 "flatPath": "v1beta1/sites/{sitesId}/versions/{versionsId}",
2227 "httpMethod": "GET",
2228 "id": "firebasehosting.sites.versions.get",
2229 "parameterOrder": [
2230 "name"
2231 ],
2232 "parameters": {
2233 "name": {
2234 "description": "Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID",
2235 "location": "path",
2236 "pattern": "^sites/[^/]+/versions/[^/]+$",
2237 "required": true,
2238 "type": "string"
2239 }
2240 },
2241 "path": "v1beta1/{+name}",
2242 "response": {
2243 "$ref": "Version"
2244 },
2245 "scopes": [
2246 "https://www.googleapis.com/auth/cloud-platform",
2247 "https://www.googleapis.com/auth/cloud-platform.read-only",
2248 "https://www.googleapis.com/auth/firebase",
2249 "https://www.googleapis.com/auth/firebase.readonly"
2250 ]
2251 },
2252 "list": {
2253 "description": "Lists the versions that have been created for the specified site. This list includes versions for both the default `live` channel and any active preview channels for the specified site.",
2254 "flatPath": "v1beta1/sites/{sitesId}/versions",
2255 "httpMethod": "GET",
2256 "id": "firebasehosting.sites.versions.list",
2257 "parameterOrder": [
2258 "parent"
2259 ],
2260 "parameters": {
2261 "filter": {
2262 "description": "A filter string used to return a subset of versions in the response. The currently supported fields for filtering are: `name`, `status`, and `create_time`. Learn more about filtering in Google's [AIP 160 standard](https://google.aip.dev/160).",
2263 "location": "query",
2264 "type": "string"
2265 },
2266 "pageSize": {
2267 "description": "The maximum number of versions to return. The service may return a lower number if fewer versions exist than this maximum number. If unspecified, defaults to 25. The maximum value is 100; values above 100 will be coerced to 100.",
2268 "format": "int32",
2269 "location": "query",
2270 "type": "integer"
2271 },
2272 "pageToken": {
2273 "description": "A token from a previous call to `ListVersions` that tells the server where to resume listing.",
2274 "location": "query",
2275 "type": "string"
2276 },
2277 "parent": {
2278 "description": "Required. The site or channel for which to list versions, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID ",
2279 "location": "path",
2280 "pattern": "^sites/[^/]+$",
2281 "required": true,
2282 "type": "string"
2283 }
2284 },
2285 "path": "v1beta1/{+parent}/versions",
2286 "response": {
2287 "$ref": "ListVersionsResponse"
2288 },
2289 "scopes": [
2290 "https://www.googleapis.com/auth/cloud-platform",
2291 "https://www.googleapis.com/auth/cloud-platform.read-only",
2292 "https://www.googleapis.com/auth/firebase",
2293 "https://www.googleapis.com/auth/firebase.readonly"
2294 ]
2295 },
2296 "patch": {
2297 "description": " Updates the specified metadata for the specified version. This method will fail with `FAILED_PRECONDITION` in the event of an invalid state transition. The supported [state](../sites.versions#versionstatus) transitions for a version are from `CREATED` to `FINALIZED`. Use [`DeleteVersion`](delete) to set the status of a version to `DELETED`.",
2298 "flatPath": "v1beta1/sites/{sitesId}/versions/{versionsId}",
2299 "httpMethod": "PATCH",
2300 "id": "firebasehosting.sites.versions.patch",
2301 "parameterOrder": [
2302 "name"
2303 ],
2304 "parameters": {
2305 "name": {
2306 "description": "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).",
2307 "location": "path",
2308 "pattern": "^sites/[^/]+/versions/[^/]+$",
2309 "required": true,
2310 "type": "string"
2311 },
2312 "updateMask": {
2313 "description": "A set of field names from your [version](../sites.versions) that you want to update. A field will be overwritten if, and only if, it's in the mask. If a mask is not provided then a default mask of only [`status`](../sites.versions#Version.FIELDS.status) will be used.",
2314 "format": "google-fieldmask",
2315 "location": "query",
2316 "type": "string"
2317 }
2318 },
2319 "path": "v1beta1/{+name}",
2320 "request": {
2321 "$ref": "Version"
2322 },
2323 "response": {
2324 "$ref": "Version"
2325 },
2326 "scopes": [
2327 "https://www.googleapis.com/auth/cloud-platform",
2328 "https://www.googleapis.com/auth/firebase"
2329 ]
2330 },
2331 "populateFiles": {
2332 "description": " Adds content files to the specified version. Each file must be under 2 GB.",
2333 "flatPath": "v1beta1/sites/{sitesId}/versions/{versionsId}:populateFiles",
2334 "httpMethod": "POST",
2335 "id": "firebasehosting.sites.versions.populateFiles",
2336 "parameterOrder": [
2337 "parent"
2338 ],
2339 "parameters": {
2340 "parent": {
2341 "description": "Required. The version to which to add files, in the format: sites/SITE_ID /versions/VERSION_ID",
2342 "location": "path",
2343 "pattern": "^sites/[^/]+/versions/[^/]+$",
2344 "required": true,
2345 "type": "string"
2346 }
2347 },
2348 "path": "v1beta1/{+parent}:populateFiles",
2349 "request": {
2350 "$ref": "PopulateVersionFilesRequest"
2351 },
2352 "response": {
2353 "$ref": "PopulateVersionFilesResponse"
2354 },
2355 "scopes": [
2356 "https://www.googleapis.com/auth/cloud-platform",
2357 "https://www.googleapis.com/auth/firebase"
2358 ]
2359 }
2360 },
2361 "resources": {
2362 "files": {
2363 "methods": {
2364 "list": {
2365 "description": "Lists the remaining files to be uploaded for the specified version.",
2366 "flatPath": "v1beta1/sites/{sitesId}/versions/{versionsId}/files",
2367 "httpMethod": "GET",
2368 "id": "firebasehosting.sites.versions.files.list",
2369 "parameterOrder": [
2370 "parent"
2371 ],
2372 "parameters": {
2373 "pageSize": {
2374 "description": "The maximum number of version files to return. The service may return a lower number if fewer version files exist than this maximum number. If unspecified, defaults to 1000.",
2375 "format": "int32",
2376 "location": "query",
2377 "type": "integer"
2378 },
2379 "pageToken": {
2380 "description": "A token from a previous call to `ListVersionFiles` that tells the server where to resume listing.",
2381 "location": "query",
2382 "type": "string"
2383 },
2384 "parent": {
2385 "description": "Required. The version for which to list files, in the format: sites/SITE_ID /versions/VERSION_ID",
2386 "location": "path",
2387 "pattern": "^sites/[^/]+/versions/[^/]+$",
2388 "required": true,
2389 "type": "string"
2390 },
2391 "status": {
2392 "description": " The type of files that should be listed for the specified version.",
2393 "enum": [
2394 "STATUS_UNSPECIFIED",
2395 "EXPECTED",
2396 "ACTIVE"
2397 ],
2398 "enumDescriptions": [
2399 "The default status; should not be intentionally used.",
2400 "The file has been included in the version and is expected to be uploaded in the near future.",
2401 "The file has already been uploaded to Firebase Hosting."
2402 ],
2403 "location": "query",
2404 "type": "string"
2405 }
2406 },
2407 "path": "v1beta1/{+parent}/files",
2408 "response": {
2409 "$ref": "ListVersionFilesResponse"
2410 },
2411 "scopes": [
2412 "https://www.googleapis.com/auth/cloud-platform",
2413 "https://www.googleapis.com/auth/cloud-platform.read-only",
2414 "https://www.googleapis.com/auth/firebase",
2415 "https://www.googleapis.com/auth/firebase.readonly"
2416 ]
2417 }
2418 }
2419 }
2420 }
2421 }
2422 }
2423 }
2424 },
2425 "revision": "20240319",
2426 "rootUrl": "https://firebasehosting.googleapis.com/",
2427 "schemas": {
2428 "ActingUser": {
2429 "description": "Contains metadata about the user who performed an action, such as creating a release or finalizing a version.",
2430 "id": "ActingUser",
2431 "properties": {
2432 "email": {
2433 "description": "The email address of the user when the user performed the action.",
2434 "type": "string"
2435 },
2436 "imageUrl": {
2437 "description": "A profile image URL for the user. May not be present if the user has changed their email address or deleted their account.",
2438 "type": "string"
2439 }
2440 },
2441 "type": "object"
2442 },
2443 "CertDnsChallenge": {
2444 "description": "Represents a DNS certificate challenge.",
2445 "id": "CertDnsChallenge",
2446 "properties": {
2447 "domainName": {
2448 "description": "The domain name upon which the DNS challenge must be satisfied.",
2449 "type": "string"
2450 },
2451 "token": {
2452 "description": "The value that must be present as a TXT record on the domain name to satisfy the challenge.",
2453 "type": "string"
2454 }
2455 },
2456 "type": "object"
2457 },
2458 "CertHttpChallenge": {
2459 "description": "Represents an HTTP certificate challenge.",
2460 "id": "CertHttpChallenge",
2461 "properties": {
2462 "path": {
2463 "description": "The URL path on which to serve the specified token to satisfy the certificate challenge.",
2464 "type": "string"
2465 },
2466 "token": {
2467 "description": "The token to serve at the specified URL path to satisfy the certificate challenge.",
2468 "type": "string"
2469 }
2470 },
2471 "type": "object"
2472 },
2473 "CertVerification": {
2474 "description": "A set of ACME challenges you can use to allow Hosting to create an SSL certificate for your domain name before directing traffic to Hosting servers. Use either the DNS or HTTP challenge; it's not necessary to provide both.",
2475 "id": "CertVerification",
2476 "properties": {
2477 "dns": {
2478 "$ref": "DnsUpdates",
2479 "description": "Output only. A `TXT` record to add to your DNS records that confirms your intent to let Hosting create an SSL cert for your domain name.",
2480 "readOnly": true
2481 },
2482 "http": {
2483 "$ref": "HttpUpdate",
2484 "description": "Output only. A file to add to your existing, non-Hosting hosting service that confirms your intent to let Hosting create an SSL cert for your domain name.",
2485 "readOnly": true
2486 }
2487 },
2488 "type": "object"
2489 },
2490 "Certificate": {
2491 "description": "An SSL certificate used to provide end-to-end encryption for requests against your domain name. A `Certificate` can be an actual SSL certificate or, for newly-created custom domains, Hosting's intent to create one.",
2492 "id": "Certificate",
2493 "properties": {
2494 "createTime": {
2495 "description": "Output only. The certificate's creation time. For `TEMPORARY` certs this is the time Hosting first generated challenges for your domain name. For all other cert types, it's the time the actual cert was created.",
2496 "format": "google-datetime",
2497 "readOnly": true,
2498 "type": "string"
2499 },
2500 "expireTime": {
2501 "description": "Output only. The certificate's expiration time. After this time, the cert can no longer be used to provide secure communication between Hosting and your site's visitors.",
2502 "format": "google-datetime",
2503 "readOnly": true,
2504 "type": "string"
2505 },
2506 "issues": {
2507 "description": "Output only. A set of errors Hosting encountered when attempting to create a cert for your domain name. Resolve these issues to ensure Hosting is able to provide secure communication with your site's visitors.",
2508 "items": {
2509 "$ref": "Status"
2510 },
2511 "readOnly": true,
2512 "type": "array"
2513 },
2514 "state": {
2515 "description": "Output only. The state of the certificate. Only the `CERT_ACTIVE` and `CERT_EXPIRING_SOON` states provide SSL coverage for a domain name. If the state is `PROPAGATING` and Hosting had an active cert for the domain name before, that formerly-active cert provides SSL coverage for the domain name until the current cert propagates.",
2516 "enum": [
2517 "CERT_STATE_UNSPECIFIED",
2518 "CERT_PREPARING",
2519 "CERT_VALIDATING",
2520 "CERT_PROPAGATING",
2521 "CERT_ACTIVE",
2522 "CERT_EXPIRING_SOON",
2523 "CERT_EXPIRED"
2524 ],
2525 "enumDescriptions": [
2526 "The certificate's state is unspecified. The message is invalid if this is unspecified.",
2527 "The initial state of every certificate, represents Hosting's intent to create a certificate, before requests to a Certificate Authority are made.",
2528 "Hosting is validating whether a domain name's DNS records are in a state that allow certificate creation on its behalf.",
2529 "The certificate was recently created, and needs time to propagate in Hosting's CDN.",
2530 "The certificate is active, providing secure connections for the domain names it represents.",
2531 "The certificate is expiring, all domain names on it will be given new certificates.",
2532 "The certificate has expired. Hosting can no longer serve secure content on your domain name."
2533 ],
2534 "readOnly": true,
2535 "type": "string"
2536 },
2537 "type": {
2538 "description": "Output only. The certificate's type.",
2539 "enum": [
2540 "TYPE_UNSPECIFIED",
2541 "TEMPORARY",
2542 "GROUPED",
2543 "PROJECT_GROUPED",
2544 "DEDICATED"
2545 ],
2546 "enumDescriptions": [
2547 "The certificate's type is unspecified. The message is invalid if this is unspecified.",
2548 "A short-lived certificate type that covers a domain name temporarily, while Hosting creates a more permanent certificate.",
2549 "The standard certificate for Spark plan custom domains.",
2550 "Blaze plan only. A certificate that covers from 1 to 100 domain names with custom domains on the same Firebase project.",
2551 "Blaze plan only. A certificate that covers a single domain name."
2552 ],
2553 "readOnly": true,
2554 "type": "string"
2555 },
2556 "verification": {
2557 "$ref": "CertVerification",
2558 "description": "Output only. A set of ACME challenges you can add to your DNS records or existing, non-Hosting hosting provider to allow Hosting to create an SSL certificate for your domain name before you point traffic toward hosting. You can use thse challenges as part of a zero downtime transition from your old provider to Hosting.",
2559 "readOnly": true
2560 }
2561 },
2562 "type": "object"
2563 },
2564 "Channel": {
2565 "description": "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.",
2566 "id": "Channel",
2567 "properties": {
2568 "createTime": {
2569 "description": "Output only. The time at which the channel was created.",
2570 "format": "google-datetime",
2571 "readOnly": true,
2572 "type": "string"
2573 },
2574 "expireTime": {
2575 "description": "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's set directly or via the `ttl` field.",
2576 "format": "google-datetime",
2577 "type": "string"
2578 },
2579 "labels": {
2580 "additionalProperties": {
2581 "type": "string"
2582 },
2583 "description": "Text labels used for extra metadata and/or filtering.",
2584 "type": "object"
2585 },
2586 "name": {
2587 "description": "The fully-qualified resource name for the channel, in the format: sites/ SITE_ID/channels/CHANNEL_ID",
2588 "type": "string"
2589 },
2590 "release": {
2591 "$ref": "Release",
2592 "description": "Output only. The current release for the channel, if any.",
2593 "readOnly": true
2594 },
2595 "retainedReleaseCount": {
2596 "description": "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.",
2597 "format": "int32",
2598 "type": "integer"
2599 },
2600 "ttl": {
2601 "description": "Input only. A time-to-live for this channel. Sets `expire_time` to the provided duration past the time of the request.",
2602 "format": "google-duration",
2603 "type": "string"
2604 },
2605 "updateTime": {
2606 "description": "Output only. The time at which the channel was last updated.",
2607 "format": "google-datetime",
2608 "readOnly": true,
2609 "type": "string"
2610 },
2611 "url": {
2612 "description": "Output only. The URL at which the content of this channel's current release can be viewed. This URL is a Firebase-provided subdomain of `web.app`. The content of this channel'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's current release can also be viewed at any connected custom domains.",
2613 "readOnly": true,
2614 "type": "string"
2615 }
2616 },
2617 "type": "object"
2618 },
2619 "CloneVersionRequest": {
2620 "id": "CloneVersionRequest",
2621 "properties": {
2622 "exclude": {
2623 "$ref": "PathFilter",
2624 "description": "If provided, only paths that do not match any of the RegEx values in this list will be included in the new version."
2625 },
2626 "finalize": {
2627 "description": "If true, the call to `CloneVersion` immediately finalizes the version after cloning is complete. If false, the cloned version will have a status of `CREATED`. Use [`UpdateVersion`](patch) to set the status of the version to `FINALIZED`.",
2628 "type": "boolean"
2629 },
2630 "include": {
2631 "$ref": "PathFilter",
2632 "description": "If provided, only paths that match one or more RegEx values in this list will be included in the new version."
2633 },
2634 "sourceVersion": {
2635 "description": "Required. The unique identifier for the version to be cloned, in the format: sites/SITE_ID/versions/VERSION_ID",
2636 "type": "string"
2637 }
2638 },
2639 "type": "object"
2640 },
2641 "CloudRunRewrite": {
2642 "description": "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).",
2643 "id": "CloudRunRewrite",
2644 "properties": {
2645 "region": {
2646 "description": "Optional. User-provided region where the Cloud Run service is hosted. Defaults to `us-central1` if not supplied.",
2647 "type": "string"
2648 },
2649 "serviceId": {
2650 "description": "Required. User-defined ID of the Cloud Run service.",
2651 "type": "string"
2652 },
2653 "tag": {
2654 "description": "Optional. User-provided TrafficConfig tag to send traffic to. When omitted, traffic is sent to the service-wide URI",
2655 "type": "string"
2656 }
2657 },
2658 "type": "object"
2659 },
2660 "CustomDomain": {
2661 "description": "A `CustomDomain` is an entity that links a domain name to a Firebase Hosting site. Add a `CustomDomain` to your site to allow Hosting to serve the site's content in response to requests against your domain name.",
2662 "id": "CustomDomain",
2663 "properties": {
2664 "annotations": {
2665 "additionalProperties": {
2666 "type": "string"
2667 },
2668 "description": "Annotations you can add to leave both human- and machine-readable metadata about your `CustomDomain`.",
2669 "type": "object"
2670 },
2671 "cert": {
2672 "$ref": "Certificate",
2673 "description": "Output only. The SSL certificate Hosting has for this custom domain's domain name. For new custom domains, this often represents Hosting's intent to create a certificate, rather than an actual cert. Check the `state` field for more.",
2674 "readOnly": true
2675 },
2676 "certPreference": {
2677 "description": "A field that lets you specify which SSL certificate type Hosting creates for your domain name. Spark plan custom domains only have access to the `GROUPED` cert type, while Blaze plan domains can select any option.",
2678 "enum": [
2679 "TYPE_UNSPECIFIED",
2680 "TEMPORARY",
2681 "GROUPED",
2682 "PROJECT_GROUPED",
2683 "DEDICATED"
2684 ],
2685 "enumDescriptions": [
2686 "The certificate's type is unspecified. The message is invalid if this is unspecified.",
2687 "A short-lived certificate type that covers a domain name temporarily, while Hosting creates a more permanent certificate.",
2688 "The standard certificate for Spark plan custom domains.",
2689 "Blaze plan only. A certificate that covers from 1 to 100 domain names with custom domains on the same Firebase project.",
2690 "Blaze plan only. A certificate that covers a single domain name."
2691 ],
2692 "type": "string"
2693 },
2694 "createTime": {
2695 "description": "Output only. The custom domain's create time.",
2696 "format": "google-datetime",
2697 "readOnly": true,
2698 "type": "string"
2699 },
2700 "deleteTime": {
2701 "description": "Output only. The time the `CustomDomain` was deleted; null for custom domains that haven't been deleted. Deleted custom domains persist for approximately 30 days, after which time Hosting removes them completely. To restore a deleted custom domain, make an `UndeleteCustomDomain` request.",
2702 "format": "google-datetime",
2703 "readOnly": true,
2704 "type": "string"
2705 },
2706 "etag": {
2707 "description": "Output only. A string that represents the current state of the `CustomDomain` and allows you to confirm its initial state in requests that would modify it. Use the tag to ensure consistency when making `UpdateCustomDomain`, `DeleteCustomDomain`, and `UndeleteCustomDomain` requests.",
2708 "readOnly": true,
2709 "type": "string"
2710 },
2711 "expireTime": {
2712 "description": "Output only. The minimum time before a soft-deleted `CustomDomain` is completely removed from Hosting; null for custom domains that haven't been deleted.",
2713 "format": "google-datetime",
2714 "readOnly": true,
2715 "type": "string"
2716 },
2717 "hostState": {
2718 "description": "Output only. The `HostState` of the domain name this `CustomDomain` refers to.",
2719 "enum": [
2720 "HOST_STATE_UNSPECIFIED",
2721 "HOST_UNHOSTED",
2722 "HOST_UNREACHABLE",
2723 "HOST_MISMATCH",
2724 "HOST_CONFLICT",
2725 "HOST_ACTIVE"
2726 ],
2727 "enumDescriptions": [
2728 "Your custom domain's host state is unspecified. The message is invalid if this is unspecified.",
2729 "Your custom domain's domain name isn't associated with any IP addresses.",
2730 "Your custom domain's domain name can't be reached. Hosting services' DNS queries to find your domain name's IP addresses resulted in errors. See your `CustomDomain` object's `issues` field for more details.",
2731 "Your custom domain's domain name has IP addresses that don't ultimately resolve to Hosting.",
2732 "Your custom domain's domain name has IP addresses that resolve to both Hosting and other services. To ensure consistent results, remove `A` and `AAAA` records related to non-Hosting services.",
2733 "All requests against your custom domain's domain name are served by Hosting. If the custom domain's `OwnershipState` is also `ACTIVE`, Hosting serves your Hosting site's content on the domain name."
2734 ],
2735 "readOnly": true,
2736 "type": "string"
2737 },
2738 "issues": {
2739 "description": "Output only. A set of errors Hosting systems encountered when trying to establish Hosting's ability to serve secure content for your domain name. Resolve these issues to ensure your `CustomDomain` behaves properly.",
2740 "items": {
2741 "$ref": "Status"
2742 },
2743 "readOnly": true,
2744 "type": "array"
2745 },
2746 "labels": {
2747 "additionalProperties": {
2748 "type": "string"
2749 },
2750 "description": "Labels used for extra metadata and/or filtering.",
2751 "type": "object"
2752 },
2753 "name": {
2754 "description": "Output only. The fully-qualified name of the `CustomDomain`.",
2755 "readOnly": true,
2756 "type": "string"
2757 },
2758 "ownershipState": {
2759 "description": "Output only. The `OwnershipState` of the domain name this `CustomDomain` refers to.",
2760 "enum": [
2761 "OWNERSHIP_STATE_UNSPECIFIED",
2762 "OWNERSHIP_MISSING",
2763 "OWNERSHIP_UNREACHABLE",
2764 "OWNERSHIP_MISMATCH",
2765 "OWNERSHIP_CONFLICT",
2766 "OWNERSHIP_PENDING",
2767 "OWNERSHIP_ACTIVE"
2768 ],
2769 "enumDescriptions": [
2770 "Your custom domain's ownership state is unspecified. This should never happen.",
2771 "Your custom domain's domain name has no Hosting-related ownership records; no Firebase project has permission to act on the domain name's behalf.",
2772 "Your custom domain's domain name can't be reached. Hosting services' DNS queries to find your domain name's ownership records resulted in errors. See your `CustomDomain` object's `issues` field for more details.",
2773 "Your custom domain's domain name is owned by another Firebase project. Remove the conflicting `TXT` records and replace them with project-specific records for your current Firebase project.",
2774 "Your custom domain's domain name has conflicting `TXT` records that indicate ownership by both your current Firebase project and another project. Remove the other project's ownership records to grant the current project ownership.",
2775 "Your custom domain's DNS records are configured correctly. Hosting will transfer ownership of your domain to this `CustomDomain` within 24 hours.",
2776 "Your custom domain's domain name has `TXT` records that grant its project permission to act on its behalf."
2777 ],
2778 "readOnly": true,
2779 "type": "string"
2780 },
2781 "reconciling": {
2782 "description": "Output only. A field that, if true, indicates that Hosting's systems are attmepting to make the custom domain's state match your preferred state. This is most frequently `true` when initially provisioning a `CustomDomain` after a `CreateCustomDomain` request or when creating a new SSL certificate to match an updated `cert_preference` after an `UpdateCustomDomain` request.",
2783 "readOnly": true,
2784 "type": "boolean"
2785 },
2786 "redirectTarget": {
2787 "description": "A domain name that this `CustomDomain` should direct traffic towards. If specified, Hosting will respond to requests against this custom domain with an HTTP 301 code, and route traffic to the specified `redirect_target` instead.",
2788 "type": "string"
2789 },
2790 "requiredDnsUpdates": {
2791 "$ref": "DnsUpdates",
2792 "description": "Output only. A set of updates you should make to the domain name's DNS records to let Hosting serve secure content on its behalf.",
2793 "readOnly": true
2794 },
2795 "updateTime": {
2796 "description": "Output only. The last time the `CustomDomain` was updated.",
2797 "format": "google-datetime",
2798 "readOnly": true,
2799 "type": "string"
2800 }
2801 },
2802 "type": "object"
2803 },
2804 "CustomDomainMetadata": {
2805 "description": "Metadata associated with a`CustomDomain` operation.",
2806 "id": "CustomDomainMetadata",
2807 "properties": {
2808 "certState": {
2809 "description": "The `CertState` of the domain name's SSL certificate.",
2810 "enum": [
2811 "CERT_STATE_UNSPECIFIED",
2812 "CERT_PREPARING",
2813 "CERT_VALIDATING",
2814 "CERT_PROPAGATING",
2815 "CERT_ACTIVE",
2816 "CERT_EXPIRING_SOON",
2817 "CERT_EXPIRED"
2818 ],
2819 "enumDescriptions": [
2820 "The certificate's state is unspecified. The message is invalid if this is unspecified.",
2821 "The initial state of every certificate, represents Hosting's intent to create a certificate, before requests to a Certificate Authority are made.",
2822 "Hosting is validating whether a domain name's DNS records are in a state that allow certificate creation on its behalf.",
2823 "The certificate was recently created, and needs time to propagate in Hosting's CDN.",
2824 "The certificate is active, providing secure connections for the domain names it represents.",
2825 "The certificate is expiring, all domain names on it will be given new certificates.",
2826 "The certificate has expired. Hosting can no longer serve secure content on your domain name."
2827 ],
2828 "type": "string"
2829 },
2830 "hostState": {
2831 "description": "The `HostState` of the domain name this `CustomDomain` refers to.",
2832 "enum": [
2833 "HOST_STATE_UNSPECIFIED",
2834 "HOST_UNHOSTED",
2835 "HOST_UNREACHABLE",
2836 "HOST_MISMATCH",
2837 "HOST_CONFLICT",
2838 "HOST_ACTIVE"
2839 ],
2840 "enumDescriptions": [
2841 "Your custom domain's host state is unspecified. The message is invalid if this is unspecified.",
2842 "Your custom domain's domain name isn't associated with any IP addresses.",
2843 "Your custom domain's domain name can't be reached. Hosting services' DNS queries to find your domain name's IP addresses resulted in errors. See your `CustomDomain` object's `issues` field for more details.",
2844 "Your custom domain's domain name has IP addresses that don't ultimately resolve to Hosting.",
2845 "Your custom domain's domain name has IP addresses that resolve to both Hosting and other services. To ensure consistent results, remove `A` and `AAAA` records related to non-Hosting services.",
2846 "All requests against your custom domain's domain name are served by Hosting. If the custom domain's `OwnershipState` is also `ACTIVE`, Hosting serves your Hosting site's content on the domain name."
2847 ],
2848 "type": "string"
2849 },
2850 "issues": {
2851 "description": "A list of issues that are currently preventing Hosting from completing the operation. These are generally DNS-related issues that Hosting encounters when querying a domain name's records or attempting to mint an SSL certificate.",
2852 "items": {
2853 "$ref": "Status"
2854 },
2855 "type": "array"
2856 },
2857 "liveMigrationSteps": {
2858 "description": "A set of DNS record updates and ACME challenges that allow you to transition domain names to Firebase Hosting with zero downtime. These updates allow Hosting to create an SSL certificate and establish ownership for your custom domain before Hosting begins serving traffic on it. If your domain name is already in active use with another provider, add one of the challenges and make the recommended DNS updates. After adding challenges and adjusting DNS records as necessary, wait for the `ownershipState` to be `OWNERSHIP_ACTIVE` and the `certState` to be `CERT_ACTIVE` before sending traffic to Hosting.",
2859 "items": {
2860 "$ref": "LiveMigrationStep"
2861 },
2862 "type": "array"
2863 },
2864 "ownershipState": {
2865 "description": "The `OwnershipState` of the domain name this `CustomDomain` refers to.",
2866 "enum": [
2867 "OWNERSHIP_STATE_UNSPECIFIED",
2868 "OWNERSHIP_MISSING",
2869 "OWNERSHIP_UNREACHABLE",
2870 "OWNERSHIP_MISMATCH",
2871 "OWNERSHIP_CONFLICT",
2872 "OWNERSHIP_PENDING",
2873 "OWNERSHIP_ACTIVE"
2874 ],
2875 "enumDescriptions": [
2876 "Your custom domain's ownership state is unspecified. This should never happen.",
2877 "Your custom domain's domain name has no Hosting-related ownership records; no Firebase project has permission to act on the domain name's behalf.",
2878 "Your custom domain's domain name can't be reached. Hosting services' DNS queries to find your domain name's ownership records resulted in errors. See your `CustomDomain` object's `issues` field for more details.",
2879 "Your custom domain's domain name is owned by another Firebase project. Remove the conflicting `TXT` records and replace them with project-specific records for your current Firebase project.",
2880 "Your custom domain's domain name has conflicting `TXT` records that indicate ownership by both your current Firebase project and another project. Remove the other project's ownership records to grant the current project ownership.",
2881 "Your custom domain's DNS records are configured correctly. Hosting will transfer ownership of your domain to this `CustomDomain` within 24 hours.",
2882 "Your custom domain's domain name has `TXT` records that grant its project permission to act on its behalf."
2883 ],
2884 "type": "string"
2885 },
2886 "quickSetupUpdates": {
2887 "$ref": "DnsUpdates",
2888 "description": "A set of DNS record updates that allow Hosting to serve secure content on your domain name. The record type determines the update's purpose: - `A` and `AAAA`: Updates your domain name's IP addresses so that they direct traffic to Hosting servers. - `TXT`: Updates ownership permissions on your domain name, letting Hosting know that your custom domain's project has permission to perform actions for that domain name. - `CAA`: Updates your domain name's list of authorized Certificate Authorities (CAs). Only present if you have existing `CAA` records that prohibit Hosting's CA from minting certs for your domain name. These updates include all DNS changes you'll need to get started with Hosting, but, if made all at once, can result in a brief period of downtime for your domain name--while Hosting creates and uploads an SSL cert, for example. If you'd like to add your domain name to Hosting without downtime, complete the `liveMigrationSteps` first, before making the remaining updates in this field."
2889 }
2890 },
2891 "type": "object"
2892 },
2893 "DnsRecord": {
2894 "description": "DNS records are resource records that define how systems and services should behave when handling requests for a domain name. For example, when you add `A` records to your domain name's DNS records, you're informing other systems (such as your users' web browsers) to contact those IPv4 addresses to retrieve resources relevant to your domain name (such as your Hosting site files).",
2895 "id": "DnsRecord",
2896 "properties": {
2897 "domainName": {
2898 "description": "Output only. The domain name the record pertains to, e.g. `foo.bar.com.`.",
2899 "readOnly": true,
2900 "type": "string"
2901 },
2902 "rdata": {
2903 "description": "Output only. The data of the record. The meaning of the value depends on record type: - A and AAAA: IP addresses for the domain name. - CNAME: Another domain to check for records. - TXT: Arbitrary text strings associated with the domain name. Hosting uses TXT records to determine which Firebase projects have permission to act on the domain name's behalf. - CAA: The record's flags, tag, and value, e.g. `0 issue \"pki.goog\"`.",
2904 "readOnly": true,
2905 "type": "string"
2906 },
2907 "requiredAction": {
2908 "description": "Output only. An enum that indicates the a required action for this record.",
2909 "enum": [
2910 "NONE",
2911 "ADD",
2912 "REMOVE"
2913 ],
2914 "enumDescriptions": [
2915 "No action necessary.",
2916 "Add this record to your DNS records.",
2917 "Remove this record from your DNS records."
2918 ],
2919 "readOnly": true,
2920 "type": "string"
2921 },
2922 "type": {
2923 "description": "Output only. The record's type, which determines what data the record contains.",
2924 "enum": [
2925 "TYPE_UNSPECIFIED",
2926 "A",
2927 "CNAME",
2928 "TXT",
2929 "AAAA",
2930 "CAA"
2931 ],
2932 "enumDescriptions": [
2933 "The record's type is unspecified. The message is invalid if this is unspecified.",
2934 "An `A` record, as defined in [RFC 1035](https://tools.ietf.org/html/rfc1035). A records determine which IPv4 addresses a domain name directs traffic towards.",
2935 "A `CNAME` record, as defined in [RFC 1035](https://tools.ietf.org/html/rfc1035). `CNAME` or Canonical Name records map a domain name to a different, canonical domain name. If a `CNAME` record is present, it should be the only record on the domain name.",
2936 "A `TXT` record, as defined in [RFC 1035](https://tools.ietf.org/html/rfc1035). `TXT` records hold arbitrary text data on a domain name. Hosting uses `TXT` records to establish which Firebase Project has permission to act on a domain name.",
2937 "An AAAA record, as defined in [RFC 3596](https://tools.ietf.org/html/rfc3596) AAAA records determine which IPv6 addresses a domain name directs traffic towards.",
2938 "A CAA record, as defined in [RFC 6844](https://tools.ietf.org/html/rfc6844). CAA, or Certificate Authority Authorization, records determine which Certificate Authorities (SSL certificate minting organizations) are authorized to mint a certificate for the domain name. Firebase Hosting uses `pki.goog` as its primary CA. CAA records cascade. A CAA record on `foo.com` also applies to `bar.foo.com` unless `bar.foo.com` has its own set of CAA records. CAA records are optional. If a domain name and its parents have no CAA records, all CAs are authorized to mint certificates on its behalf. In general, Hosting only asks you to modify CAA records when doing so is required to unblock SSL cert creation."
2939 ],
2940 "readOnly": true,
2941 "type": "string"
2942 }
2943 },
2944 "type": "object"
2945 },
2946 "DnsRecordSet": {
2947 "description": "A set of DNS records relevant to the setup and maintenance of a custom domain in Firebase Hosting.",
2948 "id": "DnsRecordSet",
2949 "properties": {
2950 "checkError": {
2951 "$ref": "Status",
2952 "description": "Output only. An error Hosting services encountered when querying your domain name's DNS records. Note: Hosting ignores `NXDOMAIN` errors, as those generally just mean that a domain name hasn't been set up yet.",
2953 "readOnly": true
2954 },
2955 "domainName": {
2956 "description": "Output only. The domain name the record set pertains to.",
2957 "readOnly": true,
2958 "type": "string"
2959 },
2960 "records": {
2961 "description": "Output only. Records on the domain.",
2962 "items": {
2963 "$ref": "DnsRecord"
2964 },
2965 "readOnly": true,
2966 "type": "array"
2967 }
2968 },
2969 "type": "object"
2970 },
2971 "DnsUpdates": {
2972 "description": "A set of DNS record updates that you should make to allow Hosting to serve secure content in response to requests against your domain name. These updates present the current state of your domain name's DNS records when Hosting last queried them, and the desired set of records that Hosting needs to see before your custom domain can be fully active.",
2973 "id": "DnsUpdates",
2974 "properties": {
2975 "checkTime": {
2976 "description": "The last time Hosting checked your custom domain's DNS records.",
2977 "format": "google-datetime",
2978 "type": "string"
2979 },
2980 "desired": {
2981 "description": "The set of DNS records Hosting needs to serve secure content on the domain.",
2982 "items": {
2983 "$ref": "DnsRecordSet"
2984 },
2985 "type": "array"
2986 },
2987 "discovered": {
2988 "description": "The set of DNS records Hosting discovered when inspecting a domain.",
2989 "items": {
2990 "$ref": "DnsRecordSet"
2991 },
2992 "type": "array"
2993 }
2994 },
2995 "type": "object"
2996 },
2997 "Domain": {
2998 "description": "The intended behavior and status information of a domain.",
2999 "id": "Domain",
3000 "properties": {
3001 "domainName": {
3002 "description": "Required. The domain name of the association.",
3003 "type": "string"
3004 },
3005 "domainRedirect": {
3006 "$ref": "DomainRedirect",
3007 "description": "If set, the domain should redirect with the provided parameters."
3008 },
3009 "provisioning": {
3010 "$ref": "DomainProvisioning",
3011 "description": "Output only. Information about the provisioning of certificates and the health of the DNS resolution for the domain."
3012 },
3013 "site": {
3014 "description": "Required. The site name of the association.",
3015 "type": "string"
3016 },
3017 "status": {
3018 "description": "Output only. Additional status of the domain association.",
3019 "enum": [
3020 "DOMAIN_STATUS_UNSPECIFIED",
3021 "DOMAIN_CHANGE_PENDING",
3022 "DOMAIN_ACTIVE",
3023 "DOMAIN_VERIFICATION_REQUIRED",
3024 "DOMAIN_VERIFICATION_LOST"
3025 ],
3026 "enumDeprecated": [
3027 false,
3028 true,
3029 false,
3030 false,
3031 false
3032 ],
3033 "enumDescriptions": [
3034 "Unspecified domain association status.",
3035 "An external operation is in progress on the domain association and no further operations can be performed until it is complete. Formerly used for metabase updates. Not currently used",
3036 "The domain association is active and no additional action is required.",
3037 "The domain was previously verified in the legacy system. User must reverify the domain through the ownership service.",
3038 "The domain verification has been lost and the domain is in the grace period before being removed from the Firebase Hosting site."
3039 ],
3040 "type": "string"
3041 },
3042 "updateTime": {
3043 "description": "Output only. The time at which the domain was last updated.",
3044 "format": "google-datetime",
3045 "type": "string"
3046 }
3047 },
3048 "type": "object"
3049 },
3050 "DomainProvisioning": {
3051 "description": "The current certificate provisioning status information for a domain.",
3052 "id": "DomainProvisioning",
3053 "properties": {
3054 "certChallengeDiscoveredTxt": {
3055 "description": "The TXT records (for the certificate challenge) that were found at the last DNS fetch.",
3056 "items": {
3057 "type": "string"
3058 },
3059 "type": "array"
3060 },
3061 "certChallengeDns": {
3062 "$ref": "CertDnsChallenge",
3063 "description": "The DNS challenge for generating a certificate."
3064 },
3065 "certChallengeHttp": {
3066 "$ref": "CertHttpChallenge",
3067 "description": "The HTTP challenge for generating a certificate."
3068 },
3069 "certStatus": {
3070 "description": "The certificate provisioning status; updated when Firebase Hosting provisions an SSL certificate for the domain.",
3071 "enum": [
3072 "CERT_STATUS_UNSPECIFIED",
3073 "CERT_PENDING",
3074 "CERT_MISSING",
3075 "CERT_PROCESSING",
3076 "CERT_PROPAGATING",
3077 "CERT_ACTIVE",
3078 "CERT_ERROR"
3079 ],
3080 "enumDescriptions": [
3081 "Unspecified certificate provisioning status.",
3082 "Waiting for certificate challenge to be created.",
3083 "Waiting for certificate challenge to be met.",
3084 "Certificate challenge met; attempting to acquire/propagate certificate.",
3085 "Certificate obtained; propagating to the CDN.",
3086 "Certificate provisioned and deployed across the CDN.",
3087 "Certificate provisioning failed in a non-recoverable manner."
3088 ],
3089 "type": "string"
3090 },
3091 "discoveredIps": {
3092 "description": "The IPs found at the last DNS fetch.",
3093 "items": {
3094 "type": "string"
3095 },
3096 "type": "array"
3097 },
3098 "dnsFetchTime": {
3099 "description": "The time at which the last DNS fetch occurred.",
3100 "format": "google-datetime",
3101 "type": "string"
3102 },
3103 "dnsStatus": {
3104 "description": "The DNS record match status as of the last DNS fetch.",
3105 "enum": [
3106 "DNS_STATUS_UNSPECIFIED",
3107 "DNS_PENDING",
3108 "DNS_MISSING",
3109 "DNS_PARTIAL_MATCH",
3110 "DNS_MATCH",
3111 "DNS_EXTRANEOUS_MATCH"
3112 ],
3113 "enumDescriptions": [
3114 "Unspecified DNS status.",
3115 "No DNS records have been specified for this domain yet.",
3116 "None of the required DNS records have been detected on the domain.",
3117 "Some of the required DNS records were detected, but not all of them. No extra (non-required) DNS records were detected.",
3118 "All required DNS records were detected. No extra (non-required) DNS records were detected.",
3119 "The domain has at least one of the required DNS records, and it has at least one extra (non-required) DNS record."
3120 ],
3121 "type": "string"
3122 },
3123 "expectedIps": {
3124 "description": "The list of IPs to which the domain is expected to resolve.",
3125 "items": {
3126 "type": "string"
3127 },
3128 "type": "array"
3129 }
3130 },
3131 "type": "object"
3132 },
3133 "DomainRedirect": {
3134 "description": "Defines the behavior of a domain-level redirect. Domain redirects preserve the path of the redirect but replace the requested domain with the one specified in the redirect configuration.",
3135 "id": "DomainRedirect",
3136 "properties": {
3137 "domainName": {
3138 "description": "Required. The domain name to redirect to.",
3139 "type": "string"
3140 },
3141 "type": {
3142 "description": "Required. The redirect status code.",
3143 "enum": [
3144 "REDIRECT_TYPE_UNSPECIFIED",
3145 "MOVED_PERMANENTLY"
3146 ],
3147 "enumDescriptions": [
3148 "The default redirect type; should not be intentionlly used.",
3149 "The redirect will respond with an HTTP status code of `301 Moved Permanently`."
3150 ],
3151 "type": "string"
3152 }
3153 },
3154 "type": "object"
3155 },
3156 "Empty": {
3157 "description": "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); }",
3158 "id": "Empty",
3159 "properties": {},
3160 "type": "object"
3161 },
3162 "Header": {
3163 "description": "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.",
3164 "id": "Header",
3165 "properties": {
3166 "glob": {
3167 "description": "The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.",
3168 "type": "string"
3169 },
3170 "headers": {
3171 "additionalProperties": {
3172 "type": "string"
3173 },
3174 "description": "Required. The additional headers to add to the response.",
3175 "type": "object"
3176 },
3177 "regex": {
3178 "description": "The user-supplied RE2 regular expression to match against the request URL path.",
3179 "type": "string"
3180 }
3181 },
3182 "type": "object"
3183 },
3184 "HttpUpdate": {
3185 "description": "A file you can add to your existing, non-Hosting hosting service that confirms your intent to allow Hosting's Certificate Authorities to create an SSL certificate for your domain.",
3186 "id": "HttpUpdate",
3187 "properties": {
3188 "checkError": {
3189 "$ref": "Status",
3190 "description": "Output only. An error encountered during the last contents check. If null, the check completed successfully.",
3191 "readOnly": true
3192 },
3193 "desired": {
3194 "description": "Output only. A text string to serve at the path.",
3195 "readOnly": true,
3196 "type": "string"
3197 },
3198 "discovered": {
3199 "description": "Output only. Whether Hosting was able to find the required file contents on the specified path during its last check.",
3200 "readOnly": true,
3201 "type": "string"
3202 },
3203 "lastCheckTime": {
3204 "description": "Output only. The last time Hosting systems checked for the file contents.",
3205 "format": "google-datetime",
3206 "readOnly": true,
3207 "type": "string"
3208 },
3209 "path": {
3210 "description": "Output only. The path to the file.",
3211 "readOnly": true,
3212 "type": "string"
3213 }
3214 },
3215 "type": "object"
3216 },
3217 "I18nConfig": {
3218 "description": "If provided, i18n rewrites are enabled.",
3219 "id": "I18nConfig",
3220 "properties": {
3221 "root": {
3222 "description": "Required. The user-supplied path where country and language specific content will be looked for within the public directory.",
3223 "type": "string"
3224 }
3225 },
3226 "type": "object"
3227 },
3228 "ListChannelsResponse": {
3229 "id": "ListChannelsResponse",
3230 "properties": {
3231 "channels": {
3232 "description": "The list of channels.",
3233 "items": {
3234 "$ref": "Channel"
3235 },
3236 "type": "array"
3237 },
3238 "nextPageToken": {
3239 "description": "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.",
3240 "type": "string"
3241 }
3242 },
3243 "type": "object"
3244 },
3245 "ListCustomDomainsResponse": {
3246 "description": "The response from `ListCustomDomains`.",
3247 "id": "ListCustomDomainsResponse",
3248 "properties": {
3249 "customDomains": {
3250 "description": "A list of `CustomDomain` entities associated with the specified Firebase `Site`.",
3251 "items": {
3252 "$ref": "CustomDomain"
3253 },
3254 "type": "array"
3255 },
3256 "nextPageToken": {
3257 "description": "The pagination token, if more results exist beyond the ones in this response. Include this token in your next call to `ListCustomDomains`. Page tokens are short-lived and should not be stored.",
3258 "type": "string"
3259 }
3260 },
3261 "type": "object"
3262 },
3263 "ListDomainsResponse": {
3264 "description": "The response to listing Domains.",
3265 "id": "ListDomainsResponse",
3266 "properties": {
3267 "domains": {
3268 "description": "The list of domains, if any exist.",
3269 "items": {
3270 "$ref": "Domain"
3271 },
3272 "type": "array"
3273 },
3274 "nextPageToken": {
3275 "description": "The pagination token, if more results exist.",
3276 "type": "string"
3277 }
3278 },
3279 "type": "object"
3280 },
3281 "ListOperationsResponse": {
3282 "description": "The response message for Operations.ListOperations.",
3283 "id": "ListOperationsResponse",
3284 "properties": {
3285 "nextPageToken": {
3286 "description": "The standard List next-page token.",
3287 "type": "string"
3288 },
3289 "operations": {
3290 "description": "A list of operations that matches the specified filter in the request.",
3291 "items": {
3292 "$ref": "Operation"
3293 },
3294 "type": "array"
3295 }
3296 },
3297 "type": "object"
3298 },
3299 "ListReleasesResponse": {
3300 "id": "ListReleasesResponse",
3301 "properties": {
3302 "nextPageToken": {
3303 "description": "The pagination token, if more results exist beyond the ones in this response. Include this token in your next call to `ListReleases`. Page tokens are short-lived and should not be stored.",
3304 "type": "string"
3305 },
3306 "releases": {
3307 "description": "The list of hashes of files that still need to be uploaded, if any exist.",
3308 "items": {
3309 "$ref": "Release"
3310 },
3311 "type": "array"
3312 }
3313 },
3314 "type": "object"
3315 },
3316 "ListSitesResponse": {
3317 "id": "ListSitesResponse",
3318 "properties": {
3319 "nextPageToken": {
3320 "description": "The pagination token, if more results exist beyond the ones in this response. Include this token in your next call to `ListSites`. Page tokens are short-lived and should not be stored.",
3321 "type": "string"
3322 },
3323 "sites": {
3324 "description": "A list of Site objects associated with the specified Firebase project.",
3325 "items": {
3326 "$ref": "Site"
3327 },
3328 "type": "array"
3329 }
3330 },
3331 "type": "object"
3332 },
3333 "ListVersionFilesResponse": {
3334 "id": "ListVersionFilesResponse",
3335 "properties": {
3336 "files": {
3337 "description": " The list of paths to the hashes of the files in the specified version.",
3338 "items": {
3339 "$ref": "VersionFile"
3340 },
3341 "type": "array"
3342 },
3343 "nextPageToken": {
3344 "description": "The pagination token, if more results exist beyond the ones in this response. Include this token in your next call to `ListVersionFiles`. Page tokens are short-lived and should not be stored.",
3345 "type": "string"
3346 }
3347 },
3348 "type": "object"
3349 },
3350 "ListVersionsResponse": {
3351 "id": "ListVersionsResponse",
3352 "properties": {
3353 "nextPageToken": {
3354 "description": "The pagination token, if more results exist beyond the ones in this response. Include this token in your next call to `ListVersions`. Page tokens are short-lived and should not be stored.",
3355 "type": "string"
3356 },
3357 "versions": {
3358 "description": "The list of versions, if any exist.",
3359 "items": {
3360 "$ref": "Version"
3361 },
3362 "type": "array"
3363 }
3364 },
3365 "type": "object"
3366 },
3367 "LiveMigrationStep": {
3368 "description": "A set of updates including ACME challenges and DNS records that allow Hosting to create an SSL certificate and establish project ownership for your domain name before you direct traffic to Hosting servers. Use these updates to facilitate zero downtime migrations to Hosting from other services. After you've made the recommended updates, check your custom domain's `ownershipState` and `certState`. To avoid downtime, they should be `OWNERSHIP_ACTIVE` and `CERT_ACTIVE`, respectively, before you update your `A` and `AAAA` records.",
3369 "id": "LiveMigrationStep",
3370 "properties": {
3371 "certVerification": {
3372 "$ref": "CertVerification",
3373 "description": "Output only. A pair of ACME challenges that Hosting's Certificate Authority (CA) can use to create an SSL cert for your domain name. Use either the DNS or HTTP challenge; it's not necessary to provide both.",
3374 "readOnly": true
3375 },
3376 "dnsUpdates": {
3377 "$ref": "DnsUpdates",
3378 "description": "Output only. DNS updates to facilitate your domain's zero-downtime migration to Hosting.",
3379 "readOnly": true
3380 },
3381 "issues": {
3382 "description": "Output only. Issues that prevent the current step from completing.",
3383 "items": {
3384 "$ref": "Status"
3385 },
3386 "readOnly": true,
3387 "type": "array"
3388 },
3389 "state": {
3390 "description": "Output only. The state of the live migration step, indicates whether you should work to complete the step now, in the future, or have already completed it.",
3391 "enum": [
3392 "STATE_UNSPECIFIED",
3393 "PREPARING",
3394 "PENDING",
3395 "INCOMPLETE",
3396 "PROCESSING",
3397 "COMPLETE"
3398 ],
3399 "enumDescriptions": [
3400 "The step's state is unspecified. The message is invalid if this is unspecified.",
3401 "Hosting doesn't have enough information to construct the step yet. Complete any prior steps and/or resolve this step's issue to proceed.",
3402 "The step's state is pending. Complete prior steps before working on a `PENDING` step.",
3403 "The step is incomplete. You should complete any `certVerification` or `dnsUpdates` changes to complete it.",
3404 "You've done your part to update records and present challenges as necessary. Hosting is now completing background processes to complete the step, e.g. minting an SSL cert for your domain name.",
3405 "The step is complete. You've already made the necessary changes to your domain and/or prior hosting service to advance to the next step. Once all steps are complete, Hosting is ready to serve secure content on your domain."
3406 ],
3407 "readOnly": true,
3408 "type": "string"
3409 }
3410 },
3411 "type": "object"
3412 },
3413 "Operation": {
3414 "description": "This resource represents a long-running operation that is the result of a network API call.",
3415 "id": "Operation",
3416 "properties": {
3417 "done": {
3418 "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.",
3419 "type": "boolean"
3420 },
3421 "error": {
3422 "$ref": "Status",
3423 "description": "The error result of the operation in case of failure or cancellation."
3424 },
3425 "metadata": {
3426 "additionalProperties": {
3427 "description": "Properties of the object. Contains field @type with type URL.",
3428 "type": "any"
3429 },
3430 "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
3431 "type": "object"
3432 },
3433 "name": {
3434 "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
3435 "type": "string"
3436 },
3437 "response": {
3438 "additionalProperties": {
3439 "description": "Properties of the object. Contains field @type with type URL.",
3440 "type": "any"
3441 },
3442 "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
3443 "type": "object"
3444 }
3445 },
3446 "type": "object"
3447 },
3448 "PathFilter": {
3449 "description": "A representation of filter path.",
3450 "id": "PathFilter",
3451 "properties": {
3452 "regexes": {
3453 "description": "An array of RegEx values by which to filter.",
3454 "items": {
3455 "type": "string"
3456 },
3457 "type": "array"
3458 }
3459 },
3460 "type": "object"
3461 },
3462 "PopulateVersionFilesRequest": {
3463 "id": "PopulateVersionFilesRequest",
3464 "properties": {
3465 "files": {
3466 "additionalProperties": {
3467 "type": "string"
3468 },
3469 "description": "A set of file paths to the hashes corresponding to assets that should be added to the version. A file path to an empty hash will remove the path from the version. Calculate a hash by Gzipping the file then taking the SHA256 hash of the newly compressed file.",
3470 "type": "object"
3471 }
3472 },
3473 "type": "object"
3474 },
3475 "PopulateVersionFilesResponse": {
3476 "id": "PopulateVersionFilesResponse",
3477 "properties": {
3478 "uploadRequiredHashes": {
3479 "description": "The content hashes of the specified files that need to be uploaded to the specified URL.",
3480 "items": {
3481 "type": "string"
3482 },
3483 "type": "array"
3484 },
3485 "uploadUrl": {
3486 "description": "The URL to which the files should be uploaded, in the format: \"https://upload-firebasehosting.googleapis.com/upload/sites/SITE_ID /versions/VERSION_ID/files\" Perform a multipart `POST` of the Gzipped file contents to the URL using a forward slash and the hash of the file appended to the end.",
3487 "type": "string"
3488 }
3489 },
3490 "type": "object"
3491 },
3492 "Redirect": {
3493 "description": "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.",
3494 "id": "Redirect",
3495 "properties": {
3496 "glob": {
3497 "description": "The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.",
3498 "type": "string"
3499 },
3500 "location": {
3501 "description": "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: \"glob\": \"/:capture*\", \"statusCode\": 301, \"location\": \"https://example.com/foo/:capture\"",
3502 "type": "string"
3503 },
3504 "regex": {
3505 "description": "The user-supplied RE2 regular expression to match against the request URL path.",
3506 "type": "string"
3507 },
3508 "statusCode": {
3509 "description": "Required. The status HTTP code to return in the response. It must be a valid 3xx status code.",
3510 "format": "int32",
3511 "type": "integer"
3512 }
3513 },
3514 "type": "object"
3515 },
3516 "Release": {
3517 "description": " A `Release` is a particular [collection of configurations and files](sites.versions) that is set to be public at a particular time.",
3518 "id": "Release",
3519 "properties": {
3520 "message": {
3521 "description": "The deploy description when the release was created. The value can be up to 512 characters.",
3522 "type": "string"
3523 },
3524 "name": {
3525 "description": "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).",
3526 "type": "string"
3527 },
3528 "releaseTime": {
3529 "description": "Output only. The time at which the version is set to be public.",
3530 "format": "google-datetime",
3531 "type": "string"
3532 },
3533 "releaseUser": {
3534 "$ref": "ActingUser",
3535 "description": "Output only. Identifies the user who created the release."
3536 },
3537 "type": {
3538 "description": "Explains the reason for the release. Specify a value for this field only when creating a `SITE_DISABLE` type release.",
3539 "enum": [
3540 "TYPE_UNSPECIFIED",
3541 "DEPLOY",
3542 "ROLLBACK",
3543 "SITE_DISABLE"
3544 ],
3545 "enumDescriptions": [
3546 "An unspecified type. Indicates that a version was released. This is the default value when no other `type` is explicitly specified.",
3547 "A version was uploaded to Firebase Hosting and released.",
3548 "The release points back to a previously deployed version.",
3549 "The release prevents the site from serving content. Firebase Hosting acts as if the site never existed."
3550 ],
3551 "type": "string"
3552 },
3553 "version": {
3554 "$ref": "Version",
3555 "description": "Output only. The configuration and content that was released."
3556 }
3557 },
3558 "type": "object"
3559 },
3560 "Rewrite": {
3561 "description": "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.",
3562 "id": "Rewrite",
3563 "properties": {
3564 "dynamicLinks": {
3565 "description": "The request will be forwarded to Firebase Dynamic Links.",
3566 "type": "boolean"
3567 },
3568 "function": {
3569 "description": "The function to proxy requests to. Must match the exported function name exactly.",
3570 "type": "string"
3571 },
3572 "functionRegion": {
3573 "description": "Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.",
3574 "type": "string"
3575 },
3576 "glob": {
3577 "description": "The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.",
3578 "type": "string"
3579 },
3580 "path": {
3581 "description": "The URL path to rewrite the request to.",
3582 "type": "string"
3583 },
3584 "regex": {
3585 "description": "The user-supplied RE2 regular expression to match against the request URL path.",
3586 "type": "string"
3587 },
3588 "run": {
3589 "$ref": "CloudRunRewrite",
3590 "description": "The request will be forwarded to Cloud Run."
3591 }
3592 },
3593 "type": "object"
3594 },
3595 "ServingConfig": {
3596 "description": "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).",
3597 "id": "ServingConfig",
3598 "properties": {
3599 "appAssociation": {
3600 "description": "How to handle well known App Association files.",
3601 "enum": [
3602 "AUTO",
3603 "NONE"
3604 ],
3605 "enumDescriptions": [
3606 "The app association files will be automatically created from the apps that exist in the Firebase project.",
3607 "No special handling of the app association files will occur, these paths will result in a 404 unless caught with a Rewrite."
3608 ],
3609 "type": "string"
3610 },
3611 "cleanUrls": {
3612 "description": "Defines whether to drop the file extension from uploaded files.",
3613 "type": "boolean"
3614 },
3615 "headers": {
3616 "description": "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.",
3617 "items": {
3618 "$ref": "Header"
3619 },
3620 "type": "array"
3621 },
3622 "i18n": {
3623 "$ref": "I18nConfig",
3624 "description": "Optional. Defines i18n rewrite behavior."
3625 },
3626 "redirects": {
3627 "description": "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.",
3628 "items": {
3629 "$ref": "Redirect"
3630 },
3631 "type": "array"
3632 },
3633 "rewrites": {
3634 "description": "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.",
3635 "items": {
3636 "$ref": "Rewrite"
3637 },
3638 "type": "array"
3639 },
3640 "trailingSlashBehavior": {
3641 "description": "Defines how to handle a trailing slash in the URL path.",
3642 "enum": [
3643 "TRAILING_SLASH_BEHAVIOR_UNSPECIFIED",
3644 "ADD",
3645 "REMOVE"
3646 ],
3647 "enumDescriptions": [
3648 "No behavior is specified. Files are served at their exact location only, and trailing slashes are only added to directory indexes.",
3649 "Trailing slashes are _added_ to directory indexes as well as to any URL path not ending in a file extension.",
3650 "Trailing slashes are _removed_ from directory indexes as well as from any URL path not ending in a file extension."
3651 ],
3652 "type": "string"
3653 }
3654 },
3655 "type": "object"
3656 },
3657 "Site": {
3658 "description": "A `Site` represents a Firebase Hosting site.",
3659 "id": "Site",
3660 "properties": {
3661 "appId": {
3662 "description": "Optional. The [ID of a Web App](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with the Hosting site.",
3663 "type": "string"
3664 },
3665 "defaultUrl": {
3666 "description": "Output only. The default URL for the Hosting site.",
3667 "readOnly": true,
3668 "type": "string"
3669 },
3670 "labels": {
3671 "additionalProperties": {
3672 "type": "string"
3673 },
3674 "description": "Optional. User-specified labels for the Hosting site.",
3675 "type": "object"
3676 },
3677 "name": {
3678 "description": "Output only. The fully-qualified resource name of the Hosting site, in the format: projects/PROJECT_IDENTIFIER/sites/SITE_ID PROJECT_IDENTIFIER: the Firebase project's [`ProjectNumber`](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510).",
3679 "readOnly": true,
3680 "type": "string"
3681 },
3682 "type": {
3683 "description": "Output only. The type of Hosting site. Every Firebase project has a `DEFAULT_SITE`, which is created when Hosting is provisioned for the project. All additional sites are `USER_SITE`.",
3684 "enum": [
3685 "TYPE_UNSPECIFIED",
3686 "DEFAULT_SITE",
3687 "USER_SITE"
3688 ],
3689 "enumDescriptions": [
3690 "Unknown state, likely the result of an error on the backend.",
3691 "The default Hosting site that is provisioned when a Firebase project is created.",
3692 "A Hosting site that the user created."
3693 ],
3694 "readOnly": true,
3695 "type": "string"
3696 }
3697 },
3698 "type": "object"
3699 },
3700 "SiteConfig": {
3701 "description": "A `SiteConfig` contains metadata associated with a specific site that controls Firebase Hosting serving behavior",
3702 "id": "SiteConfig",
3703 "properties": {
3704 "cloudLoggingEnabled": {
3705 "description": "Whether or not web requests made by site visitors are logged via Cloud Logging.",
3706 "type": "boolean"
3707 },
3708 "maxVersions": {
3709 "description": "The number of FINALIZED versions that will be held for a site before automatic deletion. When a new version is deployed, content for versions in storage in excess of this number will be deleted, and will no longer be billed for storage usage. Oldest versions will be deleted first; sites are created with an unlimited number of max_versions by default.",
3710 "format": "int64",
3711 "type": "string"
3712 }
3713 },
3714 "type": "object"
3715 },
3716 "Status": {
3717 "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
3718 "id": "Status",
3719 "properties": {
3720 "code": {
3721 "description": "The status code, which should be an enum value of google.rpc.Code.",
3722 "format": "int32",
3723 "type": "integer"
3724 },
3725 "details": {
3726 "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
3727 "items": {
3728 "additionalProperties": {
3729 "description": "Properties of the object. Contains field @type with type URL.",
3730 "type": "any"
3731 },
3732 "type": "object"
3733 },
3734 "type": "array"
3735 },
3736 "message": {
3737 "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
3738 "type": "string"
3739 }
3740 },
3741 "type": "object"
3742 },
3743 "UndeleteCustomDomainRequest": {
3744 "description": "The request sent to `UndeleteCustomDomain`.",
3745 "id": "UndeleteCustomDomainRequest",
3746 "properties": {
3747 "etag": {
3748 "description": "A tag that represents the state of the `CustomDomain` as you know it. If present, the supplied tag must match the current value on your `CustomDomain`, or the request fails.",
3749 "type": "string"
3750 },
3751 "validateOnly": {
3752 "description": "If true, Hosting validates that it's possible to complete your request but doesn't actually delete the `CustomDomain`.",
3753 "type": "boolean"
3754 }
3755 },
3756 "type": "object"
3757 },
3758 "Version": {
3759 "description": "A `Version` is a configuration and a collection of static files which determine how a site is displayed.",
3760 "id": "Version",
3761 "properties": {
3762 "config": {
3763 "$ref": "ServingConfig",
3764 "description": "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."
3765 },
3766 "createTime": {
3767 "description": "Output only. The time at which the version was created.",
3768 "format": "google-datetime",
3769 "type": "string"
3770 },
3771 "createUser": {
3772 "$ref": "ActingUser",
3773 "description": "Output only. Identifies the user who created the version."
3774 },
3775 "deleteTime": {
3776 "description": "Output only. The time at which the version was `DELETED`.",
3777 "format": "google-datetime",
3778 "type": "string"
3779 },
3780 "deleteUser": {
3781 "$ref": "ActingUser",
3782 "description": "Output only. Identifies the user who `DELETED` the version."
3783 },
3784 "fileCount": {
3785 "description": "Output only. The total number of files associated with the version. This value is calculated after a version is `FINALIZED`.",
3786 "format": "int64",
3787 "type": "string"
3788 },
3789 "finalizeTime": {
3790 "description": "Output only. The time at which the version was `FINALIZED`.",
3791 "format": "google-datetime",
3792 "type": "string"
3793 },
3794 "finalizeUser": {
3795 "$ref": "ActingUser",
3796 "description": "Output only. Identifies the user who `FINALIZED` the version."
3797 },
3798 "labels": {
3799 "additionalProperties": {
3800 "type": "string"
3801 },
3802 "description": "The labels used for extra metadata and/or filtering.",
3803 "type": "object"
3804 },
3805 "name": {
3806 "description": "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).",
3807 "type": "string"
3808 },
3809 "status": {
3810 "description": "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).",
3811 "enum": [
3812 "VERSION_STATUS_UNSPECIFIED",
3813 "CREATED",
3814 "FINALIZED",
3815 "DELETED",
3816 "ABANDONED",
3817 "EXPIRED",
3818 "CLONING"
3819 ],
3820 "enumDescriptions": [
3821 "The default status; should not be intentionally used.",
3822 "The version has been created, and content is currently being added to the version.",
3823 "All content has been added to the version, and the version can no longer be changed.",
3824 "The version has been deleted.",
3825 "The version was not updated to `FINALIZED` within 12 hours and was automatically deleted.",
3826 "The version is outside the site-configured limit for the number of retained versions, so the version's content is scheduled for deletion.",
3827 "The version is being cloned from another version. All content is still being copied over."
3828 ],
3829 "type": "string"
3830 },
3831 "versionBytes": {
3832 "description": "Output only. The total stored bytesize of the version. This value is calculated after a version is `FINALIZED`.",
3833 "format": "int64",
3834 "type": "string"
3835 }
3836 },
3837 "type": "object"
3838 },
3839 "VersionFile": {
3840 "description": "A static content file that is part of a version.",
3841 "id": "VersionFile",
3842 "properties": {
3843 "hash": {
3844 "description": "The SHA256 content hash of the file.",
3845 "type": "string"
3846 },
3847 "path": {
3848 "description": "The URI at which the file's content should display.",
3849 "type": "string"
3850 },
3851 "status": {
3852 "description": "Output only. The current status of a particular file in the specified version. The value will be either `pending upload` or `uploaded`.",
3853 "enum": [
3854 "STATUS_UNSPECIFIED",
3855 "EXPECTED",
3856 "ACTIVE"
3857 ],
3858 "enumDescriptions": [
3859 "The default status; should not be intentionally used.",
3860 "The file has been included in the version and is expected to be uploaded in the near future.",
3861 "The file has already been uploaded to Firebase Hosting."
3862 ],
3863 "type": "string"
3864 }
3865 },
3866 "type": "object"
3867 }
3868 },
3869 "servicePath": "",
3870 "title": "Firebase Hosting API",
3871 "version": "v1beta1",
3872 "version_module": true
3873}
View as plain text