Skip to content

Commit

Permalink
feat: add package management APIs to Workspace
Browse files Browse the repository at this point in the history
Signed-off-by: Jongmin Kim <[email protected]>
  • Loading branch information
whdalsrnt committed Nov 20, 2024
1 parent c63b607 commit c4ee26a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions proto/spaceone/api/identity/v2/workspace.proto
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ service Workspace {
};
}

rpc add_package (WorkspacePackageRequest) returns (WorkspaceInfo) {
option (google.api.http) = {
post: "/identity/v2/workspace/add-package"
body: "*"
};
}

rpc remove_package (WorkspacePackageRequest) returns (WorkspaceInfo) {
option (google.api.http) = {
post: "/identity/v2/workspace/remove-package"
body: "*"
};
}

rpc get (WorkspaceRequest) returns (WorkspaceInfo) {
option (google.api.http) = {
post: "/identity/v2/workspace/get"
Expand Down Expand Up @@ -121,6 +135,15 @@ message WorkspaceDeleteRequest {
bool force = 2;
}

//{
// "workspace_id": "workspace-a1b2c3d4e5f6",
// "package_id": "package-a1b2c3d4e5f6"
//}
message WorkspacePackageRequest {
string workspace_id = 1;
string package_id = 2;
}

//{
// "workspace_id": "workspace-a1b2c3d4e5f6"
//}
Expand Down Expand Up @@ -158,6 +181,7 @@ message WorkspaceInfo {
string created_by = 5;
repeated string references = 6;
bool is_managed = 7;
repeated string packages = 8;

bool is_dormant = 11;
int32 dormant_ttl = 12;
Expand Down

0 comments on commit c4ee26a

Please sign in to comment.