files.com 1.1.285 → 1.1.287

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: b352bf2901921caf5aede20cd4f2821c923ab0f0d2401e2e9d2c9ea7da24ae85
4
- data.tar.gz: 5e5331ce0145b7aa801a2ccf811671d532867af1c5fb9681658f2ec98d8cc15f
3
+ metadata.gz: 3ec9edb89c98fa49bc48ae8efe6d8ea17b546c8db0697963a691ef1a72a9c7e7
4
+ data.tar.gz: 972eb5230dcc87c10a63f20a487a648dcf3cdb3364455aa369bf45b7fd32736c
5
5
  SHA512:
6
- metadata.gz: 1ef906531c60ef7829254a1f4c5c0c70ac9a4876af9f809d2fcb69d677e839db00dfd2c6ed245f2e6287bf48140cbd6b2388f1ef3e48931a1fd9dc01e721669a
7
- data.tar.gz: 3cc141016bdd1ca0a17dc7f101db68f94415de1489265f38661c28e7f5d94452056940673710d0a5de2989b3ef4773072ecf7dc259124c5356ce4298fc73e06f
6
+ metadata.gz: 662a5627df6bfa210d0546d845e5437e122aa674d22c5aa905feffdfd4bdd0b60101814c5734e93437d82adf74010a4f4435d694c51201cca1772fa20d7aa406
7
+ data.tar.gz: 1d00a1aa4f7000caf9caaae6df5fda1d9a019e6fb12b272c98be62367100ab5abad9dd8f2ab63a4dd8c48617da7f2250065b44dfade2712125be2fb2499fbfe7
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.285
1
+ 1.1.287
data/docs/behavior.md CHANGED
@@ -45,7 +45,6 @@ Files::Behavior.list
45
45
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
46
46
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
47
47
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
48
- * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
49
48
 
50
49
 
51
50
  ---
