files.com 1.1.683 → 1.1.684

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: 5ed47796e505dddf19405cf5eafb106a333029fbfce94d3b8303cb7ef375240a
4
- data.tar.gz: e078917468a41070b39145b1fd483aa9bcb150686c82b92e8d0ee8ad8cb5094f
3
+ metadata.gz: c585cb56997090d57b632672c11c2142fe9294c0446c3b9ca62cce492798fc78
4
+ data.tar.gz: a535661a2834a25e631de350fd6013e61b562998c9f9d82d8c93d09803e5337f
5
5
  SHA512:
6
- metadata.gz: 51ffcb02734ebd77e4fc43645e9283cd3281b66929d1c4d3b6533df0bd69b15c6e96ef27799223fb891503ee08dd3ff26c4f77e07cda330f2324a8431e465630
7
- data.tar.gz: 0f655e22b02716d6971ceae493b562bc939f04660b9d347cf9337db7b240fdf2326284174c2bb273b4aaf12726373840a89999af34ae3b3ece2970b8c29cb452
6
+ metadata.gz: 71eeed61969d9fe5b01b869a2656bb961f655bb9428e3bfbd2a49688545aaff5279a7d9f55c453eba61afbd649e696ee44423559afc04c91105bd77a4dff751c
7
+ data.tar.gz: 4912b539b27468e41c5eca7bb15c717e262e9d01e3a4e5179af3536899b32e79f590fdf2110f22b3195f950c93d5ff193424361dfe795fa40423725f89948db1
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.683
1
+ 1.1.684
data/docs/automation.md CHANGED
@@ -268,6 +268,19 @@ Files::Automation.create(
268
268
  * `workspace_id` (int64): Workspace ID
269
269
 
270
270
 
271
+ ---
272
+
273
+ ## Upgrade a legacy Automation to Automation v2
274
+
275
+ ```
276
+ Files::Automation.upgrade(id)
277
+ ```
278
+
279
+ ### Parameters
280
+
281
+ * `id` (int64): Required - Automation ID.
282
+
283
+
271
284
  ---
272
285
 
273
286
  ## Manually Run Automation. v2 Automations require Site or Workspace Admin permission
@@ -377,6 +390,21 @@ Files::Automation.delete(id)
377
390
  * `id` (int64): Required - Automation ID.
378
391
 
379
392
 
393
+ ---
394
+
395
+ ## Upgrade a legacy Automation to Automation v2
396
+
397
+ ```
398
+ automation = Files::Automation.find(id)
399
+
400
+ automation.upgrade
401
+ ```
402
+
403
+ ### Parameters
404
+
405
+ * `id` (int64): Required - Automation ID.
406
+
407
+
380
408
  ---
381
409
 
382
410
  ## Manually Run Automation. v2 Automations require Site or Workspace Admin permission
@@ -405,6 +405,17 @@ module Files
405
405
  @attributes[:holiday_region] = value
406
406
  end
407
407
 
408
+ # Upgrade a legacy Automation to Automation v2
409
+ def upgrade(params = {})
410
+ params ||= {}
411
+ params[:id] = @attributes[:id]
412
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
413
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
414
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
415
+
416
+ Api.send_request("/automations/#{@attributes[:id]}/upgrade", :post, params, @options)
417
+ end
418
+
408
419
  # Manually Run Automation. v2 Automations require Site or Workspace Admin permission
409
420
  #
410
421
  # Parameters:
@@ -633,6 +644,17 @@ module Files
633
644
  Automation.new(response.data, options)
634
645
  end
635
646
 
647
+ # Upgrade a legacy Automation to Automation v2
648
+ def self.upgrade(id, params = {}, options = {})
649
+ params ||= {}
650
+ params[:id] = id
651
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
652
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
653
+
654
+ response, options = Api.send_request("/automations/#{params[:id]}/upgrade", :post, params, options)
655
+ Automation.new(response.data, options)
656
+ end
657
+
636
658
  # Manually Run Automation. v2 Automations require Site or Workspace Admin permission
637
659
  #
638
660
  # Parameters:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.683"
4
+ VERSION = "1.1.684"
5
5
  end
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.1.683
4
+ version: 1.1.684
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-14 00:00:00.000000000 Z
11
+ date: 2026-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable