forked from FirebaseExtended/experimental-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.yaml
73 lines (62 loc) · 2.28 KB
/
extension.yaml
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
# Learn detailed information about the fields of an extension.yaml file in the docs
name: firestore-bundle-server
specVersion: v1beta
version: 0.1.0
license: Apache-2.0
displayName: Firestore Bundle Server
description: >-
Provides cached serving of Firestore bundles.
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: "nodejs12"
# 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: ${param: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