Skip to content

Commit 5d59fdd

Browse files
committed
feat: add device deletion finished event
protoc --elixir_out=. --elixir_opt=package_prefix=astarte.core.triggers.simple_events lib/astarte_core/triggers/simple_events/*.proto Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>
1 parent ef4f288 commit 5d59fdd

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
defmodule Astarte.Core.Triggers.SimpleEvents.DeviceDeletionFinishedEvent do
2+
@moduledoc false
3+
4+
use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
5+
end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// This file is part of Astarte.
3+
//
4+
// Copyright 2025 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 DeviceDeletionFinishedEvent {
22+
}

lib/astarte_core/triggers/simple_events/simple_event.pb.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,9 @@ defmodule Astarte.Core.Triggers.SimpleEvents.SimpleEvent do
7676
type: Astarte.Core.Triggers.SimpleEvents.DeviceErrorEvent,
7777
json_name: "deviceErrorEvent",
7878
oneof: 0
79+
80+
field :device_deletion_finished_event, 22,
81+
type: Astarte.Core.Triggers.SimpleEvents.DeviceDeletionFinishedEvent,
82+
json_name: "deviceDeletionFinishedEvent",
83+
oneof: 0
7984
end

lib/astarte_core/triggers/simple_events/simple_event.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// This file is part of Astarte.
33
//
4-
// Copyright 2017 Ispirata Srl
4+
// Copyright 2017 - 2025 SECO Mind Srl
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@ syntax = "proto3";
2020

2121
import "lib/astarte_core/triggers/simple_events/device_connected_event.proto";
2222
import "lib/astarte_core/triggers/simple_events/device_disconnected_event.proto";
23+
import "lib/astarte_core/triggers/simple_events/device_deletion_finished_event.proto";
2324
import "lib/astarte_core/triggers/simple_events/device_error_event.proto";
2425
import "lib/astarte_core/triggers/simple_events/incoming_data_event.proto";
2526
import "lib/astarte_core/triggers/simple_events/value_change_event.proto";
@@ -56,5 +57,6 @@ message SimpleEvent {
5657
InterfaceRemovedEvent interface_removed_event = 16;
5758
InterfaceMinorUpdatedEvent interface_minor_updated_event = 17;
5859
DeviceErrorEvent device_error_event = 19;
60+
DeviceDeletionFinishedEvent device_deletion_finished_event = 22;
5961
}
6062
}

0 commit comments

Comments
 (0)