comet_backup_ruby_sdk 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/comet_server.rb +244 -158
- data/lib/comet/definitions.rb +4 -4
- data/lib/comet/models/add_bucket_response_message.rb +6 -6
- data/lib/comet/models/admin_account_properties_response.rb +3 -3
- data/lib/comet/models/admin_email_options.rb +4 -4
- data/lib/comet/models/admin_resource_response.rb +5 -5
- data/lib/comet/models/admin_security_options.rb +7 -7
- data/lib/comet/models/admin_u2fregistration.rb +4 -4
- data/lib/comet/models/admin_user_permissions.rb +2 -2
- data/lib/comet/models/available_download.rb +4 -4
- data/lib/comet/models/azure_destination_location.rb +7 -7
- data/lib/comet/models/b2destination_location.rb +7 -7
- data/lib/comet/models/b2storage_extra_info.rb +2 -2
- data/lib/comet/models/b2transaction_totals.rb +5 -5
- data/lib/comet/models/b2virtual_storage_role_settings.rb +5 -5
- data/lib/comet/models/backup_job_advanced_options.rb +4 -4
- data/lib/comet/models/backup_job_detail.rb +20 -20
- data/lib/comet/models/backup_job_progress.rb +7 -7
- data/lib/comet/models/backup_rule_config.rb +12 -12
- data/lib/comet/models/backup_rule_event_triggers.rb +2 -2
- data/lib/comet/models/branding_options.rb +27 -27
- data/lib/comet/models/branding_properties.rb +23 -23
- data/lib/comet/models/browse_disk_drives_response.rb +4 -4
- data/lib/comet/models/browse_edbresponse.rb +4 -4
- data/lib/comet/models/browse_hvresponse.rb +4 -4
- data/lib/comet/models/browse_vssresponse.rb +4 -4
- data/lib/comet/models/bucket_properties.rb +6 -6
- data/lib/comet/models/bucket_usage_info.rb +3 -3
- data/lib/comet/models/comet_apiresponse_message.rb +4 -4
- data/lib/comet/models/comet_destination_location.rb +5 -5
- data/lib/comet/models/constellation_check_report.rb +4 -4
- data/lib/comet/models/constellation_stats.rb +6 -6
- data/lib/comet/models/constellation_status_apiresponse.rb +4 -4
- data/lib/comet/models/content_measurement.rb +4 -4
- data/lib/comet/models/content_measurement_component.rb +4 -4
- data/lib/comet/models/create_group_policy_response.rb +5 -5
- data/lib/comet/models/default_email_report_policy.rb +2 -2
- data/lib/comet/models/destination_config.rb +44 -44
- data/lib/comet/models/destination_location.rb +34 -34
- data/lib/comet/models/destination_statistics.rb +5 -5
- data/lib/comet/models/device_config.rb +3 -3
- data/lib/comet/models/disk_drive.rb +13 -13
- data/lib/comet/models/dispatcher_admin_sources_response.rb +5 -5
- data/lib/comet/models/dispatcher_stored_objects_response.rb +4 -4
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +4 -4
- data/lib/comet/models/edbfile_info.rb +5 -5
- data/lib/comet/models/email_options.rb +9 -9
- data/lib/comet/models/email_report_config.rb +3 -3
- data/lib/comet/models/email_report_generated_preview.rb +7 -7
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +6 -6
- data/lib/comet/models/extra_file_exclusion.rb +4 -4
- data/lib/comet/models/ftpdestination_location.rb +9 -9
- data/lib/comet/models/get_group_policy_response.rb +5 -5
- data/lib/comet/models/get_profile_and_hash_response_message.rb +5 -5
- data/lib/comet/models/get_profile_hash_response_message.rb +5 -5
- data/lib/comet/models/group_policy.rb +4 -4
- data/lib/comet/models/hyper_vmachine_info.rb +4 -4
- data/lib/comet/models/install_creds.rb +5 -5
- data/lib/comet/models/install_token.rb +7 -7
- data/lib/comet/models/install_token_response.rb +4 -4
- data/lib/comet/models/job_entry.rb +5 -5
- data/lib/comet/models/live_user_connection.rb +8 -8
- data/lib/comet/models/local_destination_location.rb +6 -6
- data/lib/comet/models/mac_oscode_sign_properties.rb +8 -8
- data/lib/comet/models/mongo_dbconnection.rb +15 -15
- data/lib/comet/models/new_bucket_detail.rb +4 -4
- data/lib/comet/models/news_entry.rb +5 -5
- data/lib/comet/models/organization.rb +4 -4
- data/lib/comet/models/organization_response.rb +5 -5
- data/lib/comet/models/osinfo.rb +5 -5
- data/lib/comet/models/partition.rb +13 -13
- data/lib/comet/models/private_branding_properties.rb +17 -17
- data/lib/comet/models/protected_item_engine_type_policy.rb +3 -3
- data/lib/comet/models/public_branding_properties.rb +8 -8
- data/lib/comet/models/remote_server_address.rb +7 -7
- data/lib/comet/models/remote_storage_option.rb +8 -8
- data/lib/comet/models/replicator_state_apiresponse.rb +14 -14
- data/lib/comet/models/request_storage_vault_response_message.rb +5 -5
- data/lib/comet/models/restore_job_advanced_options.rb +6 -6
- data/lib/comet/models/retention_policy.rb +3 -3
- data/lib/comet/models/retention_range.rb +10 -10
- data/lib/comet/models/s3destination_location.rb +7 -7
- data/lib/comet/models/schedule_config.rb +5 -5
- data/lib/comet/models/search_clause.rb +6 -6
- data/lib/comet/models/server_config_options_branding_fragment.rb +2 -2
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +2 -2
- data/lib/comet/models/server_meta_version_info.rb +17 -17
- data/lib/comet/models/session_key_regenerated_response.rb +6 -6
- data/lib/comet/models/sftpdestination_location.rb +9 -9
- data/lib/comet/models/size_measurement.rb +5 -5
- data/lib/comet/models/software_build_role_options.rb +2 -2
- data/lib/comet/models/software_update_news_response.rb +6 -6
- data/lib/comet/models/source_basic_info.rb +4 -4
- data/lib/comet/models/source_config.rb +11 -11
- data/lib/comet/models/source_statistics.rb +2 -2
- data/lib/comet/models/spanned_destination_location.rb +2 -2
- data/lib/comet/models/spanned_storage_extra_info.rb +2 -2
- data/lib/comet/models/sshconnection.rb +8 -8
- data/lib/comet/models/stat_result.rb +6 -6
- data/lib/comet/models/storage_free_space_info.rb +4 -4
- data/lib/comet/models/storage_vault_provider_policy.rb +3 -3
- data/lib/comet/models/stored_object.rb +10 -10
- data/lib/comet/models/streamable_event.rb +4 -4
- data/lib/comet/models/swift_destination_location.rb +15 -15
- data/lib/comet/models/test_response.rb +4 -4
- data/lib/comet/models/totp_regenerated_response.rb +7 -7
- data/lib/comet/models/u2fregister_request.rb +4 -4
- data/lib/comet/models/u2fregistered_key.rb +5 -5
- data/lib/comet/models/u2fregistration_challenge_response.rb +6 -6
- data/lib/comet/models/u2fsign_request.rb +5 -5
- data/lib/comet/models/u2fsign_response.rb +6 -6
- data/lib/comet/models/uninstall_config.rb +2 -2
- data/lib/comet/models/update_campaign_device_status.rb +3 -3
- data/lib/comet/models/update_campaign_options.rb +2 -2
- data/lib/comet/models/update_campaign_properties.rb +4 -4
- data/lib/comet/models/update_campaign_status.rb +4 -4
- data/lib/comet/models/update_campaign_status_device_entry.rb +5 -5
- data/lib/comet/models/user_custom_email_settings.rb +2 -2
- data/lib/comet/models/user_on_server.rb +4 -4
- data/lib/comet/models/user_policy.rb +6 -6
- data/lib/comet/models/user_profile_config.rb +18 -18
- data/lib/comet/models/user_profile_fragment.rb +3 -3
- data/lib/comet/models/vault_snapshot.rb +5 -5
- data/lib/comet/models/vsscomponent.rb +5 -5
- data/lib/comet/models/vsswriter_info.rb +3 -3
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +5 -5
- data/lib/comet/models/web_interface_branding_properties.rb +6 -6
- data/lib/comet/models/webhook_option.rb +4 -4
- data/lib/comet/models/win_smbauth.rb +6 -6
- data/lib/comet/models/windows_code_sign_properties.rb +11 -11
- metadata +2 -2
@@ -236,27 +236,27 @@ module Comet
|
|
236
236
|
|
237
237
|
# @param [String] json_string The complete object in JSON format
|
238
238
|
def from_json(json_string)
|
239
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
239
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
240
240
|
|
241
241
|
from_hash(JSON.parse(json_string))
|
242
242
|
end
|
243
243
|
|
244
244
|
# @param [Hash] obj The complete object as a Ruby hash
|
245
245
|
def from_hash(obj)
|
246
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
246
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
247
247
|
|
248
248
|
obj.each do |k, v|
|
249
249
|
case k
|
250
250
|
when 'Description'
|
251
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
251
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
252
252
|
|
253
253
|
@description = v
|
254
254
|
when 'CreateTime'
|
255
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
255
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
256
256
|
|
257
257
|
@create_time = v
|
258
258
|
when 'ModifyTime'
|
259
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
259
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
260
260
|
|
261
261
|
@modify_time = v
|
262
262
|
when 'PreExec'
|
@@ -265,7 +265,7 @@ module Comet
|
|
265
265
|
else
|
266
266
|
@pre_exec = Array.new(v.length)
|
267
267
|
v.each_with_index do |v1, i1|
|
268
|
-
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
268
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
269
269
|
|
270
270
|
@pre_exec[i1] = v1
|
271
271
|
end
|
@@ -276,7 +276,7 @@ module Comet
|
|
276
276
|
else
|
277
277
|
@thaw_exec = Array.new(v.length)
|
278
278
|
v.each_with_index do |v1, i1|
|
279
|
-
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
279
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
280
280
|
|
281
281
|
@thaw_exec[i1] = v1
|
282
282
|
end
|
@@ -287,147 +287,147 @@ module Comet
|
|
287
287
|
else
|
288
288
|
@post_exec = Array.new(v.length)
|
289
289
|
v.each_with_index do |v1, i1|
|
290
|
-
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
290
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
291
291
|
|
292
292
|
@post_exec[i1] = v1
|
293
293
|
end
|
294
294
|
end
|
295
295
|
when 'DestinationType'
|
296
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
296
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
297
297
|
|
298
298
|
@destination_type = v
|
299
299
|
when 'CometServer'
|
300
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
300
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
301
301
|
|
302
302
|
@comet_server = v
|
303
303
|
when 'CometBucket'
|
304
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
304
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
305
305
|
|
306
306
|
@comet_bucket = v
|
307
307
|
when 'CometBucketKey'
|
308
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
308
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
309
309
|
|
310
310
|
@comet_bucket_key = v
|
311
311
|
when 'S3Server'
|
312
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
312
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
313
313
|
|
314
314
|
@s3server = v
|
315
315
|
when 'S3UsesTLS'
|
316
316
|
@s3uses_tls = v
|
317
317
|
when 'S3AccessKey'
|
318
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
318
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
319
319
|
|
320
320
|
@s3access_key = v
|
321
321
|
when 'S3SecretKey'
|
322
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
322
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
323
323
|
|
324
324
|
@s3secret_key = v
|
325
325
|
when 'S3BucketName'
|
326
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
326
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
327
327
|
|
328
328
|
@s3bucket_name = v
|
329
329
|
when 'S3Subdir'
|
330
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
330
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
331
331
|
|
332
332
|
@s3subdir = v
|
333
333
|
when 'S3UsesV2Signing'
|
334
334
|
@s3uses_v2signing = v
|
335
335
|
when 'SFTPServer'
|
336
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
336
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
337
337
|
|
338
338
|
@sftpserver = v
|
339
339
|
when 'SFTPUsername'
|
340
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
340
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
341
341
|
|
342
342
|
@sftpusername = v
|
343
343
|
when 'SFTPRemotePath'
|
344
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
344
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
345
345
|
|
346
346
|
@sftpremote_path = v
|
347
347
|
when 'SFTPAuthMode'
|
348
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
348
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
349
349
|
|
350
350
|
@sftpauth_mode = v
|
351
351
|
when 'SFTPPassword'
|
352
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
352
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
353
353
|
|
354
354
|
@sftppassword = v
|
355
355
|
when 'SFTPPrivateKey'
|
356
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
356
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
357
357
|
|
358
358
|
@sftpprivate_key = v
|
359
359
|
when 'SFTPCustomAuth_UseKnownHostsFile'
|
360
360
|
@sftpcustom_auth__use_known_hosts_file = v
|
361
361
|
when 'SFTPCustomAuth_KnownHostsFile'
|
362
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
362
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
363
363
|
|
364
364
|
@sftpcustom_auth__known_hosts_file = v
|
365
365
|
when 'FTPServer'
|
366
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
366
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
367
367
|
|
368
368
|
@ftpserver = v
|
369
369
|
when 'FTPUsername'
|
370
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
370
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
371
371
|
|
372
372
|
@ftpusername = v
|
373
373
|
when 'FTPPassword'
|
374
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
374
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
375
375
|
|
376
376
|
@ftppassword = v
|
377
377
|
when 'FTPBaseUseHomeDirectory'
|
378
378
|
@ftpbase_use_home_directory = v
|
379
379
|
when 'FTPCustomBaseDirectory'
|
380
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
380
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
381
381
|
|
382
382
|
@ftpcustom_base_directory = v
|
383
383
|
when 'FTPSMode'
|
384
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
384
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
385
385
|
|
386
386
|
@ftpsmode = v
|
387
387
|
when 'FTPPort'
|
388
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
388
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
389
389
|
|
390
390
|
@ftpport = v
|
391
391
|
when 'FTPMaxConnections'
|
392
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
392
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
393
393
|
|
394
394
|
@ftpmax_connections = v
|
395
395
|
when 'FTPAcceptInvalidSSL'
|
396
396
|
@ftpaccept_invalid_ssl = v
|
397
397
|
when 'AZBAccountName'
|
398
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
398
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
399
399
|
|
400
400
|
@azbaccount_name = v
|
401
401
|
when 'AZBAccountKey'
|
402
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
402
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
403
403
|
|
404
404
|
@azbaccount_key = v
|
405
405
|
when 'AZBContainer'
|
406
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
406
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
407
407
|
|
408
408
|
@azbcontainer = v
|
409
409
|
when 'AZBRealm'
|
410
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
410
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
411
411
|
|
412
412
|
@azbrealm = v
|
413
413
|
when 'AZBPrefix'
|
414
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
414
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
415
415
|
|
416
416
|
@azbprefix = v
|
417
417
|
when 'LocalcopyPath'
|
418
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
418
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
419
419
|
|
420
420
|
@localcopy_path = v
|
421
421
|
when 'LocalcopyWinSMBUsername'
|
422
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
422
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
423
423
|
|
424
424
|
@localcopy_win_smbusername = v
|
425
425
|
when 'LocalcopyWinSMBPassword'
|
426
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
426
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
427
427
|
|
428
428
|
@localcopy_win_smbpassword = v
|
429
429
|
when 'LocalcopyWinSMBPasswordFormat'
|
430
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
430
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
431
431
|
|
432
432
|
@localcopy_win_smbpassword_format = v
|
433
433
|
when 'Swift'
|
@@ -447,21 +447,21 @@ module Comet
|
|
447
447
|
end
|
448
448
|
end
|
449
449
|
when 'EncryptionKeyEncryptionMethod'
|
450
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
450
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
451
451
|
|
452
452
|
@encryption_key_encryption_method = v
|
453
453
|
when 'EncryptedEncryptionKey'
|
454
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
454
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
455
455
|
|
456
456
|
@encrypted_encryption_key = v
|
457
457
|
when 'RepoInitTimestamp'
|
458
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
458
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
459
459
|
|
460
460
|
@repo_init_timestamp = v
|
461
461
|
when 'StorageLimitEnabled'
|
462
462
|
@storage_limit_enabled = v
|
463
463
|
when 'StorageLimitBytes'
|
464
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
464
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
465
465
|
|
466
466
|
@storage_limit_bytes = v
|
467
467
|
when 'Statistics'
|
@@ -182,153 +182,153 @@ module Comet
|
|
182
182
|
|
183
183
|
# @param [String] json_string The complete object in JSON format
|
184
184
|
def from_json(json_string)
|
185
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
185
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
186
186
|
|
187
187
|
from_hash(JSON.parse(json_string))
|
188
188
|
end
|
189
189
|
|
190
190
|
# @param [Hash] obj The complete object as a Ruby hash
|
191
191
|
def from_hash(obj)
|
192
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
192
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
193
193
|
|
194
194
|
obj.each do |k, v|
|
195
195
|
case k
|
196
196
|
when 'DestinationType'
|
197
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
197
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
198
198
|
|
199
199
|
@destination_type = v
|
200
200
|
when 'CometServer'
|
201
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
201
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
202
202
|
|
203
203
|
@comet_server = v
|
204
204
|
when 'CometBucket'
|
205
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
205
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
206
206
|
|
207
207
|
@comet_bucket = v
|
208
208
|
when 'CometBucketKey'
|
209
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
209
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
210
210
|
|
211
211
|
@comet_bucket_key = v
|
212
212
|
when 'S3Server'
|
213
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
213
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
214
214
|
|
215
215
|
@s3server = v
|
216
216
|
when 'S3UsesTLS'
|
217
217
|
@s3uses_tls = v
|
218
218
|
when 'S3AccessKey'
|
219
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
219
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
220
220
|
|
221
221
|
@s3access_key = v
|
222
222
|
when 'S3SecretKey'
|
223
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
223
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
224
224
|
|
225
225
|
@s3secret_key = v
|
226
226
|
when 'S3BucketName'
|
227
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
227
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
228
228
|
|
229
229
|
@s3bucket_name = v
|
230
230
|
when 'S3Subdir'
|
231
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
231
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
232
232
|
|
233
233
|
@s3subdir = v
|
234
234
|
when 'S3UsesV2Signing'
|
235
235
|
@s3uses_v2signing = v
|
236
236
|
when 'SFTPServer'
|
237
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
237
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
238
238
|
|
239
239
|
@sftpserver = v
|
240
240
|
when 'SFTPUsername'
|
241
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
241
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
242
242
|
|
243
243
|
@sftpusername = v
|
244
244
|
when 'SFTPRemotePath'
|
245
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
245
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
246
246
|
|
247
247
|
@sftpremote_path = v
|
248
248
|
when 'SFTPAuthMode'
|
249
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
249
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
250
250
|
|
251
251
|
@sftpauth_mode = v
|
252
252
|
when 'SFTPPassword'
|
253
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
253
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
254
254
|
|
255
255
|
@sftppassword = v
|
256
256
|
when 'SFTPPrivateKey'
|
257
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
257
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
258
258
|
|
259
259
|
@sftpprivate_key = v
|
260
260
|
when 'SFTPCustomAuth_UseKnownHostsFile'
|
261
261
|
@sftpcustom_auth__use_known_hosts_file = v
|
262
262
|
when 'SFTPCustomAuth_KnownHostsFile'
|
263
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
263
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
264
264
|
|
265
265
|
@sftpcustom_auth__known_hosts_file = v
|
266
266
|
when 'FTPServer'
|
267
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
267
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
268
268
|
|
269
269
|
@ftpserver = v
|
270
270
|
when 'FTPUsername'
|
271
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
271
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
272
272
|
|
273
273
|
@ftpusername = v
|
274
274
|
when 'FTPPassword'
|
275
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
275
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
276
276
|
|
277
277
|
@ftppassword = v
|
278
278
|
when 'FTPBaseUseHomeDirectory'
|
279
279
|
@ftpbase_use_home_directory = v
|
280
280
|
when 'FTPCustomBaseDirectory'
|
281
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
281
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
282
282
|
|
283
283
|
@ftpcustom_base_directory = v
|
284
284
|
when 'FTPSMode'
|
285
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
285
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
286
286
|
|
287
287
|
@ftpsmode = v
|
288
288
|
when 'FTPPort'
|
289
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
289
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
290
290
|
|
291
291
|
@ftpport = v
|
292
292
|
when 'FTPMaxConnections'
|
293
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
293
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
294
294
|
|
295
295
|
@ftpmax_connections = v
|
296
296
|
when 'FTPAcceptInvalidSSL'
|
297
297
|
@ftpaccept_invalid_ssl = v
|
298
298
|
when 'AZBAccountName'
|
299
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
299
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
300
300
|
|
301
301
|
@azbaccount_name = v
|
302
302
|
when 'AZBAccountKey'
|
303
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
303
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
304
304
|
|
305
305
|
@azbaccount_key = v
|
306
306
|
when 'AZBContainer'
|
307
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
307
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
308
308
|
|
309
309
|
@azbcontainer = v
|
310
310
|
when 'AZBRealm'
|
311
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
311
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
312
312
|
|
313
313
|
@azbrealm = v
|
314
314
|
when 'AZBPrefix'
|
315
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
315
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
316
316
|
|
317
317
|
@azbprefix = v
|
318
318
|
when 'LocalcopyPath'
|
319
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
319
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
320
320
|
|
321
321
|
@localcopy_path = v
|
322
322
|
when 'LocalcopyWinSMBUsername'
|
323
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
323
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
324
324
|
|
325
325
|
@localcopy_win_smbusername = v
|
326
326
|
when 'LocalcopyWinSMBPassword'
|
327
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
327
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
328
328
|
|
329
329
|
@localcopy_win_smbpassword = v
|
330
330
|
when 'LocalcopyWinSMBPasswordFormat'
|
331
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
331
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
332
332
|
|
333
333
|
@localcopy_win_smbpassword_format = v
|
334
334
|
when 'Swift'
|
@@ -47,14 +47,14 @@ module Comet
|
|
47
47
|
|
48
48
|
# @param [String] json_string The complete object in JSON format
|
49
49
|
def from_json(json_string)
|
50
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
50
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
51
51
|
|
52
52
|
from_hash(JSON.parse(json_string))
|
53
53
|
end
|
54
54
|
|
55
55
|
# @param [Hash] obj The complete object as a Ruby hash
|
56
56
|
def from_hash(obj)
|
57
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
57
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
58
58
|
|
59
59
|
obj.each do |k, v|
|
60
60
|
case k
|
@@ -65,15 +65,15 @@ module Comet
|
|
65
65
|
@client_provided_content = Comet::ContentMeasurement.new
|
66
66
|
@client_provided_content.from_hash(v)
|
67
67
|
when 'LastSuccessfulDeepVerify_GUID'
|
68
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
68
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
69
69
|
|
70
70
|
@last_successful_deep_verify__guid = v
|
71
71
|
when 'LastSuccessfulDeepVerify_StartTime'
|
72
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
72
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
73
73
|
|
74
74
|
@last_successful_deep_verify__start_time = v
|
75
75
|
when 'LastSuccessfulDeepVerify_EndTime'
|
76
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
76
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
77
77
|
|
78
78
|
@last_successful_deep_verify__end_time = v
|
79
79
|
else
|