Skip to content

Commit

Permalink
fix: change message content and bump buf dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Bocheng Yang committed Jan 19, 2022
1 parent 30d5d90 commit f26fcd0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 3 additions & 3 deletions buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ deps:
owner: googleapis
repository: googleapis
branch: main
commit: 0039142542b74d11b0ae5a1e9fd4d523
digest: b1-AzPoqjtlLpx5dVojvgRauI1re5i4LPsghzU0KO-16o4=
create_time: 2022-01-05T15:03:17.46488Z
commit: c21d9ee7a8c74d6a8cce1338a2839547
digest: b1-Rdf7A_4QeTLvu6BdzORkijdmHsAyJd2MHEEZWBEUFIM=
create_time: 2022-01-15T15:04:23.382499Z
- remote: buf.build
owner: grpc-ecosystem
repository: grpc-gateway
Expand Down
16 changes: 10 additions & 6 deletions pipeline/pipeline.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ service Pipeline {
}
rpc UpdatePipeline (UpdatePipelineRequest) returns (PipelineInfo) {
option (google.api.http) = {
patch: "/pipelines/{pipeline.id=*}"
patch: "/pipelines/{id}"
body: "*"
};
}
Expand All @@ -56,17 +56,17 @@ message Timestamp {
message PipelineInfo {
string id = 1 [(google.api.field_behavior) = OPTIONAL];
string name = 2;
optional string description = 3;
string description = 3 [(google.api.field_behavior) = OPTIONAL];
bool active = 4;
instill.pipeline.Timestamp created_at = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
instill.pipeline.Timestamp updated_at = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
instill.pipeline.Recipe recipe = 7;
optional string creator_id = 8;
string fullName = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
}

message CreatePipelineRequest {
string name = 1;
optional string description = 2;
string description = 2 [(google.api.field_behavior) = OPTIONAL];
bool active = 3;
instill.pipeline.Recipe recipe = 4;
}
Expand All @@ -91,9 +91,13 @@ message GetPipelineRequest {
}

message UpdatePipelineRequest {
PipelineInfo pipeline = 1 [(google.api.field_behavior) = REQUIRED];
string id = 1 [(google.api.field_behavior) = REQUIRED];
string name = 2 [(google.api.field_behavior) = OPTIONAL];
string description = 3 [(google.api.field_behavior) = OPTIONAL];
bool active = 4 [(google.api.field_behavior) = OPTIONAL];
instill.pipeline.Recipe recipe = 5 [(google.api.field_behavior) = OPTIONAL];

optional google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
google.protobuf.FieldMask update_mask = 6 [(google.api.field_behavior) = REQUIRED];
}

message DeletePipelineRequest {
Expand Down

0 comments on commit f26fcd0

Please sign in to comment.