-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathfile_delete_event.rb
More file actions
44 lines (38 loc) · 1.33 KB
/
file_delete_event.rb
File metadata and controls
44 lines (38 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# frozen_string_literal: true
module Imagekitio
module Models
class FileDeleteEvent < Imagekitio::Models::BaseWebhookEvent
# @!attribute created_at
# Timestamp of when the event occurred in ISO8601 format.
#
# @return [Time]
required :created_at, Time
# @!attribute data
#
# @return [Imagekitio::Models::FileDeleteEvent::Data]
required :data, -> { Imagekitio::FileDeleteEvent::Data }
# @!attribute type
# Type of the webhook event.
#
# @return [Symbol, :"file.deleted"]
required :type, const: :"file.deleted"
# @!method initialize(created_at:, data:, type: :"file.deleted")
# Triggered when a file is deleted.
#
# @param created_at [Time] Timestamp of when the event occurred in ISO8601 format.
#
# @param data [Imagekitio::Models::FileDeleteEvent::Data]
#
# @param type [Symbol, :"file.deleted"] Type of the webhook event.
class Data < Imagekitio::Internal::Type::BaseModel
# @!attribute file_id
# The unique `fileId` of the deleted file.
#
# @return [String]
required :file_id, String, api_name: :fileId
# @!method initialize(file_id:)
# @param file_id [String] The unique `fileId` of the deleted file.
end
end
end
end