From 701f9b71337c5da4d3b5d5eadc4d965a26ac3cc8 Mon Sep 17 00:00:00 2001 From: rootcss Date: Mon, 17 May 2021 17:24:54 +0530 Subject: [PATCH] fix: update optimus resources URL to use client within URL --- odpf/optimus/RuntimeService.proto | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/odpf/optimus/RuntimeService.proto b/odpf/optimus/RuntimeService.proto index 1158e94d..3df9ff08 100644 --- a/odpf/optimus/RuntimeService.proto +++ b/odpf/optimus/RuntimeService.proto @@ -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: "*" }; } @@ -180,6 +180,7 @@ message ProjectSpecification { message ClientSpecification { string name = 1; + map config = 2; } message JobSpecHook { @@ -325,6 +326,7 @@ message CheckJobSpecificationResponse { message CheckJobSpecificationsRequest { string project_name = 1; repeated JobSpecification jobs = 2; + string client_name = 3; } message CheckJobSpecificationsResponse { @@ -426,6 +428,7 @@ message RegisterInstanceResponse { ProjectSpecification project = 1; JobSpecification job = 2; InstanceSpec instance = 3; + ClientSpecification client = 4; } message JobStatusRequest {