feat(account): Add gotags classification

Add gotag classification to all account proto and service definitions.
This commit is contained in:
Johan Brandhorst-Satzkorn committed 2022-04-20 13:32:31 -04:00
1 parent ac5a1acca8
commit 6e6efeee71
5 files changed
+60 -58

No files matched your search

@@ -114,7 +114,7 @@ service AccountService {
}
message GetAccountRequest {
string id = 1;
string id = 1; // @gotags: `class:"public"`
}
message GetAccountResponse {
@@ -122,8 +122,8 @@ message GetAccountResponse {
}
message ListAccountsRequest {
string auth_method_id = 1 [json_name="auth_method_id"];
string filter = 30 [json_name="filter"];
string auth_method_id = 1 [json_name="auth_method_id"]; // @gotags: `class:"public"`
string filter = 30 [json_name="filter"]; // @gotags: `class:"sensitive"`
}
message ListAccountsResponse {
@@ -135,12 +135,12 @@ message CreateAccountRequest {
}
message CreateAccountResponse {
string uri = 1;
string uri = 1; // @gotags: `class:"public"`
resources.accounts.v1.Account item = 2;
}
message UpdateAccountRequest {
string id = 1;
string id = 1; // @gotags: `class:"public"`
resources.accounts.v1.Account item = 2;
google.protobuf.FieldMask update_mask = 3 [json_name="update_mask"];
}
@@ -150,17 +150,17 @@ message UpdateAccountResponse {
}
message DeleteAccountRequest {
string id = 1;
string id = 1; // @gotags: `class:"public"`
}
message DeleteAccountResponse {}
message SetPasswordRequest {
string id = 1;
string id = 1; // @gotags: `class:"public"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2;
string password = 3;
uint32 version = 2; // @gotags: `class:"public"`
string password = 3; // @gotags: `class:"secret"`
}
message SetPasswordResponse {
@@ -168,12 +168,12 @@ message SetPasswordResponse {
}
message ChangePasswordRequest {
string id = 1;
string id = 1; // @gotags: `class:"public"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2;
string current_password = 3 [json_name="current_password"];
string new_password = 4 [json_name="new_password"];
uint32 version = 2; // @gotags: `class:"public"`
string current_password = 3 [json_name="current_password"]; // @gotags: `class:"secret"`
string new_password = 4 [json_name="new_password"]; // @gotags: `class:"secret"`
}
message ChangePasswordResponse {