comet_backup_ruby_sdk 2.44.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 +29 -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 +724 -90
  13. data/lib/comet/definitions.rb +400 -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 +32 -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 +1 -1
  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 +1 -1
  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 +1 -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 +1 -1
  219. data/lib/comet/models/sftpdestination_location.rb +1 -1
  220. data/lib/comet/models/shared_storage_quota.rb +1 -1
  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 +35 -1
  302. metadata +39 -23
  303. data/Gemfile.lock +0 -43
@@ -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
@@ -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
@@ -17,9 +17,9 @@ module Comet
17
17
 
18
18
  # A list of strings describing which groups of snapshots rely on reaching this component of data.
19
19
  # The strings may take the following formats:
20
- # - source_id/CURRENT - this data is required by the most recent backup job snapshot for the listed
20
+ # - CURRENT/source_id - this data is required by the most recent backup job snapshot for the listed
21
21
  # Protected Item source.
22
- # - source_id/HISTORIC - this data is required by an older backup job snapshot for the listed
22
+ # - HISTORIC/source_id - this data is required by an older backup job snapshot for the listed
23
23
  # Protected Item source.
24
24
  # - TRUNCATED/* - there are too many separate components to show, and this component represents data
25
25
  # that is used by some other combination of components. If present, it will be the only entry in the
