Skip to content

Commit

Permalink
Update proto
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 committed Nov 14, 2023
1 parent dd28077 commit a667faa
Show file tree
Hide file tree
Showing 7 changed files with 667 additions and 225 deletions.
47 changes: 32 additions & 15 deletions components/public-api/gitpod/v1/envvar.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,45 +15,62 @@ service EnvironmentVariableService {

// UpdateEnvironmentVariable updates an environment variable for the
// authenticated user.
//
// workspace_id +return NOT_FOUND Workspace does not exist
rpc UpdateEnvironmentVariable(UpdateEnvironmentVariableRequest)
returns (UpdateEnvironmentVariableResponse) {}

// CreateEnvironmentVariable creates a new environment variable for the
// authenticated user.
rpc CreateEnvironmentVariable(CreateEnvironmentVariableRequest)
returns (CreateEnvironmentVariableResponse) {}

// DeleteEnvironmentVariable deletes an environment variable for the
// authenticated user.
//
// workspace_id +return NOT_FOUND Workspace does not exist
rpc DeleteEnvironmentVariable(DeleteEnvironmentVariableRequest)
returns (DeleteEnvironmentVariableResponse) {}
}

message UserEnvironmentVariable {
message EnvironmentVariable {
string id = 1;
string name = 2;
string value = 3;
string repository_pattern = 4;
string repository_pattern = 4; // Only set for user env variables
string configuration_id = 5; // Only set for project env variables
bool censored = 6; // Only set for project env variables
}

message ListEnvironmentVariablesRequest { optional string workspace_id = 1; }
message ListEnvironmentVariablesRequest {
string workspace_id = 1;
string configuration_id = 2;
}

message ListEnvironmentVariablesResponse {
repeated UserEnvironmentVariable environment_variables = 1;
repeated EnvironmentVariable environment_variables = 1;
}

message UpdateEnvironmentVariableRequest {
optional string envvar_name = 1;
optional string envvar_value = 2;
optional string envvar_repository_pattern = 3;
optional string env_var_name = 1;
optional string env_var_value = 2;
optional string env_var_repository_pattern = 3;
optional string env_var_configuration_id = 4;
optional bool env_var_censored = 5;
}

message UpdateEnvironmentVariableResponse {
UserEnvironmentVariable environment_variable = 1;
EnvironmentVariable environment_variable = 1;
}

message CreateEnvironmentVariableRequest {
string env_var_name = 1;
string env_var_value = 2;
string env_var_repository_pattern = 3;
string env_var_configuration_id = 4;
bool env_var_censored = 5;
}

message DeleteEnvironmentVariableRequest {
string envvar_name = 1;
string envvar_repository_pattern = 2;
message CreateEnvironmentVariableResponse {
EnvironmentVariable environment_variable = 1;
}

message DeleteEnvironmentVariableRequest { string env_var_id = 1; }

message DeleteEnvironmentVariableResponse {}
Loading

0 comments on commit a667faa

Please sign in to comment.