@@ -8,6 +8,7 @@ import "google/protobuf/empty.proto";
8
8
import "google/protobuf/struct.proto" ;
9
9
import "google/api/annotations.proto" ;
10
10
import "spaceone/api/core/v2/query.proto" ;
11
+ import "spaceone/api/core/v2/plugin.proto" ;
11
12
12
13
service NotificationProtocol {
13
14
rpc create (NotificationProtocolCreateRequest ) returns (NotificationProtocolInfo ) {
@@ -72,44 +73,9 @@ service NotificationProtocol {
72
73
}
73
74
}
74
75
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
-
110
76
message NotificationProtocolCreateRequest {
111
77
string name = 1 ;
112
- NotificationProtocolRequestPluginInfo plugin_info = 2 ;
78
+ spaceone.api.core.v2.PluginRequest plugin_info = 2 ;
113
79
114
80
// +optional
115
81
google.protobuf.Struct tags = 11 ;
@@ -175,7 +141,7 @@ message NotificationProtocolInfo {
175
141
string protocol_id = 1 ;
176
142
string name = 2 ;
177
143
NotificationProtocolState state = 3 ;
178
- NotificationProtocolResponsePluginInfo plugin_info = 4 ;
144
+ spaceone.api.core.v2.PluginInfo plugin_info = 4 ;
179
145
google.protobuf.Struct tags = 5 ;
180
146
181
147
string domain_id = 21 ;
0 commit comments