mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: crenshaw-dev <350466+crenshaw-dev@users.noreply.github.com>
59 lines
1.2 KiB
Protocol Buffer
59 lines
1.2 KiB
Protocol Buffer
syntax = "proto2";
|
|
option go_package = "github.com/argoproj/argo-cd/v3/pkg/apiclient/notification";
|
|
|
|
// Notification Service
|
|
//
|
|
// Notification Service API performs query actions against notification resources
|
|
package notification;
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
message Trigger {
|
|
required string name = 1;
|
|
}
|
|
|
|
message TriggerList {
|
|
repeated Trigger items = 1;
|
|
}
|
|
|
|
message TriggersListRequest {}
|
|
|
|
message Service {
|
|
required string name = 1;
|
|
}
|
|
|
|
message ServiceList {
|
|
repeated Service items = 1;
|
|
}
|
|
|
|
message ServicesListRequest {}
|
|
|
|
message Template {
|
|
required string name = 1;
|
|
}
|
|
|
|
message TemplateList {
|
|
repeated Template items = 1;
|
|
}
|
|
|
|
message TemplatesListRequest {}
|
|
|
|
// NotificationService
|
|
service NotificationService {
|
|
|
|
// List returns list of triggers
|
|
rpc ListTriggers(TriggersListRequest) returns (TriggerList) {
|
|
option (google.api.http).get = "/api/v1/notifications/triggers";
|
|
}
|
|
|
|
// List returns list of services
|
|
rpc ListServices(ServicesListRequest) returns (ServiceList) {
|
|
option (google.api.http).get = "/api/v1/notifications/services";
|
|
}
|
|
|
|
// List returns list of templates
|
|
rpc ListTemplates(TemplatesListRequest) returns (TemplateList) {
|
|
option (google.api.http).get = "/api/v1/notifications/templates";
|
|
}
|
|
}
|