IAM: Implement create method for team bindings (#112003)
* implement create method for team bindings * generate openapi specs * enable dual writer for team bindings * add validation rules * generate openapi * add integration tests and fix remaining issues * fix validation test * use UIDs instead of IDs to build team binding name * use IDs when generating the TeamBinding name * fix build error * remove time truncate
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
INSERT INTO {{ .Ident .TeamMemberTable }}
|
||||
(team_id, user_id, org_id, created, updated, external, permission)
|
||||
VALUES
|
||||
({{ .Arg .Command.TeamID }}, {{ .Arg .Command.UserID }}, {{ .Arg .Command.OrgID }}, {{ .Arg .Command.Created }},
|
||||
{{ .Arg .Command.Updated }}, {{ .Arg .Command.External }}, {{ .Arg .Command.Permission }})
|
||||
Reference in New Issue
Block a user