Skip to content

Commit

Permalink
feat: modify field name 'backend' -> auth_type (#73)
Browse files Browse the repository at this point in the history
Signed-off-by: ImMin5 <[email protected]>
  • Loading branch information
ImMin5 committed Nov 17, 2023
1 parent 5ef57c7 commit 4497be8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
17 changes: 5 additions & 12 deletions proto/spaceone/api/identity/v2/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ service User {
};
}

rpc get (GetUserRequest) returns (UserInfo) {
rpc get (UserRequest) returns (UserInfo) {
option (google.api.http) = {
post: "/identity/v2/user/get"
body: "*"
Expand All @@ -123,7 +123,7 @@ service User {
}
}

enum UserBackend {
enum AuthType {
NONE_BACKEND = 0;
LOCAL = 1;
EXTERNAL = 2;
Expand Down Expand Up @@ -181,7 +181,7 @@ message CreateUserRequest {
string email = 4;
// +optional
UserType user_type = 5;
UserBackend backend = 6;
AuthType auth_type = 6;
// en,ko
// +optional
string language = 7;
Expand Down Expand Up @@ -282,13 +282,6 @@ message UserRequest {
string domain_id = 21;
}

message GetUserRequest {
string user_id = 11;
string domain_id = 21;
// +optional
string workspace_id = 22;
}

message UserSearchQuery {
enum State {
NONE = 0;
Expand All @@ -307,7 +300,7 @@ message UserSearchQuery {
// +optional
UserType user_type = 6;
// +optional
UserBackend backend = 7;
AuthType auth_type = 7;
// +optional
string domain_id = 21;
string workspace_id = 22;
Expand Down Expand Up @@ -336,7 +329,7 @@ message UserInfo {
string email = 4;
bool email_verified = 5;
UserType user_type = 6;
UserBackend backend = 7;
AuthType auth_type = 7;
RoleType role_type = 8;
MFA mfa = 9;
string language = 10;
Expand Down
4 changes: 2 additions & 2 deletions proto/spaceone/api/identity/v2/user_group.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ service UserGroup {
};
}

rpc list (UserSearchQuery) returns (UserGroupsInfo) {
rpc list (UserGroupSearchQuery) returns (UserGroupsInfo) {
option (google.api.http) = {
post: "/identity/v2/user-group/list"
body: "*"
Expand Down Expand Up @@ -102,7 +102,7 @@ message UsersUserGroupRequest {
string workspace_id = 22;
}

message UserSearchQuery {
message UserGroupSearchQuery {
spaceone.api.core.v1.Query query = 1;
// +optional
string user_group_id = 2;
Expand Down

0 comments on commit 4497be8

Please sign in to comment.