github.com/argoproj/argo-cd/v3@v3.2.1/server/repocreds/repocreds.proto (about)

     1  syntax = "proto3";
     2  option go_package = "github.com/argoproj/argo-cd/v3/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/v3/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.v3.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.v3.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.v3.pkg.apis.application.v1alpha1.RepoCredsList) {
    43  		option (google.api.http).get = "/api/v1/repocreds";
    44  	}
    45  
    46  	//ListWriteRepositoryCredentials gets a list of all configured repository credential sets that have write access
    47  	rpc ListWriteRepositoryCredentials(RepoCredsQuery) returns (github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.RepoCredsList) {
    48  		option (google.api.http).get = "/api/v1/write-repocreds";
    49  	}
    50  
    51  	// CreateRepositoryCredentials creates a new repository credential set
    52  	rpc CreateRepositoryCredentials(RepoCredsCreateRequest) returns (github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.RepoCreds) {
    53  		option (google.api.http) = {
    54  			post: "/api/v1/repocreds"
    55  			body: "creds"
    56  		};
    57  	}
    58  
    59  	// CreateWriteRepositoryCredentials creates a new repository credential set with write access
    60  	rpc CreateWriteRepositoryCredentials(RepoCredsCreateRequest) returns (github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.RepoCreds) {
    61  		option (google.api.http) = {
    62  			post: "/api/v1/write-repocreds"
    63  			body: "creds"
    64  		};
    65  	}
    66  
    67  	// UpdateRepositoryCredentials updates a repository credential set
    68  	rpc UpdateRepositoryCredentials(RepoCredsUpdateRequest) returns (github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.RepoCreds) {
    69  		option (google.api.http) = {
    70  			put: "/api/v1/repocreds/{creds.url}"
    71  			body: "creds"
    72  		};
    73  	}
    74  
    75  	// UpdateWriteRepositoryCredentials updates a repository credential set with write access
    76  	rpc UpdateWriteRepositoryCredentials(RepoCredsUpdateRequest) returns (github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.RepoCreds) {
    77  		option (google.api.http) = {
    78  			put: "/api/v1/write-repocreds/{creds.url}"
    79  			body: "creds"
    80  		};
    81  	}
    82  
    83  	// DeleteRepositoryCredentials deletes a repository credential set from the configuration
    84  	rpc DeleteRepositoryCredentials(RepoCredsDeleteRequest) returns (RepoCredsResponse) {
    85  		option (google.api.http).delete = "/api/v1/repocreds/{url}";
    86  	}
    87  
    88  	// DeleteWriteRepositoryCredentials deletes a repository credential set with write access from the configuration
    89  	rpc DeleteWriteRepositoryCredentials(RepoCredsDeleteRequest) returns (RepoCredsResponse) {
    90  		option (google.api.http).delete = "/api/v1/write-repocreds/{url}";
    91  	}
    92  }