Skip to content

Commit

Permalink
feat: add is_required to blueprint metadata ui proto
Browse files Browse the repository at this point in the history
  • Loading branch information
HuixinLai committed Nov 3, 2023
1 parent 8cd6ff9 commit 1b5ac08
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 55 deletions.
2 changes: 1 addition & 1 deletion cli/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL := /bin/bash

# Changing this value will trigger a new release
VERSION=v1.2.7
VERSION=v1.2.8
BINARY=bin/cft
GITHUB_REPO=github.com/GoogleCloudPlatform/cloud-foundation-toolkit
PLATFORMS := linux windows darwin
Expand Down
119 changes: 65 additions & 54 deletions cli/bpmetadata/bpmetadata_ui.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions cli/bpmetadata/proto/bpmetadata_ui.proto
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ message DisplayVariable {
// Optional.
// Gen: manually-authored
int32 level = 18; // @gotags: json:"level,omitempty" yaml:"level,omitempty"

// Whether the property is required for the deployment or not.
bool is_required = 19; // @gotags: json:"isRequired,omitempty" yaml:"isRequired,omitempty"
}

message ValueLabel {
Expand Down
3 changes: 3 additions & 0 deletions cli/bpmetadata/schema/gcp-blueprint-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,9 @@
},
"level": {
"type": "integer"
},
"isRequired": {
"type": "boolean"
}
},
"additionalProperties": false,
Expand Down

0 comments on commit 1b5ac08

Please sign in to comment.