Skip to content

Commit

Permalink
Merge pull request #5 from depot/feat/trust-policies
Browse files Browse the repository at this point in the history
feat: add trust policies api
  • Loading branch information
goller authored Oct 27, 2023
2 parents 69fab75 + 5b8e5b6 commit 06661bf
Show file tree
Hide file tree
Showing 2 changed files with 522 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/gen/depot/core/v1/project_connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import {MethodKind} from '@bufbuild/protobuf'
import {
AddTrustPolicyRequest,
AddTrustPolicyResponse,
CreateProjectRequest,
CreateProjectResponse,
DeleteProjectRequest,
Expand All @@ -13,6 +15,10 @@ import {
GetProjectResponse,
ListProjectsRequest,
ListProjectsResponse,
ListTrustPoliciesRequest,
ListTrustPoliciesResponse,
RemoveTrustPolicyRequest,
RemoveTrustPolicyResponse,
UpdateProjectRequest,
UpdateProjectResponse,
} from './project_pb.js'
Expand Down Expand Up @@ -78,5 +84,38 @@ export const ProjectService = {
O: DeleteProjectResponse,
kind: MethodKind.Unary,
},
/**
* List project's trust policies.
*
* @generated from rpc depot.core.v1.ProjectService.ListTrustPolicies
*/
listTrustPolicies: {
name: 'ListTrustPolicies',
I: ListTrustPoliciesRequest,
O: ListTrustPoliciesResponse,
kind: MethodKind.Unary,
},
/**
* Add a trust policy to a project.
*
* @generated from rpc depot.core.v1.ProjectService.AddTrustPolicy
*/
addTrustPolicy: {
name: 'AddTrustPolicy',
I: AddTrustPolicyRequest,
O: AddTrustPolicyResponse,
kind: MethodKind.Unary,
},
/**
* Remove a trust policy from a project.
*
* @generated from rpc depot.core.v1.ProjectService.RemoveTrustPolicy
*/
removeTrustPolicy: {
name: 'RemoveTrustPolicy',
I: RemoveTrustPolicyRequest,
O: RemoveTrustPolicyResponse,
kind: MethodKind.Unary,
},
},
} as const
Loading

0 comments on commit 06661bf

Please sign in to comment.