files.com 1.1.710 → 1.1.711
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 +4 -4
- data/_VERSION +1 -1
- data/docs/automation.md +6 -0
- data/docs/holiday_calendar.md +8 -2
- data/lib/files.com/models/automation.rb +5 -0
- data/lib/files.com/models/holiday_calendar.rb +8 -2
- data/lib/files.com/version.rb +1 -1
- 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: 224ec607b4cd0605bb18cb00adc2a4ef1466cf848776638d586f9445af482258
|
|
4
|
+
data.tar.gz: f82e3f3265e19f1f31b12e1aeb409fe7b393b90bb1c14ff89ea5be7cfbfe3ff1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0d6e5805498ba884971e1178c72bc26d636a6de3539c3d246a1357674a42f28638741566c7ab83740a4f34ba4cb354dd0af1b3174aac59bc0c49a4c215ddee9
|
|
7
|
+
data.tar.gz: a3f4f34461eebe2999a72e77952c23695d912f8f9bc21c7a05718ddeb3d08bbf0bccaf23101e468e5759ed79ac3d1f4ee8f2944e37c62699a23f5d3d40566191
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.711
|
data/docs/automation.md
CHANGED
|
@@ -218,6 +218,7 @@ Files::Automation.create(
|
|
|
218
218
|
always_overwrite_size_matching_files: true,
|
|
219
219
|
always_serialize_jobs: true,
|
|
220
220
|
description: "example",
|
|
221
|
+
definition: "example",
|
|
221
222
|
disabled: true,
|
|
222
223
|
exclude_pattern: "path/to/exclude/*",
|
|
223
224
|
import_urls: [{"name":"users.json","url":"http://example.com/users","method":"POST","headers":{"Content-Type":"application/json"},"content":{"group":"support"}}],
|
|
@@ -259,6 +260,7 @@ Files::Automation.create(
|
|
|
259
260
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
260
261
|
* `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
261
262
|
* `description` (string): Description for the this Automation.
|
|
263
|
+
* `definition` (object): Automation v2 graph definition.
|
|
262
264
|
* `disabled` (boolean): If true, this automation will not run.
|
|
263
265
|
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
264
266
|
* `import_urls` (array(object)): List of URLs to be imported and names to be used.
|
|
@@ -332,6 +334,7 @@ Files::Automation.update(id,
|
|
|
332
334
|
always_overwrite_size_matching_files: true,
|
|
333
335
|
always_serialize_jobs: true,
|
|
334
336
|
description: "example",
|
|
337
|
+
definition: "example",
|
|
335
338
|
disabled: true,
|
|
336
339
|
exclude_pattern: "path/to/exclude/*",
|
|
337
340
|
import_urls: [{"name":"users.json","url":"http://example.com/users","method":"POST","headers":{"Content-Type":"application/json"},"content":{"group":"support"}}],
|
|
@@ -373,6 +376,7 @@ Files::Automation.update(id,
|
|
|
373
376
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
374
377
|
* `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
375
378
|
* `description` (string): Description for the this Automation.
|
|
379
|
+
* `definition` (object): Automation v2 graph definition.
|
|
376
380
|
* `disabled` (boolean): If true, this automation will not run.
|
|
377
381
|
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
378
382
|
* `import_urls` (array(object)): List of URLs to be imported and names to be used.
|
|
@@ -464,6 +468,7 @@ automation.update(
|
|
|
464
468
|
always_overwrite_size_matching_files: true,
|
|
465
469
|
always_serialize_jobs: true,
|
|
466
470
|
description: "example",
|
|
471
|
+
definition: "example",
|
|
467
472
|
disabled: true,
|
|
468
473
|
exclude_pattern: "path/to/exclude/*",
|
|
469
474
|
import_urls: [{"name":"users.json","url":"http://example.com/users","method":"POST","headers":{"Content-Type":"application/json"},"content":{"group":"support"}}],
|
|
@@ -505,6 +510,7 @@ automation.update(
|
|
|
505
510
|
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
506
511
|
* `always_serialize_jobs` (boolean): Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
507
512
|
* `description` (string): Description for the this Automation.
|
|
513
|
+
* `definition` (object): Automation v2 graph definition.
|
|
508
514
|
* `disabled` (boolean): If true, this automation will not run.
|
|
509
515
|
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
510
516
|
* `import_urls` (array(object)): List of URLs to be imported and names to be used.
|
data/docs/holiday_calendar.md
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
}
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
* `id` (int64): Holiday Calendar ID.
|
|
15
|
+
* `id` (int64): Holiday Calendar ID. Set a scheduled resource's `holiday_region` to `custom_` followed by this ID to make it skip the days in this calendar.
|
|
16
16
|
* `name` (string): Holiday Calendar name.
|
|
17
|
-
* `definition` (object): Holiday rules for the calendar.
|
|
17
|
+
* `definition` (object): Holiday rules for the calendar.
|
|
18
18
|
* `created_at` (date-time): Creation time.
|
|
19
19
|
* `updated_at` (date-time): Last update time.
|
|
20
20
|
|
|
@@ -53,12 +53,14 @@ Files::HolidayCalendar.find(id)
|
|
|
53
53
|
|
|
54
54
|
```
|
|
55
55
|
Files::HolidayCalendar.create(
|
|
56
|
+
definition: "example",
|
|
56
57
|
name: "Company Holidays"
|
|
57
58
|
)
|
|
58
59
|
```
|
|
59
60
|
|
|
60
61
|
### Parameters
|
|
61
62
|
|
|
63
|
+
* `definition` (object): Required - Holiday rules for the calendar.
|
|
62
64
|
* `name` (string): Required - Holiday Calendar name.
|
|
63
65
|
|
|
64
66
|
|
|
@@ -68,6 +70,7 @@ Files::HolidayCalendar.create(
|
|
|
68
70
|
|
|
69
71
|
```
|
|
70
72
|
Files::HolidayCalendar.update(id,
|
|
73
|
+
definition: "example",
|
|
71
74
|
name: "Company Holidays"
|
|
72
75
|
)
|
|
73
76
|
```
|
|
@@ -75,6 +78,7 @@ Files::HolidayCalendar.update(id,
|
|
|
75
78
|
### Parameters
|
|
76
79
|
|
|
77
80
|
* `id` (int64): Required - Holiday Calendar ID.
|
|
81
|
+
* `definition` (object): Holiday rules for the calendar.
|
|
78
82
|
* `name` (string): Holiday Calendar name.
|
|
79
83
|
|
|
80
84
|
|
|
@@ -99,6 +103,7 @@ Files::HolidayCalendar.delete(id)
|
|
|
99
103
|
holiday_calendar = Files::HolidayCalendar.find(id)
|
|
100
104
|
|
|
101
105
|
holiday_calendar.update(
|
|
106
|
+
definition: "example",
|
|
102
107
|
name: "Company Holidays"
|
|
103
108
|
)
|
|
104
109
|
```
|
|
@@ -106,6 +111,7 @@ holiday_calendar.update(
|
|
|
106
111
|
### Parameters
|
|
107
112
|
|
|
108
113
|
* `id` (int64): Required - Holiday Calendar ID.
|
|
114
|
+
* `definition` (object): Holiday rules for the calendar.
|
|
109
115
|
* `name` (string): Holiday Calendar name.
|
|
110
116
|
|
|
111
117
|
|
|
@@ -468,6 +468,7 @@ module Files
|
|
|
468
468
|
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
469
469
|
# always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
470
470
|
# description - string - Description for the this Automation.
|
|
471
|
+
# definition - object - Automation v2 graph definition.
|
|
471
472
|
# disabled - boolean - If true, this automation will not run.
|
|
472
473
|
# exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
473
474
|
# import_urls - array(object) - List of URLs to be imported and names to be used.
|
|
@@ -616,6 +617,7 @@ module Files
|
|
|
616
617
|
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
617
618
|
# always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
618
619
|
# description - string - Description for the this Automation.
|
|
620
|
+
# definition - object - Automation v2 graph definition.
|
|
619
621
|
# disabled - boolean - If true, this automation will not run.
|
|
620
622
|
# exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
621
623
|
# import_urls - array(object) - List of URLs to be imported and names to be used.
|
|
@@ -651,6 +653,7 @@ module Files
|
|
|
651
653
|
raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
|
|
652
654
|
raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
|
|
653
655
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
656
|
+
raise InvalidParameterError.new("Bad parameter: definition must be an Hash") if params[:definition] and !params[:definition].is_a?(Hash)
|
|
654
657
|
raise InvalidParameterError.new("Bad parameter: exclude_pattern must be an String") if params[:exclude_pattern] and !params[:exclude_pattern].is_a?(String)
|
|
655
658
|
raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
|
|
656
659
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
@@ -715,6 +718,7 @@ module Files
|
|
|
715
718
|
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
|
716
719
|
# always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
717
720
|
# description - string - Description for the this Automation.
|
|
721
|
+
# definition - object - Automation v2 graph definition.
|
|
718
722
|
# disabled - boolean - If true, this automation will not run.
|
|
719
723
|
# exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
720
724
|
# import_urls - array(object) - List of URLs to be imported and names to be used.
|
|
@@ -752,6 +756,7 @@ module Files
|
|
|
752
756
|
raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
|
|
753
757
|
raise InvalidParameterError.new("Bad parameter: holiday_region must be an String") if params[:holiday_region] and !params[:holiday_region].is_a?(String)
|
|
754
758
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
759
|
+
raise InvalidParameterError.new("Bad parameter: definition must be an Hash") if params[:definition] and !params[:definition].is_a?(Hash)
|
|
755
760
|
raise InvalidParameterError.new("Bad parameter: exclude_pattern must be an String") if params[:exclude_pattern] and !params[:exclude_pattern].is_a?(String)
|
|
756
761
|
raise InvalidParameterError.new("Bad parameter: import_urls must be an Array") if params[:import_urls] and !params[:import_urls].is_a?(Array)
|
|
757
762
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
@@ -9,7 +9,7 @@ module Files
|
|
|
9
9
|
@options = options || {}
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
# int64 - Holiday Calendar ID.
|
|
12
|
+
# int64 - Holiday Calendar ID. Set a scheduled resource's `holiday_region` to `custom_` followed by this ID to make it skip the days in this calendar.
|
|
13
13
|
def id
|
|
14
14
|
@attributes[:id]
|
|
15
15
|
end
|
|
@@ -27,7 +27,7 @@ module Files
|
|
|
27
27
|
@attributes[:name] = value
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
# object - Holiday rules for the calendar.
|
|
30
|
+
# object - Holiday rules for the calendar.
|
|
31
31
|
def definition
|
|
32
32
|
@attributes[:definition]
|
|
33
33
|
end
|
|
@@ -47,6 +47,7 @@ module Files
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
# Parameters:
|
|
50
|
+
# definition - object - Holiday rules for the calendar.
|
|
50
51
|
# name - string - Holiday Calendar name.
|
|
51
52
|
def update(params = {})
|
|
52
53
|
params ||= {}
|
|
@@ -120,9 +121,12 @@ module Files
|
|
|
120
121
|
end
|
|
121
122
|
|
|
122
123
|
# Parameters:
|
|
124
|
+
# definition (required) - object - Holiday rules for the calendar.
|
|
123
125
|
# name (required) - string - Holiday Calendar name.
|
|
124
126
|
def self.create(params = {}, options = {})
|
|
127
|
+
raise InvalidParameterError.new("Bad parameter: definition must be an Hash") if params[:definition] and !params[:definition].is_a?(Hash)
|
|
125
128
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
129
|
+
raise MissingParameterError.new("Parameter missing: definition") unless params[:definition]
|
|
126
130
|
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
127
131
|
|
|
128
132
|
response, options = Api.send_request("/holiday_calendars", :post, params, options)
|
|
@@ -130,11 +134,13 @@ module Files
|
|
|
130
134
|
end
|
|
131
135
|
|
|
132
136
|
# Parameters:
|
|
137
|
+
# definition - object - Holiday rules for the calendar.
|
|
133
138
|
# name - string - Holiday Calendar name.
|
|
134
139
|
def self.update(id, params = {}, options = {})
|
|
135
140
|
params ||= {}
|
|
136
141
|
params[:id] = id
|
|
137
142
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
143
|
+
raise InvalidParameterError.new("Bad parameter: definition must be an Hash") if params[:definition] and !params[:definition].is_a?(Hash)
|
|
138
144
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
139
145
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
140
146
|
|
data/lib/files.com/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.1.711
|
|
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-08-
|
|
11
|
+
date: 2026-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|