Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify app and api_key info #182

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions proto/spaceone/api/identity/v2/api_key.proto
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ message APIKeyInfo {

string api_key_id = 1;
string api_key = 2;
string name = 3;
State state = 4;
string app_id = 3;
string name = 4;
State state = 5;
string domain_id = 21;
string user_id = 22;
string created_at = 31;
Expand Down
10 changes: 9 additions & 1 deletion proto/spaceone/api/identity/v2/app.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ service App {
};
}

rpc generate_api_key (AppRequest) returns (AppInfo) {
rpc generate_api_key (GenerateAPIKeyAppRequest) returns (AppInfo) {
option (google.api.http) = {
post: "/identity/v2/app/generate-api-key"
body: "*"
Expand Down Expand Up @@ -105,6 +105,14 @@ message UpdateAppRequest {
string workspace_id = 22;
}

message GenerateAPIKeyAppRequest {
string app_id = 1;
string expired_at = 2;
string domain_id = 21;
// +optional
string workspace_id = 22;
}

message AppRequest {
string app_id = 1;
string domain_id = 21;
Expand Down