files.com 1.0.70 → 1.0.75
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +82 -0
- data/_VERSION +1 -1
- data/docs/bundle.md +13 -3
- data/docs/clickwrap.md +143 -0
- data/docs/remote_server.md +53 -4
- data/docs/site.md +4 -0
- data/docs/user.md +8 -0
- data/files.com.gemspec +3 -3
- data/lib/files.com.rb +2 -1
- data/lib/files.com/models/behavior.rb +2 -2
- data/lib/files.com/models/bundle.rb +24 -0
- data/lib/files.com/models/clickwrap.rb +197 -0
- data/lib/files.com/models/file.rb +4 -4
- data/lib/files.com/models/file_action.rb +3 -1
- data/lib/files.com/models/folder.rb +1 -0
- data/lib/files.com/models/remote_server.rb +114 -0
- data/lib/files.com/models/session.rb +1 -0
- data/lib/files.com/models/site.rb +7 -0
- data/lib/files.com/models/user.rb +15 -0
- data/lib/files.com/sizable_io.rb +2 -2
- data/spec/spec_helper.rb +1 -3
- data/test/test.rb +1 -1
- metadata +18 -15
@@ -180,6 +180,69 @@ module Files
|
|
180
180
|
@attributes[:wasabi_region] = value
|
181
181
|
end
|
182
182
|
|
183
|
+
# string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
184
|
+
def rackspace_username
|
185
|
+
@attributes[:rackspace_username]
|
186
|
+
end
|
187
|
+
|
188
|
+
def rackspace_username=(value)
|
189
|
+
@attributes[:rackspace_username] = value
|
190
|
+
end
|
191
|
+
|
192
|
+
# string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
193
|
+
def rackspace_region
|
194
|
+
@attributes[:rackspace_region]
|
195
|
+
end
|
196
|
+
|
197
|
+
def rackspace_region=(value)
|
198
|
+
@attributes[:rackspace_region] = value
|
199
|
+
end
|
200
|
+
|
201
|
+
# string - The name of the container (top level directory) where files will sync.
|
202
|
+
def rackspace_container
|
203
|
+
@attributes[:rackspace_container]
|
204
|
+
end
|
205
|
+
|
206
|
+
def rackspace_container=(value)
|
207
|
+
@attributes[:rackspace_container] = value
|
208
|
+
end
|
209
|
+
|
210
|
+
# string - Returns link to login with an Oauth provider
|
211
|
+
def auth_setup_link
|
212
|
+
@attributes[:auth_setup_link]
|
213
|
+
end
|
214
|
+
|
215
|
+
def auth_setup_link=(value)
|
216
|
+
@attributes[:auth_setup_link] = value
|
217
|
+
end
|
218
|
+
|
219
|
+
# string - Either `in_setup` or `complete`
|
220
|
+
def auth_status
|
221
|
+
@attributes[:auth_status]
|
222
|
+
end
|
223
|
+
|
224
|
+
def auth_status=(value)
|
225
|
+
@attributes[:auth_status] = value
|
226
|
+
end
|
227
|
+
|
228
|
+
# string - Describes the authorized account
|
229
|
+
def auth_account_name
|
230
|
+
@attributes[:auth_account_name]
|
231
|
+
end
|
232
|
+
|
233
|
+
def auth_account_name=(value)
|
234
|
+
@attributes[:auth_account_name] = value
|
235
|
+
end
|
236
|
+
|
237
|
+
# string - Either personnel or business_other account types
|
238
|
+
def one_drive_account_type
|
239
|
+
@attributes[:one_drive_account_type]
|
240
|
+
end
|
241
|
+
|
242
|
+
def one_drive_account_type=(value)
|
243
|
+
@attributes[:one_drive_account_type] = value
|
244
|
+
end
|
245
|
+
|
183
246
|
# string - AWS Access Key.
|
184
247
|
def aws_access_key
|
185
248
|
@attributes[:aws_access_key]
|
@@ -261,6 +324,24 @@ module Files
|
|
261
324
|
@attributes[:backblaze_b2_application_key] = value
|
262
325
|
end
|
263
326
|
|
327
|
+
# string - Rackspace API key from the Rackspace Cloud Control Panel.
|
328
|
+
def rackspace_api_key
|
329
|
+
@attributes[:rackspace_api_key]
|
330
|
+
end
|
331
|
+
|
332
|
+
def rackspace_api_key=(value)
|
333
|
+
@attributes[:rackspace_api_key] = value
|
334
|
+
end
|
335
|
+
|
336
|
+
# boolean - Reset authenticated account
|
337
|
+
def reset_authentication
|
338
|
+
@attributes[:reset_authentication]
|
339
|
+
end
|
340
|
+
|
341
|
+
def reset_authentication=(value)
|
342
|
+
@attributes[:reset_authentication] = value
|
343
|
+
end
|
344
|
+
|
264
345
|
# Parameters:
|
265
346
|
# aws_access_key - string - AWS Access Key.
|
266
347
|
# aws_secret_key - string - AWS secret key.
|
@@ -271,6 +352,8 @@ module Files
|
|
271
352
|
# wasabi_secret_key - string - Wasabi secret key.
|
272
353
|
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
273
354
|
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
355
|
+
# rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
356
|
+
# reset_authentication - boolean - Reset authenticated account
|
274
357
|
# hostname - string - Hostname or IP address
|
275
358
|
# name - string - Internal name for your reference
|
276
359
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -288,6 +371,10 @@ module Files
|
|
288
371
|
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
289
372
|
# wasabi_bucket - string - Wasabi region
|
290
373
|
# wasabi_region - string - Wasabi Bucket name
|
374
|
+
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
375
|
+
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
376
|
+
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
377
|
+
# one_drive_account_type - string - Either personnel or business_other account types
|
291
378
|
def update(params = {})
|
292
379
|
params ||= {}
|
293
380
|
params[:id] = @attributes[:id]
|
@@ -302,6 +389,7 @@ module Files
|
|
302
389
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params.dig(:wasabi_secret_key) and !params.dig(:wasabi_secret_key).is_a?(String)
|
303
390
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
|
304
391
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
|
392
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
|
305
393
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
306
394
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
307
395
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -319,6 +407,10 @@ module Files
|
|
319
407
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params.dig(:backblaze_b2_s3_endpoint) and !params.dig(:backblaze_b2_s3_endpoint).is_a?(String)
|
320
408
|
raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
|
321
409
|
raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
|
410
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_username must be an String") if params.dig(:rackspace_username) and !params.dig(:rackspace_username).is_a?(String)
|
411
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
|
412
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
|
413
|
+
raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
|
322
414
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
323
415
|
|
324
416
|
Api.send_request("/remote_servers/#{@attributes[:id]}", :patch, params, @options)
|
@@ -392,6 +484,8 @@ module Files
|
|
392
484
|
# wasabi_secret_key - string - Wasabi secret key.
|
393
485
|
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
394
486
|
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
487
|
+
# rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
488
|
+
# reset_authentication - boolean - Reset authenticated account
|
395
489
|
# hostname - string - Hostname or IP address
|
396
490
|
# name - string - Internal name for your reference
|
397
491
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -409,6 +503,10 @@ module Files
|
|
409
503
|
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
410
504
|
# wasabi_bucket - string - Wasabi region
|
411
505
|
# wasabi_region - string - Wasabi Bucket name
|
506
|
+
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
507
|
+
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
508
|
+
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
509
|
+
# one_drive_account_type - string - Either personnel or business_other account types
|
412
510
|
def self.create(params = {}, options = {})
|
413
511
|
raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params.dig(:aws_access_key) and !params.dig(:aws_access_key).is_a?(String)
|
414
512
|
raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params.dig(:aws_secret_key) and !params.dig(:aws_secret_key).is_a?(String)
|
@@ -419,6 +517,7 @@ module Files
|
|
419
517
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params.dig(:wasabi_secret_key) and !params.dig(:wasabi_secret_key).is_a?(String)
|
420
518
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
|
421
519
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
|
520
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
|
422
521
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
423
522
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
424
523
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -436,6 +535,10 @@ module Files
|
|
436
535
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params.dig(:backblaze_b2_s3_endpoint) and !params.dig(:backblaze_b2_s3_endpoint).is_a?(String)
|
437
536
|
raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
|
438
537
|
raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
|
538
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_username must be an String") if params.dig(:rackspace_username) and !params.dig(:rackspace_username).is_a?(String)
|
539
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
|
540
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
|
541
|
+
raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
|
439
542
|
|
440
543
|
response, options = Api.send_request("/remote_servers", :post, params, options)
|
441
544
|
RemoteServer.new(response.data, options)
|
@@ -451,6 +554,8 @@ module Files
|
|
451
554
|
# wasabi_secret_key - string - Wasabi secret key.
|
452
555
|
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
453
556
|
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
557
|
+
# rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
558
|
+
# reset_authentication - boolean - Reset authenticated account
|
454
559
|
# hostname - string - Hostname or IP address
|
455
560
|
# name - string - Internal name for your reference
|
456
561
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
@@ -468,6 +573,10 @@ module Files
|
|
468
573
|
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
469
574
|
# wasabi_bucket - string - Wasabi region
|
470
575
|
# wasabi_region - string - Wasabi Bucket name
|
576
|
+
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
577
|
+
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
578
|
+
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
579
|
+
# one_drive_account_type - string - Either personnel or business_other account types
|
471
580
|
def self.update(id, params = {}, options = {})
|
472
581
|
params ||= {}
|
473
582
|
params[:id] = id
|
@@ -481,6 +590,7 @@ module Files
|
|
481
590
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params.dig(:wasabi_secret_key) and !params.dig(:wasabi_secret_key).is_a?(String)
|
482
591
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
|
483
592
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
|
593
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
|
484
594
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
|
485
595
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
486
596
|
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
|
@@ -498,6 +608,10 @@ module Files
|
|
498
608
|
raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params.dig(:backblaze_b2_s3_endpoint) and !params.dig(:backblaze_b2_s3_endpoint).is_a?(String)
|
499
609
|
raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params.dig(:wasabi_bucket) and !params.dig(:wasabi_bucket).is_a?(String)
|
500
610
|
raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params.dig(:wasabi_region) and !params.dig(:wasabi_region).is_a?(String)
|
611
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_username must be an String") if params.dig(:rackspace_username) and !params.dig(:rackspace_username).is_a?(String)
|
612
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
|
613
|
+
raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
|
614
|
+
raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
|
501
615
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
502
616
|
|
503
617
|
response, options = Api.send_request("/remote_servers/#{params[:id]}", :patch, params, options)
|
@@ -404,6 +404,11 @@ module Files
|
|
404
404
|
@attributes[:sftp_user_root_enabled]
|
405
405
|
end
|
406
406
|
|
407
|
+
# boolean - Allow bundle creation
|
408
|
+
def sharing_enabled
|
409
|
+
@attributes[:sharing_enabled]
|
410
|
+
end
|
411
|
+
|
407
412
|
# boolean - Show request access link for users without access? Currently unused.
|
408
413
|
def show_request_access_link
|
409
414
|
@attributes[:show_request_access_link]
|
@@ -605,6 +610,7 @@ module Files
|
|
605
610
|
# disable_users_from_inactivity_period_days - int64 - If greater than zero, users will unable to login if they do not show activity within this number of days.
|
606
611
|
# non_sso_groups_allowed - boolean - If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
|
607
612
|
# non_sso_users_allowed - boolean - If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
613
|
+
# sharing_enabled - boolean - Allow bundle creation
|
608
614
|
# allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
609
615
|
# allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
610
616
|
# allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
@@ -666,6 +672,7 @@ module Files
|
|
666
672
|
raise InvalidParameterError.new("Bad parameter: default_time_zone must be an String") if params.dig(:default_time_zone) and !params.dig(:default_time_zone).is_a?(String)
|
667
673
|
raise InvalidParameterError.new("Bad parameter: desktop_app_session_lifetime must be an Integer") if params.dig(:desktop_app_session_lifetime) and !params.dig(:desktop_app_session_lifetime).is_a?(Integer)
|
668
674
|
raise InvalidParameterError.new("Bad parameter: welcome_screen must be an String") if params.dig(:welcome_screen) and !params.dig(:welcome_screen).is_a?(String)
|
675
|
+
raise InvalidParameterError.new("Bad parameter: session_expiry must be an Float") if params.dig(:session_expiry) and !params.dig(:session_expiry).is_a?(Float)
|
669
676
|
raise InvalidParameterError.new("Bad parameter: user_lockout_tries must be an Integer") if params.dig(:user_lockout_tries) and !params.dig(:user_lockout_tries).is_a?(Integer)
|
670
677
|
raise InvalidParameterError.new("Bad parameter: user_lockout_within must be an Integer") if params.dig(:user_lockout_within) and !params.dig(:user_lockout_within).is_a?(Integer)
|
671
678
|
raise InvalidParameterError.new("Bad parameter: user_lockout_lock_period must be an Integer") if params.dig(:user_lockout_lock_period) and !params.dig(:user_lockout_lock_period).is_a?(Integer)
|
@@ -167,6 +167,15 @@ module Files
|
|
167
167
|
@attributes[:group_ids] = value
|
168
168
|
end
|
169
169
|
|
170
|
+
# string - Text to display to the user in the header of the UI
|
171
|
+
def header_text
|
172
|
+
@attributes[:header_text]
|
173
|
+
end
|
174
|
+
|
175
|
+
def header_text=(value)
|
176
|
+
@attributes[:header_text] = value
|
177
|
+
end
|
178
|
+
|
170
179
|
# string - Preferred language
|
171
180
|
def language
|
172
181
|
@attributes[:language]
|
@@ -528,6 +537,7 @@ module Files
|
|
528
537
|
# dav_permission - boolean - Can the user connect with WebDAV?
|
529
538
|
# disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
|
530
539
|
# ftp_permission - boolean - Can the user access with FTP/FTPS?
|
540
|
+
# header_text - string - Text to display to the user in the header of the UI
|
531
541
|
# language - string - Preferred language
|
532
542
|
# notification_daily_send_time - int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
533
543
|
# name - string - User's full name
|
@@ -562,6 +572,7 @@ module Files
|
|
562
572
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
|
563
573
|
raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params.dig(:authenticate_until) and !params.dig(:authenticate_until).is_a?(String)
|
564
574
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params.dig(:authentication_method) and !params.dig(:authentication_method).is_a?(String)
|
575
|
+
raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params.dig(:header_text) and !params.dig(:header_text).is_a?(String)
|
565
576
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if params.dig(:language) and !params.dig(:language).is_a?(String)
|
566
577
|
raise InvalidParameterError.new("Bad parameter: notification_daily_send_time must be an Integer") if params.dig(:notification_daily_send_time) and !params.dig(:notification_daily_send_time).is_a?(Integer)
|
567
578
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
@@ -668,6 +679,7 @@ module Files
|
|
668
679
|
# dav_permission - boolean - Can the user connect with WebDAV?
|
669
680
|
# disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
|
670
681
|
# ftp_permission - boolean - Can the user access with FTP/FTPS?
|
682
|
+
# header_text - string - Text to display to the user in the header of the UI
|
671
683
|
# language - string - Preferred language
|
672
684
|
# notification_daily_send_time - int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
673
685
|
# name - string - User's full name
|
@@ -698,6 +710,7 @@ module Files
|
|
698
710
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
|
699
711
|
raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params.dig(:authenticate_until) and !params.dig(:authenticate_until).is_a?(String)
|
700
712
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params.dig(:authentication_method) and !params.dig(:authentication_method).is_a?(String)
|
713
|
+
raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params.dig(:header_text) and !params.dig(:header_text).is_a?(String)
|
701
714
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if params.dig(:language) and !params.dig(:language).is_a?(String)
|
702
715
|
raise InvalidParameterError.new("Bad parameter: notification_daily_send_time must be an Integer") if params.dig(:notification_daily_send_time) and !params.dig(:notification_daily_send_time).is_a?(Integer)
|
703
716
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
@@ -768,6 +781,7 @@ module Files
|
|
768
781
|
# dav_permission - boolean - Can the user connect with WebDAV?
|
769
782
|
# disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
|
770
783
|
# ftp_permission - boolean - Can the user access with FTP/FTPS?
|
784
|
+
# header_text - string - Text to display to the user in the header of the UI
|
771
785
|
# language - string - Preferred language
|
772
786
|
# notification_daily_send_time - int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
773
787
|
# name - string - User's full name
|
@@ -801,6 +815,7 @@ module Files
|
|
801
815
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
|
802
816
|
raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params.dig(:authenticate_until) and !params.dig(:authenticate_until).is_a?(String)
|
803
817
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params.dig(:authentication_method) and !params.dig(:authentication_method).is_a?(String)
|
818
|
+
raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params.dig(:header_text) and !params.dig(:header_text).is_a?(String)
|
804
819
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if params.dig(:language) and !params.dig(:language).is_a?(String)
|
805
820
|
raise InvalidParameterError.new("Bad parameter: notification_daily_send_time must be an Integer") if params.dig(:notification_daily_send_time) and !params.dig(:notification_daily_send_time).is_a?(Integer)
|
806
821
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
data/lib/files.com/sizable_io.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -16,9 +16,7 @@ RSpec.configure do |config|
|
|
16
16
|
let(:options) { { api_key: api_key } }
|
17
17
|
end
|
18
18
|
|
19
|
-
|
20
|
-
config.include_context "API Helpers", :with_test_folder
|
21
|
-
end
|
19
|
+
config.include_context "API Helpers", :with_test_folder
|
22
20
|
|
23
21
|
config.around(:example, :with_test_folder) do |all|
|
24
22
|
@api_key = ENV["TEST_API_KEY"] || File.read("../../config/test_api_key.txt")
|
data/test/test.rb
CHANGED
@@ -63,7 +63,7 @@ end
|
|
63
63
|
|
64
64
|
def test_sessions
|
65
65
|
session = Files::Session.create(username: "sessionuser", password: "sessionuserpassword")
|
66
|
-
|
66
|
+
Files::ApiKey.list({ user_id: 0 }, session: session)
|
67
67
|
session.destroy
|
68
68
|
end
|
69
69
|
|
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.75
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: addressable
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.7.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: concurrent-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.1.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.1.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: faraday
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.0.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.0.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: net-http-persistent
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '0'
|
69
69
|
description: The Files.com Ruby client.
|
70
70
|
email:
|
71
71
|
- support@files.com
|
@@ -77,6 +77,7 @@ extra_rdoc_files: []
|
|
77
77
|
files:
|
78
78
|
- CONTRIBUTORS
|
79
79
|
- Gemfile
|
80
|
+
- Gemfile.lock
|
80
81
|
- LICENSE
|
81
82
|
- README.md
|
82
83
|
- Rakefile
|
@@ -91,6 +92,7 @@ files:
|
|
91
92
|
- docs/automation.md
|
92
93
|
- docs/behavior.md
|
93
94
|
- docs/bundle.md
|
95
|
+
- docs/clickwrap.md
|
94
96
|
- docs/dns_record.md
|
95
97
|
- docs/errors.md
|
96
98
|
- docs/file.md
|
@@ -145,6 +147,7 @@ files:
|
|
145
147
|
- lib/files.com/models/automation.rb
|
146
148
|
- lib/files.com/models/behavior.rb
|
147
149
|
- lib/files.com/models/bundle.rb
|
150
|
+
- lib/files.com/models/clickwrap.rb
|
148
151
|
- lib/files.com/models/dir.rb
|
149
152
|
- lib/files.com/models/dns_record.rb
|
150
153
|
- lib/files.com/models/errors.rb
|
@@ -209,7 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
209
212
|
requirements:
|
210
213
|
- - ">="
|
211
214
|
- !ruby/object:Gem::Version
|
212
|
-
version: '2.
|
215
|
+
version: '2.5'
|
213
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
217
|
requirements:
|
215
218
|
- - ">="
|