@@ -77,7 +76,6 @@ Files::Behavior.list_for(path,
77
76
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
78
77
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
79
78
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
80
- * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
81
79
  * `path` (string): Required - Path to operate on.
82
80
  * `ancestor_behaviors` (boolean): If `true`, behaviors above this path are shown.
83
81
 
@@ -75,9 +75,6 @@ Files::RemoteMountBackend.find(id)
75
75
 
76
76
  ```
77
77
  Files::RemoteMountBackend.create(
78
- canary_file_path: "backend1.txt",
79
- remote_server_mount_id: 1,
80
- remote_server_id: 1,
81
78
  enabled: true,
82
79
  fall: 1,
83
80
  health_check_enabled: true,
@@ -87,15 +84,15 @@ Files::RemoteMountBackend.create(
87
84
  min_free_mem: 1.0,
88
85
  priority: 1,
89
86
  remote_path: "/path/on/remote",
90
- rise: 1
87
+ rise: 1,
88
+ canary_file_path: "backend1.txt",
89
+ remote_server_mount_id: 1,
90
+ remote_server_id: 1
91
91
  )
92
92
  ```
93
93
 
94
94
  ### Parameters
95
95
 
96
- * `canary_file_path` (string): Required - Path to the canary file used for health checks.
97
- * `remote_server_mount_id` (int64): Required - The mount ID of the Remote Server Mount that this backend is associated with.
98
- * `remote_server_id` (int64): Required - The remote server that this backend is associated with.
99
96
  * `enabled` (boolean): True if this backend is enabled.
100
97
  * `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
101
98
  * `health_check_enabled` (boolean): True if health checks are enabled for this backend.
@@ -106,6 +103,9 @@ Files::RemoteMountBackend.create(
106
103
  * `priority` (int64): Priority of this backend.
107
104
  * `remote_path` (string): Path on the remote server to treat as the root of this mount.
108
105
  * `rise` (int64): Number of consecutive successes before considering the backend healthy.
106
+ * `canary_file_path` (string): Required - Path to the canary file used for health checks.
107
+ * `remote_server_mount_id` (int64): Required - The mount ID of the Remote Server Mount that this backend is associated with.
108
+ * `remote_server_id` (int64): Required - The remote server that this backend is associated with.
109
109
 
110
110
 
111
111
  ---
@@ -127,9 +127,6 @@ Files::RemoteMountBackend.reset_status(id)
127
127
 
128
128
  ```
129
129
  Files::RemoteMountBackend.update(id,
130
- canary_file_path: "backend1.txt",
131
- remote_server_mount_id: 1,
132
- remote_server_id: 1,
133
130
  enabled: true,
134
131
  fall: 1,
135
132
  health_check_enabled: true,
@@ -139,16 +136,15 @@ Files::RemoteMountBackend.update(id,
139
136
  min_free_mem: 1.0,
140
137
  priority: 1,
141
138
  remote_path: "/path/on/remote",
142
- rise: 1
139
+ rise: 1,
140
+ canary_file_path: "backend1.txt",
141
+ remote_server_id: 1
143
142
  )
144
143
  ```
145
144
 
146
145
  ### Parameters
147
146
 
148
147
  * `id` (int64): Required - Remote Mount Backend ID.
149
- * `canary_file_path` (string): Required - Path to the canary file used for health checks.
150
- * `remote_server_mount_id` (int64): Required - The mount ID of the Remote Server Mount that this backend is associated with.
151
- * `remote_server_id` (int64): Required - The remote server that this backend is associated with.
152
148
  * `enabled` (boolean): True if this backend is enabled.
153
149
  * `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
154
150
  * `health_check_enabled` (boolean): True if health checks are enabled for this backend.
@@ -159,6 +155,8 @@ Files::RemoteMountBackend.update(id,
159
155
  * `priority` (int64): Priority of this backend.
160
156
  * `remote_path` (string): Path on the remote server to treat as the root of this mount.
161
157
  * `rise` (int64): Number of consecutive successes before considering the backend healthy.
158
+ * `canary_file_path` (string): Path to the canary file used for health checks.
159
+ * `remote_server_id` (int64): The remote server that this backend is associated with.
162
160
 
163
161
 
164
162
  ---
@@ -197,9 +195,6 @@ remote_mount_backend.reset_status
197
195
  remote_mount_backend = Files::RemoteMountBackend.find(id)
198
196
 
199
197
  remote_mount_backend.update(
200
- canary_file_path: "backend1.txt",
201
- remote_server_mount_id: 1,
202
- remote_server_id: 1,
203
198
  enabled: true,
204
199
  fall: 1,
205
200
  health_check_enabled: true,
@@ -209,16 +204,15 @@ remote_mount_backend.update(
209
204
  min_free_mem: 1.0,
210
205
  priority: 1,
211
206
  remote_path: "/path/on/remote",
212
- rise: 1
207
+ rise: 1,
208
+ canary_file_path: "backend1.txt",
209
+ remote_server_id: 1
213
210
  )
214
211
  ```
215
212
 
216
213
  ### Parameters
217
214
 
218
215
  * `id` (int64): Required - Remote Mount Backend ID.
219
- * `canary_file_path` (string): Required - Path to the canary file used for health checks.
220
- * `remote_server_mount_id` (int64): Required - The mount ID of the Remote Server Mount that this backend is associated with.
221
- * `remote_server_id` (int64): Required - The remote server that this backend is associated with.
222
216
  * `enabled` (boolean): True if this backend is enabled.
223
217
  * `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
224
218
  * `health_check_enabled` (boolean): True if health checks are enabled for this backend.
@@ -229,6 +223,8 @@ remote_mount_backend.update(
229
223
  * `priority` (int64): Priority of this backend.
230
224
  * `remote_path` (string): Path on the remote server to treat as the root of this mount.
231
225
  * `rise` (int64): Number of consecutive successes before considering the backend healthy.
226
+ * `canary_file_path` (string): Path to the canary file used for health checks.
227
+ * `remote_server_id` (int64): The remote server that this backend is associated with.
232
228
 
233
229
 
234
230
  ---
@@ -160,13 +160,11 @@ module Files
160
160
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
161
161
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
162
162
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
163
- # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
164
163
  def self.list(params = {}, options = {})
165
164
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
166
165
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
167
166
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
168
167
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
169
- raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
170
168
 
171
169
  List.new(Behavior, params) do
172
170
  Api.send_request("/behaviors", :get, params, options)
@@ -198,7 +196,6 @@ module Files
198
196
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
199
197
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
200
198
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
201
- # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
202
199
  # path (required) - string - Path to operate on.
203
200
  # ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
204
201
  def self.list_for(path, params = {}, options = {})
@@ -208,7 +205,6 @@ module Files
208
205
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
209
206
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
210
207
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
211
- raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
212
208
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
213
209
  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
214
210
 
@@ -165,9 +165,6 @@ module Files
165
165
  end
166
166
 
167
167
  # Parameters:
168
- # canary_file_path (required) - string - Path to the canary file used for health checks.
169
- # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
170
- # remote_server_id (required) - int64 - The remote server that this backend is associated with.
171
168
  # enabled - boolean - True if this backend is enabled.
172
169
  # fall - int64 - Number of consecutive failures before considering the backend unhealthy.
173
170
  # health_check_enabled - boolean - True if health checks are enabled for this backend.
@@ -178,24 +175,22 @@ module Files
178
175
  # priority - int64 - Priority of this backend.
179
176
  # remote_path - string - Path on the remote server to treat as the root of this mount.
180
177
  # rise - int64 - Number of consecutive successes before considering the backend healthy.
178
+ # canary_file_path - string - Path to the canary file used for health checks.
179
+ # remote_server_id - int64 - The remote server that this backend is associated with.
181
180
  def update(params = {})
182
181
  params ||= {}
183
182
  params[:id] = @attributes[:id]
184
183
  raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
185
184
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
186
- raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
187
- raise InvalidParameterError.new("Bad parameter: remote_server_mount_id must be an Integer") if params[:remote_server_mount_id] and !params[:remote_server_mount_id].is_a?(Integer)
188
- raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
189
185
  raise InvalidParameterError.new("Bad parameter: fall must be an Integer") if params[:fall] and !params[:fall].is_a?(Integer)
190
186
  raise InvalidParameterError.new("Bad parameter: health_check_type must be an String") if params[:health_check_type] and !params[:health_check_type].is_a?(String)
191
187
  raise InvalidParameterError.new("Bad parameter: interval must be an Integer") if params[:interval] and !params[:interval].is_a?(Integer)
192
188
  raise InvalidParameterError.new("Bad parameter: priority must be an Integer") if params[:priority] and !params[:priority].is_a?(Integer)
193
189
  raise InvalidParameterError.new("Bad parameter: remote_path must be an String") if params[:remote_path] and !params[:remote_path].is_a?(String)
194
190
  raise InvalidParameterError.new("Bad parameter: rise must be an Integer") if params[:rise] and !params[:rise].is_a?(Integer)
191
+ raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
192
+ raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
195
193
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
196
- raise MissingParameterError.new("Parameter missing: canary_file_path") unless params[:canary_file_path]
197
- raise MissingParameterError.new("Parameter missing: remote_server_mount_id") unless params[:remote_server_mount_id]
198
- raise MissingParameterError.new("Parameter missing: remote_server_id") unless params[:remote_server_id]
199
194
 
200
195
  Api.send_request("/remote_mount_backends/#{@attributes[:id]}", :patch, params, @options)
201
196
  end
@@ -261,9 +256,6 @@ module Files
261
256
  end
262
257
 
263
258
  # Parameters:
264
- # canary_file_path (required) - string - Path to the canary file used for health checks.
265
- # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
266
- # remote_server_id (required) - int64 - The remote server that this backend is associated with.
267
259
  # enabled - boolean - True if this backend is enabled.
268
260
  # fall - int64 - Number of consecutive failures before considering the backend unhealthy.
269
261
  # health_check_enabled - boolean - True if health checks are enabled for this backend.
@@ -274,10 +266,10 @@ module Files
274
266
  # priority - int64 - Priority of this backend.
275
267
  # remote_path - string - Path on the remote server to treat as the root of this mount.
276
268
  # rise - int64 - Number of consecutive successes before considering the backend healthy.
269
+ # canary_file_path (required) - string - Path to the canary file used for health checks.
270
+ # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
271
+ # remote_server_id (required) - int64 - The remote server that this backend is associated with.
277
272
  def self.create(params = {}, options = {})
278
- raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
279
- raise InvalidParameterError.new("Bad parameter: remote_server_mount_id must be an Integer") if params[:remote_server_mount_id] and !params[:remote_server_mount_id].is_a?(Integer)
280
- raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
281
273
  raise InvalidParameterError.new("Bad parameter: fall must be an Integer") if params[:fall] and !params[:fall].is_a?(Integer)
282
274
  raise InvalidParameterError.new("Bad parameter: health_check_type must be an String") if params[:health_check_type] and !params[:health_check_type].is_a?(String)
283
275
  raise InvalidParameterError.new("Bad parameter: interval must be an Integer") if params[:interval] and !params[:interval].is_a?(Integer)
@@ -286,6 +278,9 @@ module Files
286
278
  raise InvalidParameterError.new("Bad parameter: priority must be an Integer") if params[:priority] and !params[:priority].is_a?(Integer)
287
279
  raise InvalidParameterError.new("Bad parameter: remote_path must be an String") if params[:remote_path] and !params[:remote_path].is_a?(String)
288
280
  raise InvalidParameterError.new("Bad parameter: rise must be an Integer") if params[:rise] and !params[:rise].is_a?(Integer)
281
+ raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
282
+ raise InvalidParameterError.new("Bad parameter: remote_server_mount_id must be an Integer") if params[:remote_server_mount_id] and !params[:remote_server_mount_id].is_a?(Integer)
283
+ raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
289
284
  raise MissingParameterError.new("Parameter missing: canary_file_path") unless params[:canary_file_path]
290
285
  raise MissingParameterError.new("Parameter missing: remote_server_mount_id") unless params[:remote_server_mount_id]
291
286
  raise MissingParameterError.new("Parameter missing: remote_server_id") unless params[:remote_server_id]
@@ -306,9 +301,6 @@ module Files
306
301
  end
307
302
 
308
303
  # Parameters:
309
- # canary_file_path (required) - string - Path to the canary file used for health checks.
310
- # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
311
- # remote_server_id (required) - int64 - The remote server that this backend is associated with.
312
304
  # enabled - boolean - True if this backend is enabled.
313
305
  # fall - int64 - Number of consecutive failures before considering the backend unhealthy.
314
306
  # health_check_enabled - boolean - True if health checks are enabled for this backend.
@@ -319,13 +311,12 @@ module Files
319
311
  # priority - int64 - Priority of this backend.
320
312
  # remote_path - string - Path on the remote server to treat as the root of this mount.
321
313
  # rise - int64 - Number of consecutive successes before considering the backend healthy.
314
+ # canary_file_path - string - Path to the canary file used for health checks.
315
+ # remote_server_id - int64 - The remote server that this backend is associated with.
322
316
  def self.update(id, params = {}, options = {})
323
317
  params ||= {}
324
318
  params[:id] = id
325
319
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
326
- raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
327
- raise InvalidParameterError.new("Bad parameter: remote_server_mount_id must be an Integer") if params[:remote_server_mount_id] and !params[:remote_server_mount_id].is_a?(Integer)
328
- raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
329
320
  raise InvalidParameterError.new("Bad parameter: fall must be an Integer") if params[:fall] and !params[:fall].is_a?(Integer)
330
321
  raise InvalidParameterError.new("Bad parameter: health_check_type must be an String") if params[:health_check_type] and !params[:health_check_type].is_a?(String)
331
322
  raise InvalidParameterError.new("Bad parameter: interval must be an Integer") if params[:interval] and !params[:interval].is_a?(Integer)
@@ -334,10 +325,9 @@ module Files
334
325
  raise InvalidParameterError.new("Bad parameter: priority must be an Integer") if params[:priority] and !params[:priority].is_a?(Integer)
335
326
  raise InvalidParameterError.new("Bad parameter: remote_path must be an String") if params[:remote_path] and !params[:remote_path].is_a?(String)
336
327
  raise InvalidParameterError.new("Bad parameter: rise must be an Integer") if params[:rise] and !params[:rise].is_a?(Integer)
328
+ raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
329
+ raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
337
330
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
338
- raise MissingParameterError.new("Parameter missing: canary_file_path") unless params[:canary_file_path]
339
- raise MissingParameterError.new("Parameter missing: remote_server_mount_id") unless params[:remote_server_mount_id]
340
- raise MissingParameterError.new("Parameter missing: remote_server_id") unless params[:remote_server_id]
341
331
 
342
332
  response, options = Api.send_request("/remote_mount_backends/#{params[:id]}", :patch, params, options)
343
333
  RemoteMountBackend.new(response.data, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.285"
4
+ VERSION = "1.1.287"
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.285
4
+ version: 1.1.287
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-26 00:00:00.000000000 Z
11
+ date: 2025-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable