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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/Gemfile.lock +1 -1
  4. data/comet_backup_ruby_sdk.gemspec +1 -1
  5. data/lib/comet/comet_server.rb +244 -158
  6. data/lib/comet/definitions.rb +4 -4
  7. data/lib/comet/models/add_bucket_response_message.rb +6 -6
  8. data/lib/comet/models/admin_account_properties_response.rb +3 -3
  9. data/lib/comet/models/admin_email_options.rb +4 -4
  10. data/lib/comet/models/admin_resource_response.rb +5 -5
  11. data/lib/comet/models/admin_security_options.rb +7 -7
  12. data/lib/comet/models/admin_u2fregistration.rb +4 -4
  13. data/lib/comet/models/admin_user_permissions.rb +2 -2
  14. data/lib/comet/models/available_download.rb +4 -4
  15. data/lib/comet/models/azure_destination_location.rb +7 -7
  16. data/lib/comet/models/b2destination_location.rb +7 -7
  17. data/lib/comet/models/b2storage_extra_info.rb +2 -2
  18. data/lib/comet/models/b2transaction_totals.rb +5 -5
  19. data/lib/comet/models/b2virtual_storage_role_settings.rb +5 -5
  20. data/lib/comet/models/backup_job_advanced_options.rb +4 -4
  21. data/lib/comet/models/backup_job_detail.rb +20 -20
  22. data/lib/comet/models/backup_job_progress.rb +7 -7
  23. data/lib/comet/models/backup_rule_config.rb +12 -12
  24. data/lib/comet/models/backup_rule_event_triggers.rb +2 -2
  25. data/lib/comet/models/branding_options.rb +27 -27
  26. data/lib/comet/models/branding_properties.rb +23 -23
  27. data/lib/comet/models/browse_disk_drives_response.rb +4 -4
  28. data/lib/comet/models/browse_edbresponse.rb +4 -4
  29. data/lib/comet/models/browse_hvresponse.rb +4 -4
  30. data/lib/comet/models/browse_vssresponse.rb +4 -4
  31. data/lib/comet/models/bucket_properties.rb +6 -6
  32. data/lib/comet/models/bucket_usage_info.rb +3 -3
  33. data/lib/comet/models/comet_apiresponse_message.rb +4 -4
  34. data/lib/comet/models/comet_destination_location.rb +5 -5
  35. data/lib/comet/models/constellation_check_report.rb +4 -4
  36. data/lib/comet/models/constellation_stats.rb +6 -6
  37. data/lib/comet/models/constellation_status_apiresponse.rb +4 -4
  38. data/lib/comet/models/content_measurement.rb +4 -4
  39. data/lib/comet/models/content_measurement_component.rb +4 -4
  40. data/lib/comet/models/create_group_policy_response.rb +5 -5
  41. data/lib/comet/models/default_email_report_policy.rb +2 -2
  42. data/lib/comet/models/destination_config.rb +44 -44
  43. data/lib/comet/models/destination_location.rb +34 -34
  44. data/lib/comet/models/destination_statistics.rb +5 -5
  45. data/lib/comet/models/device_config.rb +3 -3
  46. data/lib/comet/models/disk_drive.rb +13 -13
  47. data/lib/comet/models/dispatcher_admin_sources_response.rb +5 -5
  48. data/lib/comet/models/dispatcher_stored_objects_response.rb +4 -4
  49. data/lib/comet/models/dispatcher_vault_snapshots_response.rb +4 -4
  50. data/lib/comet/models/edbfile_info.rb +5 -5
  51. data/lib/comet/models/email_options.rb +9 -9
  52. data/lib/comet/models/email_report_config.rb +3 -3
  53. data/lib/comet/models/email_report_generated_preview.rb +7 -7
  54. data/lib/comet/models/external_ldapauthentication_source_settings.rb +6 -6
  55. data/lib/comet/models/extra_file_exclusion.rb +4 -4
  56. data/lib/comet/models/ftpdestination_location.rb +9 -9
  57. data/lib/comet/models/get_group_policy_response.rb +5 -5
  58. data/lib/comet/models/get_profile_and_hash_response_message.rb +5 -5
  59. data/lib/comet/models/get_profile_hash_response_message.rb +5 -5
  60. data/lib/comet/models/group_policy.rb +4 -4
  61. data/lib/comet/models/hyper_vmachine_info.rb +4 -4
  62. data/lib/comet/models/install_creds.rb +5 -5
  63. data/lib/comet/models/install_token.rb +7 -7
  64. data/lib/comet/models/install_token_response.rb +4 -4
  65. data/lib/comet/models/job_entry.rb +5 -5
  66. data/lib/comet/models/live_user_connection.rb +8 -8
  67. data/lib/comet/models/local_destination_location.rb +6 -6
  68. data/lib/comet/models/mac_oscode_sign_properties.rb +8 -8
  69. data/lib/comet/models/mongo_dbconnection.rb +15 -15
  70. data/lib/comet/models/new_bucket_detail.rb +4 -4
  71. data/lib/comet/models/news_entry.rb +5 -5
  72. data/lib/comet/models/organization.rb +4 -4
  73. data/lib/comet/models/organization_response.rb +5 -5
  74. data/lib/comet/models/osinfo.rb +5 -5
  75. data/lib/comet/models/partition.rb +13 -13
  76. data/lib/comet/models/private_branding_properties.rb +17 -17
  77. data/lib/comet/models/protected_item_engine_type_policy.rb +3 -3
  78. data/lib/comet/models/public_branding_properties.rb +8 -8
  79. data/lib/comet/models/remote_server_address.rb +7 -7
  80. data/lib/comet/models/remote_storage_option.rb +8 -8
  81. data/lib/comet/models/replicator_state_apiresponse.rb +14 -14
  82. data/lib/comet/models/request_storage_vault_response_message.rb +5 -5
  83. data/lib/comet/models/restore_job_advanced_options.rb +6 -6
  84. data/lib/comet/models/retention_policy.rb +3 -3
  85. data/lib/comet/models/retention_range.rb +10 -10
  86. data/lib/comet/models/s3destination_location.rb +7 -7
  87. data/lib/comet/models/schedule_config.rb +5 -5
  88. data/lib/comet/models/search_clause.rb +6 -6
  89. data/lib/comet/models/server_config_options_branding_fragment.rb +2 -2
  90. data/lib/comet/models/server_config_options_software_build_role_fragment.rb +2 -2
  91. data/lib/comet/models/server_meta_version_info.rb +17 -17
  92. data/lib/comet/models/session_key_regenerated_response.rb +6 -6
  93. data/lib/comet/models/sftpdestination_location.rb +9 -9
  94. data/lib/comet/models/size_measurement.rb +5 -5
  95. data/lib/comet/models/software_build_role_options.rb +2 -2
  96. data/lib/comet/models/software_update_news_response.rb +6 -6
  97. data/lib/comet/models/source_basic_info.rb +4 -4
  98. data/lib/comet/models/source_config.rb +11 -11
  99. data/lib/comet/models/source_statistics.rb +2 -2
  100. data/lib/comet/models/spanned_destination_location.rb +2 -2
  101. data/lib/comet/models/spanned_storage_extra_info.rb +2 -2
  102. data/lib/comet/models/sshconnection.rb +8 -8
  103. data/lib/comet/models/stat_result.rb +6 -6
  104. data/lib/comet/models/storage_free_space_info.rb +4 -4
  105. data/lib/comet/models/storage_vault_provider_policy.rb +3 -3
  106. data/lib/comet/models/stored_object.rb +10 -10
  107. data/lib/comet/models/streamable_event.rb +4 -4
  108. data/lib/comet/models/swift_destination_location.rb +15 -15
  109. data/lib/comet/models/test_response.rb +4 -4
  110. data/lib/comet/models/totp_regenerated_response.rb +7 -7
  111. data/lib/comet/models/u2fregister_request.rb +4 -4
  112. data/lib/comet/models/u2fregistered_key.rb +5 -5
  113. data/lib/comet/models/u2fregistration_challenge_response.rb +6 -6
  114. data/lib/comet/models/u2fsign_request.rb +5 -5
  115. data/lib/comet/models/u2fsign_response.rb +6 -6
  116. data/lib/comet/models/uninstall_config.rb +2 -2
  117. data/lib/comet/models/update_campaign_device_status.rb +3 -3
  118. data/lib/comet/models/update_campaign_options.rb +2 -2
  119. data/lib/comet/models/update_campaign_properties.rb +4 -4
  120. data/lib/comet/models/update_campaign_status.rb +4 -4
  121. data/lib/comet/models/update_campaign_status_device_entry.rb +5 -5
  122. data/lib/comet/models/user_custom_email_settings.rb +2 -2
  123. data/lib/comet/models/user_on_server.rb +4 -4
  124. data/lib/comet/models/user_policy.rb +6 -6
  125. data/lib/comet/models/user_profile_config.rb +18 -18
  126. data/lib/comet/models/user_profile_fragment.rb +3 -3
  127. data/lib/comet/models/vault_snapshot.rb +5 -5
  128. data/lib/comet/models/vsscomponent.rb +5 -5
  129. data/lib/comet/models/vsswriter_info.rb +3 -3
  130. data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +5 -5
  131. data/lib/comet/models/web_interface_branding_properties.rb +6 -6
  132. data/lib/comet/models/webhook_option.rb +4 -4
  133. data/lib/comet/models/win_smbauth.rb +6 -6
  134. data/lib/comet/models/windows_code_sign_properties.rb +11 -11
  135. 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