files.com 1.0.364 → 1.0.366
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/automation.md +9 -9
- data/docs/email_incoming_message.md +44 -0
- data/lib/files.com/models/automation.rb +5 -5
- data/lib/files.com/models/email_incoming_message.rb +72 -0
- data/lib/files.com.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60e6271fa87da5e823cd6fd1c56d41d0b74202af205ddc4e2c808d4db8e0200a
|
4
|
+
data.tar.gz: a997581f3e868a63df1323df5ebf464a68b1d8fe00de292cec640c86e6d62699
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c048322210e606a7af4c61b3def08e405bfe71949ba6f7ec90730514f236cf39a8382e36e692cf1d45996373c197ab023f4cd082b41c9fe6bf25b87a31be6a0
|
7
|
+
data.tar.gz: 15eeaa41c0597ba716254833a37f58b83780fb7d2c09191c7d973135b617fa75e7bfed66046b36ebf436d0b64e5c24ca84d719406c8f9ebc819c822d01b2cee0
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.366
|
data/docs/automation.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
"automation": "create_folder",
|
9
9
|
"deleted": true,
|
10
10
|
"disabled": true,
|
11
|
-
"trigger": "
|
11
|
+
"trigger": "daily",
|
12
12
|
"interval": "week",
|
13
13
|
"last_modified_at": "2000-01-01T01:00:00Z",
|
14
14
|
"name": "example",
|
@@ -49,13 +49,13 @@
|
|
49
49
|
* `automation` (string): Automation type
|
50
50
|
* `deleted` (boolean): Indicates if the automation has been deleted.
|
51
51
|
* `disabled` (boolean): If true, this automation will not run.
|
52
|
-
* `trigger` (string): How this automation is triggered to run.
|
52
|
+
* `trigger` (string): How this automation is triggered to run.
|
53
53
|
* `interval` (string): If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
54
54
|
* `last_modified_at` (date-time): Time when automation was last modified. Does not change for name or description updates.
|
55
55
|
* `name` (string): Name for this automation.
|
56
56
|
* `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
|
57
57
|
* `source` (string): Source Path
|
58
|
-
* `destinations` (array): Destination
|
58
|
+
* `destinations` (array): Destination Paths
|
59
59
|
* `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
60
60
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
61
61
|
* `description` (string): Description for the this Automation.
|
@@ -127,7 +127,7 @@ Files::Automation.create(
|
|
127
127
|
description: "example",
|
128
128
|
disabled: true,
|
129
129
|
name: "example",
|
130
|
-
trigger: "
|
130
|
+
trigger: "daily",
|
131
131
|
trigger_actions: ["create"],
|
132
132
|
value: {"limit":"1"},
|
133
133
|
recurring_day: 25,
|
@@ -151,7 +151,7 @@ Files::Automation.create(
|
|
151
151
|
* `description` (string): Description for the this Automation.
|
152
152
|
* `disabled` (boolean): If true, this automation will not run.
|
153
153
|
* `name` (string): Name for this automation.
|
154
|
-
* `trigger` (string): How this automation is triggered to run.
|
154
|
+
* `trigger` (string): How this automation is triggered to run.
|
155
155
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
156
156
|
* `value` (object): A Hash of attributes specific to the automation type.
|
157
157
|
* `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
@@ -190,7 +190,7 @@ Files::Automation.update(id,
|
|
190
190
|
description: "example",
|
191
191
|
disabled: true,
|
192
192
|
name: "example",
|
193
|
-
trigger: "
|
193
|
+
trigger: "daily",
|
194
194
|
trigger_actions: ["create"],
|
195
195
|
value: {"limit":"1"},
|
196
196
|
recurring_day: 25,
|
@@ -215,7 +215,7 @@ Files::Automation.update(id,
|
|
215
215
|
* `description` (string): Description for the this Automation.
|
216
216
|
* `disabled` (boolean): If true, this automation will not run.
|
217
217
|
* `name` (string): Name for this automation.
|
218
|
-
* `trigger` (string): How this automation is triggered to run.
|
218
|
+
* `trigger` (string): How this automation is triggered to run.
|
219
219
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
220
220
|
* `value` (object): A Hash of attributes specific to the automation type.
|
221
221
|
* `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
@@ -271,7 +271,7 @@ automation.update(
|
|
271
271
|
description: "example",
|
272
272
|
disabled: true,
|
273
273
|
name: "example",
|
274
|
-
trigger: "
|
274
|
+
trigger: "daily",
|
275
275
|
trigger_actions: ["create"],
|
276
276
|
value: {"limit":"1"},
|
277
277
|
recurring_day: 25,
|
@@ -296,7 +296,7 @@ automation.update(
|
|
296
296
|
* `description` (string): Description for the this Automation.
|
297
297
|
* `disabled` (boolean): If true, this automation will not run.
|
298
298
|
* `name` (string): Name for this automation.
|
299
|
-
* `trigger` (string): How this automation is triggered to run.
|
299
|
+
* `trigger` (string): How this automation is triggered to run.
|
300
300
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
301
301
|
* `value` (object): A Hash of attributes specific to the automation type.
|
302
302
|
* `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# EmailIncomingMessage
|
2
|
+
|
3
|
+
## Example EmailIncomingMessage Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"inbox_id": 1,
|
9
|
+
"sender": "example",
|
10
|
+
"status": "success",
|
11
|
+
"message": "example",
|
12
|
+
"created_at": "2000-01-01T01:00:00Z"
|
13
|
+
}
|
14
|
+
```
|
15
|
+
|
16
|
+
* `id` (int64): Id of the Email Incoming Message
|
17
|
+
* `inbox_id` (int64): Id of the Inbox associated with this message
|
18
|
+
* `sender` (string): Sender of the email
|
19
|
+
* `status` (string): Status of the message
|
20
|
+
* `message` (string): Message describing the failure
|
21
|
+
* `created_at` (date-time): Message creation date/time
|
22
|
+
|
23
|
+
|
24
|
+
---
|
25
|
+
|
26
|
+
## List Email Incoming Messages
|
27
|
+
|
28
|
+
```
|
29
|
+
Files::EmailIncomingMessage.list(
|
30
|
+
per_page: 1
|
31
|
+
)
|
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 (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at`, `sender`, `status` or `inbox_id`.
|
39
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ sender, created_at ]`, `[ status, created_at ]`, `[ inbox_id, created_at ]`, `[ inbox_id, status, created_at ]` or `[ inbox_id, status, sender, created_at ]`.
|
40
|
+
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
41
|
+
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
42
|
+
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `sender`.
|
43
|
+
* `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
44
|
+
* `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
@@ -45,7 +45,7 @@ module Files
|
|
45
45
|
@attributes[:disabled] = value
|
46
46
|
end
|
47
47
|
|
48
|
-
# string - How this automation is triggered to run.
|
48
|
+
# string - How this automation is triggered to run.
|
49
49
|
def trigger
|
50
50
|
@attributes[:trigger]
|
51
51
|
end
|
@@ -99,7 +99,7 @@ module Files
|
|
99
99
|
@attributes[:source] = value
|
100
100
|
end
|
101
101
|
|
102
|
-
# array - Destination
|
102
|
+
# array - Destination Paths
|
103
103
|
def destinations
|
104
104
|
@attributes[:destinations]
|
105
105
|
end
|
@@ -251,7 +251,7 @@ module Files
|
|
251
251
|
# description - string - Description for the this Automation.
|
252
252
|
# disabled - boolean - If true, this automation will not run.
|
253
253
|
# name - string - Name for this automation.
|
254
|
-
# trigger - string - How this automation is triggered to run.
|
254
|
+
# trigger - string - How this automation is triggered to run.
|
255
255
|
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
256
256
|
# value - object - A Hash of attributes specific to the automation type.
|
257
257
|
# recurring_day - int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
@@ -365,7 +365,7 @@ module Files
|
|
365
365
|
# description - string - Description for the this Automation.
|
366
366
|
# disabled - boolean - If true, this automation will not run.
|
367
367
|
# name - string - Name for this automation.
|
368
|
-
# trigger - string - How this automation is triggered to run.
|
368
|
+
# trigger - string - How this automation is triggered to run.
|
369
369
|
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
370
370
|
# value - object - A Hash of attributes specific to the automation type.
|
371
371
|
# recurring_day - int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
@@ -421,7 +421,7 @@ module Files
|
|
421
421
|
# description - string - Description for the this Automation.
|
422
422
|
# disabled - boolean - If true, this automation will not run.
|
423
423
|
# name - string - Name for this automation.
|
424
|
-
# trigger - string - How this automation is triggered to run.
|
424
|
+
# trigger - string - How this automation is triggered to run.
|
425
425
|
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
426
426
|
# value - object - A Hash of attributes specific to the automation type.
|
427
427
|
# recurring_day - int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Files
|
4
|
+
class EmailIncomingMessage
|
5
|
+
attr_reader :options, :attributes
|
6
|
+
|
7
|
+
def initialize(attributes = {}, options = {})
|
8
|
+
@attributes = attributes || {}
|
9
|
+
@options = options || {}
|
10
|
+
end
|
11
|
+
|
12
|
+
# int64 - Id of the Email Incoming Message
|
13
|
+
def id
|
14
|
+
@attributes[:id]
|
15
|
+
end
|
16
|
+
|
17
|
+
# int64 - Id of the Inbox associated with this message
|
18
|
+
def inbox_id
|
19
|
+
@attributes[:inbox_id]
|
20
|
+
end
|
21
|
+
|
22
|
+
# string - Sender of the email
|
23
|
+
def sender
|
24
|
+
@attributes[:sender]
|
25
|
+
end
|
26
|
+
|
27
|
+
# string - Status of the message
|
28
|
+
def status
|
29
|
+
@attributes[:status]
|
30
|
+
end
|
31
|
+
|
32
|
+
# string - Message describing the failure
|
33
|
+
def message
|
34
|
+
@attributes[:message]
|
35
|
+
end
|
36
|
+
|
37
|
+
# date-time - Message creation date/time
|
38
|
+
def created_at
|
39
|
+
@attributes[:created_at]
|
40
|
+
end
|
41
|
+
|
42
|
+
# Parameters:
|
43
|
+
# 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.
|
44
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
45
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at`, `sender`, `status` or `inbox_id`.
|
46
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ sender, created_at ]`, `[ status, created_at ]`, `[ inbox_id, created_at ]`, `[ inbox_id, status, created_at ]` or `[ inbox_id, status, sender, created_at ]`.
|
47
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
48
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
49
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `sender`.
|
50
|
+
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
51
|
+
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
52
|
+
def self.list(params = {}, options = {})
|
53
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
54
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
55
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
56
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
57
|
+
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
|
58
|
+
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
59
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
60
|
+
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
|
61
|
+
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
|
62
|
+
|
63
|
+
List.new(EmailIncomingMessage, params) do
|
64
|
+
Api.send_request("/email_incoming_messages", :get, params, options)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def self.all(params = {}, options = {})
|
69
|
+
list(params, options)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
data/lib/files.com.rb
CHANGED
@@ -55,6 +55,7 @@ require "files.com/models/bundle_recipient"
|
|
55
55
|
require "files.com/models/bundle_registration"
|
56
56
|
require "files.com/models/clickwrap"
|
57
57
|
require "files.com/models/dns_record"
|
58
|
+
require "files.com/models/email_incoming_message"
|
58
59
|
require "files.com/models/errors"
|
59
60
|
require "files.com/models/external_event"
|
60
61
|
require "files.com/models/file"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.366
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- docs/bundle_registration.md
|
138
138
|
- docs/clickwrap.md
|
139
139
|
- docs/dns_record.md
|
140
|
+
- docs/email_incoming_message.md
|
140
141
|
- docs/errors.md
|
141
142
|
- docs/external_event.md
|
142
143
|
- docs/file.md
|
@@ -225,6 +226,7 @@ files:
|
|
225
226
|
- lib/files.com/models/clickwrap.rb
|
226
227
|
- lib/files.com/models/dir.rb
|
227
228
|
- lib/files.com/models/dns_record.rb
|
229
|
+
- lib/files.com/models/email_incoming_message.rb
|
228
230
|
- lib/files.com/models/errors.rb
|
229
231
|
- lib/files.com/models/external_event.rb
|
230
232
|
- lib/files.com/models/file.rb
|