github.com/argoproj/argo-cd/v2@v2.10.9/server/repocreds/repocreds.proto (about) 1 syntax = "proto3"; 2 option go_package = "github.com/argoproj/argo-cd/v2/pkg/apiclient/repocreds"; 3 4 // Repository Service 5 // 6 // Repository Service API performs CRUD actions against repository resources 7 package repocreds; 8 9 import "google/api/annotations.proto"; 10 import "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/generated.proto"; 11 12 // RepoCredsQuery is a query for RepoCreds resources 13 message RepoCredsQuery { 14 // Repo URL for query 15 string url = 1; 16 } 17 18 message RepoCredsDeleteRequest { 19 string url = 1; 20 } 21 22 // RepoCredsResponse is a response to most repository credentials requests 23 message RepoCredsResponse {} 24 25 // RepoCreateRequest is a request for creating repository credentials config 26 message RepoCredsCreateRequest { 27 // Repository definition 28 github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RepoCreds creds = 1; 29 // Whether to create in upsert mode 30 bool upsert = 2; 31 } 32 33 // RepoCredsUpdateRequest is a request for updating existing repository credentials config 34 message RepoCredsUpdateRequest { 35 github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RepoCreds creds = 1; 36 } 37 38 // RepoCredsService implements CRUD actions for managing repository credentials config 39 service RepoCredsService { 40 41 // ListRepositoryCredentials gets a list of all configured repository credential sets 42 rpc ListRepositoryCredentials(RepoCredsQuery) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RepoCredsList) { 43 option (google.api.http).get = "/api/v1/repocreds"; 44 } 45 46 // CreateRepositoryCredentials creates a new repository credential set 47 rpc CreateRepositoryCredentials(RepoCredsCreateRequest) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RepoCreds) { 48 option (google.api.http) = { 49 post: "/api/v1/repocreds" 50 body: "creds" 51 }; 52 } 53 54 // UpdateRepositoryCredentials updates a repository credential set 55 rpc UpdateRepositoryCredentials(RepoCredsUpdateRequest) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RepoCreds) { 56 option (google.api.http) = { 57 put: "/api/v1/repocreds/{creds.url}" 58 body: "creds" 59 }; 60 } 61 62 // DeleteRepositoryCredentials deletes a repository credential set from the configuration 63 rpc DeleteRepositoryCredentials(RepoCredsDeleteRequest) returns (RepoCredsResponse) { 64 option (google.api.http).delete = "/api/v1/repocreds/{url}"; 65 } 66 67 }