Skip to content

Commit

Permalink
Add title, subtitle and description to BlueprintUIMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
q2w committed Sep 3, 2024
1 parent cfc0fdd commit c3c1b48
Show file tree
Hide file tree
Showing 6 changed files with 347 additions and 269 deletions.
426 changes: 232 additions & 194 deletions cli/bpmetadata/bpmetadata.pb.go

Large diffs are not rendered by default.

155 changes: 80 additions & 75 deletions cli/bpmetadata/bpmetadata_ui.pb.go

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

12 changes: 12 additions & 0 deletions cli/bpmetadata/proto/bpmetadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,18 @@ message BlueprintUI {
// i.e. the console URL for the VM or a button to ssh into the VM etc based on.
// Gen: manually-authored
BlueprintUIOutput runtime = 2; // @gotags: json:"runtime,omitempty" yaml:"runtime,omitempty"

// The title for displaying on UI. This is used when blueprint is used as building block on UI.
// Gen: manually-authored
string display_title = 3;

// The subtitle for displaying on UI. This is used when blueprint is used as building block on UI.
// Gen: manually-authored
string display_subtitle = 4;

// The description for displaying on UI. This is used when blueprint is used as building block on UI.
// Gen: manually-authored
string display_description = 5;
}

message BlueprintRepoDetail {
Expand Down
2 changes: 2 additions & 0 deletions cli/bpmetadata/proto/bpmetadata_ui.proto
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ message DisplayVariable {
ALTERNATE_TYPE_UNSPECIFIED = 0;
// A more secure default.
ALTERNATE_TYPE_SECURITY = 1;
// A default specifically needed for Design center.
ALTERNATE_TYPE_DC = 2;
}
AlternateType type = 1; // @gotags: json:"type,omitempty" yaml:"type,omitempty"
// Value of the alternate default.
Expand Down
9 changes: 9 additions & 0 deletions cli/bpmetadata/schema/gcp-blueprint-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,15 @@
},
"runtime": {
"$ref": "#/$defs/BlueprintUIOutput"
},
"display_title": {
"type": "string"
},
"display_subtitle": {
"type": "string"
},
"display_description": {
"type": "string"
}
},
"additionalProperties": false,
Expand Down
Loading

0 comments on commit c3c1b48

Please sign in to comment.