Skip to content

Commit

Permalink
feat: get namespace by project_name and namespace_name
Browse files Browse the repository at this point in the history
  • Loading branch information
deryrahman committed Mar 30, 2022
1 parent 69799dd commit 589d642
Showing 1 changed file with 16 additions and 0 deletions.
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

0 comments on commit 589d642

Please sign in to comment.