github.com/argoproj/argo-cd/v2@v2.10.9/server/applicationset/applicationset.proto (about)

     1  syntax = "proto3";
     2  option go_package = "github.com/argoproj/argo-cd/v2/pkg/apiclient/applicationset";
     3  
     4  
     5  // ApplicationSet Service
     6  //
     7  // ApplicationSet Service API performs CRUD actions against applicationset resources
     8  package applicationset;
     9  
    10  import "google/api/annotations.proto";
    11  import "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/generated.proto";
    12  
    13  // ApplicationSetGetQuery is a query for applicationset resources
    14  message ApplicationSetGetQuery {
    15  	// the applicationsets's name
    16  	string name = 1;
    17  	// The application set namespace. Default empty is argocd control plane namespace
    18  	string appsetNamespace = 2;
    19  }
    20  
    21  message ApplicationSetListQuery {
    22  	// the project names to restrict returned list applicationsets
    23  	repeated string projects = 1;
    24  	// the selector to restrict returned list to applications only with matched labels
    25  	string selector = 2;
    26  	// The application set namespace. Default empty is argocd control plane namespace
    27  	string appsetNamespace = 3;
    28  }
    29  
    30  
    31  message ApplicationSetResponse {
    32  	string project = 1;
    33  	github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationSet applicationset = 2;
    34  }
    35  
    36  
    37  message ApplicationSetCreateRequest {
    38  	github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationSet applicationset = 1;
    39  	bool upsert = 2;
    40  }
    41  
    42  
    43  message ApplicationSetDeleteRequest {
    44  	string name = 1;
    45  	// The application set namespace. Default empty is argocd control plane namespace
    46  	string appsetNamespace = 2;
    47  }
    48  
    49  
    50  // ApplicationSetService
    51  service ApplicationSetService {
    52  	
    53  	// Get returns an applicationset by name
    54  	rpc Get (ApplicationSetGetQuery) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationSet) {
    55  		option (google.api.http).get = "/api/v1/applicationsets/{name}";
    56  	}
    57  
    58  	//List returns list of applicationset
    59  	rpc List (ApplicationSetListQuery) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationSetList) {
    60  		option (google.api.http).get = "/api/v1/applicationsets";
    61  	}
    62  
    63  	//Create creates an applicationset
    64  	rpc Create (ApplicationSetCreateRequest) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.ApplicationSet) {
    65  		option (google.api.http) = {
    66  			post: "/api/v1/applicationsets"
    67  			body: "applicationset"
    68  		};
    69  	}
    70  
    71  	// Delete deletes an application set
    72  	rpc Delete(ApplicationSetDeleteRequest) returns (ApplicationSetResponse) {
    73  		option (google.api.http).delete = "/api/v1/applicationsets/{name}";
    74  	}
    75  
    76  }