comet_backup_ruby_sdk 2.43.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +0 -0
  4. data/CHANGELOG.md +35 -0
  5. data/Gemfile +0 -0
  6. data/LICENSE +0 -0
  7. data/README.md +0 -0
  8. data/RELEASING.md +7 -7
  9. data/Rakefile +0 -0
  10. data/comet_backup_ruby_sdk.gemspec +2 -3
  11. data/lib/comet/api_response_error.rb +1 -1
  12. data/lib/comet/comet_server.rb +824 -90
  13. data/lib/comet/definitions.rb +409 -125
  14. data/lib/comet/models/add_bucket_response_message.rb +1 -1
  15. data/lib/comet/models/admin_account_apitoken_create_response.rb +102 -0
  16. data/lib/comet/models/admin_account_apitoken_list_response.rb +98 -0
  17. data/lib/comet/models/admin_account_properties_response.rb +38 -1
  18. data/lib/comet/models/admin_apitoken.rb +139 -0
  19. data/lib/comet/models/admin_apitoken_info.rb +117 -0
  20. data/lib/comet/models/admin_email_options.rb +1 -1
  21. data/lib/comet/models/admin_options.rb +1 -1
  22. data/lib/comet/models/admin_resource_response.rb +1 -1
  23. data/lib/comet/models/admin_security_options.rb +1 -1
  24. data/lib/comet/models/admin_u2fregistration.rb +1 -1
  25. data/lib/comet/models/admin_user_permissions.rb +20 -1
  26. data/lib/comet/models/admin_web_authn_registration.rb +1 -1
  27. data/lib/comet/models/allowed_admin_user.rb +19 -1
  28. data/lib/comet/models/amazon_awsvirtual_storage_role_settings.rb +1 -1
  29. data/lib/comet/models/attributed_content_measurement.rb +146 -0
  30. data/lib/comet/models/attributed_content_measurement_component.rb +105 -0
  31. data/lib/comet/models/authentication_role_options.rb +2 -4
  32. data/lib/comet/models/available_download.rb +1 -1
  33. data/lib/comet/models/azure_destination_location.rb +1 -1
  34. data/lib/comet/models/b2destination_location.rb +1 -1
  35. data/lib/comet/models/b2storage_extra_info.rb +1 -1
  36. data/lib/comet/models/b2transaction_totals.rb +1 -1
  37. data/lib/comet/models/b2virtual_storage_role_settings.rb +1 -1
  38. data/lib/comet/models/backup_job_advanced_options.rb +15 -1
  39. data/lib/comet/models/backup_job_detail.rb +14 -2
  40. data/lib/comet/models/backup_job_progress.rb +1 -1
  41. data/lib/comet/models/backup_rule_config.rb +43 -1
  42. data/lib/comet/models/backup_rule_event_triggers.rb +1 -1
  43. data/lib/comet/models/branding_options.rb +184 -1
  44. data/lib/comet/models/branding_properties.rb +184 -1
  45. data/lib/comet/models/browse_disk_drives_response.rb +1 -1
  46. data/lib/comet/models/browse_edbresponse.rb +1 -1
  47. data/lib/comet/models/browse_hvresponse.rb +1 -1
  48. data/lib/comet/models/browse_office_365list_virtual_accounts_response.rb +1 -1
  49. data/lib/comet/models/browse_office_365objects_response.rb +1 -1
  50. data/lib/comet/models/browse_proxmox_nodes_response.rb +1 -1
  51. data/lib/comet/models/browse_proxmox_response.rb +16 -1
  52. data/lib/comet/models/browse_proxmox_storage_response.rb +1 -1
  53. data/lib/comet/models/browse_sqlserver_response.rb +1 -1
  54. data/lib/comet/models/browse_vmware_datacenters_response.rb +1 -1
  55. data/lib/comet/models/browse_vmware_datastores_response.rb +1 -1
  56. data/lib/comet/models/browse_vmware_hosts_response.rb +1 -1
  57. data/lib/comet/models/browse_vmware_networks_response.rb +1 -1
  58. data/lib/comet/models/browse_vmware_response.rb +1 -1
  59. data/lib/comet/models/browse_vssresponse.rb +1 -1
  60. data/lib/comet/models/bucket_properties.rb +1 -1
  61. data/lib/comet/models/bucket_usage_info.rb +1 -1
  62. data/lib/comet/models/comet_apiresponse_message.rb +1 -1
  63. data/lib/comet/models/comet_destination_location.rb +1 -1
  64. data/lib/comet/models/constellation_check_report.rb +1 -1
  65. data/lib/comet/models/constellation_role_options.rb +1 -1
  66. data/lib/comet/models/constellation_stats.rb +1 -1
  67. data/lib/comet/models/constellation_status_apiresponse.rb +1 -1
  68. data/lib/comet/models/content_measurement.rb +1 -1
  69. data/lib/comet/models/content_measurement_component.rb +3 -3
  70. data/lib/comet/models/count_jobs_response.rb +1 -1
  71. data/lib/comet/models/create_group_policy_response.rb +1 -1
  72. data/lib/comet/models/create_user_group_response.rb +1 -1
  73. data/lib/comet/models/custom_branding_item.rb +143 -0
  74. data/lib/comet/models/custom_branding_options.rb +79 -0
  75. data/lib/comet/models/custom_branding_origin.rb +76 -0
  76. data/lib/comet/models/custom_remote_bucket_settings.rb +1 -1
  77. data/lib/comet/models/days_of_week_config.rb +1 -1
  78. data/lib/comet/models/default_email_report_policy.rb +1 -1
  79. data/lib/comet/models/default_source_with_osrestriction.rb +1 -1
  80. data/lib/comet/models/destination_config.rb +43 -5
  81. data/lib/comet/models/destination_location.rb +11 -2
  82. data/lib/comet/models/destination_statistics.rb +1 -1
  83. data/lib/comet/models/device_config.rb +42 -1
  84. data/lib/comet/models/device_identity_response.rb +82 -0
  85. data/lib/comet/models/disk_drive.rb +1 -1
  86. data/lib/comet/models/dispatch_with_job_idresponse.rb +1 -1
  87. data/lib/comet/models/dispatcher_admin_sources_response.rb +1 -1
  88. data/lib/comet/models/dispatcher_list_snapshot_virtual_machines_response.rb +1 -1
  89. data/lib/comet/models/dispatcher_stored_objects_response.rb +1 -1
  90. data/lib/comet/models/dispatcher_vault_snapshots_response.rb +1 -1
  91. data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +1 -1
  92. data/lib/comet/models/dnscache_options.rb +94 -0
  93. data/lib/comet/models/edbfile_info.rb +1 -1
  94. data/lib/comet/models/email_options.rb +14 -1
  95. data/lib/comet/models/email_report_config.rb +15 -1
  96. data/lib/comet/models/email_report_generated_preview.rb +1 -1
  97. data/lib/comet/models/email_reporting_option.rb +1 -1
  98. data/lib/comet/models/external_authentication_source.rb +1 -1
  99. data/lib/comet/models/external_authentication_source_display.rb +1 -1
  100. data/lib/comet/models/external_authentication_source_response.rb +1 -1
  101. data/lib/comet/models/external_ldapauthentication_source_server.rb +1 -1
  102. data/lib/comet/models/external_ldapauthentication_source_settings.rb +1 -1
  103. data/lib/comet/models/extra_file_exclusion.rb +1 -1
  104. data/lib/comet/models/file_option.rb +1 -1
  105. data/lib/comet/models/ftpdestination_location.rb +1 -1
  106. data/lib/comet/models/get_group_policy_response.rb +1 -1
  107. data/lib/comet/models/get_profile_and_hash_response_message.rb +1 -1
  108. data/lib/comet/models/get_profile_hash_response_message.rb +1 -1
  109. data/lib/comet/models/get_shared_storage_quota_response.rb +110 -0
  110. data/lib/comet/models/get_user_group_response.rb +1 -1
  111. data/lib/comet/models/get_user_group_with_users_response.rb +1 -1
  112. data/lib/comet/models/global_override_options.rb +1 -1
  113. data/lib/comet/models/group_policy.rb +1 -1
  114. data/lib/comet/models/hour_sched_config.rb +1 -1
  115. data/lib/comet/models/httpconnector_options.rb +1 -1
  116. data/lib/comet/models/hyper_vmachine_info.rb +1 -1
  117. data/lib/comet/models/hyper_vrestore_target_options.rb +1 -1
  118. data/lib/comet/models/impossible_cloud_iamtemplate_settings.rb +1 -1
  119. data/lib/comet/models/impossible_cloud_partner_template_settings.rb +1 -1
  120. data/lib/comet/models/install_creds.rb +1 -1
  121. data/lib/comet/models/install_token.rb +8 -8
  122. data/lib/comet/models/install_token_response.rb +1 -1
  123. data/lib/comet/models/job_entry.rb +1 -1
  124. data/lib/comet/models/license_limits.rb +1 -1
  125. data/lib/comet/models/license_options.rb +1 -1
  126. data/lib/comet/models/linux_rpm_code_sign_properties.rb +115 -0
  127. data/lib/comet/models/list_shared_storage_quota_response.rb +98 -0
  128. data/lib/comet/models/live_user_connection.rb +1 -1
  129. data/lib/comet/models/local_destination_location.rb +2 -2
  130. data/lib/comet/models/local_storage_directory.rb +1 -1
  131. data/lib/comet/models/login_protection_options.rb +1 -1
  132. data/lib/comet/models/mac_oscode_sign_properties.rb +1 -1
  133. data/lib/comet/models/mongo_dbconnection.rb +4 -1
  134. data/lib/comet/models/mssqlconnection.rb +1 -1
  135. data/lib/comet/models/mssqllogin_args.rb +1 -1
  136. data/lib/comet/models/my_sqlconnection.rb +1 -1
  137. data/lib/comet/models/new_bucket_detail.rb +1 -1
  138. data/lib/comet/models/news_entry.rb +1 -1
  139. data/lib/comet/models/nfsdestination_location.rb +132 -0
  140. data/lib/comet/models/ninja_one_auth_callback_response.rb +82 -0
  141. data/lib/comet/models/ninja_one_config.rb +130 -0
  142. data/lib/comet/models/ninja_one_organization.rb +91 -0
  143. data/lib/comet/models/node.rb +80 -0
  144. data/lib/comet/models/object_lock_storage_template_settings.rb +1 -1
  145. data/lib/comet/models/office_365connection.rb +1 -1
  146. data/lib/comet/models/office_365convert_selection_response.rb +102 -0
  147. data/lib/comet/models/office_365credential.rb +1 -1
  148. data/lib/comet/models/office_365custom_setting.rb +1 -1
  149. data/lib/comet/models/office_365custom_setting_v2.rb +23 -1
  150. data/lib/comet/models/office_365effective_selection.rb +109 -0
  151. data/lib/comet/models/office_365effective_selection_account.rb +101 -0
  152. data/lib/comet/models/office_365evaluate_selection_rules_response.rb +95 -0
  153. data/lib/comet/models/office_365mixed_virtual_account.rb +1 -1
  154. data/lib/comet/models/office_365object_info.rb +1 -1
  155. data/lib/comet/models/office_365selection_rule.rb +182 -0
  156. data/lib/comet/models/office_365service_rule_decision.rb +93 -0
  157. data/lib/comet/models/oidc_claim.rb +1 -1
  158. data/lib/comet/models/oidc_config.rb +1 -1
  159. data/lib/comet/models/organization.rb +1 -1
  160. data/lib/comet/models/organization_login_urlresponse.rb +1 -1
  161. data/lib/comet/models/organization_response.rb +1 -1
  162. data/lib/comet/models/osinfo.rb +1 -1
  163. data/lib/comet/models/partition.rb +1 -1
  164. data/lib/comet/models/partition_conflict.rb +1 -1
  165. data/lib/comet/models/pkcs_11allowed_driver.rb +75 -0
  166. data/lib/comet/models/pkcs_11allowlist_options.rb +90 -0
  167. data/lib/comet/models/policy_options.rb +1 -1
  168. data/lib/comet/models/postgre_sqlconnection.rb +151 -0
  169. data/lib/comet/models/private_branding_properties.rb +184 -1
  170. data/lib/comet/models/protected_item_engine_type_policy.rb +1 -1
  171. data/lib/comet/models/protected_item_with_backup_rules_response.rb +1 -1
  172. data/lib/comet/models/proxmox_connection.rb +1 -1
  173. data/lib/comet/models/proxmox_restore_target_options.rb +1 -1
  174. data/lib/comet/models/psaconfig.rb +26 -1
  175. data/lib/comet/models/psaconfig_connect_wise.rb +130 -0
  176. data/lib/comet/models/psagrouped_by.rb +1 -1
  177. data/lib/comet/models/public_branding_properties.rb +1 -1
  178. data/lib/comet/models/pvebackup_disk.rb +1 -1
  179. data/lib/comet/models/pvebackup_node.rb +1 -1
  180. data/lib/comet/models/pvebackup_vm.rb +1 -1
  181. data/lib/comet/models/pvedisk.rb +1 -1
  182. data/lib/comet/models/pveparams.rb +2 -4
  183. data/lib/comet/models/pvestorage_name.rb +17 -1
  184. data/lib/comet/models/pvevm.rb +8 -1
  185. data/lib/comet/models/ratelimit_options.rb +1 -1
  186. data/lib/comet/models/ratelimit_rule.rb +1 -1
  187. data/lib/comet/models/register_office_application_begin_response.rb +1 -1
  188. data/lib/comet/models/register_office_application_check_response.rb +1 -1
  189. data/lib/comet/models/registration_lobby_connection.rb +1 -1
  190. data/lib/comet/models/remote_server_address.rb +1 -1
  191. data/lib/comet/models/remote_storage_option.rb +10 -1
  192. data/lib/comet/models/replica_server.rb +1 -1
  193. data/lib/comet/models/replicator_state_apiresponse.rb +1 -1
  194. data/lib/comet/models/request_storage_vault_response_message.rb +1 -1
  195. data/lib/comet/models/restore_job_advanced_options.rb +66 -10
  196. data/lib/comet/models/retention_policy.rb +1 -1
  197. data/lib/comet/models/retention_range.rb +1 -1
  198. data/lib/comet/models/s3destination_location.rb +1 -1
  199. data/lib/comet/models/s3generic_virtual_storage_role.rb +1 -1
  200. data/lib/comet/models/schedule_config.rb +1 -1
  201. data/lib/comet/models/search_clause.rb +1 -1
  202. data/lib/comet/models/search_result_file_info.rb +1 -1
  203. data/lib/comet/models/search_snapshots_response.rb +1 -1
  204. data/lib/comet/models/self_backup_event_data.rb +135 -0
  205. data/lib/comet/models/self_backup_export_options.rb +1 -1
  206. data/lib/comet/models/self_backup_options.rb +1 -1
  207. data/lib/comet/models/self_backup_statistics.rb +1 -1
  208. data/lib/comet/models/self_backup_target.rb +1 -1
  209. data/lib/comet/models/server_config_options.rb +76 -1
  210. data/lib/comet/models/server_config_options_and_hash_response.rb +103 -0
  211. data/lib/comet/models/server_config_options_branding_fragment.rb +1 -1
  212. data/lib/comet/models/server_config_options_hash_response.rb +95 -0
  213. data/lib/comet/models/server_config_options_software_build_role_fragment.rb +1 -1
  214. data/lib/comet/models/server_meta_branding_properties.rb +20 -1
  215. data/lib/comet/models/server_meta_version_info.rb +1 -1
  216. data/lib/comet/models/session_key_regenerated_response.rb +1 -1
  217. data/lib/comet/models/session_options.rb +1 -1
  218. data/lib/comet/models/set_shared_storage_quota_response.rb +92 -0
  219. data/lib/comet/models/sftpdestination_location.rb +1 -1
  220. data/lib/comet/models/shared_storage_quota.rb +94 -0
  221. data/lib/comet/models/single_field_source.rb +2 -2
  222. data/lib/comet/models/size_measurement.rb +1 -1
  223. data/lib/comet/models/smbdestination_location.rb +1 -1
  224. data/lib/comet/models/smtpoauth_options.rb +154 -0
  225. data/lib/comet/models/software_build_role_options.rb +1 -1
  226. data/lib/comet/models/software_update_news_response.rb +1 -1
  227. data/lib/comet/models/source_basic_info.rb +10 -1
  228. data/lib/comet/models/source_config.rb +69 -4
  229. data/lib/comet/models/source_include_pattern.rb +1 -1
  230. data/lib/comet/models/source_statistics.rb +1 -1
  231. data/lib/comet/models/spanned_destination_location.rb +1 -1
  232. data/lib/comet/models/spanned_storage_extra_info.rb +1 -1
  233. data/lib/comet/models/speed_limit_time_window.rb +114 -0
  234. data/lib/comet/models/sshconnection.rb +1 -1
  235. data/lib/comet/models/stat_result.rb +1 -1
  236. data/lib/comet/models/storage_free_space_info.rb +1 -1
  237. data/lib/comet/models/storage_role_options.rb +1 -1
  238. data/lib/comet/models/storage_vault_provider_policy.rb +1 -1
  239. data/lib/comet/models/stored_object.rb +1 -1
  240. data/lib/comet/models/storj_destination_location.rb +1 -1
  241. data/lib/comet/models/storj_virtual_storage_role_setting.rb +1 -1
  242. data/lib/comet/models/streamable_event.rb +1 -1
  243. data/lib/comet/models/swift_destination_location.rb +1 -1
  244. data/lib/comet/models/test_response.rb +1 -1
  245. data/lib/comet/models/time_span.rb +1 -1
  246. data/lib/comet/models/totp_regenerated_response.rb +1 -1
  247. data/lib/comet/models/u2fregister_request.rb +1 -1
  248. data/lib/comet/models/u2fregistered_key.rb +1 -1
  249. data/lib/comet/models/u2fregistration_challenge_response.rb +1 -1
  250. data/lib/comet/models/u2fsign_request.rb +1 -1
  251. data/lib/comet/models/u2fsign_response.rb +1 -1
  252. data/lib/comet/models/uninstall_config.rb +1 -1
  253. data/lib/comet/models/update_campaign_device_status.rb +9 -1
  254. data/lib/comet/models/update_campaign_options.rb +1 -1
  255. data/lib/comet/models/update_campaign_properties.rb +1 -1
  256. data/lib/comet/models/update_campaign_skip_detail.rb +100 -0
  257. data/lib/comet/models/update_campaign_status.rb +1 -1
  258. data/lib/comet/models/update_campaign_status_device_entry.rb +9 -1
  259. data/lib/comet/models/user_custom_email_settings.rb +1 -1
  260. data/lib/comet/models/user_group.rb +1 -1
  261. data/lib/comet/models/user_on_server.rb +1 -1
  262. data/lib/comet/models/user_policy.rb +18 -1
  263. data/lib/comet/models/user_profile_config.rb +82 -8
  264. data/lib/comet/models/user_profile_fragment.rb +1 -1
  265. data/lib/comet/models/user_server_config.rb +1 -1
  266. data/lib/comet/models/vault_snapshot.rb +1 -1
  267. data/lib/comet/models/vmdisk_info.rb +1 -1
  268. data/lib/comet/models/vmdksnapshot_view_options.rb +1 -1
  269. data/lib/comet/models/vminfo.rb +1 -1
  270. data/lib/comet/models/vminfo_list.rb +1 -1
  271. data/lib/comet/models/vmware_connection.rb +1 -1
  272. data/lib/comet/models/vmware_datacenter_info.rb +1 -1
  273. data/lib/comet/models/vmware_datastore_info.rb +1 -1
  274. data/lib/comet/models/vmware_host_info.rb +1 -1
  275. data/lib/comet/models/vmware_machine_info.rb +1 -1
  276. data/lib/comet/models/vmware_network_info.rb +1 -1
  277. data/lib/comet/models/vmware_restore_target_options.rb +1 -1
  278. data/lib/comet/models/vsphere_connection.rb +1 -1
  279. data/lib/comet/models/vsscomponent.rb +1 -1
  280. data/lib/comet/models/vsswriter_info.rb +1 -1
  281. data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +1 -1
  282. data/lib/comet/models/web_authn_authenticator_selection.rb +1 -1
  283. data/lib/comet/models/web_authn_credential.rb +1 -1
  284. data/lib/comet/models/web_authn_credential_assertion.rb +1 -1
  285. data/lib/comet/models/web_authn_credential_descriptor.rb +1 -1
  286. data/lib/comet/models/web_authn_credential_entity.rb +1 -1
  287. data/lib/comet/models/web_authn_credential_parameter.rb +1 -1
  288. data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +2 -4
  289. data/lib/comet/models/web_authn_public_key_credential_request_options.rb +1 -1
  290. data/lib/comet/models/web_authn_registration_challenge_response.rb +1 -1
  291. data/lib/comet/models/web_authn_relying_party_entity.rb +1 -1
  292. data/lib/comet/models/web_authn_sign_request.rb +1 -1
  293. data/lib/comet/models/web_authn_sign_response.rb +1 -1
  294. data/lib/comet/models/web_authn_user_entity.rb +1 -1
  295. data/lib/comet/models/web_dav_destination_location.rb +1 -1
  296. data/lib/comet/models/web_interface_branding_properties.rb +1 -1
  297. data/lib/comet/models/webhook_awsoptions.rb +96 -0
  298. data/lib/comet/models/webhook_option.rb +49 -2
  299. data/lib/comet/models/win_smbauth.rb +3 -3
  300. data/lib/comet/models/windows_code_sign_properties.rb +176 -1
  301. data/lib/comet_backup_ruby_sdk.rb +39 -1
  302. metadata +43 -23
  303. data/Gemfile.lock +0 -43
