Skip to content

Commit

Permalink
move changes to new core/v1/build.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
William Batista authored and William Batista committed Oct 21, 2024
1 parent 43a7827 commit 69fccb0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
24 changes: 24 additions & 0 deletions proto/depot/core/v1/build.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
syntax = "proto3";
package depot.core.v1;

service BuildService {
// Share a URL to a build with users outside of your organization
rpc ShareBuild(ShareBuildRequest) returns (ShareBuildResponse);

// Stop sharing a build
rpc StopSharingBuild(StopSharingBuildRequest) returns (StopSharingBuildResponse);
}

message ShareBuildRequest {
string build_id = 1;
}

message ShareBuildResponse {
string share_url = 1;
}

message StopSharingBuildRequest {
string build_id = 1;
}

message StopSharingBuildResponse {}
20 changes: 0 additions & 20 deletions proto/depot/core/v1/project.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ service ProjectService {

// Delete project API token.
rpc DeleteToken(DeleteTokenRequest) returns (DeleteTokenResponse) {}

// Share a URL to a build with users outside of your organization
rpc ShareBuild(ShareBuildRequest) returns (ShareBuildResponse);

// Stop sharing a build
rpc StopSharingBuild(StopSharingBuildRequest) returns (StopSharingBuildResponse);
}

message Project {
Expand Down Expand Up @@ -220,17 +214,3 @@ message DeleteTokenRequest {
}

message DeleteTokenResponse {}

message ShareBuildRequest {
string build_id = 1;
}

message ShareBuildResponse {
string share_url = 1;
}

message StopSharingBuildRequest {
string build_id = 1;
}

message StopSharingBuildResponse {}

0 comments on commit 69fccb0

Please sign in to comment.