Skip to content

Commit

Permalink
fix: update optimus resources URL to use client within URL
Browse files Browse the repository at this point in the history
  • Loading branch information
rootcss committed May 21, 2021
1 parent d27c022 commit 701f9b7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions odpf/optimus/RuntimeService.proto
Original file line number Diff line number Diff line change
Expand Up @@ -144,25 +144,25 @@ service RuntimeService {
// ListResourceSpecification lists all resource specifications of a datastore in project
rpc ListResourceSpecification(ListResourceSpecificationRequest) returns (ListResourceSpecificationResponse) {
option (google.api.http) = {
get: "/api/v1/project/{project_name}/datastore/{datastore_name}/resource"
get: "/api/v1/project/{project_name}/client/{client_name}/datastore/{datastore_name}/resource"
};
}

// Datastore CRUD
rpc CreateResource(CreateResourceRequest) returns (CreateResourceResponse) {
option (google.api.http) = {
post: "/api/v1/project/{project_name}/datastore/{datastore_name}/resource"
post: "/api/v1/project/{project_name}/client/{client_name}/datastore/{datastore_name}/resource"
body: "*"
};
}
rpc ReadResource(ReadResourceRequest) returns (ReadResourceResponse) {
option (google.api.http) = {
get: "/api/v1/project/{project_name}/datastore/{datastore_name}/resource/{resource_name}"
get: "/api/v1/project/{project_name}/client/{client_name}/datastore/{datastore_name}/resource/{resource_name}"
};
}
rpc UpdateResource(UpdateResourceRequest) returns (UpdateResourceResponse) {
option (google.api.http) = {
put: "/api/v1/project/{project_name}/datastore/{datastore_name}/resource"
put: "/api/v1/project/{project_name}/client/{client_name}/datastore/{datastore_name}/resource"
body: "*"
};
}
Expand All @@ -180,6 +180,7 @@ message ProjectSpecification {

message ClientSpecification {
string name = 1;
map<string, string> config = 2;
}

message JobSpecHook {
Expand Down Expand Up @@ -325,6 +326,7 @@ message CheckJobSpecificationResponse {
message CheckJobSpecificationsRequest {
string project_name = 1;
repeated JobSpecification jobs = 2;
string client_name = 3;
}

message CheckJobSpecificationsResponse {
Expand Down Expand Up @@ -426,6 +428,7 @@ message RegisterInstanceResponse {
ProjectSpecification project = 1;
JobSpecification job = 2;
InstanceSpec instance = 3;
ClientSpecification client = 4;
}

message JobStatusRequest {
Expand Down

0 comments on commit 701f9b7

Please sign in to comment.