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

     1  syntax = "proto3";
     2  option go_package = "github.com/argoproj/argo-cd/v3/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/v3/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.v3.pkg.apis.application.v1alpha1.ApplicationSet applicationset = 2;
    34  }
    35  
    36  
    37  message ApplicationSetCreateRequest {
    38  	github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.ApplicationSet applicationset = 1;
    39  	bool upsert = 2;
    40  	bool dryRun = 3;
    41  }
    42  
    43  
    44  message ApplicationSetDeleteRequest {
    45  	string name = 1;
    46  	// The application set namespace. Default empty is argocd control plane namespace
    47  	string appsetNamespace = 2;
    48  }
    49  
    50  message ApplicationSetTreeQuery {
    51  	string name = 1;
    52  	// The application set namespace. Default empty is argocd control plane namespace
    53  	string appsetNamespace = 2;
    54  }
    55  
    56  // ApplicationSetGetQuery is a query for applicationset resources
    57  message ApplicationSetGenerateRequest {
    58  	// the applicationsets
    59  	github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.ApplicationSet applicationSet = 1;
    60  }
    61  
    62  // ApplicationSetGenerateResponse is a response for applicationset generate request
    63  message ApplicationSetGenerateResponse {
    64  	repeated github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.Application applications = 1;
    65  }
    66  
    67  // ApplicationSetService
    68  service ApplicationSetService {
    69  	// Get returns an applicationset by name
    70  	rpc Get (ApplicationSetGetQuery) returns (github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.ApplicationSet) {
    71  		option (google.api.http).get = "/api/v1/applicationsets/{name}";
    72  	}
    73  
    74  	// Generate generates
    75  	rpc Generate (ApplicationSetGenerateRequest) returns (ApplicationSetGenerateResponse) {
    76  		option (google.api.http) = {
    77  			post: "/api/v1/applicationsets/generate"
    78  			body: "*"
    79  		};
    80  	}
    81  
    82  	//List returns list of applicationset
    83  	rpc List (ApplicationSetListQuery) returns (github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.ApplicationSetList) {
    84  		option (google.api.http).get = "/api/v1/applicationsets";
    85  	}
    86  
    87  	//Create creates an applicationset
    88  	rpc Create (ApplicationSetCreateRequest) returns (github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.ApplicationSet) {
    89  		option (google.api.http) = {
    90  			post: "/api/v1/applicationsets"
    91  			body: "applicationset"
    92  		};
    93  	}
    94  
    95  	// Delete deletes an application set
    96  	rpc Delete(ApplicationSetDeleteRequest) returns (ApplicationSetResponse) {
    97  		option (google.api.http).delete = "/api/v1/applicationsets/{name}";
    98  	}
    99  
   100    // ResourceTree returns resource tree
   101    rpc ResourceTree(ApplicationSetTreeQuery) returns (github.com.argoproj.argo_cd.v3.pkg.apis.application.v1alpha1.ApplicationSetTree) {
   102      option (google.api.http).get = "/api/v1/applicationsets/{name}/resource-tree";
   103    }
   104  
   105  }