comet_backup_ruby_sdk 1.11.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/.rubocop.yml +0 -0
  4. data/CHANGELOG.md +12 -2
  5. data/Gemfile +0 -0
  6. data/Gemfile.lock +1 -1
  7. data/LICENSE +0 -0
  8. data/RELEASING.md +1 -1
  9. data/Rakefile +0 -0
  10. data/comet_backup_ruby_sdk.gemspec +1 -1
  11. data/lib/comet/api_response_error.rb +1 -1
  12. data/lib/comet/comet_server.rb +26 -1
  13. data/lib/comet/definitions.rb +33 -12
  14. data/lib/comet/models/add_bucket_response_message.rb +1 -1
  15. data/lib/comet/models/admin_account_properties_response.rb +1 -1
  16. data/lib/comet/models/admin_email_options.rb +1 -1
  17. data/lib/comet/models/admin_resource_response.rb +1 -1
  18. data/lib/comet/models/admin_security_options.rb +3 -1
  19. data/lib/comet/models/admin_u2fregistration.rb +2 -1
  20. data/lib/comet/models/admin_user_permissions.rb +1 -1
  21. data/lib/comet/models/admin_web_authn_registration.rb +10 -1
  22. data/lib/comet/models/allowed_admin_user.rb +3 -1
  23. data/lib/comet/models/available_download.rb +1 -1
  24. data/lib/comet/models/azure_destination_location.rb +1 -1
  25. data/lib/comet/models/b2destination_location.rb +2 -1
  26. data/lib/comet/models/b2storage_extra_info.rb +1 -1
  27. data/lib/comet/models/b2transaction_totals.rb +1 -1
  28. data/lib/comet/models/b2virtual_storage_role_settings.rb +1 -1
  29. data/lib/comet/models/backup_job_advanced_options.rb +1 -1
  30. data/lib/comet/models/backup_job_detail.rb +43 -1
  31. data/lib/comet/models/backup_job_progress.rb +1 -1
  32. data/lib/comet/models/backup_rule_config.rb +1 -1
  33. data/lib/comet/models/backup_rule_event_triggers.rb +1 -1
  34. data/lib/comet/models/branding_options.rb +1 -1
  35. data/lib/comet/models/branding_properties.rb +1 -1
  36. data/lib/comet/models/browse_disk_drives_response.rb +1 -1
  37. data/lib/comet/models/browse_edbresponse.rb +1 -1
  38. data/lib/comet/models/browse_hvresponse.rb +1 -1
  39. data/lib/comet/models/browse_office_365list_virtual_accounts_response.rb +1 -1
  40. data/lib/comet/models/browse_office_365objects_response.rb +1 -1
  41. data/lib/comet/models/browse_sqlserver_response.rb +1 -1
  42. data/lib/comet/models/browse_vssresponse.rb +1 -1
  43. data/lib/comet/models/bucket_properties.rb +1 -1
  44. data/lib/comet/models/bucket_usage_info.rb +1 -1
  45. data/lib/comet/models/comet_apiresponse_message.rb +1 -1
  46. data/lib/comet/models/comet_destination_location.rb +1 -1
  47. data/lib/comet/models/constellation_check_report.rb +1 -1
  48. data/lib/comet/models/constellation_stats.rb +1 -1
  49. data/lib/comet/models/constellation_status_apiresponse.rb +1 -1
  50. data/lib/comet/models/content_measurement.rb +1 -1
  51. data/lib/comet/models/content_measurement_component.rb +1 -1
  52. data/lib/comet/models/create_group_policy_response.rb +1 -1
  53. data/lib/comet/models/custom_remote_bucket_settings.rb +1 -1
  54. data/lib/comet/models/default_email_report_policy.rb +1 -1
  55. data/lib/comet/models/default_source_with_osrestriction.rb +1 -1
  56. data/lib/comet/models/destination_config.rb +1 -1
  57. data/lib/comet/models/destination_location.rb +1 -1
  58. data/lib/comet/models/destination_statistics.rb +1 -1
  59. data/lib/comet/models/device_config.rb +1 -1
  60. data/lib/comet/models/disk_drive.rb +1 -1
  61. data/lib/comet/models/dispatcher_admin_sources_response.rb +1 -1
  62. data/lib/comet/models/dispatcher_stored_objects_response.rb +1 -1
  63. data/lib/comet/models/dispatcher_vault_snapshots_response.rb +1 -1
  64. data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +1 -1
  65. data/lib/comet/models/edbfile_info.rb +1 -1
  66. data/lib/comet/models/email_options.rb +1 -1
  67. data/lib/comet/models/email_report_config.rb +1 -1
  68. data/lib/comet/models/email_report_generated_preview.rb +1 -1
  69. data/lib/comet/models/external_ldapauthentication_source_settings.rb +1 -1
  70. data/lib/comet/models/extra_file_exclusion.rb +1 -1
  71. data/lib/comet/models/ftpdestination_location.rb +1 -1
  72. data/lib/comet/models/get_group_policy_response.rb +1 -1
  73. data/lib/comet/models/get_profile_and_hash_response_message.rb +1 -1
  74. data/lib/comet/models/get_profile_hash_response_message.rb +1 -1
  75. data/lib/comet/models/group_policy.rb +1 -1
  76. data/lib/comet/models/hyper_vmachine_info.rb +1 -1
  77. data/lib/comet/models/install_creds.rb +1 -1
  78. data/lib/comet/models/install_token.rb +1 -1
  79. data/lib/comet/models/install_token_response.rb +1 -1
  80. data/lib/comet/models/job_entry.rb +1 -1
  81. data/lib/comet/models/live_user_connection.rb +1 -1
  82. data/lib/comet/models/local_destination_location.rb +1 -1
  83. data/lib/comet/models/mac_oscode_sign_properties.rb +1 -1
  84. data/lib/comet/models/mongo_dbconnection.rb +1 -1
  85. data/lib/comet/models/mssqlconnection.rb +1 -1
  86. data/lib/comet/models/my_sqlconnection.rb +1 -1
  87. data/lib/comet/models/new_bucket_detail.rb +1 -1
  88. data/lib/comet/models/news_entry.rb +1 -1
  89. data/lib/comet/models/office_365connection.rb +1 -1
  90. data/lib/comet/models/office_365credential.rb +1 -1
  91. data/lib/comet/models/office_365custom_setting.rb +2 -1
  92. data/lib/comet/models/office_365custom_setting_v2.rb +1 -1
  93. data/lib/comet/models/office_365mixed_virtual_account.rb +9 -1
  94. data/lib/comet/models/office_365object_info.rb +1 -1
  95. data/lib/comet/models/organization.rb +1 -1
  96. data/lib/comet/models/organization_response.rb +1 -1
  97. data/lib/comet/models/osinfo.rb +1 -1
  98. data/lib/comet/models/partition.rb +1 -1
  99. data/lib/comet/models/private_branding_properties.rb +1 -1
  100. data/lib/comet/models/protected_item_engine_type_policy.rb +1 -1
  101. data/lib/comet/models/public_branding_properties.rb +1 -1
  102. data/lib/comet/models/register_office_application_begin_response.rb +1 -1
  103. data/lib/comet/models/register_office_application_check_response.rb +1 -1
  104. data/lib/comet/models/remote_server_address.rb +1 -1
  105. data/lib/comet/models/remote_storage_option.rb +1 -1
  106. data/lib/comet/models/replicator_state_apiresponse.rb +1 -1
  107. data/lib/comet/models/request_storage_vault_response_message.rb +1 -1
  108. data/lib/comet/models/restore_job_advanced_options.rb +1 -1
  109. data/lib/comet/models/retention_policy.rb +1 -1
  110. data/lib/comet/models/retention_range.rb +1 -1
  111. data/lib/comet/models/s3destination_location.rb +1 -1
  112. data/lib/comet/models/schedule_config.rb +1 -1
  113. data/lib/comet/models/search_clause.rb +1 -1
  114. data/lib/comet/models/self_backup_statistics.rb +1 -1
  115. data/lib/comet/models/server_config_options_branding_fragment.rb +1 -1
  116. data/lib/comet/models/server_config_options_software_build_role_fragment.rb +1 -1
  117. data/lib/comet/models/server_meta_branding_properties.rb +1 -1
  118. data/lib/comet/models/server_meta_version_info.rb +1 -1
  119. data/lib/comet/models/session_key_regenerated_response.rb +1 -1
  120. data/lib/comet/models/sftpdestination_location.rb +1 -1
  121. data/lib/comet/models/size_measurement.rb +1 -1
  122. data/lib/comet/models/software_build_role_options.rb +1 -1
  123. data/lib/comet/models/software_update_news_response.rb +1 -1
  124. data/lib/comet/models/source_basic_info.rb +1 -1
  125. data/lib/comet/models/source_config.rb +1 -1
  126. data/lib/comet/models/source_include_pattern.rb +1 -1
  127. data/lib/comet/models/source_statistics.rb +1 -1
  128. data/lib/comet/models/spanned_destination_location.rb +1 -1
  129. data/lib/comet/models/spanned_storage_extra_info.rb +1 -1
  130. data/lib/comet/models/sshconnection.rb +1 -1
  131. data/lib/comet/models/stat_result.rb +1 -1
  132. data/lib/comet/models/storage_free_space_info.rb +1 -1
  133. data/lib/comet/models/storage_vault_provider_policy.rb +1 -1
  134. data/lib/comet/models/stored_object.rb +1 -1
  135. data/lib/comet/models/streamable_event.rb +1 -1
  136. data/lib/comet/models/swift_destination_location.rb +1 -1
  137. data/lib/comet/models/test_response.rb +1 -1
  138. data/lib/comet/models/totp_regenerated_response.rb +1 -1
  139. data/lib/comet/models/u2fregister_request.rb +2 -1
  140. data/lib/comet/models/u2fregistered_key.rb +2 -1
  141. data/lib/comet/models/u2fregistration_challenge_response.rb +2 -1
  142. data/lib/comet/models/u2fsign_request.rb +2 -1
  143. data/lib/comet/models/u2fsign_response.rb +2 -1
  144. data/lib/comet/models/uninstall_config.rb +1 -1
  145. data/lib/comet/models/update_campaign_device_status.rb +1 -1
  146. data/lib/comet/models/update_campaign_options.rb +1 -1
  147. data/lib/comet/models/update_campaign_properties.rb +1 -1
  148. data/lib/comet/models/update_campaign_status.rb +1 -1
  149. data/lib/comet/models/update_campaign_status_device_entry.rb +1 -1
  150. data/lib/comet/models/user_custom_email_settings.rb +1 -1
  151. data/lib/comet/models/user_on_server.rb +1 -1
  152. data/lib/comet/models/user_policy.rb +1 -1
  153. data/lib/comet/models/user_profile_config.rb +1 -1
  154. data/lib/comet/models/user_profile_fragment.rb +1 -1
  155. data/lib/comet/models/vault_snapshot.rb +1 -1
  156. data/lib/comet/models/vsscomponent.rb +1 -1
  157. data/lib/comet/models/vsswriter_info.rb +1 -1
  158. data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +1 -1
  159. data/lib/comet/models/web_authn_authenticator_selection.rb +1 -1
  160. data/lib/comet/models/web_authn_credential.rb +1 -1
  161. data/lib/comet/models/web_authn_credential_assertion.rb +1 -1
  162. data/lib/comet/models/web_authn_credential_descriptor.rb +1 -1
  163. data/lib/comet/models/web_authn_credential_entity.rb +1 -1
  164. data/lib/comet/models/web_authn_credential_parameter.rb +1 -1
  165. data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +3 -4
  166. data/lib/comet/models/web_authn_public_key_credential_request_options.rb +3 -4
  167. data/lib/comet/models/web_authn_registration_challenge_response.rb +1 -1
  168. data/lib/comet/models/web_authn_relying_party_entity.rb +1 -1
  169. data/lib/comet/models/web_authn_sign_request.rb +1 -1
  170. data/lib/comet/models/web_authn_sign_response.rb +1 -1
  171. data/lib/comet/models/web_authn_user_entity.rb +1 -1
  172. data/lib/comet/models/web_interface_branding_properties.rb +1 -1
  173. data/lib/comet/models/webhook_option.rb +1 -1
  174. data/lib/comet/models/win_smbauth.rb +1 -1
  175. data/lib/comet/models/windows_code_sign_properties.rb +1 -1
  176. data/lib/comet_backup_ruby_sdk.rb +1 -1
  177. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d320abff24079c6c63042f2319ab6bf85895df807ae4e3c64e28f124931439d
