files.com 1.1.274 → 1.1.275

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: dbb75cb18621005600e8f58fc73993c3769964e77d4639327bb6e17778d8f3bc
4
- data.tar.gz: 373185c4b4d46a45d225856e099cfb1f1f7664c31d915515b334b57abd296c93
3
+ metadata.gz: 279ad63b803fb855d45136754e9de75a9b937ed7a8a4079197f9f54407a9e9a5
4
+ data.tar.gz: c9e5fd4d4edf4a4d50f9178813bfc8322ce5b10ab818b957255c2d9b14288c38
5
5
  SHA512:
6
- metadata.gz: 258067927a107d575c4d5935519b20f032fa464e8c41b5113b11650a6f39f0f0feeb7bcdb8863b7aa34e1004d66acf2989d93bec842050307e185d086eb2d800
7
- data.tar.gz: 1910d4cc1f795f0290379a68f5fab6af00412f6767db5fd6225ad4aafe5d7141786520f6cab62837988373e3d83a260f3be80a529f13a83ab4a9e0e6f47ab6dd
6
+ metadata.gz: 107c937d931031b62f99e3c84ee2fa23c4123295e9ff7d7175e4215ed841e35aa8450b2c2f133aa96e4e16669ee3c8fe4e3b8802982452eb1c191d5620424f63
7
+ data.tar.gz: f41a7e862a551ec756f95e4fb544252eb770136d84107073312e629a818ad2b0bbae8e88224bd7bf23826c5c1948f3eb2293e4c32d83484e19fc54072585ed7f
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.274
1
+ 1.1.275
data/docs/sync.md CHANGED
@@ -153,6 +153,19 @@ Files::Sync.create_migrate_to
153
153
  ```
154
154
 
155
155
 
156
+ ---
157
+
158
+ ## Manually Run Sync
159
+
160
+ ```
161
+ Files::Sync.manual_run(id)
162
+ ```
163
+
164
+ ### Parameters
165
+
166
+ * `id` (int64): Required - Sync ID.
167
+
168
+
156
169
  ---
157
170
 
158
171
  ## Update Sync
@@ -214,6 +227,21 @@ Files::Sync.delete(id)
214
227
  * `id` (int64): Required - Sync ID.
215
228
 
216
229
 
230
+ ---
231
+
232
+ ## Manually Run Sync
233
+
234
+ ```
235
+ sync = Files::Sync.find(id)
236
+
237
+ sync.manual_run
238
+ ```
239
+
240
+ ### Parameters
241
+
242
+ * `id` (int64): Required - Sync ID.
243
+
244
+
217
245
  ---
218
246
 
219
247
  ## Update Sync
@@ -226,6 +226,17 @@ module Files
226
226
  @attributes[:schedule_time_zone] = value
227
227
  end
228
228
 
229
+ # Manually Run Sync
230
+ def manual_run(params = {})
231
+ params ||= {}
232
+ params[:id] = @attributes[:id]
233
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
234
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
235
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
236
+
237
+ Api.send_request("/syncs/#{@attributes[:id]}/manual_run", :post, params, @options)
238
+ end
239
+
229
240
  # Parameters:
230
241
  # name - string - Name for this sync job
231
242
  # description - string - Description for this sync job
@@ -367,6 +378,17 @@ module Files
367
378
  nil
368
379
  end
369
380
 
381
+ # Manually Run Sync
382
+ def self.manual_run(id, params = {}, options = {})
383
+ params ||= {}
384
+ params[:id] = id
385
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
386
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
387
+
388
+ Api.send_request("/syncs/#{params[:id]}/manual_run", :post, params, options)
389
+ nil
390
+ end
391
+
370
392
  # Parameters:
371
393
  # name - string - Name for this sync job
372
394
  # description - string - Description for this sync job
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.274"
4
+ VERSION = "1.1.275"
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.274
4
+ version: 1.1.275
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-13 00:00:00.000000000 Z
11
+ date: 2025-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable