files.com 1.1.286 → 1.1.288
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/api_request_log.md +6 -6
- data/docs/automation_log.md +6 -6
- data/docs/email_log.md +6 -6
- data/docs/exavault_api_request_log.md +6 -6
- data/docs/file_migration_log.md +6 -6
- data/docs/ftp_action_log.md +6 -6
- data/docs/outbound_connection_log.md +6 -6
- data/docs/public_hosting_request_log.md +6 -6
- data/docs/remote_mount_backend.md +17 -21
- data/docs/sftp_action_log.md +6 -6
- data/docs/sync_log.md +6 -6
- data/docs/web_dav_action_log.md +6 -6
- data/lib/files.com/models/api_request_log.rb +6 -6
- data/lib/files.com/models/automation_log.rb +6 -6
- data/lib/files.com/models/email_log.rb +6 -6
- data/lib/files.com/models/exavault_api_request_log.rb +6 -6
- data/lib/files.com/models/file_migration_log.rb +6 -6
- data/lib/files.com/models/ftp_action_log.rb +6 -6
- data/lib/files.com/models/outbound_connection_log.rb +6 -6
- data/lib/files.com/models/public_hosting_request_log.rb +6 -6
- data/lib/files.com/models/remote_mount_backend.rb +14 -24
- data/lib/files.com/models/sftp_action_log.rb +6 -6
- data/lib/files.com/models/sync_log.rb +6 -6
- data/lib/files.com/models/web_dav_action_log.rb +6 -6
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
@@ -67,12 +67,12 @@ module Files
|
|
67
67
|
# Parameters:
|
68
68
|
# 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.
|
69
69
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
70
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `
|
71
|
-
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`. Valid field combinations are `[
|
72
|
-
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[
|
73
|
-
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`. Valid field combinations are `[
|
74
|
-
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`. Valid field combinations are `[
|
75
|
-
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[
|
70
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `remote_ip`, `success` or `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
|
71
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
|
72
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
|
73
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
|
74
|
+
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
|
75
|
+
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
|
76
76
|
def self.list(params = {}, options = {})
|
77
77
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
78
78
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
@@ -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)
|