Files
threshold/internal/proto/local/controller/api/resources/users/v1/user.proto
T
Todd Knight df6ca5289f Create User Service Handler and SDK (#106)
* Create user handler stuff.

* Fixing Not Found errors from DB.

* Fixing param names.

* Update the proto's go package generation.

* Generate the user resource.

* Adding SDK methods for users.

* Fix the base type of Users and add tests.

* Connect user service to the controller handler.

* Attach the default org to the Test Controller's client.

* Take into account the provided request paths when the client builds the org/project path prefix.

* Adding comments to the API.

* rename repo function to repoFn.

* Fix typo in update mask errors.

* Clean up tests.

* Remove special checks for request url content in the api client and fix CORS test.
2020-06-09 11:20:59 -07:00

33 lines
922 B
Protocol Buffer

syntax = "proto3";
package controller.api.resources.users.v1;
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/resources/users;users";
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
// User contains all fields related to a User resource
message User {
// The ID of the Project
// Output only.
string id = 1;
// Optional name for identification purposes
google.protobuf.StringValue name = 2;
// Optional user-set descripton 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;
}