feat(account): Mark auth_method_id as a source id for subtypes
This commit is contained in:
1 parent
cc7e7429ab
commit
e76c48ad36
6 files changed
+252
-246
No files matched your search
@@ -11,8 +11,6 @@ import "google/api/visibility.proto";
|
||||
import "controller/api/resources/scopes/v1/scope.proto";
|
||||
import "controller/custom_options/v1/options.proto";
|
||||
|
||||
option (custom_options.v1.domain) = "auth";
|
||||
|
||||
// Account contains all fields related to an Account resource
|
||||
message Account {
|
||||
// Output only. The ID of the Account.
|
||||
@@ -41,7 +39,7 @@ message Account {
|
||||
string type = 80; // @gotags: `class:"public"`
|
||||
|
||||
// The ID of the Auth Method that is associated with this Account.
|
||||
string auth_method_id = 90 [json_name="auth_method_id"]; // @gotags: `class:"public"`
|
||||
string auth_method_id = 90 [json_name="auth_method_id", (custom_options.v1.subtype_source_id) = true]; // @gotags: `class:"public"`
|
||||
|
||||
oneof attrs {
|
||||
// The attributes that are applicable for the specific Account type.
|
||||
|
||||
@@ -8,6 +8,9 @@ import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
import "controller/api/resources/accounts/v1/account.proto";
|
||||
import "controller/custom_options/v1/options.proto";
|
||||
|
||||
option (custom_options.v1.domain) = "auth";
|
||||
|
||||
service AccountService {
|
||||
|
||||
|
||||
Reference in new issue
Block a user