File tree 10 files changed +159
-1
lines changed
lib/astarte_rpc/protocol/proto/realm_management
10 files changed +159
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
7
## [ Unreleased]
8
+ ### Added
9
+ - Add support for trigger delivery policy.
8
10
9
11
## [ 1.0.3] - 2022-07-04
10
12
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ import "get_trigger.proto";
31
31
import "get_triggers_list.proto" ;
32
32
import "delete_trigger.proto" ;
33
33
import "get_health.proto" ;
34
+ import "install_trigger_policy.proto" ;
35
+ import "delete_trigger_policy.proto" ;
36
+ import "get_trigger_policies_list.proto" ;
37
+ import "get_trigger_policy_source.proto" ;
38
+
34
39
35
40
message Call {
36
41
int32 version = 1 ;
@@ -49,5 +54,9 @@ message Call {
49
54
GetTriggersList get_triggers_list = 12 ;
50
55
DeleteTrigger delete_trigger = 13 ;
51
56
GetHealth get_health = 14 ;
57
+ InstallTriggerPolicy install_trigger_policy = 15 ;
58
+ DeleteTriggerPolicy delete_trigger_policy = 16 ;
59
+ GetTriggerPoliciesList get_trigger_policies_list = 17 ;
60
+ GetTriggerPolicySource get_trigger_policy_source = 18 ;
52
61
}
53
62
}
Original file line number Diff line number Diff line change
1
+ //
2
+ // This file is part of Astarte.
3
+ //
4
+ // Copyright 2022 SECO Mind Srl
5
+ //
6
+ // Licensed under the Apache License, Version 2.0 (the "License");
7
+ // you may not use this file except in compliance with the License.
8
+ // You may obtain a copy of the License at
9
+ //
10
+ // http://www.apache.org/licenses/LICENSE-2.0
11
+ //
12
+ // Unless required by applicable law or agreed to in writing, software
13
+ // distributed under the License is distributed on an "AS IS" BASIS,
14
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+
19
+ syntax = "proto3" ;
20
+
21
+ message DeleteTriggerPolicy {
22
+ string realm_name = 1 ;
23
+ string trigger_policy_name = 2 ;
24
+ bool async_operation = 3 ;
25
+ }
Original file line number Diff line number Diff line change
1
+ //
2
+ // This file is part of Astarte.
3
+ //
4
+ // Copyright 2022 SECO Mind Srl
5
+ //
6
+ // Licensed under the Apache License, Version 2.0 (the "License");
7
+ // you may not use this file except in compliance with the License.
8
+ // You may obtain a copy of the License at
9
+ //
10
+ // http://www.apache.org/licenses/LICENSE-2.0
11
+ //
12
+ // Unless required by applicable law or agreed to in writing, software
13
+ // distributed under the License is distributed on an "AS IS" BASIS,
14
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+
19
+ syntax = "proto3" ;
20
+
21
+ message GetTriggerPoliciesList {
22
+ string realm_name = 1 ;
23
+ }
Original file line number Diff line number Diff line change
1
+ //
2
+ // This file is part of Astarte.
3
+ //
4
+ // Copyright 2022 SECO Mind Srl
5
+ //
6
+ // Licensed under the Apache License, Version 2.0 (the "License");
7
+ // you may not use this file except in compliance with the License.
8
+ // You may obtain a copy of the License at
9
+ //
10
+ // http://www.apache.org/licenses/LICENSE-2.0
11
+ //
12
+ // Unless required by applicable law or agreed to in writing, software
13
+ // distributed under the License is distributed on an "AS IS" BASIS,
14
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+
19
+ syntax = "proto3" ;
20
+
21
+ message GetTriggerPoliciesListReply {
22
+ repeated string trigger_policies_names = 1 ;
23
+ }
Original file line number Diff line number Diff line change
1
+ //
2
+ // This file is part of Astarte.
3
+ //
4
+ // Copyright 2022 SECO Mind Srl
5
+ //
6
+ // Licensed under the Apache License, Version 2.0 (the "License");
7
+ // you may not use this file except in compliance with the License.
8
+ // You may obtain a copy of the License at
9
+ //
10
+ // http://www.apache.org/licenses/LICENSE-2.0
11
+ //
12
+ // Unless required by applicable law or agreed to in writing, software
13
+ // distributed under the License is distributed on an "AS IS" BASIS,
14
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+
19
+ syntax = "proto3" ;
20
+
21
+ message GetTriggerPolicySource {
22
+ string realm_name = 1 ;
23
+ string trigger_policy_name = 2 ;
24
+ }
Original file line number Diff line number Diff line change
1
+ //
2
+ // This file is part of Astarte.
3
+ //
4
+ // Copyright 2022 SECO Mind Srl
5
+ //
6
+ // Licensed under the Apache License, Version 2.0 (the "License");
7
+ // you may not use this file except in compliance with the License.
8
+ // You may obtain a copy of the License at
9
+ //
10
+ // http://www.apache.org/licenses/LICENSE-2.0
11
+ //
12
+ // Unless required by applicable law or agreed to in writing, software
13
+ // distributed under the License is distributed on an "AS IS" BASIS,
14
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+
19
+ syntax = "proto3" ;
20
+
21
+ message GetTriggerPolicySourceReply {
22
+ string source = 1 ;
23
+ }
Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ message InstallTrigger {
22
22
string realm_name = 1 ;
23
23
string trigger_name = 2 ;
24
24
bytes action = 3 ;
25
-
26
25
repeated bytes serialized_tagged_simple_triggers = 4 ;
26
+ string trigger_policy = 5 ;
27
27
}
Original file line number Diff line number Diff line change
1
+ //
2
+ // This file is part of Astarte.
3
+ //
4
+ // Copyright 2022 SECO Mind Srl
5
+ //
6
+ // Licensed under the Apache License, Version 2.0 (the "License");
7
+ // you may not use this file except in compliance with the License.
8
+ // You may obtain a copy of the License at
9
+ //
10
+ // http://www.apache.org/licenses/LICENSE-2.0
11
+ //
12
+ // Unless required by applicable law or agreed to in writing, software
13
+ // distributed under the License is distributed on an "AS IS" BASIS,
14
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+
19
+ syntax = "proto3" ;
20
+
21
+ message InstallTriggerPolicy {
22
+ string realm_name = 1 ;
23
+ string trigger_policy_json = 2 ;
24
+ bool async_operation = 3 ;
25
+ }
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ import "get_jwt_public_key_pem_reply.proto";
27
27
import "get_trigger_reply.proto" ;
28
28
import "get_triggers_list_reply.proto" ;
29
29
import "get_health_reply.proto" ;
30
+ import "get_trigger_policies_list_reply.proto" ;
31
+ import "get_trigger_policy_source_reply.proto" ;
30
32
31
33
32
34
message Reply {
@@ -43,5 +45,7 @@ message Reply {
43
45
GetTriggerReply get_trigger_reply = 9 ;
44
46
GetTriggersListReply get_triggers_list_reply = 10 ;
45
47
GetHealthReply get_health_reply = 11 ;
48
+ GetTriggerPoliciesListReply get_trigger_policies_list_reply = 12 ;
49
+ GetTriggerPolicySourceReply get_trigger_policy_source_reply = 13 ;
46
50
}
47
51
}
You can’t perform that action at this time.
0 commit comments