Create Role CUDLR API and SDK (#135)

* Implement the Role CRUD API.

* Implement the Role List API.

* Adding Roles SDK.
This commit is contained in:
Todd Knight authored and GitHub committed 2020-06-22 06:56:27 -07:00
1 parent 1023c90729
commit 5b1e4a680d
20 files changed
+3928

No files matched your search

+5
View File
@@ -39,6 +39,11 @@ var createFuncs = map[string][]*createInfo{
targetType: "groups.Group",
path: `"groups"`,
},
{
baseType: "Organization",
targetType: "roles.Role",
path: `"roles"`,
},
{
baseType: "Organization",
targetType: "users.User",
+5
View File
@@ -27,6 +27,11 @@ var deleteFuncs = map[string][]*deleteInfo{
"groups.Group",
"groups",
},
{
"Organization",
"roles.Role",
"roles",
},
{
"Organization",
"users.User",
+11
View File
@@ -125,6 +125,17 @@ var inputStructs = []*structInfo{
"",
templateTypeResource,
},
{
os.Getenv("GEN_BASEPATH") + "/internal/gen/controller/api/resources/roles/role.pb.go",
"Role",
os.Getenv("GEN_BASEPATH") + "/api/roles/role.gen.go",
"Role",
"roles",
"",
"",
"",
templateTypeResource,
},
{
os.Getenv("GEN_BASEPATH") + "/internal/gen/controller/api/resources/hosts/host_catalog.pb.go",
"StaticHostCatalogDetails",
+5
View File
@@ -27,6 +27,11 @@ var readFuncs = map[string][]*readInfo{
targetType: "groups.Group",
path: "groups",
},
{
baseType: "Organization",
targetType: "roles.Role",
path: "roles",
},
{
baseType: "Organization",
targetType: "users.User",
+5
View File
@@ -27,6 +27,11 @@ var updateFuncs = map[string][]*updateInfo{
targetType: "groups.Group",
path: "groups",
},
{
baseType: "Organization",
targetType: "roles.Role",
path: "roles",
},
{
baseType: "Organization",
targetType: "users.User",