@@ -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
@@ -0,0 +1,143 @@
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
+ # CustomBrandingItem is a typed class wrapper around the underlying Comet Server API data structure.
13
+ class CustomBrandingItem
14
+
15
+ # Display label for this item in the Comet Server web interface
16
+ # @type [String] description
17
+ attr_accessor :description
18
+
19
+ # One of the CUSTOMBRANDING_CONTENT_ constants
20
+ # @type [String] content_type
21
+ attr_accessor :content_type
22
+
23
+ # One of the CUSTOMBRANDING_SOURCE_ constants
24
+ # @type [String] source_type
25
+ attr_accessor :source_type
26
+
27
+ # One of the CUSTOMBRANDING_PLACEMENT_ constants. An empty string defaults to head placement
28
+ # @type [String] placement
29
+ attr_accessor :placement
30
+
31
+ # Inline JavaScript or CSS source text. Only used when SourceType is inline. For inline JavaScript,
32
+ # the Content-Security-Policy is automatically extended with this script's SHA-256 hash
33
+ # @type [String] content
34
+ attr_accessor :content
35
+
36
+ # Absolute http(s) URL of an external script or stylesheet. Only used when SourceType is url. The
37
+ # URL's origin is automatically added to the relevant Content-Security-Policy directive
38
+ # @type [String] url
39
+ attr_accessor :url
40
+
41
+ # Extra origins that the injected code needs to contact (XHR / beacon / tracking pixel), added to
42
+ # the web interface Content-Security-Policy
43
+ # @type [Array<Comet::CustomBrandingOrigin>] additional_network_origins
44
+ attr_accessor :additional_network_origins
45
+
46
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
47
+ attr_accessor :unknown_json_fields
48
+
49
+ def initialize
50
+ clear
51
+ end
52
+
53
+ def clear
54
+ @description = ''
55
+ @content_type = ''
56
+ @source_type = ''
57
+ @placement = ''
58
+ @content = ''
59
+ @url = ''
60
+ @additional_network_origins = []
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 'Description'
78
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
79
+
80
+ @description = v
81
+ when 'ContentType'
82
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
83
+
84
+ @content_type = v
85
+ when 'SourceType'
86
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
87
+
88
+ @source_type = v
89
+ when 'Placement'
90
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
91
+
92
+ @placement = v
93
+ when 'Content'
94
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
95
+
96
+ @content = v
97
+ when 'URL'
98
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
99
+
100
+ @url = v
101
+ when 'AdditionalNetworkOrigins'
102
+ if v.nil?
103
+ @additional_network_origins = []
104
+ else
105
+ @additional_network_origins = Array.new(v.length)
106
+ v.each_with_index do |v1, i1|
107
+ @additional_network_origins[i1] = Comet::CustomBrandingOrigin.new
108
+ @additional_network_origins[i1].from_hash(v1)
109
+ end
110
+ end
111
+ else
112
+ @unknown_json_fields[k] = v
113
+ end
114
+ end
115
+ end
116
+
117
+ # @return [Hash] The complete object as a Ruby hash
118
+ def to_hash
119
+ ret = {}
120
+ ret['Description'] = @description
121
+ ret['ContentType'] = @content_type
122
+ ret['SourceType'] = @source_type
123
+ ret['Placement'] = @placement
124
+ ret['Content'] = @content
125
+ ret['URL'] = @url
126
+ ret['AdditionalNetworkOrigins'] = @additional_network_origins
127
+ @unknown_json_fields.each do |k, v|
128
+ ret[k] = v
129
+ end
130
+ ret
131
+ end
132
+
133
+ # @return [Hash] The complete object as a Ruby hash
134
+ def to_h
135
+ to_hash
136
+ end
137
+
138
+ # @return [String] The complete object as a JSON string
139
+ def to_json(options = {})
140
+ to_hash.to_json(options)
141
+ end
142
+ end
143
+ end
@@ -0,0 +1,79 @@
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
+ # CustomBrandingOptions is a typed class wrapper around the underlying Comet Server API data structure.
13
+ class CustomBrandingOptions
14
+
15
+ # @type [Array<Comet::CustomBrandingItem>] items
16
+ attr_accessor :items
17
+
18
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
19
+ attr_accessor :unknown_json_fields
20
+
21
+ def initialize
22
+ clear
23
+ end
24
+
25
+ def clear
26
+ @items = []
27
+ @unknown_json_fields = {}
28
+ end
29
+
30
+ # @param [String] json_string The complete object in JSON format
31
+ def from_json(json_string)
32
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
33
+
34
+ from_hash(JSON.parse(json_string))
35
+ end
36
+
37
+ # @param [Hash] obj The complete object as a Ruby hash
38
+ def from_hash(obj)
39
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
40
+
41
+ obj.each do |k, v|
42
+ case k
43
+ when 'Items'
44
+ if v.nil?
45
+ @items = []
46
+ else
47
+ @items = Array.new(v.length)
48
+ v.each_with_index do |v1, i1|
49
+ @items[i1] = Comet::CustomBrandingItem.new
50
+ @items[i1].from_hash(v1)
51
+ end
52
+ end
53
+ else
54
+ @unknown_json_fields[k] = v
55
+ end
56
+ end
57
+ end
58
+
59
+ # @return [Hash] The complete object as a Ruby hash
60
+ def to_hash
61
+ ret = {}
62
+ ret['Items'] = @items
63
+ @unknown_json_fields.each do |k, v|
64
+ ret[k] = v
65
+ end
66
+ ret
67
+ end
68
+
69
+ # @return [Hash] The complete object as a Ruby hash
70
+ def to_h
71
+ to_hash
72
+ end
73
+
74
+ # @return [String] The complete object as a JSON string
75
+ def to_json(options = {})
76
+ to_hash.to_json(options)
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,76 @@
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
+ # CustomBrandingOrigin is a typed class wrapper around the underlying Comet Server API data structure.
13
+ class CustomBrandingOrigin
14
+
15
+ # A web origin in scheme://host[:port] form. It is added to the connect-src and img-src directives
16
+ # of the web interface Content-Security-Policy, allowing injected code to contact it (e.g. an
17
+ # analytics ingestion endpoint)
18
+ # @type [String] origin
19
+ attr_accessor :origin
20
+
21
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
22
+ attr_accessor :unknown_json_fields
23
+
24
+ def initialize
25
+ clear
26
+ end
27
+
28
+ def clear
29
+ @origin = ''
30
+ @unknown_json_fields = {}
31
+ end
32
+
33
+ # @param [String] json_string The complete object in JSON format
34
+ def from_json(json_string)
35
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
36
+
37
+ from_hash(JSON.parse(json_string))
38
+ end
39
+
40
+ # @param [Hash] obj The complete object as a Ruby hash
41
+ def from_hash(obj)
42
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
43
+
44
+ obj.each do |k, v|
45
+ case k
46
+ when 'Origin'
47
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
48
+
49
+ @origin = v
50
+ else
51
+ @unknown_json_fields[k] = v
52
+ end
53
+ end
54
+ end
55
+
56
+ # @return [Hash] The complete object as a Ruby hash
57
+ def to_hash
58
+ ret = {}
59
+ ret['Origin'] = @origin
60
+ @unknown_json_fields.each do |k, v|
61
+ ret[k] = v
62
+ end
63
+ ret
64
+ end
65
+
66
+ # @return [Hash] The complete object as a Ruby hash
67
+ def to_h
68
+ to_hash
69
+ end
70
+
71
+ # @return [String] The complete object as a JSON string
72
+ def to_json(options = {})
73
+ to_hash.to_json(options)
74
+ end
75
+ end
76
+ 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
@@ -23,6 +23,10 @@ module Comet
23
23
  # @type [Number] modify_time
24
24
  attr_accessor :modify_time
25
25
 
26
+ # Unix timestamp in seconds. A 0 value indicates unsuspended
27
+ # @type [Number] suspended_time
28
+ attr_accessor :suspended_time
29
+
26
30
  # Custom commands to run before the job
27
31
  # @type [Array<String>] pre_exec
28
32
  attr_accessor :pre_exec
@@ -175,7 +179,7 @@ module Comet
175
179
  # @type [String] localcopy_win_smbpassword
176
180
  attr_accessor :localcopy_win_smbpassword
177
181
 
178
- # One of the PASSWORD_FORMAT_ constants. It controls the hash format of the LocalcopyWinSMBPassword
182
+ # One of the ENCRYPTIONMETHOD_ constants. It controls the hash format of the LocalcopyWinSMBPassword
179
183
  # field.
180
184
  # @type [Number] localcopy_win_smbpassword_format
181
185
  attr_accessor :localcopy_win_smbpassword_format
@@ -196,6 +200,10 @@ module Comet
196
200
  # @type [Comet::SMBDestinationLocation] smb
197
201
  attr_accessor :smb
198
202
 
203
+ # This field is available in Comet 26.9.x and later.
204
+ # @type [Comet::NFSDestinationLocation] nfs
205
+ attr_accessor :nfs
206
+
199
207
  # A list of underlying destinations, that will be combined and presented as one.
200
208
  # @type [Array<Comet::DestinationLocation>] span_targets
201
209
  attr_accessor :span_targets
@@ -254,6 +262,13 @@ module Comet
254
262
  # @type [Boolean] rebrand_storage
255
263
  attr_accessor :rebrand_storage
256
264
 
265
+ # If true, the end-user account is prevented from modifying this Storage Vault (e.g. its quota,
266
+ # retention rules, or storage location), regardless of the account policy's PreventEditStorageVault
267
+ # setting - it takes priority over that policy. Typically set by the Storage Template that
268
+ # provisioned this Storage Vault.
269
+ # @type [Boolean] prevent_user_edit
270
+ attr_accessor :prevent_user_edit
271
+
257
272
  # If not empty, an error occured during a retention pass. Describes the error.
258
273
  # @type [String] retention_error
259
274
  attr_accessor :retention_error
@@ -272,6 +287,7 @@ module Comet
272
287
  @description = ''
273
288
  @create_time = 0
274
289
  @modify_time = 0
290
+ @suspended_time = 0
275
291
  @pre_exec = []
276
292
  @thaw_exec = []
277
293
  @post_exec = []
@@ -315,6 +331,7 @@ module Comet
315
331
  @web_dav = Comet::WebDavDestinationLocation.new
316
332
  @storj = Comet::StorjDestinationLocation.new
317
333
  @smb = Comet::SMBDestinationLocation.new
334
+ @nfs = Comet::NFSDestinationLocation.new
318
335
  @span_targets = []
319
336
  @tag = ''
320
337
  @encryption_key_encryption_method = 0
@@ -354,6 +371,10 @@ module Comet
354
371
  raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
355
372
 
356
373
  @modify_time = v
374
+ when 'SuspendedTime'
375
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
376
+
377
+ @suspended_time = v
357
378
  when 'PreExec'
358
379
  if v.nil?
359
380
  @pre_exec = []
@@ -554,6 +575,9 @@ module Comet
554
575
  when 'SMB'
555
576
  @smb = Comet::SMBDestinationLocation.new
556
577
  @smb.from_hash(v)
578
+ when 'NFS'
579
+ @nfs = Comet::NFSDestinationLocation.new
580
+ @nfs.from_hash(v)
557
581
  when 'SpanTargets'
558
582
  if v.nil?
559
583
  @span_targets = []
@@ -600,6 +624,8 @@ module Comet
600
624
  @default_retention.from_hash(v)
601
625
  when 'RebrandStorage'
602
626
  @rebrand_storage = v
627
+ when 'PreventUserEdit'
628
+ @prevent_user_edit = v
603
629
  when 'RetentionError'
604
630
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
605
631
 
@@ -627,6 +653,7 @@ module Comet
627
653
  ret['Description'] = @description
628
654
  ret['CreateTime'] = @create_time
629
655
  ret['ModifyTime'] = @modify_time
656
+ ret['SuspendedTime'] = @suspended_time
630
657
  ret['PreExec'] = @pre_exec
631
658
  ret['ThawExec'] = @thaw_exec
632
659
  ret['PostExec'] = @post_exec
@@ -676,6 +703,7 @@ module Comet
676
703
  ret['WebDav'] = @web_dav
677
704
  ret['Storj'] = @storj
678
705
  ret['SMB'] = @smb
706
+ ret['NFS'] = @nfs
679
707
  ret['SpanTargets'] = @span_targets
680
708
  ret['SpanUseStaticSlots'] = @span_use_static_slots
681
709
  ret['Tag'] = @tag
@@ -685,11 +713,10 @@ module Comet
685
713
  ret['StorageLimitEnabled'] = @storage_limit_enabled
686
714
  ret['StorageLimitBytes'] = @storage_limit_bytes
687
715
  ret['StorageLimitID'] = @storage_limit_id
688
- unless @statistics.nil?
689
- ret['Statistics'] = @statistics
690
- end
716
+ ret['Statistics'] = @statistics
691
717
  ret['DefaultRetention'] = @default_retention
692
718
  ret['RebrandStorage'] = @rebrand_storage
719
+ ret['PreventUserEdit'] = @prevent_user_edit
693
720
  ret['RetentionError'] = @retention_error
694
721
  ret['AssociatedDevices'] = @associated_devices
695
722
  @unknown_json_fields.each do |k, v|
@@ -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
@@ -155,7 +155,7 @@ module Comet
155
155
  # @type [String] localcopy_win_smbpassword
156
156
  attr_accessor :localcopy_win_smbpassword
157
157
 
158
- # One of the PASSWORD_FORMAT_ constants. It controls the hash format of the LocalcopyWinSMBPassword
158
+ # One of the ENCRYPTIONMETHOD_ constants. It controls the hash format of the LocalcopyWinSMBPassword
159
159
  # field.
160
160
  # @type [Number] localcopy_win_smbpassword_format
161
161
  attr_accessor :localcopy_win_smbpassword_format
@@ -176,6 +176,10 @@ module Comet
176
176
  # @type [Comet::SMBDestinationLocation] smb
177
177
  attr_accessor :smb
178
178
 
179
+ # This field is available in Comet 26.9.x and later.
180
+ # @type [Comet::NFSDestinationLocation] nfs
181
+ attr_accessor :nfs
182
+
179
183
  # A list of underlying destinations, that will be combined and presented as one.
180
184
  # @type [Array<Comet::DestinationLocation>] span_targets
181
185
  attr_accessor :span_targets
@@ -244,6 +248,7 @@ module Comet
244
248
  @web_dav = Comet::WebDavDestinationLocation.new
245
249
  @storj = Comet::StorjDestinationLocation.new
246
250
  @smb = Comet::SMBDestinationLocation.new
251
+ @nfs = Comet::NFSDestinationLocation.new
247
252
  @span_targets = []
248
253
  @tag = ''
249
254
  @unknown_json_fields = {}
@@ -429,6 +434,9 @@ module Comet
429
434
  when 'SMB'
430
435
  @smb = Comet::SMBDestinationLocation.new
431
436
  @smb.from_hash(v)
437
+ when 'NFS'
438
+ @nfs = Comet::NFSDestinationLocation.new
439
+ @nfs.from_hash(v)
432
440
  when 'SpanTargets'
433
441
  if v.nil?
434
442
  @span_targets = []
@@ -500,6 +508,7 @@ module Comet
500
508
  ret['WebDav'] = @web_dav
501
509
  ret['Storj'] = @storj
502
510
  ret['SMB'] = @smb
511
+ ret['NFS'] = @nfs
503
512
  ret['SpanTargets'] = @span_targets
504
513
  ret['SpanUseStaticSlots'] = @span_use_static_slots
505
514
  ret['Tag'] = @tag
@@ -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