mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
|
let bucketbase = macro(name, project, location) => {
|
||
|
name = name,
|
||
|
type = "storage.v1.bucket",
|
||
|
properties = {
|
||
|
bucket = name,
|
||
|
project = project,
|
||
|
location = location,
|
||
|
acl = [
|
||
|
{
|
||
|
entity = "project-owners-ucg-configuration-project",
|
||
|
role = "OWNER",
|
||
|
},
|
||
|
{
|
||
|
entity = "project-editors-ucg-configuration-project",
|
||
|
role = "WRITER",
|
||
|
},
|
||
|
{
|
||
|
entity = "project-viewers-ucg-configuration-project",
|
||
|
role = "READER",
|
||
|
},
|
||
|
],
|
||
|
defaultObjectAcl = [
|
||
|
{
|
||
|
entity = "allUsers",
|
||
|
role = "READER",
|
||
|
},
|
||
|
],
|
||
|
|
||
|
},
|
||
|
};
|
||
|
|
||
|
let bucketSelfLink = macro(bucket) => {
|
||
|
name = "@selfLink" % (bucket),
|
||
|
value = "https://console.cloud.google.com/storage/browser/@" % (bucket),
|
||
|
};
|
||
|
|
||
|
let bucketGsLink = macro(bucket) => {
|
||
|
name = "@gsLink" % (bucket),
|
||
|
value = "gs://@" % (bucket),
|
||
|
};
|