Skip to content

Commit b8fbb8b

Browse files
committed
refactor: change message of notification protocol
Signed-off-by: Jongmin Kim <[email protected]>
1 parent 835f9f0 commit b8fbb8b

File tree

1 file changed

+3
-37
lines changed

1 file changed

+3
-37
lines changed

proto/spaceone/api/alert_manager/v1/notification_protocol.proto

+3-37
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import "google/protobuf/empty.proto";
88
import "google/protobuf/struct.proto";
99
import "google/api/annotations.proto";
1010
import "spaceone/api/core/v2/query.proto";
11+
import "spaceone/api/core/v2/plugin.proto";
1112

1213
service NotificationProtocol {
1314
rpc create (NotificationProtocolCreateRequest) returns (NotificationProtocolInfo) {
@@ -72,44 +73,9 @@ service NotificationProtocol {
7273
}
7374
}
7475

75-
message NotificationProtocolRequestPluginInfo {
76-
enum NotificationProtocolUpgradeMode {
77-
UPGRADE_MODE_NONE = 0;
78-
AUTO = 1;
79-
MANUAL = 2;
80-
}
81-
82-
string plugin_id = 1;
83-
string version = 2;
84-
google.protobuf.Struct options = 3;
85-
// +optional
86-
google.protobuf.Struct secret_data = 4;
87-
// +optional
88-
google.protobuf.Struct schema = 5;
89-
NotificationProtocolUpgradeMode upgrade_mode = 6;
90-
}
91-
92-
message NotificationProtocolResponsePluginInfo {
93-
enum NotificationProtocolUpgradeMode {
94-
UPGRADE_MODE_NONE = 0;
95-
AUTO = 1;
96-
MANUAL = 2;
97-
}
98-
99-
string plugin_id = 1;
100-
string version = 2;
101-
google.protobuf.Struct options = 3;
102-
// +optional
103-
google.protobuf.Struct metadata = 4;
104-
NotificationProtocolUpgradeMode upgrade_mode = 5;
105-
106-
// +optional
107-
string secret_id = 21;
108-
}
109-
11076
message NotificationProtocolCreateRequest {
11177
string name = 1;
112-
NotificationProtocolRequestPluginInfo plugin_info = 2;
78+
spaceone.api.core.v2.PluginRequest plugin_info = 2;
11379

11480
// +optional
11581
google.protobuf.Struct tags = 11;
@@ -175,7 +141,7 @@ message NotificationProtocolInfo {
175141
string protocol_id = 1;
176142
string name = 2;
177143
NotificationProtocolState state = 3;
178-
NotificationProtocolResponsePluginInfo plugin_info = 4;
144+
spaceone.api.core.v2.PluginInfo plugin_info = 4;
179145
google.protobuf.Struct tags = 5;
180146

181147
string domain_id = 21;

0 commit comments

Comments
 (0)