@@ -0,0 +1,135 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2020-2026 Comet Licensing Ltd.
4
+ # Please see the LICENSE file for usage information.
5
+ #
6
+ # SPDX-License-Identifier: MIT
7
+
8
+ require 'json'
9
+
10
+ module Comet
11
+
12
+ # SelfBackupEventData is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # SelfBackupEventData is the Data payload for the SEVT_SELFBACKUP_START, SEVT_SELFBACKUP_SUCCEEDED
14
+ # and SEVT_SELFBACKUP_FAILED events.
15
+ # This type is available in Comet 26.11.1 and later.
16
+ class SelfBackupEventData
17
+
18
+ # For a System Self-Backup, the position of this target in ServerMetaVersionInfo.SelfBackup. Not
19
+ # meaningful for a tenant export.
20
+ # @type [Number] target_index
21
+ attr_accessor :target_index
22
+
23
+ # For a tenant export, the ID of the exported tenant. Empty for a System Self-Backup.
24
+ # @type [String] organization_id
25
+ attr_accessor :organization_id
26
+
27
+ # One of the DESTINATIONTYPE_ constants
28
+ # @type [Number] destination_type
29
+ attr_accessor :destination_type
30
+
31
+ # Unix timestamp, in seconds.
32
+ # @type [Number] start_time
33
+ attr_accessor :start_time
34
+
35
+ # Unix timestamp, in seconds. Zero in SEVT_SELFBACKUP_START events.
36
+ # @type [Number] end_time
37
+ attr_accessor :end_time
38
+
39
+ # True in SEVT_SELFBACKUP_SUCCEEDED events, and false otherwise.
40
+ # @type [Boolean] success
41
+ attr_accessor :success
42
+
43
+ # Size of the self-backup archive, in bytes. Zero in SEVT_SELFBACKUP_START events.
44
+ # @type [Number] size
45
+ attr_accessor :size
46
+
47
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
48
+ attr_accessor :unknown_json_fields
49
+
50
+ def initialize
51
+ clear
52
+ end
53
+
54
+ def clear
55
+ @target_index = 0
56
+ @organization_id = ''
57
+ @destination_type = 0
58
+ @start_time = 0
59
+ @end_time = 0
60
+ @size = 0
61
+ @unknown_json_fields = {}
62
+ end
63
+
64
+ # @param [String] json_string The complete object in JSON format
65
+ def from_json(json_string)
66
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
67
+
68
+ from_hash(JSON.parse(json_string))
69
+ end
70
+
71
+ # @param [Hash] obj The complete object as a Ruby hash
72
+ def from_hash(obj)
73
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
74
+
75
+ obj.each do |k, v|
76
+ case k
77
+ when 'TargetIndex'
78
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
79
+
80
+ @target_index = v
81
+ when 'OrganizationID'
82
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
83
+
84
+ @organization_id = v
85
+ when 'DestinationType'
86
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
87
+
88
+ @destination_type = v
89
+ when 'StartTime'
90
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
91
+
92
+ @start_time = v
93
+ when 'EndTime'
94
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
95
+
96
+ @end_time = v
97
+ when 'Success'
98
+ @success = v
99
+ when 'Size'
100
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
101
+
102
+ @size = v
103
+ else
104
+ @unknown_json_fields[k] = v
105
+ end
106
+ end
107
+ end
108
+
109
+ # @return [Hash] The complete object as a Ruby hash
110
+ def to_hash
111
+ ret = {}
112
+ ret['TargetIndex'] = @target_index
113
+ ret['OrganizationID'] = @organization_id
114
+ ret['DestinationType'] = @destination_type
115
+ ret['StartTime'] = @start_time
116
+ ret['EndTime'] = @end_time
117
+ ret['Success'] = @success
118
+ ret['Size'] = @size
119
+ @unknown_json_fields.each do |k, v|
120
+ ret[k] = v
121
+ end
122
+ ret
123
+ end
124
+
125
+ # @return [Hash] The complete object as a Ruby hash
126
+ def to_h
127
+ to_hash
128
+ end
129
+
130
+ # @return [String] The complete object as a JSON string
131
+ def to_json(options = {})
132
+ to_hash.to_json(options)
133
+ end
134
+ end
135
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 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
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 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
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 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
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 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
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -46,10 +46,15 @@ module Comet
46
46
  # @type [Comet::RatelimitOptions] iprate_limit