4
- data.tar.gz: 54992cd97acfdea46b281ec833bd6b42a5ee56968ca0f6a9a59a2dfaee4ee97b
3
+ metadata.gz: 69a41caa98a2a94326271b4b1ee4f2d7f61e98b0d62c1964ac1707e1984dca72
4
+ data.tar.gz: 3dce1759fcc473dcd64b592cfab33633ae31fe619ea07b0a9e13719c7981e5da
5
5
  SHA512:
6
- metadata.gz: 3554197606a2d10499e981d642f7b2ad5645b2a424f13be88cf0be3d118da6c6df0caf9a784cc1d0c2536f9b591ef8320b1a04e46fffe0e42c4372c677dafa87
7
- data.tar.gz: '0921fc302340b38c77bb6f7733c447d274347dc7379a8916b7f5a4fea0b97c666cdc126d793075be180ea40d431db1449659f279779bf965513c7e5af1235cb2'
6
+ metadata.gz: b3f505381b2cd44a90667f1de2f8fa6d4b99cffeb106e271eac055545ea7f51c57c948077baabb52025b120ded6efe0bd1bbbcf3df5b3dceabc84960b5040a3f
7
+ data.tar.gz: 4a3588488fb2a2da49662460438c0e8d85f7f57cb7fdd654199c30fe6c4bfd820e418872a8f0f751c1a7094d0d6b0754809c4fcb94cf98846cbbe3810eb341a0
data/.gitignore CHANGED
File without changes
data/.rubocop.yml CHANGED
File without changes
data/CHANGELOG.md CHANGED
@@ -1,9 +1,19 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2022-01-28 v1.12.0
4
+ - Based on 21.12.4
5
+ - Add `AdminStoragePingDestination` API to perform a server-side Test Connections action when configuring Storage Role
6
+ - Add `HasLicense` on `Office365MixedVirtualAccount` struct, and add `TotalLicensedMailsCount` and `TotalUnlicensedMailsCount` on `BackupJobDetail` struct, to track Office 365 license usage
7
+ - Add `AdminWebAuthnRegistration` new `Type` field and `WEBAUTHN_DEVICE_TYPE` constants, to determine the type of hardware WebAuthn device
8
+ - Add deprecation comments to U2F types (use WebAuthn instead), to `B2DestinationLocation.MaxConnections`, and to `Office365CustomSetting` (use Office365CustomSettingV2 instead)
9
+ - Fix an issue with wrong array types in `WebAuthnPublicKeyCredentialCreationOptions` and `WebAuthnPublicKeyCredentialRequestOptions`
10
+ - Fix an issue with wrong values for some `STOREDOBJECTTYPE_` constants related to Office 365
11
+ - Fix an issue with executable permissions on some files
12
+
3
13
  ## 2021-12-22 v1.11.0
