Skip to content

Commit

Permalink
Merge pull request #389 from yjinjo/master
Browse files Browse the repository at this point in the history
Add workspace_group find API
  • Loading branch information
yjinjo authored Aug 16, 2024
2 parents 8f5ecec + 4a52379 commit f8da524
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions proto/spaceone/api/identity/v2/workspace_group.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ service WorkspaceGroup {
};
}

rpc find_users (WorkspaceGroupFindRequest) returns (WorkspaceGroupUsersSummaryInfo) {
option (google.api.http) = {
post: "/identity/v2/workspace-group/find-users"
body: "*"
};
}

rpc add_users (UsersWorkspaceGroupRequest) returns (WorkspaceGroupInfo) {
option (google.api.http) = {
post: "/identity/v2/workspace-group/add-users"
Expand Down Expand Up @@ -101,6 +108,22 @@ message WorkspacesWorkspaceGroupRequest {
repeated string workspaces = 2;
}

message WorkspaceGroupFindRequest {
enum State {
NONE = 0;
ENABLED = 1;
DISABLED = 2;
PENDING = 3;
}

string keyword = 1;
// +optional
State state = 2;
// +optional
spaceone.api.core.v2.Page page = 3;
string workspace_group_id = 21;
}

message UsersWorkspaceGroupRequest {
string workspace_group_id = 1;
repeated google.protobuf.Struct users = 2;
Expand Down Expand Up @@ -147,6 +170,24 @@ message WorkspaceGroupsInfo {
int32 total_count = 2;
}

message WorkspaceGroupUserSummaryInfo {
enum State {
STATE_NONE = 0;
ENABLED = 1;
DISABLED = 2;
PENDING = 3;
}

string user_id = 1;
string name = 2;
State state = 3;
}

message WorkspaceGroupUsersSummaryInfo {
repeated WorkspaceGroupUserSummaryInfo results = 1;
int32 total_count = 2;
}

message WorkspaceGroupStatQuery {
spaceone.api.core.v2.StatisticsQuery query = 1;
}

0 comments on commit f8da524

Please sign in to comment.