47
47
  attr_accessor :iprate_limit
48
48
 
49
+ # Enable these options to block repeated failed login attempts to the Comet Server.
49
50
  # This field is available in Comet 24.9.x and later.
50
51
  # @type [Comet::LoginProtectionOptions] login_protection
51
52
  attr_accessor :login_protection
52
53
 
54
+ # Configure the in-process DNS cache used for outbound HTTP requests.
55
+ # @type [Comet::DNSCacheOptions] dnscache
56
+ attr_accessor :dnscache
57
+
53
58
  # @type [Comet::LicenseOptions] license
54
59
  attr_accessor :license
55
60
 
@@ -78,18 +83,57 @@ module Comet
78
83
  # @type [Comet::StorageRoleOptions] storage_role
79
84
  attr_accessor :storage_role
80
85
 
86
+ # Defense-in-depth allowlist of permitted PKCS#11 driver module paths during Authenticode
87
+ # codesigning. Top-level only - not read from per-tenant configuration.
88
+ # This field is available in Comet 26.8.1 and later.
89
+ # @type [Comet::Pkcs11AllowlistOptions] pkcs_11allowlist
90
+ attr_accessor :pkcs_11allowlist
91
+
81
92
  # If true, the X-Forwarded-For header will be trusted for the purposes of IP allowlisting. This
82
93
  # should only be enabled when you explicitly configure Comet Server behind a reverse proxy,
83
94
  # otherwise it could allow malicious users to bypass the IP allowlist.
84
95
  # @type [Boolean] trust_xforwarded_for
85
96
  attr_accessor :trust_xforwarded_for
86
97
 
98
+ # If true, this Comet Server may send email through SMTP servers on loopback, RFC1918, or other
99
+ # private/link-local IP addresses. Enable this only if you intentionally run an SMTP relay on the
100
+ # LAN. Otherwise a tenant admin who controls SMTP host or recipient settings could direct outbound
101
+ # SMTP traffic at internal network services. If unset (null), Comet Server picks a value at startup
102
+ # by DNS-resolving the currently configured SMTP servers: enabled if any resolve to a private
103
+ # address (preserves the behavior of servers upgrading from a version without this setting),
104
+ # disabled otherwise.
105
+ # This field is available in Comet 26.9.x and later.
106
+ # @type [Boolean] allow_email_delivery_to_private_addresses
107
+ attr_accessor :allow_email_delivery_to_private_addresses
108
+
87
109
  # @type [Hash{String => Comet::WebhookOption}] webhook_options
88
110
  attr_accessor :webhook_options
89
111
 
90
112
  # @type [Hash{String => Comet::FileOption}] audit_file_options