4
14
  - Based on 21.12.1
5
- - Add `AdminAccountWebauthnRegistration` endpoint for new webauthn support.
6
- - Deprecate `AdminACcountU2fSubmitChallenge` as U2F is ending browser support in February 2022.
15
+ - Add `AdminAccountWebauthnRegistration` endpoint for new WebAuthn support.
16
+ - Deprecate `AdminAccountU2fSubmitChallenge` as U2F is ending browser support in February 2022.
7
17
 
8
18
  ## 2021-11-24 v1.10.0
9
19
  - Based on 21.9.12
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comet_backup_ruby_sdk (1.10.0)
4
+ comet_backup_ruby_sdk (1.12.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/LICENSE CHANGED
File without changes
data/RELEASING.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Procedure for releasing gem package updates
2
2
 
3
- 0. As a cygwin user, with docker installed; `docker run -it -v "c://cygwin64/$PWD":/app -w /app ruby:2.7 bash` will get you with a suitable ruby environment for testing/building and releasing this package9.
3
+ 0. As a cygwin user, with docker installed; `docker run -it -v "$(cygpath -w "$PWD"):/app" -w /app ruby:2.7 bash` will get you with a suitable ruby environment for testing/building and releasing this package9.
4
4
  1. All tests passing
5
5
  2. Update changelog in `CHANGELOG.md`
6
6
  3. Update version number in `comet_backup_ruby_sdk.gemspec`
data/Rakefile CHANGED
File without changes
@@ -12,7 +12,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
12
12
 
13
13
  Gem::Specification.new do |spec|
14
14
  spec.name = 'comet_backup_ruby_sdk'
15
- spec.version = '1.11.0'
15
+ spec.version = '1.12.0'
16
16
  spec.authors = ['Comet Licensing Ltd.']
17
17
  spec.email = ['hello@cometbackup.com']
18
18
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -3500,6 +3500,31 @@ module Comet
3500
3500
  ret
3501
3501
  end
3502
3502
 
3503
+ # AdminStoragePingDestination
3504
+ #
3505
+ # Ping a storage destination.
3506
+ #
3507
+ # You must supply administrator authentication credentials to use this API.
3508
+ # Access to this API may be prevented on a per-administrator basis.
3509
+ # This API requires the Storage Role to be enabled.
3510
+ # This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
3511
+ #
3512
+ # @param [Comet::DestinationLocation] extra_data The destination location settings
3513
+ # @return [Comet::CometAPIResponseMessage]
3514
+ def admin_storage_ping_destination(extra_data)
3515
+ submit_params = {}
3516
+ raise TypeError, "'extra_data' expected Comet::DestinationLocation, got #{extra_data.class}" unless extra_data.is_a? Comet::DestinationLocation
3517
+
3518
+ submit_params['ExtraData'] = extra_data.to_json
3519
+
3520
+ body = perform_request('api/v1/admin/storage/ping-destination', submit_params)
3521
+ json_body = JSON.parse body
3522
+ check_status json_body
3523
+ ret = Comet::CometAPIResponseMessage.new
3524
+ ret.from_hash(json_body)
3525
+ ret
3526
+ end
3527
+
3503
3528
  # AdminStorageRegisterBucket
3504
3529
  #
3505
3530
  # Create a new bucket.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -360,22 +360,22 @@ module Comet
360
360
  STOREDOBJECTTYPE_WINEFS = 'winefs'
361
361
 
362
362
  # StoredObjectType: "file"
363
- STOREDOBJECTTYPE_EMAILMESSAGE = 'emailmessage\"'
363
+ STOREDOBJECTTYPE_EMAILMESSAGE = 'emailmessage'
364
364
 
365
365
  # StoredObjectType: "dir"
366
- STOREDOBJECTTYPE_EMAILFOLDER = 'mailfolder\"'
366
+ STOREDOBJECTTYPE_EMAILFOLDER = 'mailfolder'
367
367
 
368
368
  # StoredObjectType: "file"
369
- STOREDOBJECTTYPE_OFFICECONTACT = 'contact\"'
369
+ STOREDOBJECTTYPE_OFFICECONTACT = 'contact'
370
370
 
371
371
  # StoredObjectType: "dir"
372
- STOREDOBJECTTYPE_OFFICECONTACTFOLDER = 'contactfolder\"'
372
+ STOREDOBJECTTYPE_OFFICECONTACTFOLDER = 'contactfolder'
373
373
 
374
374
  # StoredObjectType: "file"
375
- STOREDOBJECTTYPE_OFFICECALENDAREVENT = 'calendarevent\"'
375
+ STOREDOBJECTTYPE_OFFICECALENDAREVENT = 'calendarevent'
376
376
 
377
377
  # StoredObjectType: "dir"
378
- STOREDOBJECTTYPE_OFFICECALENDAR = 'calendar\"'
378
+ STOREDOBJECTTYPE_OFFICECALENDAR = 'calendar'
379
379
 
380
380
  # StoredObjectType:
381
381
  STOREDOBJECTTYPE_MSSITE = 'mssite'
@@ -425,18 +425,18 @@ module Comet
425
425
  # DefaultSettingMode:
426
426
  SETTING_ENFORCED_OFF = 4
427
427
 
428
- # sz.LanguageCode:
428
+ # LanguageCode:
429
429
  DEFAULT_LANGUAGE = 'en_US'
430
430
 
431
431
  DEFAULT_TIMEZONE = 'UTC'
432
432
 
433
- APPLICATION_VERSION = '21.12.1'
433
+ APPLICATION_VERSION = '21.12.4'
434
434
 
435
435
  APPLICATION_VERSION_MAJOR = 21
436
436
 
437
437
  APPLICATION_VERSION_MINOR = 12
438
438
 
439
- APPLICATION_VERSION_REVISION = 1
439
+ APPLICATION_VERSION_REVISION = 4
440
440
 
441
441
  RELEASE_CODENAME = 'Voyager'
442
442
 
@@ -444,6 +444,10 @@ module Comet
444
444
 
445
445
  PASSWORD_FORMAT_PLAINTEXT = 0
446
446
 
447
+ UNKNOWN_DEVICE_ERROR = 'ERR_UNKNOWN_DEVICE'
448
+
449
+ TOTPREQUIRED_ERROR = 'ERR_TOTP_REQUIRED'
450
+
447
451
  EMAIL_WORKER_STATE_NOT_STARTED = 0
448
452
 
449
453
  EMAIL_WORKER_STATE_STARTED = 1
@@ -454,9 +458,26 @@ module Comet
454
458
 
455
459
  EMAIL_WORKER_STATE_SENDING = 4
456
460
 
457
- UNKNOWN_DEVICE_ERROR = 'ERR_UNKNOWN_DEVICE'
461
+ # WebAuthnDeviceType:
462
+ WEBAUTHN_DEVICE_TYPE__UNKNOWN = 0
458
463
 
459
- TOTPREQUIRED_ERROR = 'ERR_TOTP_REQUIRED'
464
+ # WebAuthnDeviceType:
465
+ WEBAUTHN_DEVICE_TYPE__HARDWARE_TOKEN = 1
466
+
467
+ # WebAuthnDeviceType:
468
+ WEBAUTHN_DEVICE_TYPE__ANDROID = 2
469
+
470
+ # WebAuthnDeviceType:
471
+ WEBAUTHN_DEVICE_TYPE__APPLE = 3
472
+
473
+ # WebAuthnDeviceType:
474
+ WEBAUTHN_DEVICE_TYPE__TPM_GENERIC = 4
475
+
476
+ # WebAuthnDeviceType:
477
+ WEBAUTHN_DEVICE_TYPE__TPM_WINDOWS = 5
478
+
479
+ # WebAuthnDeviceType:
480
+ WEBAUTHN_DEVICE_TYPE__TPM_LINUX = 6
460
481
 
461
482
  # UpdateStatus:
462
483
  UPDATESTATUS_NOT_SEEN = 0
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -27,12 +27,14 @@ module Comet
27
27
  attr_accessor :allow_password_and_totplogin
28
28
 
29
29
  # @type [Boolean] allow_password_and_u2flogin
30
+ # @deprecated This member has been deprecated since Comet version 21.12.0
30
31
  attr_accessor :allow_password_and_u2flogin
31
32
 
32
33
  # @type [Boolean] allow_password_and_web_authn_login
33
34
  attr_accessor :allow_password_and_web_authn_login
34
35
 
35
36
  # @type [Array<Comet::AdminU2FRegistration>] u2fregistrations
37
+ # @deprecated This member has been deprecated since Comet version 21.12.0
36
38
  attr_accessor :u2fregistrations
37
39
 
38
40
  # @type [Array<Comet::AdminWebAuthnRegistration>] web_authn_registrations
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -13,6 +13,7 @@ require 'json'
13
13
  module Comet
14
14
 
15
15
  # AdminU2FRegistration is a typed class wrapper around the underlying Comet Server API data structure.
16
+ # @deprecated This type has been deprecated since Comet version 21.12.0
16
17
  class AdminU2FRegistration
17
18
 
18
19
  # @type [String] description
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -21,6 +21,9 @@ module Comet
21
21
  # @type [Number] register_time
22
22
  attr_accessor :register_time
23
23
 
24
+ # @type [Number] type
25
+ attr_accessor :type
26
+
24
27
  # @type [Boolean] is_legacy_u2f
25
28
  attr_accessor :is_legacy_u2f
26
29
 
@@ -40,6 +43,7 @@ module Comet
40
43
  def clear
41
44
  @description = ''
42
45
  @register_time = 0
46
+ @type = 0
43
47
  @id = []
44
48
  @credential = Comet::WebAuthnCredential.new
45
49
  @unknown_json_fields = {}
@@ -66,6 +70,10 @@ module Comet
66
70
  raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
67
71
 
68
72
  @register_time = v
73
+ when 'Type'
74
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
75
+
76
+ @type = v
69
77
  when 'IsLegacyU2F'
70
78
  @is_legacy_u2f = v
71
79
  when 'ID'
@@ -84,6 +92,7 @@ module Comet
84
92
  ret = {}
85
93
  ret['Description'] = @description
86
94
  ret['RegisterTime'] = @register_time
95
+ ret['Type'] = @type
87
96
  unless @is_legacy_u2f.nil?
88
97
  ret['IsLegacyU2F'] = @is_legacy_u2f
89
98
  end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -36,12 +36,14 @@ module Comet
36
36
  attr_accessor :allow_password_and_totplogin
37
37
 
38
38
  # @type [Boolean] allow_password_and_u2flogin
39
+ # @deprecated This member has been deprecated since Comet version 21.12.0
39
40
  attr_accessor :allow_password_and_u2flogin
40
41
 
41
42
  # @type [Boolean] allow_password_and_web_authn_login
42
43
  attr_accessor :allow_password_and_web_authn_login
43
44
 
44
45
  # @type [Array<Comet::AdminU2FRegistration>] u2fregistrations
46
+ # @deprecated This member has been deprecated since Comet version 21.12.0
45
47
  attr_accessor :u2fregistrations
46
48
 
47
49
  # @type [Array<Comet::AdminWebAuthnRegistration>] web_authn_registrations
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -27,6 +27,7 @@ module Comet
27
27
  attr_accessor :prefix
28
28
 
29
29
  # @type [Number] max_connections
30
+ # @deprecated This member has been deprecated since Comet version 21.9.7
30
31
  attr_accessor :max_connections
31
32
 
32
33
  # @type [Boolean] hide_deleted_files
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -74,12 +74,24 @@ module Comet
74
74
  # @type [Number] total_accounts_count
75
75
  attr_accessor :total_accounts_count
76
76
 
77
+ # @type [Number] total_licensed_mails_count
78
+ attr_accessor :total_licensed_mails_count
79
+
80
+ # @type [Number] total_unlicensed_mails_count
81
+ attr_accessor :total_unlicensed_mails_count
82
+
77
83
  # @type [String] cancellation_id
78
84
  attr_accessor :cancellation_id
79
85
 
80
86
  # @type [Comet::BackupJobProgress] progress
81
87
  attr_accessor :progress
82
88
 
89
+ # @type [Comet::SizeMeasurement] destination_size_start
90
+ attr_accessor :destination_size_start
91
+
92
+ # @type [Comet::SizeMeasurement] destination_size_end
93
+ attr_accessor :destination_size_end
94
+
83
95
  # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
84
96
  attr_accessor :unknown_json_fields
85
97
 
@@ -108,8 +120,12 @@ module Comet
108
120
  @total_mails_count = 0
109
121
  @total_sites_count = 0
110
122
  @total_accounts_count = 0
123
+ @total_licensed_mails_count = 0
124
+ @total_unlicensed_mails_count = 0
111
125
  @cancellation_id = ''
112
126
  @progress = Comet::BackupJobProgress.new
127
+ @destination_size_start = Comet::SizeMeasurement.new
128
+ @destination_size_end = Comet::SizeMeasurement.new
113
129
  @unknown_json_fields = {}
114
130
  end
115
131
 
@@ -206,6 +222,14 @@ module Comet
206
222
  raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
207
223
 
208
224
  @total_accounts_count = v
225
+ when 'TotalLicensedMailsCount'
226
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
227
+
228
+ @total_licensed_mails_count = v
229
+ when 'TotalUnlicensedMailsCount'
230
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
231
+
232
+ @total_unlicensed_mails_count = v
209
233
  when 'CancellationID'
210
234
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
211
235
 
@@ -213,6 +237,12 @@ module Comet
213
237
  when 'Progress'
214
238
  @progress = Comet::BackupJobProgress.new
215
239
  @progress.from_hash(v)
240
+ when 'DestinationSizeStart'
241
+ @destination_size_start = Comet::SizeMeasurement.new
242
+ @destination_size_start.from_hash(v)
243
+ when 'DestinationSizeEnd'
244
+ @destination_size_end = Comet::SizeMeasurement.new
245
+ @destination_size_end.from_hash(v)
216
246
  else
217
247
  @unknown_json_fields[k] = v
218
248
  end
@@ -250,12 +280,24 @@ module Comet
250
280
  unless @total_accounts_count.nil?
251
281
  ret['TotalAccountsCount'] = @total_accounts_count
252
282
  end
283
+ unless @total_licensed_mails_count.nil?
284
+ ret['TotalLicensedMailsCount'] = @total_licensed_mails_count
285
+ end
286
+ unless @total_unlicensed_mails_count.nil?
287
+ ret['TotalUnlicensedMailsCount'] = @total_unlicensed_mails_count
288
+ end
253
289
  unless @cancellation_id.nil?
254
290
  ret['CancellationID'] = @cancellation_id
255
291
  end
256
292
  unless @progress.nil?
257
293
  ret['Progress'] = @progress
258
294
  end
295
+ unless @destination_size_start.nil?
296
+ ret['DestinationSizeStart'] = @destination_size_start
297
+ end
298
+ unless @destination_size_end.nil?
299
+ ret['DestinationSizeEnd'] = @destination_size_end
300
+ end
259
301
  @unknown_json_fields.each do |k, v|
260
302
  ret[k] = v
261
303
  end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2021 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2022 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT