Skip to content
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