Repository navigation
Expand file tree
/
Copy pathextension.yaml
More file actions
85 lines (73 loc) · 2.93 KB
/
Copy pathextension.yaml
File metadata and controls
85 lines (73 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Learn detailed information about the fields of an extension.yaml file in the docs
name: firestore-bundle-builder
specVersion: v1beta
version: 0.1.6
license: Apache-2.0
displayName: Firestore Bundle Builder
description: >-
Caches publicly available documents in Cloud Firestore data bundles that are served from either Firebase Hosting CDN or from Firebase storage
author:
authorName: Firebase
url: https://firebase.google.com
billingRequired: true
# For your extension to interact with other Google APIs (like Firestore, Cloud Storage, or Cloud Translation),
# set the `apis` field. In addition, set the `roles` field to grant appropriate IAM access to interact with these products.
# Learn about these fields in the docs
roles:
- role: datastore.user
reason: Allows the extension to read configuration and build bundles from Firestore.
- role: storage.objectAdmin
reason: Allows the extension to save built bundles in Cloud Storage
# Learn about the `resources` field in the docs
resources:
- name: serve
type: firebaseextensions.v1beta.function
description: >-
HTTPS function that serves bundled content from Cloud Storage cache or by dynamically building.
properties:
location: us-central1
httpsTrigger: {}
runtime: "nodejs20"
# Learn about the `params` field in the docs
params:
- param: BUNDLESPEC_COLLECTION
type: string
label: Collection to store bundle specification documents
description: >-
Path to the Firestore collection whose documents are specifications of
bundles the extension will build.
default: bundles
required: true
immutable: false
- param: BUNDLE_STORAGE_BUCKET
type: string
label: Google Cloud Storage bucket to save the built bundle files
description: >-
The Cloud Storage bucket to save the built bundle files. This applies when
the bundle specification has `fileCache` enabled.
validationRegex: ^([0-9a-z_.-]*)$
validationErrorMessage: Invalid storage bucket
default: ${STORAGE_BUCKET}
required: false
immutable: false
- param: STORAGE_PREFIX
type: string
label: Prefix to use for bundle files saved in Google Cloud Storage.
description: >-
The prefix for all the bundle files built and saved in Cloud Storage.
This applies when the bundle specification has `fileCache` enabled.
required: false
immutable: false