files.com 1.1.621 → 1.1.623

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb86e99a91ed94affab09f8054be848e7e490c25eebbf6467bb204a00586b1db
4
- data.tar.gz: 1bfff0ba5b6afa49059bc33f9afa74b5e8eaf2fd2c8f32d679071f3893852894
3
+ metadata.gz: da9684b774fab5eedcdc1d418b70c1400f36d2d8b23c29f665103a62921dc37a
4
+ data.tar.gz: 6d44874b087627b5bd185fdc1bde86ba795d6fc85952c5b1cd2a27d5c3e61402
5
5
  SHA512:
6
- metadata.gz: 03fe08b3bdb8f311961eb404adf0ac8b39ae6143d009a48c7dbbb1c2449a4d1fe15eed523e858c2c7de12318bc09a45cd832be3cf1ae43e94c2309392147e908
7
- data.tar.gz: 1529d62c92c75b12f9008f394f46d0f105bb5927353920e2144f2afb7ef4108ffd5a48cc3d15942737c3d6a7678387772bd4972e25a3dd73cbe57a861b6637e0
6
+ metadata.gz: a8ad17c3f37e006bf7ab08722d22ceaf1220049f7999dd4e87b0dc7f755046601cd7cc1a981de15aba0232a0ad9a47af62103a24148da93eaf3f49ced140cf2a
7
+ data.tar.gz: e495a099ebc37896d07d85b0f074f07dd5edd69f40c1a097f8e879ab64a5d4b72817f5c234780c568a7151d140b83edc808b9788bc06c2549b1630e80b7edc80
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.621
1
+ 1.1.623
@@ -0,0 +1,147 @@
1
+ # EventChannel
2
+
3
+ ## Example EventChannel Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "name": "example",
9
+ "description": "example",
10
+ "enabled": true,
11
+ "default_channel": true,
12
+ "created_at": "2000-01-01T01:00:00Z",
13
+ "updated_at": "2000-01-01T01:00:00Z"
14
+ }
15
+ ```
16
+
17
+ * `id` (int64): Event Channel ID
18
+ * `name` (string): Event Channel name.
19
+ * `description` (string): Event Channel description.
20
+ * `enabled` (boolean): Whether this Event Channel can dispatch events.
21
+ * `default_channel` (boolean): Whether this Event Channel is the default destination for newly published events.
22
+ * `created_at` (date-time): Event Channel create date/time.
23
+ * `updated_at` (date-time): Event Channel update date/time.
24
+
25
+
26
+ ---
27
+
28
+ ## List Event Channels
29
+
30
+ ```
31
+ Files::EventChannel.list
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
37
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
38
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `enabled` and `default_channel`.
39
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled` and `default_channel`.
40
+
41
+
42
+ ---
43
+
44
+ ## Show Event Channel
45
+
46
+ ```
47
+ Files::EventChannel.find(id)
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+ * `id` (int64): Required - Event Channel ID.
53
+
54
+
55
+ ---
56
+
57
+ ## Create Event Channel
58
+
59
+ ```
60
+ Files::EventChannel.create(
61
+ name: "example",
62
+ description: "example",
63
+ enabled: true,
64
+ default_channel: true
65
+ )
66
+ ```
67
+
68
+ ### Parameters
69
+
70
+ * `name` (string): Required - Event Channel name.
71
+ * `description` (string): Event Channel description.
72
+ * `enabled` (boolean): Whether this Event Channel can dispatch events.
73
+ * `default_channel` (boolean): Whether this Event Channel is the default destination for newly published events.
74
+
75
+
76
+ ---
77
+
78
+ ## Update Event Channel
79
+
80
+ ```
81
+ Files::EventChannel.update(id,
82
+ name: "example",
83
+ description: "example",
84
+ enabled: true,
85
+ default_channel: true
86
+ )
87
+ ```
88
+
89
+ ### Parameters
90
+
91
+ * `id` (int64): Required - Event Channel ID.
92
+ * `name` (string): Event Channel name.
93
+ * `description` (string): Event Channel description.
94
+ * `enabled` (boolean): Whether this Event Channel can dispatch events.
95
+ * `default_channel` (boolean): Whether this Event Channel is the default destination for newly published events.
96
+
97
+
98
+ ---
99
+
100
+ ## Delete Event Channel
101
+
102
+ ```
103
+ Files::EventChannel.delete(id)
104
+ ```
105
+
106
+ ### Parameters
107
+
108
+ * `id` (int64): Required - Event Channel ID.
109
+
110
+
111
+ ---
112
+
113
+ ## Update Event Channel
114
+
115
+ ```
116
+ event_channel = Files::EventChannel.find(id)
117
+
118
+ event_channel.update(
119
+ name: "example",
120
+ description: "example",
121
+ enabled: true,
122
+ default_channel: true
123
+ )
124
+ ```
125
+
126
+ ### Parameters
127
+
128
+ * `id` (int64): Required - Event Channel ID.
129
+ * `name` (string): Event Channel name.
130
+ * `description` (string): Event Channel description.
131
+ * `enabled` (boolean): Whether this Event Channel can dispatch events.
132
+ * `default_channel` (boolean): Whether this Event Channel is the default destination for newly published events.
133
+
134
+
135
+ ---
136
+
137
+ ## Delete Event Channel
138
+
139
+ ```
140
+ event_channel = Files::EventChannel.find(id)
141
+
142
+ event_channel.delete
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ * `id` (int64): Required - Event Channel ID.
@@ -0,0 +1,68 @@
1
+ # EventDeliveryAttempt
2
+
3
+ ## Example EventDeliveryAttempt Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "event_record_id": 1,
9
+ "event_subscription_id": 1,
10
+ "event_target_id": 1,
11
+ "workspace_id": 1,
12
+ "status": "example",
13
+ "attempt_number": 1,
14
+ "response_code": 1,
15
+ "error_message": "example",
16
+ "response_body": "example",
17
+ "latency_ms": 1,
18
+ "delivered_at": "2000-01-01T01:00:00Z",
19
+ "last_attempted_at": "2000-01-01T01:00:00Z",
20
+ "next_attempt_at": "2000-01-01T01:00:00Z",
21
+ "created_at": "2000-01-01T01:00:00Z"
22
+ }
23
+ ```
24
+
25
+ * `id` (int64): Event Delivery Attempt ID
26
+ * `event_record_id` (int64): Event Record ID
27
+ * `event_subscription_id` (int64): Event Subscription ID
28
+ * `event_target_id` (int64): Event Target ID
29
+ * `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
30
+ * `status` (string): Delivery status.
31
+ * `attempt_number` (int64): Number of delivery attempts made.
32
+ * `response_code` (int64): HTTP response code, if applicable.
33
+ * `error_message` (string): Delivery error message, if applicable.
34
+ * `response_body` (string): Delivery response body, if applicable.
35
+ * `latency_ms` (int64): Delivery latency in milliseconds.
36
+ * `delivered_at` (date-time): Successful delivery date/time.
37
+ * `last_attempted_at` (date-time): Most recent attempt date/time.
38
+ * `next_attempt_at` (date-time): Next scheduled attempt date/time.
39
+ * `created_at` (date-time): Delivery Attempt create date/time.
40
+
41
+
42
+ ---
43
+
44
+ ## List Event Delivery Attempts
45
+
46
+ ```
47
+ Files::EventDeliveryAttempt.list
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
53
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
54
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `status`, `event_record_id`, `event_target_id` or `workspace_id`.
55
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id`, `event_record_id` or `event_target_id`. Valid field combinations are `[ workspace_id, status ]`, `[ workspace_id, event_record_id ]` or `[ workspace_id, event_target_id ]`.
56
+
57
+
58
+ ---
59
+
60
+ ## Show Event Delivery Attempt
61
+
62
+ ```
63
+ Files::EventDeliveryAttempt.find(id)
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ * `id` (int64): Required - Event Delivery Attempt ID.
@@ -0,0 +1,77 @@
1
+ # EventRecord
2
+
3
+ ## Example EventRecord Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "workspace_id": 1,
9
+ "event_uuid": "example",
10
+ "event_type": "example",
11
+ "severity": "example",
12
+ "source_type": "example",
13
+ "source_id": 1,
14
+ "occurred_at": "2000-01-01T01:00:00Z",
15
+ "human_title": "example",
16
+ "human_summary": "example",
17
+ "human_fields": [
18
+ "example"
19
+ ],
20
+ "actor": "example",
21
+ "resources": [
22
+ "example"
23
+ ],
24
+ "payload": "example",
25
+ "created_at": "2000-01-01T01:00:00Z"
26
+ }
27
+ ```
28
+
29
+ * `id` (int64): Event Record ID
30
+ * `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
31
+ * `event_uuid` (string): Stable event UUID.
32
+ * `event_type` (string): Versioned event type string.
33
+ * `severity` (string): Event severity.
34
+ * `source_type` (string): Source record type.
35
+ * `source_id` (int64): Source record ID.
36
+ * `occurred_at` (date-time): Event occurrence date/time.
37
+ * `human_title` (string): Human-readable event title.
38
+ * `human_summary` (string): Human-readable event summary.
39
+ * `human_fields` (array(object)): Human-readable event detail fields.
40
+ * `actor` (object): Actor associated with the event.
41
+ * `resources` (array(object)): Resources associated with the event.
42
+ * `payload` (object): Event payload.
43
+ * `created_at` (date-time): Event Record create date/time.
44
+
45
+
46
+ ---
47
+
48
+ ## List Event Records
49
+
50
+ ```
51
+ Files::EventRecord.list
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
57
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
58
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `event_type`, `created_at` or `workspace_id`.
59
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type` or `workspace_id`. Valid field combinations are `[ event_type, created_at ]`, `[ workspace_id, created_at ]`, `[ workspace_id, event_type ]` or `[ workspace_id, event_type, created_at ]`.
60
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
61
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
62
+ * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `event_type`.
63
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
64
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
65
+
66
+
67
+ ---
68
+
69
+ ## Show Event Record
70
+
71
+ ```
72
+ Files::EventRecord.find(id)
73
+ ```
74
+
75
+ ### Parameters
76
+
77
+ * `id` (int64): Required - Event Record ID.
@@ -0,0 +1,188 @@
1
+ # EventSubscription
2
+
3
+ ## Example EventSubscription Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "event_channel_id": 1,
9
+ "workspace_id": 1,
10
+ "apply_to_all_workspaces": true,
11
+ "name": "example",
12
+ "enabled": true,
13
+ "event_types": [
14
+ "example"
15
+ ],
16
+ "filter": "example",
17
+ "delivery_policy": "example",
18
+ "event_target_ids": [
19
+ 1
20
+ ],
21
+ "created_at": "2000-01-01T01:00:00Z",
22
+ "updated_at": "2000-01-01T01:00:00Z"
23
+ }
24
+ ```
25
+
26
+ * `id` (int64): Event Subscription ID
27
+ * `event_channel_id` (int64): Event Channel ID
28
+ * `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
29
+ * `apply_to_all_workspaces` (boolean): If true, this default-workspace subscription applies to events from all workspaces.
30
+ * `name` (string): Event Subscription name.
31
+ * `enabled` (boolean): Whether this Event Subscription can dispatch events.
32
+ * `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types.
33
+ * `filter` (object): Structured event payload filter.
34
+ * `delivery_policy` (object): Event Subscription delivery policy.
35
+ * `event_target_ids` (array(int64)): Event Target IDs this subscription sends to.
36
+ * `created_at` (date-time): Event Subscription create date/time.
37
+ * `updated_at` (date-time): Event Subscription update date/time.
38
+
39
+
40
+ ---
41
+
42
+ ## List Event Subscriptions
43
+
44
+ ```
45
+ Files::EventSubscription.list
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
51
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
52
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `enabled`, `event_channel_id` or `workspace_id`.
53
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled`, `event_channel_id` or `workspace_id`. Valid field combinations are `[ enabled, event_channel_id ]`, `[ workspace_id, enabled ]` or `[ workspace_id, enabled, event_channel_id ]`.
54
+
55
+
56
+ ---
57
+
58
+ ## Show Event Subscription
59
+
60
+ ```
61
+ Files::EventSubscription.find(id)
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ * `id` (int64): Required - Event Subscription ID.
67
+
68
+
69
+ ---
70
+
71
+ ## Create Event Subscription
72
+
73
+ ```
74
+ Files::EventSubscription.create(
75
+ event_channel_id: 1,
76
+ workspace_id: 1,
77
+ apply_to_all_workspaces: true,
78
+ name: "example",
79
+ enabled: true,
80
+ event_types: ["example"],
81
+ delivery_policy: "example",
82
+ event_target_ids: [1]
83
+ )
84
+ ```
85
+
86
+ ### Parameters
87
+
88
+ * `event_channel_id` (int64): Event Channel ID
89
+ * `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
90
+ * `apply_to_all_workspaces` (boolean): If true, this default-workspace subscription applies to events from all workspaces.
91
+ * `name` (string): Required - Event Subscription name.
92
+ * `enabled` (boolean): Whether this Event Subscription can dispatch events.
93
+ * `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types.
94
+ * `filter` (object): Structured event payload filter.
95
+ * `delivery_policy` (object): Event Subscription delivery policy.
96
+ * `event_target_ids` (array(int64)): Event Target IDs this subscription sends to.
97
+
98
+
99
+ ---
100
+
101
+ ## Update Event Subscription
102
+
103
+ ```
104
+ Files::EventSubscription.update(id,
105
+ event_channel_id: 1,
106
+ workspace_id: 1,
107
+ apply_to_all_workspaces: true,
108
+ name: "example",
109
+ enabled: true,
110
+ event_types: ["example"],
111
+ delivery_policy: "example",
112
+ event_target_ids: [1]
113
+ )
114
+ ```
115
+
116
+ ### Parameters
117
+
118
+ * `id` (int64): Required - Event Subscription ID.
119
+ * `event_channel_id` (int64): Event Channel ID
120
+ * `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
121
+ * `apply_to_all_workspaces` (boolean): If true, this default-workspace subscription applies to events from all workspaces.
122
+ * `name` (string): Event Subscription name.
123
+ * `enabled` (boolean): Whether this Event Subscription can dispatch events.
124
+ * `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types.
125
+ * `filter` (object): Structured event payload filter.
126
+ * `delivery_policy` (object): Event Subscription delivery policy.
127
+ * `event_target_ids` (array(int64)): Event Target IDs this subscription sends to.
128
+
129
+
130
+ ---
131
+
132
+ ## Delete Event Subscription
133
+
134
+ ```
135
+ Files::EventSubscription.delete(id)
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+ * `id` (int64): Required - Event Subscription ID.
141
+
142
+
143
+ ---
144
+
145
+ ## Update Event Subscription
146
+
147
+ ```
148
+ event_subscription = Files::EventSubscription.find(id)
149
+
150
+ event_subscription.update(
151
+ event_channel_id: 1,
152
+ workspace_id: 1,
153
+ apply_to_all_workspaces: true,
154
+ name: "example",
155
+ enabled: true,
156
+ event_types: ["example"],
157
+ delivery_policy: "example",
158
+ event_target_ids: [1]
159
+ )
160
+ ```
161
+
162
+ ### Parameters
163
+
164
+ * `id` (int64): Required - Event Subscription ID.
165
+ * `event_channel_id` (int64): Event Channel ID
166
+ * `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
167
+ * `apply_to_all_workspaces` (boolean): If true, this default-workspace subscription applies to events from all workspaces.
168
+ * `name` (string): Event Subscription name.
169
+ * `enabled` (boolean): Whether this Event Subscription can dispatch events.
170
+ * `event_types` (array(string)): Event type strings matched by this subscription. Blank means all event types.
171
+ * `filter` (object): Structured event payload filter.
172
+ * `delivery_policy` (object): Event Subscription delivery policy.
173
+ * `event_target_ids` (array(int64)): Event Target IDs this subscription sends to.
174
+
175
+
176
+ ---
177
+
178
+ ## Delete Event Subscription
179
+
180
+ ```
181
+ event_subscription = Files::EventSubscription.find(id)
182
+
183
+ event_subscription.delete
184
+ ```
185
+
186
+ ### Parameters
187
+
188
+ * `id` (int64): Required - Event Subscription ID.
@@ -0,0 +1,171 @@
1
+ # EventTarget
2
+
3
+ ## Example EventTarget Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "name": "example",
9
+ "target_type": "example",
10
+ "workspace_id": 1,
11
+ "apply_to_all_workspaces": true,
12
+ "enabled": true,
13
+ "config": "example",
14
+ "delivery_policy": "example",
15
+ "created_at": "2000-01-01T01:00:00Z",
16
+ "updated_at": "2000-01-01T01:00:00Z"
17
+ }
18
+ ```
19
+
20
+ * `id` (int64): Event Target ID
21
+ * `name` (string): Event Target name.
22
+ * `target_type` (string): Event Target type.
23
+ * `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
24
+ * `apply_to_all_workspaces` (boolean): If true, this default-workspace target can receive events from all workspaces.
25
+ * `enabled` (boolean): Whether this Event Target can receive events.
26
+ * `config` (object): Event Target configuration.
27
+ * `delivery_policy` (object): Event Target delivery policy. Email targets support batch_interval in seconds, between 600 and 86400.
28
+ * `created_at` (date-time): Event Target create date/time.
29
+ * `updated_at` (date-time): Event Target update date/time.
30
+
31
+
32
+ ---
33
+
34
+ ## List Event Targets
35
+
36
+ ```
37
+ Files::EventTarget.list
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
43
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
44
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `enabled` and `workspace_id`.
45
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled`, `target_type` or `workspace_id`. Valid field combinations are `[ enabled, target_type ]`, `[ workspace_id, enabled ]` or `[ workspace_id, enabled, target_type ]`.
46
+
47
+
48
+ ---
49
+
50
+ ## Show Event Target
51
+
52
+ ```
53
+ Files::EventTarget.find(id)
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+ * `id` (int64): Required - Event Target ID.
59
+
60
+
61
+ ---
62
+
63
+ ## Create Event Target
64
+
65
+ ```
66
+ Files::EventTarget.create(
67
+ name: "example",
68
+ workspace_id: 1,
69
+ apply_to_all_workspaces: true,
70
+ target_type: "example",
71
+ enabled: true,
72
+ config: "example",
73
+ delivery_policy: "example"
74
+ )
75
+ ```
76
+
77
+ ### Parameters
78
+
79
+ * `name` (string): Required - Event Target name.
80
+ * `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
81
+ * `apply_to_all_workspaces` (boolean): If true, this default-workspace target can receive events from all workspaces.
82
+ * `target_type` (string): Required - Event Target type.
83
+ * `enabled` (boolean): Whether this Event Target can receive events.
84
+ * `config` (object): Required - Event Target configuration.
85
+ * `delivery_policy` (object): Event Target delivery policy. Email targets support batch_interval in seconds, between 600 and 86400.
86
+
87
+
88
+ ---
89
+
90
+ ## Update Event Target
91
+
92
+ ```
93
+ Files::EventTarget.update(id,
94
+ name: "example",
95
+ workspace_id: 1,
96
+ apply_to_all_workspaces: true,
97
+ target_type: "example",
98
+ enabled: true,
99
+ config: "example",
100
+ delivery_policy: "example"
101
+ )
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ * `id` (int64): Required - Event Target ID.
107
+ * `name` (string): Event Target name.
108
+ * `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
109
+ * `apply_to_all_workspaces` (boolean): If true, this default-workspace target can receive events from all workspaces.
110
+ * `target_type` (string): Event Target type.
111
+ * `enabled` (boolean): Whether this Event Target can receive events.
112
+ * `config` (object): Event Target configuration.
113
+ * `delivery_policy` (object): Event Target delivery policy. Email targets support batch_interval in seconds, between 600 and 86400.
114
+
115
+
116
+ ---
117
+
118
+ ## Delete Event Target
119
+
120
+ ```
121
+ Files::EventTarget.delete(id)
122
+ ```
123
+
124
+ ### Parameters
125
+
126
+ * `id` (int64): Required - Event Target ID.
127
+
128
+
129
+ ---
130
+
131
+ ## Update Event Target
132
+
133
+ ```
134
+ event_target = Files::EventTarget.find(id)
135
+
136
+ event_target.update(
137
+ name: "example",
138
+ workspace_id: 1,
139
+ apply_to_all_workspaces: true,
140
+ target_type: "example",
141
+ enabled: true,
142
+ config: "example",
143
+ delivery_policy: "example"
144
+ )
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ * `id` (int64): Required - Event Target ID.
150
+ * `name` (string): Event Target name.
151
+ * `workspace_id` (int64): Workspace ID. 0 means the default workspace or site-wide.
152
+ * `apply_to_all_workspaces` (boolean): If true, this default-workspace target can receive events from all workspaces.
153
+ * `target_type` (string): Event Target type.
154
+ * `enabled` (boolean): Whether this Event Target can receive events.
155
+ * `config` (object): Event Target configuration.
156
+ * `delivery_policy` (object): Event Target delivery policy. Email targets support batch_interval in seconds, between 600 and 86400.
157
+
158
+
159
+ ---
160
+
161
+ ## Delete Event Target
162
+
163
+ ```
164
+ event_target = Files::EventTarget.find(id)
165
+
166
+ event_target.delete
167
+ ```
168
+
169
+ ### Parameters
170
+
171
+ * `id` (int64): Required - Event Target ID.