91
113
  attr_accessor :audit_file_options
92
114
 
115
+ # Start a new Bulk Upgrade Campaign at each server start using the saved campaign options
116
+ # This field is available in Comet 26.5.5 and later.
117
+ # @type [Boolean] auto_start_upgrade_campaign
118
+ attr_accessor :auto_start_upgrade_campaign
119
+
120
+ # Saved campaign options reused at startup
121
+ # This field is available in Comet 26.5.5 and later.
122
+ # @type [Comet::UpdateCampaignOptions] auto_start_upgrade_campaign_options
123
+ attr_accessor :auto_start_upgrade_campaign_options
124
+
125
+ # Custom JavaScript / CSS injected into the web interface of the top-level organization and all
126
+ # tenants. Can only be configured by a top-level admin
127
+ # This field is available in Comet 26.8.2 and later.
128
+ # @type [Comet::CustomBrandingOptions] custom_branding
129
+ attr_accessor :custom_branding
130
+
131
+ # If true, admin accounts may create personal API tokens and authenticate using them. Defaults to
132
+ # true on new installations, and false when upgrading from a version without this feature.
133
+ # This field is available in Comet 26.8.4 and later.
134
+ # @type [Boolean] allow_admin_apitokens
135
+ attr_accessor :allow_admin_apitokens
136
+
93
137
  # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
94
138
  attr_accessor :unknown_json_fields
95
139
 
@@ -108,6 +152,7 @@ module Comet
108
152
  @external_admin_user_sources = {}
109
153
  @iprate_limit = Comet::RatelimitOptions.new
110
154
  @login_protection = Comet::LoginProtectionOptions.new
155
+ @dnscache = Comet::DNSCacheOptions.new
111
156
  @license = Comet::LicenseOptions.new
112
157
  @listen_addresses = []
113
158
  @organizations = {}
@@ -116,8 +161,11 @@ module Comet
116
161
  @session_settings = Comet::SessionOptions.new
117
162
  @software_build_role = Comet::SoftwareBuildRoleOptions.new
118
163
  @storage_role = Comet::StorageRoleOptions.new
164
+ @pkcs_11allowlist = Comet::Pkcs11AllowlistOptions.new
119
165
  @webhook_options = {}
120
166
  @audit_file_options = {}
167
+ @auto_start_upgrade_campaign_options = Comet::UpdateCampaignOptions.new
168
+ @custom_branding = Comet::CustomBrandingOptions.new
121
169
  @unknown_json_fields = {}
122
170
  end
123
171
 
@@ -186,6 +234,9 @@ module Comet
186
234
  when 'LoginProtection'
187
235
  @login_protection = Comet::LoginProtectionOptions.new
188
236
  @login_protection.from_hash(v)
237
+ when 'DNSCache'
238
+ @dnscache = Comet::DNSCacheOptions.new
239
+ @dnscache.from_hash(v)
189
240
  when 'License'
190
241
  @license = Comet::LicenseOptions.new
191
242
  @license.from_hash(v)
@@ -231,8 +282,13 @@ module Comet
231
282
  when 'StorageRole'
