files.com 1.0.357 → 1.0.359

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: 8bc54d4ebc1672332ba1b40814969198ecfe4bd5c38e94cd5af5cc4e97885978
4
- data.tar.gz: 7ae014892e4f84c31c2c1215f378328a3475f0a48815db0e2958d44240d81e3b
3
+ metadata.gz: f1599878e275f8474e62ef8ab607377ba91b1703629a231147a3872551f71fb2
4
+ data.tar.gz: d7c004380e15efe49124f5a3267dc946ca3c7524237ecd1ab4b5698d63335327
5
5
  SHA512:
6
- metadata.gz: 52d53f9420103189c93e24d9c3b3b0f88cfea9a995c56ec1d135fa2fc2e4bbbd8196241bc7ed846d8ca6b7b573bf3b7949506af92637413268895f86952f4e2b
7
- data.tar.gz: 00d16c98aa41727bbbfc92a019cf93587b653bf14d8f7abc474d03a13e092464b91f7ff96da2ef2fa4c30b48ab3cba398ca09763a119b3bb39ace2d429ae6fc3
6
+ metadata.gz: f95f18ac636769116b304b5c4eddbbf267ff3420a5bf03def0c9378ed29b79e5867ae48b5465e3d093ca4694d43c0c0ae8f8afe88f9631958c5ad6eb80b3806d
7
+ data.tar.gz: 369c1b04e84244486db565109a40f068677583104d8609204fcf859741a5463f9a997a7fa414a97808bffe032a158787f08289221dc2e8bfe67b29539c398ffe
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.357
1
+ 1.0.359
data/docs/automation.md CHANGED
@@ -158,6 +158,19 @@ Files::Automation.create(
158
158
  * `automation` (string): Required - Automation type
159
159
 
160
160
 
161
+ ---
162
+
163
+ ## Manually run automation
164
+
165
+ ```
166
+ Files::Automation.manual_run(id)
167
+ ```
168
+
169
+ ### Parameters
170
+
171
+ * `id` (int64): Required - Automation ID.
172
+
173
+
161
174
  ---
162
175
 
163
176
  ## Update Automation
@@ -222,6 +235,21 @@ Files::Automation.delete(id)
222
235
  * `id` (int64): Required - Automation ID.
223
236
 
224
237
 
238
+ ---
239
+
240
+ ## Manually run automation
241
+
242
+ ```
243
+ automation = Files::Automation.list.first
244
+
245
+ automation.manual_run
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ * `id` (int64): Required - Automation ID.
251
+
252
+
225
253
  ---
226
254
 
227
255
  ## Update Automation
@@ -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
  ---
@@ -152,6 +152,7 @@ module Files
152
152
  class UserNotFoundError < NotFoundError; end
153
153
 
154
154
  class ProcessingFailureError < APIError; end
155
+ class AutomationCannotBeRunManuallyError < ProcessingFailureError; end
155
156
  class BundleOnlyAllowsPreviewsError < ProcessingFailureError; end
156
157
  class BundleOperationRequiresSubfolderError < ProcessingFailureError; end
157
158
  class CouldNotCreateParentError < ProcessingFailureError; end
@@ -225,6 +225,17 @@ module Files
225
225
  @attributes[:destination] = value
226
226
  end
227
227
 
228
+ # Manually run automation
229
+ def manual_run(params = {})
230
+ params ||= {}
231
+ params[:id] = @attributes[:id]
232
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
233
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
234
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
235
+
236
+ Api.send_request("/automations/#{@attributes[:id]}/manual_run", :post, params, @options)
237
+ end
238
+
228
239
  # Parameters:
229
240
  # source - string - Source Path
230
241
  # destination - string - DEPRECATED: Destination Path. Use `destinations` instead.
@@ -384,6 +395,17 @@ module Files
384
395
  Automation.new(response.data, options)
385
396
  end
386
397
 
398
+ # Manually run automation
399
+ def self.manual_run(id, params = {}, options = {})
400
+ params ||= {}
401
+ params[:id] = id
402
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
403
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
404
+
405
+ response, _options = Api.send_request("/automations/#{params[:id]}/manual_run", :post, params, options)
406
+ response.data
407
+ end
408
+
387
409
  # Parameters:
388
410
  # source - string - Source Path
389
411
  # destination - string - DEPRECATED: Destination Path. Use `destinations` instead.
@@ -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)
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.357
4
+ version: 1.0.359
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-14 00:00:00.000000000 Z
11
+ date: 2023-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable