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

feat(optimus): add get project proto & get namespace proto #117

Merged
merged 2 commits into from
Apr 14, 2022
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
16 changes: 16 additions & 0 deletions odpf/optimus/core/v1beta1/namespace.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ service NamespaceService {
get: "/v1beta1/project/{project_name}/namespace"
};
}

// GetNamespace returns namespace details based on project_name and namespace_name
rpc GetNamespace(GetNamespaceRequest) returns(GetNamespaceResponse) {
option (google.api.http) = {
get: "/v1beta1/project/{project_name}/namespace/{namespace_name}"
};
}
}

message RegisterProjectNamespaceRequest {
Expand All @@ -57,6 +64,15 @@ message ListProjectNamespacesResponse {
repeated NamespaceSpecification namespaces = 1;
}

message GetNamespaceRequest {
string project_name = 1;
string namespace_name = 2;
}

message GetNamespaceResponse {
NamespaceSpecification namespace = 1;
}

message NamespaceSpecification {
string name = 1;
map<string, string> config = 2;
Expand Down
14 changes: 14 additions & 0 deletions odpf/optimus/core/v1beta1/project.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ service ProjectService {
get: "/v1beta1/project"
};
}
// GetProject returns project details based on project_name
rpc GetProject(GetProjectRequest) returns (GetProjectResponse) {
option (google.api.http) = {
get: "/v1beta1/project/{project_name}"
};
}
}

message RegisterProjectRequest {
Expand All @@ -55,6 +61,14 @@ message ListProjectsResponse {
repeated ProjectSpecification projects = 1;
}

message GetProjectRequest {
string project_name = 1;
}

message GetProjectResponse {
ProjectSpecification project = 1;
}

message ProjectSpecification {
string name = 1;
map<string, string> config = 2;
Expand Down