Skip to content

Commit

Permalink
[RM-5684] New changes to include UDFs in the CLI (#37)
Browse files Browse the repository at this point in the history
* Generated from prod api

* update and list rules with families

* List families with the new swagger model

* Removed warnings

* get family

* create family

* update family

* delete family

* Better display for rules

* new swagger filters in families

* Added filters

* bumped the version

* shorten display

* refactor code

* several bug fixes

* recommended bool as a pointer

* CRU operations better format for output table

* better display
  • Loading branch information
ricleal-fugue authored Aug 5, 2021
1 parent 81a0a56 commit 691e8a9
Show file tree
Hide file tree
Showing 55 changed files with 4,086 additions and 82 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ swagger.yaml
fugue-client
fugue-darwin-amd64
fugue-linux-amd64
.env

4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ UPDATE_ENV_SRC=models/update_environment_input.go
UPDATE_RULE_SRC=models/update_custom_rule_input.go
CREATE_ENV_SRC=models/create_environment_input.go
INVITE_SRC=models/invite.go
UPDATE_FAMILY_SRC=models/update_family_input.go
CREATE_FAMILY_SRC=models/create_family_input.go

GOSWAGGER=docker run --rm -it \
--volume $(shell pwd):/fugue-client \
Expand Down Expand Up @@ -63,6 +65,8 @@ gen: $(SWAGGER)
sed -i "" "s/ScanScheduleEnabled bool/ScanScheduleEnabled *bool/g" $(CREATE_ENV_SRC)
sed -i "" "s/int64(m.ScanInterval)/int64(*m.ScanInterval)/g" $(CREATE_ENV_SRC)
sed -i "" "s/float64/int64/g" $(INVITE_SRC)
sed -i "" "s/Recommended bool/Recommended *bool/g" $(UPDATE_FAMILY_SRC)
sed -i "" "s/Recommended bool/Recommended *bool/g" $(CREATE_FAMILY_SRC)

.PHONY: test
test:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.0
0.15.0
138 changes: 138 additions & 0 deletions client/families/create_family_parameters.go

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

225 changes: 225 additions & 0 deletions client/families/create_family_responses.go

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

Loading

0 comments on commit 691e8a9

Please sign in to comment.