Skip to content

Commit

Permalink
chore: add comments for stream rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofei-du committed May 16, 2022
1 parent 77b02ea commit e6df797
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
16 changes: 12 additions & 4 deletions instill/model/v1alpha/model_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,12 @@ service ModelService {
// CreateModelBinaryFileUpload method receives a
// CreateModelBinaryFileUploadRequest message and returns a
// CreateModelBinaryFileUploadResponse message.
//
// Endpoint: "POST /v1alpha/models:multipart"
rpc CreateModelBinaryFileUpload(stream CreateModelBinaryFileUploadRequest)
returns (CreateModelBinaryFileUploadResponse) {}
returns (CreateModelBinaryFileUploadResponse) {
option (google.api.method_signature) = "id,model_definition,content";
}

// GetModel method receives a GetModelRequest message and returns a
// GetModelResponse
Expand Down Expand Up @@ -180,8 +184,8 @@ service ModelService {
option (google.api.method_signature) = "name";
}

// UnpublishModel method receives a UnpublishModelRequest message and returns a
// UnpublishModelResponse
// UnpublishModel method receives a UnpublishModelRequest message and returns
// a UnpublishModelResponse
rpc UnpublishModel(UnpublishModelRequest) returns (UnpublishModelResponse) {
option (google.api.http) = {
post : "/v1alpha/{name=models/*}:unpublish"
Expand Down Expand Up @@ -269,7 +273,11 @@ service ModelService {
// TriggerModelInstanceBinaryFileUpload method receives a
// TriggerModelInstanceBinaryFileUploadRequest message and returns a
// TriggerModelInstanceBinaryFileUploadResponse message.
//
// Endpoint: "POST/v1alpha/{name=models/*/instances/*}:trigger-multipart"
rpc TriggerModelInstanceBinaryFileUpload(
stream TriggerModelInstanceBinaryFileUploadRequest)
returns (TriggerModelInstanceBinaryFileUploadResponse) {}
returns (TriggerModelInstanceBinaryFileUploadResponse) {
option (google.api.method_signature) = "name,file";
}
}
6 changes: 5 additions & 1 deletion instill/pipeline/v1alpha/pipeline_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ service PipelineService {
// TriggerPipelineBinaryFileUpload method receives a
// TriggerPipelineBinaryFileUploadRequest message and returns a
// TriggerPipelineBinaryFileUploadResponse message.
//
// Endpoint: "POST /v1alpha/{name=pipelines/*}:trigger-multipart"
rpc TriggerPipelineBinaryFileUpload(
stream TriggerPipelineBinaryFileUploadRequest)
returns (TriggerPipelineBinaryFileUploadResponse) {}
returns (TriggerPipelineBinaryFileUploadResponse) {
option (google.api.method_signature) = "name,file";
}
}
4 changes: 2 additions & 2 deletions openapiv2/openapiv2.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,8 @@ paths:
/v1alpha/{name}:unpublish:
post:
summary: |-
UnpublishModel method receives a UnpublishModelRequest message and returns a
UnpublishModelResponse
UnpublishModel method receives a UnpublishModelRequest message and returns
a UnpublishModelResponse
operationId: ModelService_UnpublishModel
responses:
"200":
Expand Down

0 comments on commit e6df797

Please sign in to comment.