files.com 1.1.282 → 1.1.284
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 +3 -1
- data/docs/holiday_region.md +27 -0
- data/docs/remote_mount_backend.md +3 -1
- data/docs/sync.md +3 -1
- data/lib/files.com/models/automation.rb +9 -0
- data/lib/files.com/models/holiday_region.rb +34 -0
- data/lib/files.com/models/remote_mount_backend.rb +11 -9
- data/lib/files.com/models/sync.rb +9 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a4ce408d8a2136aacd899cd0d477615641819d42006d9860696ccf85b2b5788
|
4
|
+
data.tar.gz: 7c28c2894ea72d3aadc811673bd7a2f1b8e13404426f83767d6ffc80a68966ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b29598141afa51b236bccf8837c80c2e1a3d8e8f2b80050f59a277fd1d64b66c5bb389061a0e624d471fecc0f1336dbaf7710a60614e7e7c6217bdc0ef6a98c
|
7
|
+
data.tar.gz: 6152b9e09dfcefc7137072e8e24abefdcef0b79a718624ab99d47fa376e568f01d9d67b3e613e368df10973de3087179c60b1fb7e6b382514531bad63fb0559c
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.284
|
data/docs/automation.md
CHANGED
@@ -86,7 +86,8 @@
|
|
86
86
|
"value": {
|
87
87
|
"limit": "1"
|
88
88
|
},
|
89
|
-
"webhook_url": "https://app.files.com/api/webhooks/abc123"
|
89
|
+
"webhook_url": "https://app.files.com/api/webhooks/abc123",
|
90
|
+
"holiday_region": "us_dc"
|
90
91
|
}
|
91
92
|
```
|
92
93
|
|
@@ -128,6 +129,7 @@
|
|
128
129
|
* `user_ids` (array(int64)): IDs of Users for the Automation (i.e. who to Request File from)
|
129
130
|
* `value` (object): A Hash of attributes specific to the automation type.
|
130
131
|
* `webhook_url` (string): If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
|
132
|
+
* `holiday_region` (string): If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
|
131
133
|
|
132
134
|
|
133
135
|
---
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# HolidayRegion
|
2
|
+
|
3
|
+
## Example HolidayRegion Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"code": "us_dc",
|
8
|
+
"name": "United States - District of Columbia"
|
9
|
+
}
|
10
|
+
```
|
11
|
+
|
12
|
+
* `code` (string): The code representing a region
|
13
|
+
* `name` (string): The name of the region
|
14
|
+
|
15
|
+
|
16
|
+
---
|
17
|
+
|
18
|
+
## List all possible holiday regions
|
19
|
+
|
20
|
+
```
|
21
|
+
Files::HolidayRegion.get_supported
|
22
|
+
```
|
23
|
+
|
24
|
+
### Parameters
|
25
|
+
|
26
|
+
* `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.
|
27
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
@@ -9,6 +9,7 @@
|
|
9
9
|
"fall": 1,
|
10
10
|
"health_check_enabled": true,
|
11
11
|
"health_check_type": "active",
|
12
|
+
"id": 1,
|
12
13
|
"interval": 60,
|
13
14
|
"min_free_cpu": 1.0,
|
14
15
|
"min_free_mem": 1.0,
|
@@ -27,6 +28,7 @@
|
|
27
28
|
* `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
|
28
29
|
* `health_check_enabled` (boolean): True if health checks are enabled for this backend.
|
29
30
|
* `health_check_type` (string): Type of health check to perform.
|
31
|
+
* `id` (int64): Unique identifier for this backend.
|
30
32
|
* `interval` (int64): Interval in seconds between health checks.
|
31
33
|
* `min_free_cpu` (double): Minimum free CPU percentage required for this backend to be considered healthy.
|
32
34
|
* `min_free_mem` (double): Minimum free memory percentage required for this backend to be considered healthy.
|
@@ -37,7 +39,6 @@
|
|
37
39
|
* `rise` (int64): Number of consecutive successes before considering the backend healthy.
|
38
40
|
* `status` (string): Status of this backend.
|
39
41
|
* `undergoing_maintenance` (boolean): True if this backend is undergoing maintenance.
|
40
|
-
* `id` (int64): Remote Mount Backend ID.
|
41
42
|
|
42
43
|
|
43
44
|
---
|
@@ -52,6 +53,7 @@ Files::RemoteMountBackend.list
|
|
52
53
|
|
53
54
|
* `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.
|
54
55
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
56
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `remote_server_mount_id`.
|
55
57
|
|
56
58
|
|
57
59
|
---
|
data/docs/sync.md
CHANGED
@@ -39,7 +39,8 @@
|
|
39
39
|
"06:30",
|
40
40
|
"14:30"
|
41
41
|
],
|
42
|
-
"schedule_time_zone": "Eastern Time (US & Canada)"
|
42
|
+
"schedule_time_zone": "Eastern Time (US & Canada)",
|
43
|
+
"holiday_region": "us_dc"
|
43
44
|
}
|
44
45
|
```
|
45
46
|
|
@@ -68,6 +69,7 @@
|
|
68
69
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
|
69
70
|
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. Times of day in HH:MM format.
|
70
71
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
|
72
|
+
* `holiday_region` (string): If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
|
71
73
|
|
72
74
|
|
73
75
|
---
|
@@ -351,6 +351,15 @@ module Files
|
|
351
351
|
@attributes[:webhook_url] = value
|
352
352
|
end
|
353
353
|
|
354
|
+
# string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
|
355
|
+
def holiday_region
|
356
|
+
@attributes[:holiday_region]
|
357
|
+
end
|
358
|
+
|
359
|
+
def holiday_region=(value)
|
360
|
+
@attributes[:holiday_region] = value
|
361
|
+
end
|
362
|
+
|
354
363
|
# Manually Run Automation
|
355
364
|
def manual_run(params = {})
|
356
365
|
params ||= {}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Files
|
4
|
+
class HolidayRegion
|
5
|
+
attr_reader :options, :attributes
|
6
|
+
|
7
|
+
def initialize(attributes = {}, options = {})
|
8
|
+
@attributes = attributes || {}
|
9
|
+
@options = options || {}
|
10
|
+
end
|
11
|
+
|
12
|
+
# string - The code representing a region
|
13
|
+
def code
|
14
|
+
@attributes[:code]
|
15
|
+
end
|
16
|
+
|
17
|
+
# string - The name of the region
|
18
|
+
def name
|
19
|
+
@attributes[:name]
|
20
|
+
end
|
21
|
+
|
22
|
+
# Parameters:
|
23
|
+
# 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.
|
24
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
25
|
+
def self.get_supported(params = {}, options = {})
|
26
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
27
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
28
|
+
|
29
|
+
List.new(HolidayRegion, params) do
|
30
|
+
Api.send_request("/holiday_regions/supported", :get, params, options)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -54,6 +54,15 @@ module Files
|
|
54
54
|
@attributes[:health_check_type] = value
|
55
55
|
end
|
56
56
|
|
57
|
+
# int64 - Unique identifier for this backend.
|
58
|
+
def id
|
59
|
+
@attributes[:id]
|
60
|
+
end
|
61
|
+
|
62
|
+
def id=(value)
|
63
|
+
@attributes[:id] = value
|
64
|
+
end
|
65
|
+
|
57
66
|
# int64 - Interval in seconds between health checks.
|
58
67
|
def interval
|
59
68
|
@attributes[:interval]
|
@@ -144,15 +153,6 @@ module Files
|
|
144
153
|
@attributes[:undergoing_maintenance] = value
|
145
154
|
end
|
146
155
|
|
147
|
-
# int64 - Remote Mount Backend ID.
|
148
|
-
def id
|
149
|
-
@attributes[:id]
|
150
|
-
end
|
151
|
-
|
152
|
-
def id=(value)
|
153
|
-
@attributes[:id] = value
|
154
|
-
end
|
155
|
-
|
156
156
|
# Reset backend status to healthy
|
157
157
|
def reset_status(params = {})
|
158
158
|
params ||= {}
|
@@ -229,9 +229,11 @@ module Files
|
|
229
229
|
# Parameters:
|
230
230
|
# 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.
|
231
231
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
232
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `remote_server_mount_id`.
|
232
233
|
def self.list(params = {}, options = {})
|
233
234
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
234
235
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
236
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
235
237
|
|
236
238
|
List.new(RemoteMountBackend, params) do
|
237
239
|
Api.send_request("/remote_mount_backends", :get, params, options)
|
@@ -226,6 +226,15 @@ module Files
|
|
226
226
|
@attributes[:schedule_time_zone] = value
|
227
227
|
end
|
228
228
|
|
229
|
+
# string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
|
230
|
+
def holiday_region
|
231
|
+
@attributes[:holiday_region]
|
232
|
+
end
|
233
|
+
|
234
|
+
def holiday_region=(value)
|
235
|
+
@attributes[:holiday_region] = value
|
236
|
+
end
|
237
|
+
|
229
238
|
# Manually Run Sync
|
230
239
|
def manual_run(params = {})
|
231
240
|
params ||= {}
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
@@ -80,6 +80,7 @@ require "files.com/models/group_user"
|
|
80
80
|
require "files.com/models/history"
|
81
81
|
require "files.com/models/history_export"
|
82
82
|
require "files.com/models/history_export_result"
|
83
|
+
require "files.com/models/holiday_region"
|
83
84
|
require "files.com/models/image"
|
84
85
|
require "files.com/models/inbox_recipient"
|
85
86
|
require "files.com/models/inbox_registration"
|
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.284
|
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-
|
11
|
+
date: 2025-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -163,6 +163,7 @@ files:
|
|
163
163
|
- docs/history.md
|
164
164
|
- docs/history_export.md
|
165
165
|
- docs/history_export_result.md
|
166
|
+
- docs/holiday_region.md
|
166
167
|
- docs/image.md
|
167
168
|
- docs/inbox_recipient.md
|
168
169
|
- docs/inbox_registration.md
|
@@ -273,6 +274,7 @@ files:
|
|
273
274
|
- lib/files.com/models/history.rb
|
274
275
|
- lib/files.com/models/history_export.rb
|
275
276
|
- lib/files.com/models/history_export_result.rb
|
277
|
+
- lib/files.com/models/holiday_region.rb
|
276
278
|
- lib/files.com/models/image.rb
|
277
279
|
- lib/files.com/models/inbox_recipient.rb
|
278
280
|
- lib/files.com/models/inbox_registration.rb
|