232
283
  @storage_role = Comet::StorageRoleOptions.new
233
284
  @storage_role.from_hash(v)
285
+ when 'Pkcs11Allowlist'
286
+ @pkcs_11allowlist = Comet::Pkcs11AllowlistOptions.new
287
+ @pkcs_11allowlist.from_hash(v)
234
288
  when 'TrustXForwardedFor'
235
289
  @trust_xforwarded_for = v
290
+ when 'AllowEmailDeliveryToPrivateAddresses'
291
+ @allow_email_delivery_to_private_addresses = v
236
292
  when 'WebhookOptions'
237
293
  @webhook_options = {}
238
294
  if v.nil?
@@ -253,6 +309,16 @@ module Comet
253
309
  @audit_file_options[k1].from_hash(v1)
254
310
  end
255
311
  end
312
+ when 'AutoStartUpgradeCampaign'
313
+ @auto_start_upgrade_campaign = v
314
+ when 'AutoStartUpgradeCampaignOptions'
315
+ @auto_start_upgrade_campaign_options = Comet::UpdateCampaignOptions.new
316
+ @auto_start_upgrade_campaign_options.from_hash(v)
317
+ when 'CustomBranding'
318
+ @custom_branding = Comet::CustomBrandingOptions.new
319
+ @custom_branding.from_hash(v)
320
+ when 'AllowAdminAPITokens'
321
+ @allow_admin_apitokens = v
256
322
  else
257
323
  @unknown_json_fields[k] = v
258
324
  end
@@ -276,6 +342,7 @@ module Comet
276
342
  ret['ExternalAdminUserSources'] = @external_admin_user_sources
277
343
  ret['IPRateLimit'] = @iprate_limit
278
344
  ret['LoginProtection'] = @login_protection
345
+ ret['DNSCache'] = @dnscache
279
346
  ret['License'] = @license
280
347
  ret['ListenAddresses'] = @listen_addresses
281
348
  ret['Organizations'] = @organizations
@@ -284,9 +351,17 @@ module Comet
284
351
  ret['SessionSettings'] = @session_settings
285
352
  ret['SoftwareBuildRole'] = @software_build_role
286
353
  ret['StorageRole'] = @storage_role
354
+ ret['Pkcs11Allowlist'] = @pkcs_11allowlist
287
355
  ret['TrustXForwardedFor'] = @trust_xforwarded_for
356
+ unless @allow_email_delivery_to_private_addresses.nil?
357
+ ret['AllowEmailDeliveryToPrivateAddresses'] = @allow_email_delivery_to_private_addresses
358
+ end
288
359
  ret['WebhookOptions'] = @webhook_options
289
360
  ret['AuditFileOptions'] = @audit_file_options
361
+ ret['AutoStartUpgradeCampaign'] = @auto_start_upgrade_campaign
362
+ ret['AutoStartUpgradeCampaignOptions'] = @auto_start_upgrade_campaign_options
363
+ ret['CustomBranding'] = @custom_branding
364
+ ret['AllowAdminAPITokens'] = @allow_admin_apitokens
290
365
  @unknown_json_fields.each do |k, v|
291
366
  ret[k] = v
292
367
  end
