files.com 1.0.356 → 1.0.358
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 +0 -2
- data/docs/automation_run.md +1 -1
- data/docs/behavior.md +1 -3
- data/docs/bundle_notification.md +1 -3
- data/docs/notification.md +3 -3
- data/docs/remote_server.md +32 -4
- data/docs/settings_change.md +3 -4
- data/lib/files.com/models/automation.rb +0 -2
- data/lib/files.com/models/automation_run.rb +2 -2
- data/lib/files.com/models/behavior.rb +0 -2
- data/lib/files.com/models/bundle_notification.rb +0 -2
- data/lib/files.com/models/notification.rb +2 -2
- data/lib/files.com/models/remote_server.rb +60 -0
- data/lib/files.com/models/settings_change.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d458a822dfe627a3f63ec51ad97d110910c26645cf54e9c58017a25b7e354e7f
|
4
|
+
data.tar.gz: 5a32beb9642138bce11a22eb99313adaec2bd1227343dd2a725844061e6d1f86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0099d9d1d5a6c953b408cf9edd2ac6ccb294b3124c5799663be4521bba516fbcac8aeb46ce334d0fd17e15ee1bc87688affde5b48f41f77d02d29192b37c00b9'
|
7
|
+
data.tar.gz: cf38157d68e89d9856eaf1006ebf197d3e121cc21a61a83ff8c6c6f8dec9eb22fb40249972ee157fe39e9bb0203a544d7e0011357d4dd220e353e5250d1eefb6
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.358
|
data/docs/automation.md
CHANGED
@@ -78,7 +78,6 @@
|
|
78
78
|
```
|
79
79
|
Files::Automation.list(
|
80
80
|
per_page: 1,
|
81
|
-
automation: "create_folder",
|
82
81
|
with_deleted: true
|
83
82
|
)
|
84
83
|
```
|
@@ -88,7 +87,6 @@ Files::Automation.list(
|
|
88
87
|
* `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.
|
89
88
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
90
89
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
|
91
|
-
* `automation` (string): If set, return records where the specified field is equal to the supplied value.
|
92
90
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
|
93
91
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
|
94
92
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
|
data/docs/automation_run.md
CHANGED
@@ -39,8 +39,8 @@ Files::AutomationRun.list(
|
|
39
39
|
* `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.
|
40
40
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
41
41
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
42
|
-
* `automation_id` (int64): Required - ID of the associated Automation.
|
43
42
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
|
43
|
+
* `automation_id` (int64): Required - ID of the associated Automation.
|
44
44
|
|
45
45
|
|
46
46
|
---
|
data/docs/behavior.md
CHANGED
@@ -33,8 +33,7 @@
|
|
33
33
|
|
34
34
|
```
|
35
35
|
Files::Behavior.list(
|
36
|
-
per_page: 1
|
37
|
-
behavior: "webhook"
|
36
|
+
per_page: 1
|
38
37
|
)
|
39
38
|
```
|
40
39
|
|
@@ -43,7 +42,6 @@ Files::Behavior.list(
|
|
43
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.
|
44
43
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
45
44
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
|
46
|
-
* `behavior` (string): If set, return records where the specified field is equal to the supplied value.
|
47
45
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
48
46
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
49
47
|
|
data/docs/bundle_notification.md
CHANGED
@@ -26,8 +26,7 @@
|
|
26
26
|
```
|
27
27
|
Files::BundleNotification.list(
|
28
28
|
user_id: 1,
|
29
|
-
per_page: 1
|
30
|
-
bundle_id: 1
|
29
|
+
per_page: 1
|
31
30
|
)
|
32
31
|
```
|
33
32
|
|
@@ -37,7 +36,6 @@ Files::BundleNotification.list(
|
|
37
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.
|
38
37
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
39
38
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
40
|
-
* `bundle_id` (string): If set, return records where the specified field is equal to the supplied value.
|
41
39
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
42
40
|
|
43
41
|
|
data/docs/notification.md
CHANGED
@@ -68,8 +68,8 @@
|
|
68
68
|
Files::Notification.list(
|
69
69
|
user_id: 1,
|
70
70
|
per_page: 1,
|
71
|
-
|
72
|
-
|
71
|
+
include_ancestors: true,
|
72
|
+
group_id: 1
|
73
73
|
)
|
74
74
|
```
|
75
75
|
|
@@ -79,11 +79,11 @@ Files::Notification.list(
|
|
79
79
|
* `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.
|
80
80
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
81
81
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
|
82
|
-
* `group_id` (string): If set, return records where the specified field is equal to the supplied value.
|
83
82
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
84
83
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
85
84
|
* `path` (string): Show notifications for this Path.
|
86
85
|
* `include_ancestors` (boolean): If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
86
|
+
* `group_id` (string):
|
87
87
|
|
88
88
|
|
89
89
|
---
|
data/docs/remote_server.md
CHANGED
@@ -55,7 +55,10 @@
|
|
55
55
|
"cloudflare_bucket": "my-bucket",
|
56
56
|
"cloudflare_access_key": "example",
|
57
57
|
"cloudflare_endpoint": "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
58
|
-
"dropbox_teams": true
|
58
|
+
"dropbox_teams": true,
|
59
|
+
"linode_bucket": "my-bucket",
|
60
|
+
"linode_access_key": "example",
|
61
|
+
"linode_region": "us-east-1"
|
59
62
|
}
|
60
63
|
```
|
61
64
|
|
@@ -111,6 +114,9 @@
|
|
111
114
|
* `cloudflare_access_key` (string): Cloudflare Access Key.
|
112
115
|
* `cloudflare_endpoint` (string): Cloudflare endpoint
|
113
116
|
* `dropbox_teams` (boolean): List Team folders in root
|
117
|
+
* `linode_bucket` (string): Linode Bucket name
|
118
|
+
* `linode_access_key` (string): Linode Access Key.
|
119
|
+
* `linode_region` (string): Linode region
|
114
120
|
* `aws_secret_key` (string): AWS secret key.
|
115
121
|
* `password` (string): Password if needed.
|
116
122
|
* `private_key` (string): Private key if needed.
|
@@ -127,6 +133,7 @@
|
|
127
133
|
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
128
134
|
* `filebase_secret_key` (string): Filebase secret key
|
129
135
|
* `cloudflare_secret_key` (string): Cloudflare secret key
|
136
|
+
* `linode_secret_key` (string): Linode secret key
|
130
137
|
|
131
138
|
|
132
139
|
---
|
@@ -220,7 +227,10 @@ Files::RemoteServer.create(
|
|
220
227
|
cloudflare_access_key: "example",
|
221
228
|
cloudflare_bucket: "my-bucket",
|
222
229
|
cloudflare_endpoint: "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
223
|
-
dropbox_teams: true
|
230
|
+
dropbox_teams: true,
|
231
|
+
linode_access_key: "example",
|
232
|
+
linode_bucket: "my-bucket",
|
233
|
+
linode_region: "us-east-1"
|
224
234
|
)
|
225
235
|
```
|
226
236
|
|
@@ -285,6 +295,10 @@ Files::RemoteServer.create(
|
|
285
295
|
* `cloudflare_bucket` (string): Cloudflare Bucket name
|
286
296
|
* `cloudflare_endpoint` (string): Cloudflare endpoint
|
287
297
|
* `dropbox_teams` (boolean): List Team folders in root
|
298
|
+
* `linode_access_key` (string): Linode Access Key.
|
299
|
+
* `linode_secret_key` (string): Linode secret key
|
300
|
+
* `linode_bucket` (string): Linode Bucket name
|
301
|
+
* `linode_region` (string): Linode region
|
288
302
|
|
289
303
|
|
290
304
|
---
|
@@ -372,7 +386,10 @@ Files::RemoteServer.update(id,
|
|
372
386
|
cloudflare_access_key: "example",
|
373
387
|
cloudflare_bucket: "my-bucket",
|
374
388
|
cloudflare_endpoint: "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
375
|
-
dropbox_teams: true
|
389
|
+
dropbox_teams: true,
|
390
|
+
linode_access_key: "example",
|
391
|
+
linode_bucket: "my-bucket",
|
392
|
+
linode_region: "us-east-1"
|
376
393
|
)
|
377
394
|
```
|
378
395
|
|
@@ -438,6 +455,10 @@ Files::RemoteServer.update(id,
|
|
438
455
|
* `cloudflare_bucket` (string): Cloudflare Bucket name
|
439
456
|
* `cloudflare_endpoint` (string): Cloudflare endpoint
|
440
457
|
* `dropbox_teams` (boolean): List Team folders in root
|
458
|
+
* `linode_access_key` (string): Linode Access Key.
|
459
|
+
* `linode_secret_key` (string): Linode secret key
|
460
|
+
* `linode_bucket` (string): Linode Bucket name
|
461
|
+
* `linode_region` (string): Linode region
|
441
462
|
|
442
463
|
|
443
464
|
---
|
@@ -542,7 +563,10 @@ remote_server.update(
|
|
542
563
|
cloudflare_access_key: "example",
|
543
564
|
cloudflare_bucket: "my-bucket",
|
544
565
|
cloudflare_endpoint: "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
545
|
-
dropbox_teams: true
|
566
|
+
dropbox_teams: true,
|
567
|
+
linode_access_key: "example",
|
568
|
+
linode_bucket: "my-bucket",
|
569
|
+
linode_region: "us-east-1"
|
546
570
|
)
|
547
571
|
```
|
548
572
|
|
@@ -608,6 +632,10 @@ remote_server.update(
|
|
608
632
|
* `cloudflare_bucket` (string): Cloudflare Bucket name
|
609
633
|
* `cloudflare_endpoint` (string): Cloudflare endpoint
|
610
634
|
* `dropbox_teams` (boolean): List Team folders in root
|
635
|
+
* `linode_access_key` (string): Linode Access Key.
|
636
|
+
* `linode_secret_key` (string): Linode secret key
|
637
|
+
* `linode_bucket` (string): Linode Bucket name
|
638
|
+
* `linode_region` (string): Linode region
|
611
639
|
|
612
640
|
|
613
641
|
---
|
data/docs/settings_change.md
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
],
|
10
10
|
"created_at": "2000-01-01T01:00:00Z",
|
11
11
|
"user_id": 1,
|
12
|
+
"api_key_id": 1,
|
12
13
|
"user_is_files_support": true,
|
13
14
|
"username": "some_user"
|
14
15
|
}
|
@@ -17,6 +18,7 @@
|
|
17
18
|
* `changes` (array): Markdown-formatted change messages.
|
18
19
|
* `created_at` (date-time): The time this change was made
|
19
20
|
* `user_id` (int64): The user id responsible for this change
|
21
|
+
* `api_key_id` (int64): The api key id responsible for this change
|
20
22
|
* `user_is_files_support` (boolean): true if this change was performed by Files.com support.
|
21
23
|
* `username` (string): The username of the user responsible for this change
|
22
24
|
|
@@ -27,8 +29,7 @@
|
|
27
29
|
|
28
30
|
```
|
29
31
|
Files::SettingsChange.list(
|
30
|
-
per_page: 1
|
31
|
-
user_id: 1
|
32
|
+
per_page: 1
|
32
33
|
)
|
33
34
|
```
|
34
35
|
|
@@ -37,6 +38,4 @@ Files::SettingsChange.list(
|
|
37
38
|
* `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.
|
38
39
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
39
40
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[api_key_id]=desc`). Valid fields are `api_key_id`, `created_at` or `user_id`.
|
40
|
-
* `api_key_id` (string): If set, return records where the specified field is equal to the supplied value.
|
41
|
-
* `user_id` (string): If set, return records where the specified field is equal to the supplied value.
|
42
41
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
@@ -298,7 +298,6 @@ module Files
|
|
298
298
|
# 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.
|
299
299
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
300
300
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
|
301
|
-
# automation - string - If set, return records where the specified field is equal to the supplied value.
|
302
301
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
|
303
302
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
|
304
303
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
|
@@ -309,7 +308,6 @@ module Files
|
|
309
308
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
310
309
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
311
310
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
312
|
-
raise InvalidParameterError.new("Bad parameter: automation must be an String") if params[:automation] and !params[:automation].is_a?(String)
|
313
311
|
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
314
312
|
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
|
315
313
|
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
@@ -44,15 +44,15 @@ module Files
|
|
44
44
|
# 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.
|
45
45
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
46
46
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
47
|
-
# automation_id (required) - int64 - ID of the associated Automation.
|
48
47
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
|
48
|
+
# automation_id (required) - int64 - ID of the associated Automation.
|
49
49
|
def self.list(params = {}, options = {})
|
50
50
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
51
51
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
52
52
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
53
53
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
54
|
-
raise InvalidParameterError.new("Bad parameter: automation_id must be an Integer") if params[:automation_id] and !params[:automation_id].is_a?(Integer)
|
55
54
|
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
55
|
+
raise InvalidParameterError.new("Bad parameter: automation_id must be an Integer") if params[:automation_id] and !params[:automation_id].is_a?(Integer)
|
56
56
|
raise MissingParameterError.new("Parameter missing: automation_id") unless params[:automation_id]
|
57
57
|
|
58
58
|
List.new(AutomationRun, params) do
|
@@ -140,14 +140,12 @@ module Files
|
|
140
140
|
# 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.
|
141
141
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
142
142
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
|
143
|
-
# behavior - string - If set, return records where the specified field is equal to the supplied value.
|
144
143
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
145
144
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
146
145
|
def self.list(params = {}, options = {})
|
147
146
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
148
147
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
149
148
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
150
|
-
raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params[:behavior] and !params[:behavior].is_a?(String)
|
151
149
|
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
152
150
|
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
153
151
|
|
@@ -95,14 +95,12 @@ module Files
|
|
95
95
|
# 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.
|
96
96
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
97
97
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
98
|
-
# bundle_id - string - If set, return records where the specified field is equal to the supplied value.
|
99
98
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
100
99
|
def self.list(params = {}, options = {})
|
101
100
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
102
101
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
103
102
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
104
103
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
105
|
-
raise InvalidParameterError.new("Bad parameter: bundle_id must be an String") if params[:bundle_id] and !params[:bundle_id].is_a?(String)
|
106
104
|
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
107
105
|
|
108
106
|
List.new(BundleNotification, params) do
|
@@ -264,20 +264,20 @@ module Files
|
|
264
264
|
# 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.
|
265
265
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
266
266
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
|
267
|
-
# group_id - string - If set, return records where the specified field is equal to the supplied value.
|
268
267
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
269
268
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
270
269
|
# path - string - Show notifications for this Path.
|
271
270
|
# include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
271
|
+
# group_id - string
|
272
272
|
def self.list(params = {}, options = {})
|
273
273
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
274
274
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
275
275
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
276
276
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
277
|
-
raise InvalidParameterError.new("Bad parameter: group_id must be an String") if params[:group_id] and !params[:group_id].is_a?(String)
|
278
277
|
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
279
278
|
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
280
279
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
280
|
+
raise InvalidParameterError.new("Bad parameter: group_id must be an String") if params[:group_id] and !params[:group_id].is_a?(String)
|
281
281
|
|
282
282
|
List.new(Notification, params) do
|
283
283
|
Api.send_request("/notifications", :get, params, options)
|
@@ -477,6 +477,33 @@ module Files
|
|
477
477
|
@attributes[:dropbox_teams] = value
|
478
478
|
end
|
479
479
|
|
480
|
+
# string - Linode Bucket name
|
481
|
+
def linode_bucket
|
482
|
+
@attributes[:linode_bucket]
|
483
|
+
end
|
484
|
+
|
485
|
+
def linode_bucket=(value)
|
486
|
+
@attributes[:linode_bucket] = value
|
487
|
+
end
|
488
|
+
|
489
|
+
# string - Linode Access Key.
|
490
|
+
def linode_access_key
|
491
|
+
@attributes[:linode_access_key]
|
492
|
+
end
|
493
|
+
|
494
|
+
def linode_access_key=(value)
|
495
|
+
@attributes[:linode_access_key] = value
|
496
|
+
end
|
497
|
+
|
498
|
+
# string - Linode region
|
499
|
+
def linode_region
|
500
|
+
@attributes[:linode_region]
|
501
|
+
end
|
502
|
+
|
503
|
+
def linode_region=(value)
|
504
|
+
@attributes[:linode_region] = value
|
505
|
+
end
|
506
|
+
|
480
507
|
# string - AWS secret key.
|
481
508
|
def aws_secret_key
|
482
509
|
@attributes[:aws_secret_key]
|
@@ -621,6 +648,15 @@ module Files
|
|
621
648
|
@attributes[:cloudflare_secret_key] = value
|
622
649
|
end
|
623
650
|
|
651
|
+
# string - Linode secret key
|
652
|
+
def linode_secret_key
|
653
|
+
@attributes[:linode_secret_key]
|
654
|
+
end
|
655
|
+
|
656
|
+
def linode_secret_key=(value)
|
657
|
+
@attributes[:linode_secret_key] = value
|
658
|
+
end
|
659
|
+
|
624
660
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
625
661
|
#
|
626
662
|
# Parameters:
|
@@ -716,6 +752,10 @@ module Files
|
|
716
752
|
# cloudflare_bucket - string - Cloudflare Bucket name
|
717
753
|
# cloudflare_endpoint - string - Cloudflare endpoint
|
718
754
|
# dropbox_teams - boolean - List Team folders in root
|
755
|
+
# linode_access_key - string - Linode Access Key.
|
756
|
+
# linode_secret_key - string - Linode secret key
|
757
|
+
# linode_bucket - string - Linode Bucket name
|
758
|
+
# linode_region - string - Linode region
|
719
759
|
def update(params = {})
|
720
760
|
params ||= {}
|
721
761
|
params[:id] = @attributes[:id]
|
@@ -776,6 +816,10 @@ module Files
|
|
776
816
|
raise InvalidParameterError.new("Bad parameter: cloudflare_secret_key must be an String") if params[:cloudflare_secret_key] and !params[:cloudflare_secret_key].is_a?(String)
|
777
817
|
raise InvalidParameterError.new("Bad parameter: cloudflare_bucket must be an String") if params[:cloudflare_bucket] and !params[:cloudflare_bucket].is_a?(String)
|
778
818
|
raise InvalidParameterError.new("Bad parameter: cloudflare_endpoint must be an String") if params[:cloudflare_endpoint] and !params[:cloudflare_endpoint].is_a?(String)
|
819
|
+
raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String)
|
820
|
+
raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String)
|
821
|
+
raise InvalidParameterError.new("Bad parameter: linode_bucket must be an String") if params[:linode_bucket] and !params[:linode_bucket].is_a?(String)
|
822
|
+
raise InvalidParameterError.new("Bad parameter: linode_region must be an String") if params[:linode_region] and !params[:linode_region].is_a?(String)
|
779
823
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
780
824
|
|
781
825
|
Api.send_request("/remote_servers/#{@attributes[:id]}", :patch, params, @options)
|
@@ -908,6 +952,10 @@ module Files
|
|
908
952
|
# cloudflare_bucket - string - Cloudflare Bucket name
|
909
953
|
# cloudflare_endpoint - string - Cloudflare endpoint
|
910
954
|
# dropbox_teams - boolean - List Team folders in root
|
955
|
+
# linode_access_key - string - Linode Access Key.
|
956
|
+
# linode_secret_key - string - Linode secret key
|
957
|
+
# linode_bucket - string - Linode Bucket name
|
958
|
+
# linode_region - string - Linode region
|
911
959
|
def self.create(params = {}, options = {})
|
912
960
|
raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params[:aws_access_key] and !params[:aws_access_key].is_a?(String)
|
913
961
|
raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params[:aws_secret_key] and !params[:aws_secret_key].is_a?(String)
|
@@ -964,6 +1012,10 @@ module Files
|
|
964
1012
|
raise InvalidParameterError.new("Bad parameter: cloudflare_secret_key must be an String") if params[:cloudflare_secret_key] and !params[:cloudflare_secret_key].is_a?(String)
|
965
1013
|
raise InvalidParameterError.new("Bad parameter: cloudflare_bucket must be an String") if params[:cloudflare_bucket] and !params[:cloudflare_bucket].is_a?(String)
|
966
1014
|
raise InvalidParameterError.new("Bad parameter: cloudflare_endpoint must be an String") if params[:cloudflare_endpoint] and !params[:cloudflare_endpoint].is_a?(String)
|
1015
|
+
raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String)
|
1016
|
+
raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String)
|
1017
|
+
raise InvalidParameterError.new("Bad parameter: linode_bucket must be an String") if params[:linode_bucket] and !params[:linode_bucket].is_a?(String)
|
1018
|
+
raise InvalidParameterError.new("Bad parameter: linode_region must be an String") if params[:linode_region] and !params[:linode_region].is_a?(String)
|
967
1019
|
|
968
1020
|
response, options = Api.send_request("/remote_servers", :post, params, options)
|
969
1021
|
RemoteServer.new(response.data, options)
|
@@ -1064,6 +1116,10 @@ module Files
|
|
1064
1116
|
# cloudflare_bucket - string - Cloudflare Bucket name
|
1065
1117
|
# cloudflare_endpoint - string - Cloudflare endpoint
|
1066
1118
|
# dropbox_teams - boolean - List Team folders in root
|
1119
|
+
# linode_access_key - string - Linode Access Key.
|
1120
|
+
# linode_secret_key - string - Linode secret key
|
1121
|
+
# linode_bucket - string - Linode Bucket name
|
1122
|
+
# linode_region - string - Linode region
|
1067
1123
|
def self.update(id, params = {}, options = {})
|
1068
1124
|
params ||= {}
|
1069
1125
|
params[:id] = id
|
@@ -1123,6 +1179,10 @@ module Files
|
|
1123
1179
|
raise InvalidParameterError.new("Bad parameter: cloudflare_secret_key must be an String") if params[:cloudflare_secret_key] and !params[:cloudflare_secret_key].is_a?(String)
|
1124
1180
|
raise InvalidParameterError.new("Bad parameter: cloudflare_bucket must be an String") if params[:cloudflare_bucket] and !params[:cloudflare_bucket].is_a?(String)
|
1125
1181
|
raise InvalidParameterError.new("Bad parameter: cloudflare_endpoint must be an String") if params[:cloudflare_endpoint] and !params[:cloudflare_endpoint].is_a?(String)
|
1182
|
+
raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String)
|
1183
|
+
raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String)
|
1184
|
+
raise InvalidParameterError.new("Bad parameter: linode_bucket must be an String") if params[:linode_bucket] and !params[:linode_bucket].is_a?(String)
|
1185
|
+
raise InvalidParameterError.new("Bad parameter: linode_region must be an String") if params[:linode_region] and !params[:linode_region].is_a?(String)
|
1126
1186
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
1127
1187
|
|
1128
1188
|
response, options = Api.send_request("/remote_servers/#{params[:id]}", :patch, params, options)
|
@@ -24,6 +24,11 @@ module Files
|
|
24
24
|
@attributes[:user_id]
|
25
25
|
end
|
26
26
|
|
27
|
+
# int64 - The api key id responsible for this change
|
28
|
+
def api_key_id
|
29
|
+
@attributes[:api_key_id]
|
30
|
+
end
|
31
|
+
|
27
32
|
# boolean - true if this change was performed by Files.com support.
|
28
33
|
def user_is_files_support
|
29
34
|
@attributes[:user_is_files_support]
|
@@ -38,15 +43,11 @@ module Files
|
|
38
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.
|
39
44
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
40
45
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[api_key_id]=desc`). Valid fields are `api_key_id`, `created_at` or `user_id`.
|
41
|
-
# api_key_id - string - If set, return records where the specified field is equal to the supplied value.
|
42
|
-
# user_id - string - If set, return records where the specified field is equal to the supplied value.
|
43
46
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
44
47
|
def self.list(params = {}, options = {})
|
45
48
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
46
49
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
47
50
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
48
|
-
raise InvalidParameterError.new("Bad parameter: api_key_id must be an String") if params[:api_key_id] and !params[:api_key_id].is_a?(String)
|
49
|
-
raise InvalidParameterError.new("Bad parameter: user_id must be an String") if params[:user_id] and !params[:user_id].is_a?(String)
|
50
51
|
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
51
52
|
|
52
53
|
List.new(SettingsChange, params) do
|
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.358
|
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-06-
|
11
|
+
date: 2023-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|