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

@@ -0,0 +1,32 @@
syntax = "proto3";
package controller.api.resources.roles.v1;
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/resources/roles;roles";
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
// Role contains all fields related to a Role resource
message Role {
// The ID of the Role
// Output only.
string id = 1;
// Optional name for identification purposes
google.protobuf.StringValue name = 2;
// Optional user-set description for identification purposes
google.protobuf.StringValue description = 3;
// The time this resource was created
// Output only.
google.protobuf.Timestamp created_time = 4 [json_name="created_time"];
// The time this resource was last updated.
// Output only.
google.protobuf.Timestamp updated_time = 5 [json_name="updated_time"];
// Whether the resource is disabled
google.protobuf.BoolValue disabled = 6;
}