@@ -0,0 +1,103 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2020-2026 Comet Licensing Ltd.
4
+ # Please see the LICENSE file for usage information.
5
+ #
6
+ # SPDX-License-Identifier: MIT
7
+
8
+ require 'json'
9
+
10
+ module Comet
11
+
12
+ # ServerConfigOptionsAndHashResponse is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # This type is available in Comet 26.8.10 and later.
14
+ class ServerConfigOptionsAndHashResponse
15
+
16
+ # @type [Number] status
17
+ attr_accessor :status
18
+
19
+ # @type [String] message
20
+ attr_accessor :message
21
+
22
+ # A hash identifier for the current state of the server configuration. If you supply this as the
23
+ # RequireHash parameter of the AdminMetaServerConfigSet API, the server can safely reject your
24
+ # change if another change has happened concurrently. This allows you to retry the request.
25
+ # @type [String] config_hash
26
+ attr_accessor :config_hash
27
+
28
+ # @type [Comet::ServerConfigOptions] config
29
+ attr_accessor :config
30
+
31
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
32
+ attr_accessor :unknown_json_fields
33
+
34
+ def initialize
35
+ clear
36
+ end
37
+
38
+ def clear
39
+ @status = 0
40
+ @message = ''
41
+ @config_hash = ''
42
+ @config = Comet::ServerConfigOptions.new
43
+ @unknown_json_fields = {}
44
+ end
45
+
46
+ # @param [String] json_string The complete object in JSON format
47
+ def from_json(json_string)
48
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
49
+
50
+ from_hash(JSON.parse(json_string))
51
+ end
52
+
53
+ # @param [Hash] obj The complete object as a Ruby hash
54
+ def from_hash(obj)
55
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
56
+
57
+ obj.each do |k, v|
58
+ case k
59
+ when 'Status'
60
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
61
+
62
+ @status = v
63
+ when 'Message'
64
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
65
+
66
+ @message = v
67
+ when 'ConfigHash'
68
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
69
+
70
+ @config_hash = v
71
+ when 'Config'
72
+ @config = Comet::ServerConfigOptions.new
73
+ @config.from_hash(v)
74
+ else
75
+ @unknown_json_fields[k] = v
76
+ end
77
+ end
78
+ end
79
+
80
+ # @return [Hash] The complete object as a Ruby hash
81
+ def to_hash
82
+ ret = {}
83
+ ret['Status'] = @status
84
+ ret['Message'] = @message
85
+ ret['ConfigHash'] = @config_hash
86
+ ret['Config'] = @config
87
+ @unknown_json_fields.each do |k, v|
88
+ ret[k] = v
89
+ end
90
+ ret
91
+ end
92
+
93
+ # @return [Hash] The complete object as a Ruby hash
94
+ def to_h
95
+ to_hash
96
+ end
97
+
98
+ # @return [String] The complete object as a JSON string
99
+ def to_json(options = {})
100
+ to_hash.to_json(options)
101
+ end
102
+ end
103
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -0,0 +1,95 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2020-2026 Comet Licensing Ltd.
4
+ # Please see the LICENSE file for usage information.
5
+ #
6
+ # SPDX-License-Identifier: MIT
7
+
8
+ require 'json'
9
+
10
+ module Comet
11
+
12
+ # ServerConfigOptionsHashResponse is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # This type is available in Comet 26.8.10 and later.
14
+ class ServerConfigOptionsHashResponse
15
+
16
+ # @type [Number] status
17
+ attr_accessor :status
18
+
19
+ # @type [String] message
20
+ attr_accessor :message
21
+
22
+ # A hash identifier for the current state of the server configuration. If you supply this as the
23
+ # RequireHash parameter of the AdminMetaServerConfigSet API, the server can safely reject your
24
+ # change if another change has happened concurrently. This allows you to retry the request.
25
+ # @type [String] config_hash
26
+ attr_accessor :config_hash
27
+
28
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
29
+ attr_accessor :unknown_json_fields
30
+
31
+ def initialize
32
+ clear
33
+ end
34
+
35
+ def clear
36
+ @status = 0
37
+ @message = ''
38
+ @config_hash = ''
39
+ @unknown_json_fields = {}
40
+ end
41
+
42
+ # @param [String] json_string The complete object in JSON format
43
+ def from_json(json_string)
44
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
45
+
46
+ from_hash(JSON.parse(json_string))
47
+ end
48
+
49
+ # @param [Hash] obj The complete object as a Ruby hash
50
+ def from_hash(obj)
51
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
52
+
53
+ obj.each do |k, v|
54
+ case k
55
+ when 'Status'
56
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
57
+
58
+ @status = v
59
+ when 'Message'
60
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
61
+
62
+ @message = v
63
+ when 'ConfigHash'
64
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
65
+
66
+ @config_hash = v
67
+ else
68
+ @unknown_json_fields[k] = v
69
+ end
70
+ end
71
+ end
72
+
73
+ # @return [Hash] The complete object as a Ruby hash
74
+ def to_hash
75
+ ret = {}
76
+ ret['Status'] = @status
77
+ ret['Message'] = @message
78
+ ret['ConfigHash'] = @config_hash
79
+ @unknown_json_fields.each do |k, v|
80
+ ret[k] = v
81
+ end
82
+ ret
83
+ end
84
+
85
+ # @return [Hash] The complete object as a Ruby hash
86
+ def to_h
87
+ to_hash
88
+ end
89
+
90
+ # @return [String] The complete object as a JSON string
91
+ def to_json(options = {})
92
+ to_hash.to_json(options)
93
+ end
94
+ end
95
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 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
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -71,6 +71,10 @@ module Comet
71
71
  # @type [Boolean] admin_hide_branded_cloud_storage
72
72
  attr_accessor :admin_hide_branded_cloud_storage
73
73
 
74
+ # This field is available in Comet 26.8.9 and later.
75
+ # @type [Array<String>] experimental_options
76
+ attr_accessor :experimental_options
77
+
74
78
  # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
75
79
  attr_accessor :unknown_json_fields
76
80
 
@@ -88,6 +92,7 @@ module Comet
88
92
  @expired_in_seconds = 0
89
93
  @external_authentication_sources = []
90
94
  @cloud_storage_name = ''
95
+ @experimental_options = []
91
96
  @unknown_json_fields = {}
92
97
  end
93
98
 
@@ -160,6 +165,17 @@ module Comet
160
165
  @admin_hide_pre_built_client_option = v
161
166
  when 'AdminHideBrandedCloudStorage'
162
167
  @admin_hide_branded_cloud_storage = v
168
+ when 'ExperimentalOptions'
169
+ if v.nil?
170
+ @experimental_options = []
171
+ else
172
+ @experimental_options = Array.new(v.length)
173
+ v.each_with_index do |v1, i1|
174
+ raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
175
+
176
+ @experimental_options[i1] = v1
177
+ end
178
+ end
163
179
  else
164
180
  @unknown_json_fields[k] = v
165
181
  end
@@ -187,6 +203,9 @@ module Comet
187
203
  ret['CloudStorageName'] = @cloud_storage_name
188
204
  ret['AdminHidePreBuiltClientOption'] = @admin_hide_pre_built_client_option
189
205
  ret['AdminHideBrandedCloudStorage'] = @admin_hide_branded_cloud_storage
206
+ unless @experimental_options.nil?
207
+ ret['ExperimentalOptions'] = @experimental_options
208
+ end
190
209
  @unknown_json_fields.each do |k, v|
191
210
  ret[k] = v
192
211
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 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
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 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
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2020-2025 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2026 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT