-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for more apihub resources, add YAML import of API-owned a…
…rtifacts. (#503) * protos for apihub display settings and references * add generated code for new resources * print display settings and references using "registry get" * extend "upload artifact" to display settings and references * Add support for YAML apply/export of display settings and references. This includes a general upgrade from yaml/v2 to yaml/v3. * Fix linter error. * Update YAML import/export tests for yaml.v3 The yaml.v3 library uses different indentation than v2, so the "golden" yaml needed an update to match what was generated by v3. It also uses 4-character spacing, which seems excessive for our applications, so this adds a helper that provides 2-character marshalling. I also noticed that the comparison order was wrong in calls to cmp.Diff and fixed that. * Combine parallel switch cases. * Add artifact to sample API YAML in apply/testdata * Remove duplicate "Exporting" message. * When applying patches, skip non-yaml files and log each file imported. * Allow ?recursive={true,false} on fileurls to control directory upload * Fix linter error. * Use if-with-initializer as suggested * rework if conditions in directory walks * restructure patch constructors * Fix some error strings (removing initial capitalization) * Add comment explaining polymorphic artifact marshalling/unmarshalling.
- Loading branch information
Showing
25 changed files
with
1,196 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.