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
@@ -38,12 +38,89 @@ module Comet
38
38
  @server_address += '/' unless server_address.end_with?('/')
39
39
  end
40
40
 
41
+ # AdminAccountApiTokenCreate
42
+ #
43
+ # Create a new personal API token for the current admin account.
44
+ # The response contains the plaintext token. It is shown exactly once and cannot be retrieved again - store it securely.
45
+ # The token inherits the current permissions of the admin account that created it, evaluated live on each request; it does not capture a fixed snapshot of permissions.
46
+ # To authenticate with the token, send it in the Token field with AuthType=Token, or in the Password field with AuthType=Password. The latter lets SDKs and integrations that only support password authentication use a token without needing to handle 2FA.
47
+ # Creating a token requires you to supply your current password, unless the request is already authenticated with a password, or the account is managed by an external authentication source. Check AdminAccountProperties.APITokenCreateRequiresPassword to know whether it is needed.
48
+ #
49
+ # You must supply administrator authentication credentials to use this API.
50
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
51
+ #
52
+ # @param [String] description Human-readable label for this token
53
+ # @param [Number] expire_time (Optional) Unix timestamp, in seconds, when the token stops working. Must be in the future. If this parameter is omitted entirely, the token expires after 90 days. Pass zero explicitly for a token that never expires
54
+ # @return [Comet::AdminAccountAPITokenCreateResponse]
55
+ def admin_account_api_token_create(description, expire_time = nil)
56
+ submit_params = {}
57
+ raise TypeError, "'description' expected String, got #{description.class}" unless description.is_a? String
58
+
59
+ submit_params['Description'] = description
60
+ unless expire_time.nil?
61
+ raise TypeError, "'expire_time' expected Numeric, got #{expire_time.class}" unless expire_time.is_a? Numeric
62
+
63
+ submit_params['ExpireTime'] = expire_time
64
+ end
65
+
66
+ body = perform_request('api/v1/admin/account/api-token/create', submit_params)
67
+ json_body = JSON.parse body
68
+ check_status json_body
69
+ ret = Comet::AdminAccountAPITokenCreateResponse.new
70
+ ret.from_hash(json_body)
71
+ ret
72
+ end
73
+
74
+ # AdminAccountApiTokenList
75
+ #
76
+ # List the metadata for all API tokens of the current admin account.
77
+ # This does not include the token itself, which is only returned once when the token is created.
78
+ #
79
+ # You must supply administrator authentication credentials to use this API.
80
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
81
+ #
82
+ # @return [Comet::AdminAccountAPITokenListResponse]
83
+ def admin_account_api_token_list
84
+ body = perform_request('api/v1/admin/account/api-token/list')
85
+ json_body = JSON.parse body
86
+ check_status json_body
87
+ ret = Comet::AdminAccountAPITokenListResponse.new
88
+ ret.from_hash(json_body)
89
+ ret
90
+ end
91
+
92
+ # AdminAccountApiTokenRevoke
93
+ #
94
+ # Revoke a personal API token of the current admin account.
95
+ # An admin may always revoke their own tokens, even if API tokens have since been disabled for their account or this server.
96
+ #
97
+ # You must supply administrator authentication credentials to use this API.
98
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
99
+ #
100
+ # @param [String] token_id The token identifier, as shown in the token list
101
+ # @return [Comet::CometAPIResponseMessage]
102
+ def admin_account_api_token_revoke(token_id)
103
+ submit_params = {}
104
+ raise TypeError, "'token_id' expected String, got #{token_id.class}" unless token_id.is_a? String
105
+
106
+ submit_params['TokenID'] = token_id
107
+
108
+ body = perform_request('api/v1/admin/account/api-token/revoke', submit_params)
109
+ json_body = JSON.parse body
110
+ check_status json_body
111
+ ret = Comet::CometAPIResponseMessage.new
112
+ ret.from_hash(json_body)
113
+ ret
114
+ end
115
+
41
116
  # AdminAccountProperties
42
117
  #
43
118
  # Retrieve properties about the current admin account.
44
119
  # Some key parameters are obscured, but the obscured values are safely recognised by the corresponding AdminAccountSetProperties API.
120
+ # In Comet 26.8.4 and later, when authenticating with an admin API token, the account's password hash is additionally obscured.
45
121
  #
46
122
  # You must supply administrator authentication credentials to use this API.
123
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
47
124
  #
48
125
  # @return [Comet::AdminAccountPropertiesResponse]
49
126
  def admin_account_properties
@@ -61,6 +138,7 @@ module Comet
61
138
  # The secret is returned as a `data-uri` image of a QR code. The new secret is immediately applied to the current admin account.
62
139
  #
63
140
  # You must supply administrator authentication credentials to use this API.
141
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
64
142
  #
65
143
  # @return [Comet::TotpRegeneratedResponse]
66
144
  def admin_account_regenerate_totp
@@ -77,6 +155,7 @@ module Comet
77
155
  # Revoke a session key (log out).
78
156
  #
79
157
  # You must supply administrator authentication credentials to use this API.
158
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
80
159
  #
81
160
  # @return [Comet::CometAPIResponseMessage]
82
161
  def admin_account_session_revoke
@@ -93,8 +172,9 @@ module Comet
93
172
  # Generate a session key (log in).
94
173
  #
95
174
  # You must supply administrator authentication credentials to use this API.
175
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
96
176
  #
97
- # @param [String] self_address (Optional) External URL of this server
177
+ # @param [String] self_address (Optional) External URL of this server (>= 18.9.9)
98
178
  # @return [Comet::SessionKeyRegeneratedResponse]
99
179
  def admin_account_session_start(self_address = nil)
100
180
  submit_params = {}
@@ -119,6 +199,7 @@ module Comet
119
199
  # Generate a session key for an end-user (log in as end-user).
120
200
  #
121
201
  # You must supply administrator authentication credentials to use this API.
202
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
122
203
  #
123
204
  # @param [String] target_user Target account username
124
205
  # @return [Comet::SessionKeyRegeneratedResponse]
@@ -138,22 +219,17 @@ module Comet
138
219
 
139
220
  # AdminAccountSessionUpgrade
140
221
  #
141
- # Upgrade a session key which is pending an MFA upgrade to a full session key.
222
+ # Exchange an SSO one-time token for a session key.
142
223
  #
143
224
  # You must supply administrator authentication credentials to use this API.
225
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
144
226
  #
145
- # @param [String] session_key The session key to upgrade
146
- # @return [Comet::CometAPIResponseMessage]
147
- def admin_account_session_upgrade(session_key)
148
- submit_params = {}
149
- raise TypeError, "'session_key' expected String, got #{session_key.class}" unless session_key.is_a? String
150
-
151
- submit_params['SessionKey'] = session_key
152
-
153
- body = perform_request('api/v1/admin/account/session-upgrade', submit_params)
227
+ # @return [Comet::SessionKeyRegeneratedResponse]
228
+ def admin_account_session_upgrade
229
+ body = perform_request('api/v1/admin/account/session-upgrade')
154
230
  json_body = JSON.parse body
155
231
  check_status json_body
156
- ret = Comet::CometAPIResponseMessage.new
232
+ ret = Comet::SessionKeyRegeneratedResponse.new
157
233
  ret.from_hash(json_body)
158
234
  ret
159
235
  end
@@ -167,6 +243,7 @@ module Comet
167
243
  # In Comet 24.12.2 and later, this API can change the IPWhitelist field. Prior to this, changes to the IPWhitelist field were ignored.
168
244
  #
169
245
  # You must supply administrator authentication credentials to use this API.
246
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
170
247
  #
171
248
  # @param [Comet::AdminSecurityOptions] security Updated account properties
172
249
  # @return [Comet::CometAPIResponseMessage]
@@ -192,6 +269,7 @@ module Comet
192
269
  # to allow their use with the WebAuthn endpoints.
193
270
  #
194
271
  # You must supply administrator authentication credentials to use this API.
272
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
195
273
  #
196
274
  # @param [String] self_address External URL of this server, used as U2F AppID and Facet
197
275
  # @return [Comet::U2FRegistrationChallengeResponse]
@@ -217,6 +295,7 @@ module Comet
217
295
  # to allow their use with the WebAuthn endpoints.
218
296
  #
219
297
  # You must supply administrator authentication credentials to use this API.
298
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
220
299
  #
221
300
  # @param [String] u2fchallenge_id Associated value from AdminAccountU2fRequestRegistrationChallenge API
222
301
  # @param [String] u2fclient_data U2F response data supplied by hardware token
@@ -257,6 +336,7 @@ module Comet
257
336
  # Validate the TOTP code before turning 2fa(TOTP) on.
258
337
  #
259
338
  # You must supply administrator authentication credentials to use this API.
339
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
260
340
  #
261
341
  # @param [String] totpcode Six-digit code after scanning barcode image
262
342
  # @return [Comet::CometAPIResponseMessage]
@@ -279,6 +359,7 @@ module Comet
279
359
  # Register a new FIDO2 WebAuthn token.
280
360
  #
281
361
  # You must supply administrator authentication credentials to use this API.
362
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
282
363
  #
283
364
  # @param [String] self_address External URL of this server, used as WebAuthn ID
284
365
  # @return [Comet::WebAuthnRegistrationChallengeResponse]
@@ -301,6 +382,7 @@ module Comet
301
382
  # Register a new FIDO2 WebAuthn token.
302
383
  #
303
384
  # You must supply administrator authentication credentials to use this API.
385
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
304
386
  #
305
387
  # @param [String] self_address External URL of this server, used as WebAuthn ID
306
388
  # @param [String] challenge_id Associated value from AdminAccountWebAuthnRequestRegistrationChallenge API
@@ -356,14 +438,16 @@ module Comet
356
438
  #
357
439
  # You must supply administrator authentication credentials to use this API.
358
440
  # This API requires the Auth Role to be enabled.
441
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
359
442
  #
360
- # @param [String] target_user New account username
361
- # @param [String] target_password New account password
443
+ # @param [String] target_user New account username (>= 17.2.0)
444
+ # @param [String] target_password New account password (>= 17.2.0)
362
445
  # @param [Number] store_recovery_code (Optional) If set to 1, store and keep a password recovery code for the generated user (>= 18.3.9)
363
446
  # @param [Number] require_password_change (Optional) If set to 1, require to reset password at the first login for the generated user (>= 20.3.4)
364
- # @param [String] target_organization (Optional) If present, create the user account on behalf of another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.3.7)
447
+ # @param [String] target_organization (Optional) If present, create the user account on behalf of another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.5.0)
448
+ # @param [Number] store_data_recovery_code (Optional) If set to 1, store and keep a data recovery code for the generated user (>= 26.8.10)
365
449
  # @return [Comet::CometAPIResponseMessage]
366
- def admin_add_user(target_user, target_password, store_recovery_code = nil, require_password_change = nil, target_organization = nil)
450
+ def admin_add_user(target_user, target_password, store_recovery_code = nil, require_password_change = nil, target_organization = nil, store_data_recovery_code = nil)
367
451
  submit_params = {}
368
452
  raise TypeError, "'target_user' expected String, got #{target_user.class}" unless target_user.is_a? String
369
453
 
@@ -386,6 +470,11 @@ module Comet
386
470
 
387
471
  submit_params['TargetOrganization'] = target_organization
388
472
  end
473
+ unless store_data_recovery_code.nil?
474
+ raise TypeError, "'store_data_recovery_code' expected Numeric, got #{store_data_recovery_code.class}" unless store_data_recovery_code.is_a? Numeric
475
+
476
+ submit_params['StoreDataRecoveryCode'] = store_data_recovery_code
477
+ end
389
478
 
390
479
  body = perform_request('api/v1/admin/add-user', submit_params)
391
480
  json_body = JSON.parse body
@@ -402,10 +491,11 @@ module Comet
402
491
  #
403
492
  # You must supply administrator authentication credentials to use this API.
404
493
  # This API requires the Auth Role to be enabled.
494
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
405
495
  #
406
- # @param [String] target_user New account username
407
- # @param [Comet::UserProfileConfig] profile_data New account profile
408
- # @param [String] target_organization (Optional) If present, create the user account on behalf of another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.3.7)
496
+ # @param [String] target_user New account username (>= 17.2.0)
497
+ # @param [Comet::UserProfileConfig] profile_data New account profile (>= 17.2.0)
498
+ # @param [String] target_organization (Optional) If present, create the user account on behalf of another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.5.0)
409
499
  # @return [Comet::CometAPIResponseMessage]
410
500
  def admin_add_user_from_profile(target_user, profile_data, target_organization = nil)
411
501
  submit_params = {}
@@ -436,14 +526,21 @@ module Comet
436
526
  # You must supply administrator authentication credentials to use this API.
437
527
  # Access to this API may be prevented on a per-administrator basis.
438
528
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
529
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
439
530
  #
440
531
  # @param [String] target_user the username of the admin to be deleted
532
+ # @param [String] target_org_id (Optional) the organization ID of the admin to be deleted. If omitted, defaults to the top-level organization. (>= 26.11.0)
441
533
  # @return [Comet::CometAPIResponseMessage]
442
- def admin_admin_user_delete(target_user)
534
+ def admin_admin_user_delete(target_user, target_org_id = nil)
443
535
  submit_params = {}
444
536
  raise TypeError, "'target_user' expected String, got #{target_user.class}" unless target_user.is_a? String
445
537
 
446
538
  submit_params['TargetUser'] = target_user
539
+ unless target_org_id.nil?
540
+ raise TypeError, "'target_org_id' expected String, got #{target_org_id.class}" unless target_org_id.is_a? String
541
+
542
+ submit_params['TargetOrgID'] = target_org_id
543
+ end
447
544
 
448
545
  body = perform_request('api/v1/admin/admin-user/delete', submit_params)
449
546
  json_body = JSON.parse body
@@ -460,10 +557,19 @@ module Comet
460
557
  # You must supply administrator authentication credentials to use this API.
461
558
  # Access to this API may be prevented on a per-administrator basis.
462
559
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
560
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
463
561
  #
562
+ # @param [String] target_org_id (Optional) If present, only list the administrators belonging to this organization. Otherwise, administrators from all organizations are listed. (>= 26.11.0)
464
563
  # @return [Array<Comet::AllowedAdminUser>]
465
- def admin_admin_user_list
466
- body = perform_request('api/v1/admin/admin-user/list')
564
+ def admin_admin_user_list(target_org_id = nil)
565
+ submit_params = {}
566
+ unless target_org_id.nil?
567
+ raise TypeError, "'target_org_id' expected String, got #{target_org_id.class}" unless target_org_id.is_a? String
568
+
569
+ submit_params['TargetOrgID'] = target_org_id
570
+ end
571
+
572
+ body = perform_request('api/v1/admin/admin-user/list', submit_params)
467
573
  json_body = JSON.parse body
468
574
  check_status json_body
469
575
  if json_body.nil?
@@ -485,10 +591,11 @@ module Comet
485
591
  # You must supply administrator authentication credentials to use this API.
486
592
  # Access to this API may be prevented on a per-administrator basis.
487
593
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
594
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
488
595
  #
489
596
  # @param [String] target_user the username for this new admin
490
597
  # @param [String] target_password the password for this new admin user
491
- # @param [String] target_org_id (Optional) provide the organization ID for this user, it will default to the org of the authenticating user otherwise
598
+ # @param [String] target_org_id (Optional) provide the organization ID for this user, it will default to the top-level organization otherwise.
492
599
  # @return [Comet::CometAPIResponseMessage]
493
600
  def admin_admin_user_new(target_user, target_password, target_org_id = nil)
494
601
  submit_params = {}
@@ -512,6 +619,47 @@ module Comet
512
619
  ret
513
620
  end
514
621
 
622
+ # AdminAdminUserSet
623
+ #
624
+ # Update another administrator.
625
+ # This API cannot update your own administrator account. Use the AdminAccountSetProperties API instead.
626
+ # The supplied Profile replaces the stored administrator account as-is, with the following exceptions:
627
+ # - The Username and OrganizationID fields must either be empty or match the target administrator. This API cannot rename an administrator or move it to another organization.
628
+ # - To set a new plaintext password, use a password format of 0 (PASSWORD_FORMAT_PLAINTEXT); it must be at least 8 characters. A password format of 4 (PASSWORD_FORMAT_UNVERIFIABLE) leaves the password unchanged.
629
+ # - APITokens may only be removed, or have their Description changed. New tokens must be created by the administrator themselves. Other fields of retained tokens are ignored.
630
+ # - IPWhitelist is cleared if the server license does not permit it.
631
+ #
632
+ # You must supply administrator authentication credentials to use this API.
633
+ # Access to this API may be prevented on a per-administrator basis.
634
+ # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
635
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
636
+ #
637
+ # @param [String] target_user the username of the admin to be updated (>= 26.11.0)
638
+ # @param [Comet::AllowedAdminUser] profile the updated administrator account (>= 26.11.0)
639
+ # @param [String] target_org_id (Optional) the organization ID of the admin to be updated. If omitted, defaults to the top-level organization. (>= 26.11.0)
640
+ # @return [Comet::CometAPIResponseMessage]
641
+ def admin_admin_user_set(target_user, profile, target_org_id = nil)
642
+ submit_params = {}
643
+ raise TypeError, "'target_user' expected String, got #{target_user.class}" unless target_user.is_a? String
644
+
645
+ submit_params['TargetUser'] = target_user
646
+ raise TypeError, "'profile' expected Comet::AllowedAdminUser, got #{profile.class}" unless profile.is_a? Comet::AllowedAdminUser
647
+
648
+ submit_params['Profile'] = profile.to_json
649
+ unless target_org_id.nil?
650
+ raise TypeError, "'target_org_id' expected String, got #{target_org_id.class}" unless target_org_id.is_a? String
651
+
652
+ submit_params['TargetOrgID'] = target_org_id
653
+ end
654
+
655
+ body = perform_request('api/v1/admin/admin-user/set', submit_params)
656
+ json_body = JSON.parse body
657
+ check_status json_body
658
+ ret = Comet::CometAPIResponseMessage.new
659
+ ret.from_hash(json_body)
660
+ ret
661
+ end
662
+
515
663
  # AdminBrandingAvailablePlatforms
516
664
  #
517
665
  # List available software download platforms.
@@ -595,7 +743,7 @@ module Comet
595
743
  # This API requires the Software Build Role to be enabled.
596
744
  # This API requires the Auth Role to be enabled.
597
745
  #
598
- # @param [String] self_address (Optional) The external URL of this server, used to resolve conflicts
746
+ # @param [String] self_address (Optional) The external URL of this server, used to resolve conflicts (>= 17.3.12)
599
747
  # @return [String]
600
748
  def admin_branding_generate_client_linuxgeneric(self_address = nil)
601
749
  submit_params = {}
@@ -884,9 +1032,10 @@ module Comet
884
1032
  #
885
1033
  # You must supply administrator authentication credentials to use this API.
886
1034
  # This API requires the Auth Role to be enabled.
1035
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
887
1036
  #
888
- # @param [String] subject Bulletin subject line
889
- # @param [String] content Bulletin message content
1037
+ # @param [String] subject Bulletin subject line (>= 17.3.5)
1038
+ # @param [String] content Bulletin message content (>= 17.3.5)
890
1039
  # @return [Comet::CometAPIResponseMessage]
891
1040
  def admin_bulletin_submit(subject, content)
892
1041
  submit_params = {}
@@ -911,6 +1060,7 @@ module Comet
911
1060
  #
912
1061
  # You must supply administrator authentication credentials to use this API.
913
1062
  # This API requires the Constellation Role to be enabled.
1063
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
914
1064
  #
915
1065
  # @return [Comet::ConstellationCheckReport]
916
1066
  def admin_constellation_last_report
@@ -928,6 +1078,7 @@ module Comet
928
1078
  #
929
1079
  # You must supply administrator authentication credentials to use this API.
930
1080
  # This API requires the Constellation Role to be enabled.
1081
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
931
1082
  #
932
1083
  # @return [Comet::ConstellationCheckReport]
933
1084
  def admin_constellation_new_report
@@ -946,6 +1097,7 @@ module Comet
946
1097
  # You must supply administrator authentication credentials to use this API.
947
1098
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
948
1099
  # This API requires the Constellation Role to be enabled.
1100
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
949
1101
  #
950
1102
  # @return [Comet::CometAPIResponseMessage]
951
1103
  def admin_constellation_prune_now
@@ -963,6 +1115,7 @@ module Comet
963
1115
  #
964
1116
  # You must supply administrator authentication credentials to use this API.
965
1117
  # This API requires the Constellation Role to be enabled.
1118
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
966
1119
  #
967
1120
  # @return [Comet::ConstellationStatusAPIResponse]
968
1121
  def admin_constellation_status
@@ -979,6 +1132,7 @@ module Comet
979
1132
  # Convert IAM Storage Role vault to its underlying S3 type.
980
1133
  #
981
1134
  # You must supply administrator authentication credentials to use this API.
1135
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
982
1136
  #
983
1137
  # @param [String] target_user The user to receive the new Storage Vault
984
1138
  # @param [String] destination_id The id of the old storage role destination to convert
@@ -1006,6 +1160,7 @@ module Comet
1006
1160
  #
1007
1161
  # You must supply administrator authentication credentials to use this API.
1008
1162
  # This API requires the Auth Role to be enabled.
1163
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1009
1164
  #
1010
1165
  # @param [Comet::SearchClause] query (No description available)
1011
1166
  # @return [Comet::CountJobsResponse]
@@ -1032,9 +1187,10 @@ module Comet
1032
1187
  #
1033
1188
  # You must supply administrator authentication credentials to use this API.
1034
1189
  # This API requires the Auth Role to be enabled.
1190
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1035
1191
  #
1036
1192
  # @param [String] target_user Selected account username
1037
- # @param [String] target_password Selected account password
1193
+ # @param [String] target_password Selected account password (>= 20.9.1)
1038
1194
  # @param [String] server (Optional) External URL of the authentication server that is different from the current server
1039
1195
  # @return [Comet::InstallTokenResponse]
1040
1196
  def admin_create_install_token(target_user, target_password, server = nil)
@@ -1065,6 +1221,7 @@ module Comet
1065
1221
  #
1066
1222
  # You must supply administrator authentication credentials to use this API.
1067
1223
  # This API requires the Auth Role to be enabled.
1224
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1068
1225
  #
1069
1226
  # @param [String] target_user Selected account username
1070
1227
  # @param [String] source_id Selected Protected Item GUID
@@ -1096,8 +1253,9 @@ module Comet
1096
1253
  #
1097
1254
  # You must supply administrator authentication credentials to use this API.
1098
1255
  # This API requires the Auth Role to be enabled.
1256
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1099
1257
  #
1100
- # @param [String] target_user Selected account username
1258
+ # @param [String] target_user Selected account username (>= 17.2.0)
1101
1259
  # @param [Comet::UninstallConfig] uninstall_config (Optional) Uninstall software configuration (>= 20.3.5)
1102
1260
  # @return [Comet::CometAPIResponseMessage]
1103
1261
  def admin_delete_user(target_user, uninstall_config = nil)
@@ -1125,6 +1283,7 @@ module Comet
1125
1283
  #
1126
1284
  # You must supply administrator authentication credentials to use this API.
1127
1285
  # This API requires the Auth Role to be enabled.
1286
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1128
1287
  #
1129
1288
  # @param [String] target_user Selected account username
1130
1289
  # @return [Comet::CometAPIResponseMessage]
@@ -1149,6 +1308,7 @@ module Comet
1149
1308
  #
1150
1309
  # You must supply administrator authentication credentials to use this API.
1151
1310
  # This API requires the Auth Role to be enabled.
1311
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1152
1312
  #
1153
1313
  # @param [String] target_id The live connection GUID
1154
1314
  # @param [String] destination The Storage Vault GUID
@@ -1176,6 +1336,7 @@ module Comet
1176
1336
  #
1177
1337
  # You must supply administrator authentication credentials to use this API.
1178
1338
  # This API requires the Auth Role to be enabled.
1339
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1179
1340
  #
1180
1341
  # @param [String] target_id The live connection GUID
1181
1342
  # @param [String] destination_id The Storage Vault GUID
@@ -1201,6 +1362,31 @@ module Comet
1201
1362
  ret
1202
1363
  end
1203
1364
 
1365
+ # AdminDispatcherClearLoginPassword
1366
+ #
1367
+ # Instruct a live connected device to discard its stored login password and return to the login screen.
1368
+ # The device keeps its username and server URL, so only the new password needs to be re-entered. Use this after a server-side password change when the device should not be given the new password automatically. Devices older than 26.11.3 cannot retain the login details and receive the force-login behavior instead, discarding all stored credentials.
1369
+ #
1370
+ # You must supply administrator authentication credentials to use this API.
1371
+ # This API requires the Auth Role to be enabled.
1372
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1373
+ #
1374
+ # @param [String] target_id The live connection GUID
1375
+ # @return [Comet::CometAPIResponseMessage]
1376
+ def admin_dispatcher_clear_login_password(target_id)
1377
+ submit_params = {}
1378
+ raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
1379
+
1380
+ submit_params['TargetID'] = target_id
1381
+
1382
+ body = perform_request('api/v1/admin/dispatcher/clear-login-password', submit_params)
1383
+ json_body = JSON.parse body
1384
+ check_status json_body
1385
+ ret = Comet::CometAPIResponseMessage.new
1386
+ ret.from_hash(json_body)
1387
+ ret
1388
+ end
1389
+
1204
1390
  # AdminDispatcherDeepverifyStorageVault
1205
1391
  #
1206
1392
  # Instruct a live connected device to deeply verify Storage Vault content.
@@ -1208,6 +1394,7 @@ module Comet
1208
1394
  #
1209
1395
  # You must supply administrator authentication credentials to use this API.
1210
1396
  # This API requires the Auth Role to be enabled.
1397
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1211
1398
  #
1212
1399
  # @param [String] target_id The live connection GUID
1213
1400
  # @param [String] destination The Storage Vault GUID
@@ -1235,6 +1422,7 @@ module Comet
1235
1422
  #
1236
1423
  # You must supply administrator authentication credentials to use this API.
1237
1424
  # This API requires the Auth Role to be enabled.
1425
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1238
1426
  #
1239
1427
  # @param [String] target_id The live connection GUID
1240
1428
  # @param [String] destination_id The Storage Vault GUID
@@ -1267,6 +1455,7 @@ module Comet
1267
1455
  #
1268
1456
  # You must supply administrator authentication credentials to use this API.
1269
1457
  # This API requires the Auth Role to be enabled.
1458
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1270
1459
  #
1271
1460
  # @param [String] target_id The live connection GUID
1272
1461
  # @param [String] destination_id The Storage Vault GUID
@@ -1299,8 +1488,9 @@ module Comet
1299
1488
  #
1300
1489
  # You must supply administrator authentication credentials to use this API.
1301
1490
  # This API requires the Auth Role to be enabled.
1491
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1302
1492
  #
1303
- # @param [String] target_id The live connection GUID
1493
+ # @param [String] target_id The live connection GUID (>= 17.2.0)
1304
1494
  # @return [Comet::CometAPIResponseMessage]
1305
1495
  def admin_dispatcher_drop_connection(target_id)
1306
1496
  submit_params = {}
@@ -1323,6 +1513,7 @@ module Comet
1323
1513
  #
1324
1514
  # You must supply administrator authentication credentials to use this API.
1325
1515
  # This API requires the Auth Role to be enabled.
1516
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1326
1517
  #
1327
1518
  # @param [String] target_id The live connection GUID
1328
1519
  # @param [String] snapshot where the email belongs to
@@ -1359,6 +1550,7 @@ module Comet
1359
1550
  #
1360
1551
  # You must supply administrator authentication credentials to use this API.
1361
1552
  # This API requires the Auth Role to be enabled.
1553
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1362
1554
  #
1363
1555
  # @param [String] target_id The live connection GUID
1364
1556
  # @return [Comet::CometAPIResponseMessage]
@@ -1383,6 +1575,7 @@ module Comet
1383
1575
  # You must supply administrator authentication credentials to use this API.
1384
1576
  # This API requires the Auth Role to be enabled.
1385
1577
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
1578
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1386
1579
  #
1387
1580
  # @param [String] organization_id Target organization
1388
1581
  # @return [Comet::OrganizationLoginURLResponse]
@@ -1407,6 +1600,7 @@ module Comet
1407
1600
  #
1408
1601
  # You must supply administrator authentication credentials to use this API.
1409
1602
  # This API requires the Auth Role to be enabled.
1603
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1410
1604
  #
1411
1605
  # @param [String] target_id The live connection GUID
1412
1606
  # @param [String] import_source_id The selected import source, as found by the AdminDispatcherRequestImportSources API
@@ -1435,8 +1629,9 @@ module Comet
1435
1629
  #
1436
1630
  # You must supply administrator authentication credentials to use this API.
1437
1631
  # This API requires the Auth Role to be enabled.
1632
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1438
1633
  #
1439
- # @param [String] target_id The live connection GUID
1634
+ # @param [String] target_id The live connection GUID (>= 17.2.0)
1440
1635
  # @return [Comet::CometAPIResponseMessage]
1441
1636
  def admin_dispatcher_kill_process(target_id)
1442
1637
  submit_params = {}
@@ -1458,8 +1653,9 @@ module Comet
1458
1653
  #
1459
1654
  # You must supply administrator authentication credentials to use this API.
1460
1655
  # This API requires the Auth Role to be enabled.
1656
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1461
1657
  #
1462
- # @param [String] user_name_filter (Optional) User name filter string
1658
+ # @param [String] user_name_filter (Optional) User name filter string (>= 22.6.5)
1463
1659
  # @return [Hash{String => Comet::LiveUserConnection}]
1464
1660
  def admin_dispatcher_list_active(user_name_filter = nil)
1465
1661
  submit_params = {}
@@ -1491,6 +1687,7 @@ module Comet
1491
1687
  #
1492
1688
  # You must supply administrator authentication credentials to use this API.
1493
1689
  # This API requires the Auth Role to be enabled.
1690
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1494
1691
  #
1495
1692
  # @param [String] target_id The live connection GUID
1496
1693
  # @param [Comet::Office365Credential] credentials The Office365 account credential
@@ -1518,6 +1715,7 @@ module Comet
1518
1715
  #
1519
1716
  # You must supply administrator authentication credentials to use this API.
1520
1717
  # This API requires the Auth Role to be enabled.
1718
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1521
1719
  #
1522
1720
  # @param [String] target_id The live connection GUID
1523
1721
  # @param [Comet::DestinationLocation] extra_data The destination location settings
@@ -1542,12 +1740,13 @@ module Comet
1542
1740
  # AdminDispatcherRefetchProfile
1543
1741
  #
1544
1742
  # Instruct a live connected device to refresh their profile.
1545
- # This command is understood by Comet Backup 17.12.0 and newer.
1743
+ # This command is understood by Comet Backup 17.2.0 and newer.
1546
1744
  #
1547
1745
  # You must supply administrator authentication credentials to use this API.
1548
1746
  # This API requires the Auth Role to be enabled.
1747
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1549
1748
  #
1550
- # @param [String] target_id The live connection GUID
1749
+ # @param [String] target_id The live connection GUID (>= 17.2.0)
1551
1750
  # @return [Comet::CometAPIResponseMessage]
1552
1751
  def admin_dispatcher_refetch_profile(target_id)
1553
1752
  submit_params = {}
@@ -1570,6 +1769,7 @@ module Comet
1570
1769
  #
1571
1770
  # You must supply administrator authentication credentials to use this API.
1572
1771
  # This API requires the Auth Role to be enabled.
1772
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1573
1773
  #
1574
1774
  # @param [String] target_id The live connection GUID
1575
1775
  # @param [String] email_address The email address of the Azure AD administrator
@@ -1598,6 +1798,7 @@ module Comet
1598
1798
  #
1599
1799
  # You must supply administrator authentication credentials to use this API.
1600
1800
  # This API requires the Auth Role to be enabled.
1801
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1601
1802
  #
1602
1803
  # @param [String] target_id The live connection GUID
1603
1804
  # @param [String] continuation The ID returned from the AdminDispatcherRegisterOfficeApplicationBegin endpoint
@@ -1626,6 +1827,7 @@ module Comet
1626
1827
  #
1627
1828
  # You must supply administrator authentication credentials to use this API.
1628
1829
  # This API requires the Auth Role to be enabled.
1830
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1629
1831
  #
1630
1832
  # @param [String] target_id The live connection GUID
1631
1833
  # @param [String] destination The Storage Vault GUID
@@ -1653,6 +1855,7 @@ module Comet
1653
1855
  #
1654
1856
  # You must supply administrator authentication credentials to use this API.
1655
1857
  # This API requires the Auth Role to be enabled.
1858
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1656
1859
  #
1657
1860
  # @param [String] target_id The live connection GUID
1658
1861
  # @return [Comet::BrowseDiskDrivesResponse]
@@ -1676,6 +1879,7 @@ module Comet
1676
1879
  #
1677
1880
  # You must supply administrator authentication credentials to use this API.
1678
1881
  # This API requires the Auth Role to be enabled.
1882
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1679
1883
  #
1680
1884
  # @param [String] target_id The live connection GUID
1681
1885
  # @return [Comet::BrowseEDBResponse]
@@ -1699,6 +1903,7 @@ module Comet
1699
1903
  #
1700
1904
  # You must supply administrator authentication credentials to use this API.
1701
1905
  # This API requires the Auth Role to be enabled.
1906
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1702
1907
  #
1703
1908
  # @param [String] target_id The live connection GUID
1704
1909
  # @return [Comet::BrowseHVResponse]
@@ -1723,6 +1928,7 @@ module Comet
1723
1928
  #
1724
1929
  # You must supply administrator authentication credentials to use this API.
1725
1930
  # This API requires the Auth Role to be enabled.
1931
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1726
1932
  #
1727
1933
  # @param [String] target_id The live connection GUID
1728
1934
  # @param [Comet::MongoDBConnection] credentials The Mongo database authentication settings
@@ -1751,6 +1957,7 @@ module Comet
1751
1957
  #
1752
1958
  # You must supply administrator authentication credentials to use this API.
1753
1959
  # This API requires the Auth Role to be enabled.
1960
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1754
1961
  #
1755
1962
  # @param [String] target_id The live connection GUID
1756
1963
  # @param [Comet::MSSQLConnection] credentials The MSSQL database authentication settings
@@ -1779,6 +1986,7 @@ module Comet
1779
1986
  #
1780
1987
  # You must supply administrator authentication credentials to use this API.
1781
1988
  # This API requires the Auth Role to be enabled.
1989
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1782
1990
  #
1783
1991
  # @param [String] target_id The live connection GUID
1784
1992
  # @param [Comet::MySQLConnection] credentials The MySQL database authentication settings
@@ -1800,12 +2008,42 @@ module Comet
1800
2008
  ret
1801
2009
  end
1802
2010
 
2011
+ # AdminDispatcherRequestBrowsePostgresql
2012
+ #
2013
+ # Request a list of databases in a PostgreSQL server.
2014
+ # The remote device must have given consent for an MSP to browse their files.
2015
+ #
2016
+ # You must supply administrator authentication credentials to use this API.
2017
+ # This API requires the Auth Role to be enabled.
2018
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2019
+ #
2020
+ # @param [String] target_id The live connection GUID (>= 26.11.0)
2021
+ # @param [Comet::PostgreSQLConnection] credentials The PostgreSQL database authentication settings (>= 26.11.0)
2022
+ # @return [Comet::BrowseSQLServerResponse]
2023
+ def admin_dispatcher_request_browse_postgresql(target_id, credentials)
2024
+ submit_params = {}
2025
+ raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
2026
+
2027
+ submit_params['TargetID'] = target_id
2028
+ raise TypeError, "'credentials' expected Comet::PostgreSQLConnection, got #{credentials.class}" unless credentials.is_a? Comet::PostgreSQLConnection
2029
+
2030
+ submit_params['Credentials'] = credentials.to_json
2031
+
2032
+ body = perform_request('api/v1/admin/dispatcher/request-browse-postgresql', submit_params)
2033
+ json_body = JSON.parse body
2034
+ check_status json_body
2035
+ ret = Comet::BrowseSQLServerResponse.new
2036
+ ret.from_hash(json_body)
2037
+ ret
2038
+ end
2039
+
1803
2040
  # AdminDispatcherRequestBrowseProxmox
1804
2041
  #
1805
2042
  # Request a list of Proxmox virtual machines and containers.
1806
2043
  #
1807
2044
  # You must supply administrator authentication credentials to use this API.
1808
2045
  # This API requires the Auth Role to be enabled.
2046
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1809
2047
  #
1810
2048
  # @param [String] target_id The live connection GUID
1811
2049
  # @param [Comet::ProxmoxConnection] credentials The Proxmox connection settings
@@ -1833,6 +2071,7 @@ module Comet
1833
2071
  #
1834
2072
  # You must supply administrator authentication credentials to use this API.
1835
2073
  # This API requires the Auth Role to be enabled.
2074
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1836
2075
  #
1837
2076
  # @param [String] target_id The live connection GUID
1838
2077
  # @param [Comet::SSHConnection] credentials The SSH connection settings
@@ -1860,10 +2099,11 @@ module Comet
1860
2099
  #
1861
2100
  # You must supply administrator authentication credentials to use this API.
1862
2101
  # This API requires the Auth Role to be enabled.
2102
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1863
2103
  #
1864
2104
  # @param [String] target_id The live connection GUID
1865
2105
  # @param [Comet::SSHConnection] credentials The SSH connection settings
1866
- # @param [String] node The target node
2106
+ # @param [String] node The target node (>= 25.9.7)
1867
2107
  # @return [Comet::BrowseProxmoxStorageResponse]
1868
2108
  def admin_dispatcher_request_browse_proxmox_storage(target_id, credentials, node)
1869
2109
  submit_params = {}
@@ -1892,6 +2132,7 @@ module Comet
1892
2132
  #
1893
2133
  # You must supply administrator authentication credentials to use this API.
1894
2134
  # This API requires the Auth Role to be enabled.
2135
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1895
2136
  #
1896
2137
  # @param [String] target_id The live connection GUID
1897
2138
  # @param [Comet::VMwareConnection] credentials The VMware vSphere connection settings
@@ -1920,6 +2161,7 @@ module Comet
1920
2161
  #
1921
2162
  # You must supply administrator authentication credentials to use this API.
1922
2163
  # This API requires the Auth Role to be enabled.
2164
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1923
2165
  #
1924
2166
  # @param [String] target_id The live connection GUID
1925
2167
  # @param [Comet::VMwareConnection] credentials The VMware vSphere connection settings
@@ -1948,6 +2190,7 @@ module Comet
1948
2190
  #
1949
2191
  # You must supply administrator authentication credentials to use this API.
1950
2192
  # This API requires the Auth Role to be enabled.
2193
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1951
2194
  #
1952
2195
  # @param [String] target_id The live connection GUID
1953
2196
  # @param [Comet::VMwareConnection] credentials The VMware vSphere connection settings
@@ -1980,6 +2223,7 @@ module Comet
1980
2223
  #
1981
2224
  # You must supply administrator authentication credentials to use this API.
1982
2225
  # This API requires the Auth Role to be enabled.
2226
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1983
2227
  #
1984
2228
  # @param [String] target_id The live connection GUID
1985
2229
  # @param [Comet::VMwareConnection] credentials The VMware vSphere connection settings
@@ -2012,6 +2256,7 @@ module Comet
2012
2256
  #
2013
2257
  # You must supply administrator authentication credentials to use this API.
2014
2258
  # This API requires the Auth Role to be enabled.
2259
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2015
2260
  #
2016
2261
  # @param [String] target_id The live connection GUID
2017
2262
  # @param [Comet::VMwareConnection] credentials The VMware vSphere connection settings
@@ -2043,6 +2288,7 @@ module Comet
2043
2288
  #
2044
2289
  # You must supply administrator authentication credentials to use this API.
2045
2290
  # This API requires the Auth Role to be enabled.
2291
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2046
2292
  #
2047
2293
  # @param [String] target_id The live connection GUID
2048
2294
  # @return [Comet::BrowseVSSResponse]
@@ -2067,6 +2313,7 @@ module Comet
2067
2313
  #
2068
2314
  # You must supply administrator authentication credentials to use this API.
2069
2315
  # This API requires the Auth Role to be enabled.
2316
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2070
2317
  #
2071
2318
  # @param [String] target_id The live connection GUID
2072
2319
  # @param [String] path (Optional) Browse objects inside this path. If empty or not present, returns the top-level device paths
@@ -2096,6 +2343,7 @@ module Comet
2096
2343
  #
2097
2344
  # You must supply administrator authentication credentials to use this API.
2098
2345
  # This API requires the Auth Role to be enabled.
2346
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2099
2347
  #
2100
2348
  # @param [String] target_id The live connection GUID
2101
2349
  # @return [Comet::DispatcherAdminSourcesResponse]
@@ -2121,6 +2369,7 @@ module Comet
2121
2369
  #
2122
2370
  # You must supply administrator authentication credentials to use this API.
2123
2371
  # This API requires the Auth Role to be enabled.
2372
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2124
2373
  #
2125
2374
  # @param [String] target_id The live connection GUID
2126
2375
  # @param [Comet::Office365Credential] credentials The Office365 account credential
@@ -2149,6 +2398,7 @@ module Comet
2149
2398
  #
2150
2399
  # You must supply administrator authentication credentials to use this API.
2151
2400
  # This API requires the Auth Role to be enabled.
2401
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2152
2402
  #
2153
2403
  # @param [String] target_id The live connection GUID
2154
2404
  # @param [Comet::Office365Credential] credentials The Office365 account credential
@@ -2178,12 +2428,13 @@ module Comet
2178
2428
  #
2179
2429
  # You must supply administrator authentication credentials to use this API.
2180
2430
  # This API requires the Auth Role to be enabled.
2431
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2181
2432
  #
2182
2433
  # @param [String] target_id The live connection GUID
2183
2434
  # @param [String] destination The Storage Vault ID
2184
2435
  # @param [String] snapshot_id The selected backup job snapshot
2185
2436
  # @param [String] tree_id (Optional) Browse objects inside subdirectory of backup snapshot. If it is for VMDK single file restore, it should be the disk image's subtree ID.
2186
- # @param [Comet::VMDKSnapshotViewOptions] options (Optional) Request a list of stored objects in vmdk file
2437
+ # @param [Comet::VMDKSnapshotViewOptions] options (Optional) Request a list of stored objects in vmdk file (>= 21.12.5)
2187
2438
  # @return [Comet::DispatcherStoredObjectsResponse]
2188
2439
  def admin_dispatcher_request_stored_objects(target_id, destination, snapshot_id, tree_id = nil, options = nil)
2189
2440
  submit_params = {}
@@ -2221,6 +2472,7 @@ module Comet
2221
2472
  #
2222
2473
  # You must supply administrator authentication credentials to use this API.
2223
2474
  # This API requires the Auth Role to be enabled.
2475
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2224
2476
  #
2225
2477
  # @param [String] target_id The live connection GUID
2226
2478
  # @param [String] destination The Storage Vault ID
@@ -2248,6 +2500,7 @@ module Comet
2248
2500
  #
2249
2501
  # You must supply administrator authentication credentials to use this API.
2250
2502
  # This API requires the Auth Role to be enabled.
2503
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2251
2504
  #
2252
2505
  # @param [String] target_id The live connection GUID
2253
2506
  # @param [String] destination The Storage Vault ID
@@ -2279,8 +2532,9 @@ module Comet
2279
2532
  #
2280
2533
  # You must supply administrator authentication credentials to use this API.
2281
2534
  # This API requires the Auth Role to be enabled.
2535
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2282
2536
  #
2283
- # @param [String] target_id The live connection GUID
2537
+ # @param [String] target_id The live connection GUID (>= 17.2.0)
2284
2538
  # @param [String] backup_rule The schedule GUID
2285
2539
  # @return [Comet::DispatchWithJobIDResponse]
2286
2540
  def admin_dispatcher_run_backup(target_id, backup_rule)
@@ -2306,10 +2560,11 @@ module Comet
2306
2560
  #
2307
2561
  # You must supply administrator authentication credentials to use this API.
2308
2562
  # This API requires the Auth Role to be enabled.
2563
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2309
2564
  #
2310
- # @param [String] target_id The live connection GUID
2311
- # @param [String] source The Protected Item GUID
2312
- # @param [String] destination The Storage Vault GUID
2565
+ # @param [String] target_id The live connection GUID (>= 17.2.0)
2566
+ # @param [String] source The Protected Item GUID (>= 17.2.0)
2567
+ # @param [String] destination The Storage Vault GUID (>= 17.2.0)
2313
2568
  # @param [Comet::BackupJobAdvancedOptions] options (Optional) Extra job parameters (>= 19.3.6)
2314
2569
  # @return [Comet::DispatchWithJobIDResponse]
2315
2570
  def admin_dispatcher_run_backup_custom(target_id, source, destination, options = nil)
@@ -2344,6 +2599,7 @@ module Comet
2344
2599
  #
2345
2600
  # You must supply administrator authentication credentials to use this API.
2346
2601
  # This API requires the Auth Role to be enabled.
2602
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2347
2603
  #
2348
2604
  # @param [String] target_id The live connection GUID
2349
2605
  # @param [String] path The local path to restore to
@@ -2388,10 +2644,11 @@ module Comet
2388
2644
  # AdminDispatcherRunRestoreCustom
2389
2645
  #
2390
2646
  # Instruct a live connected device to perform a local restore.
2391
- # This command is understood by Comet Backup 18.6.0 and newer.
2647
+ # This command is understood by Comet Backup 19.6.0 and newer.
2392
2648
  #
2393
2649
  # You must supply administrator authentication credentials to use this API.
2394
2650
  # This API requires the Auth Role to be enabled.
2651
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2395
2652
  #
2396
2653
  # @param [String] target_id The live connection GUID
2397
2654
  # @param [String] source The Protected Item ID
@@ -2399,9 +2656,9 @@ module Comet
2399
2656
  # @param [Comet::RestoreJobAdvancedOptions] options Restore targets
2400
2657
  # @param [String] snapshot (Optional) If present, restore a specific snapshot. Otherwise, restore the latest snapshot for the selected Protected Item + Storage Vault pair
2401
2658
  # @param [Array<String>] paths (Optional) If present, restore these paths only. Otherwise, restore all data
2402
- # @param [Number] known_file_count (Optional) The number of files to restore, if known. Supplying this means we don't need to walk the entire tree just to find the file count and will speed up the restoration process.
2403
- # @param [Number] known_byte_count (Optional) The total size in bytes of files to restore, if known. Supplying this means we don't need to walk the entire tree just to find the total file size and will speed up the restoration process.
2404
- # @param [Number] known_dir_count (Optional) The number of directories to restore, if known. Supplying this means we don't need to walk the entire tree just to find the number of directories and will speed up the restoration process.
2659
+ # @param [Number] known_file_count (Optional) The number of files to restore, if known. Supplying this means we don't need to walk the entire tree just to find the file count and will speed up the restoration process. (>= 23.6.0)
2660
+ # @param [Number] known_byte_count (Optional) The total size in bytes of files to restore, if known. Supplying this means we don't need to walk the entire tree just to find the total file size and will speed up the restoration process. (>= 23.6.0)
2661
+ # @param [Number] known_dir_count (Optional) The number of directories to restore, if known. Supplying this means we don't need to walk the entire tree just to find the number of directories and will speed up the restoration process. (>= 23.6.0)
2405
2662
  # @return [Comet::DispatchWithJobIDResponse]
2406
2663
  def admin_dispatcher_run_restore_custom(target_id, source, destination, options, snapshot = nil, paths = nil, known_file_count = nil, known_byte_count = nil, known_dir_count = nil)
2407
2664
  submit_params = {}
@@ -2457,6 +2714,7 @@ module Comet
2457
2714
  #
2458
2715
  # You must supply administrator authentication credentials to use this API.
2459
2716
  # This API requires the Auth Role to be enabled.
2717
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2460
2718
  #
2461
2719
  # @param [String] target_id The live connection GUID
2462
2720
  # @param [String] destination_id The Storage Vault GUID
@@ -2486,12 +2744,41 @@ module Comet
2486
2744
  ret
2487
2745
  end
2488
2746
 
2747
+ # AdminDispatcherTestProxmoxConnection
2748
+ #
2749
+ # Test the connection to a Proxmox cluster node over SSH.
2750
+ #
2751
+ # You must supply administrator authentication credentials to use this API.
2752
+ # This API requires the Auth Role to be enabled.
2753
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2754
+ #
2755
+ # @param [String] target_id The live connection GUID
2756
+ # @param [Comet::SSHConnection] credentials The SSH connection settings
2757
+ # @return [Comet::CometAPIResponseMessage]
2758
+ def admin_dispatcher_test_proxmox_connection(target_id, credentials)
2759
+ submit_params = {}
2760
+ raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
2761
+
2762
+ submit_params['TargetID'] = target_id
2763
+ raise TypeError, "'credentials' expected Comet::SSHConnection, got #{credentials.class}" unless credentials.is_a? Comet::SSHConnection
2764
+
2765
+ submit_params['Credentials'] = credentials.to_json
2766
+
2767
+ body = perform_request('api/v1/admin/dispatcher/test-proxmox-connection', submit_params)
2768
+ json_body = JSON.parse body
2769
+ check_status json_body
2770
+ ret = Comet::CometAPIResponseMessage.new
2771
+ ret.from_hash(json_body)
2772
+ ret
2773
+ end
2774
+
2489
2775
  # AdminDispatcherTestSmbAuth
2490
2776
  #
2491
2777
  # Test a set of Windows SMB credentials.
2492
2778
  #
2493
2779
  # You must supply administrator authentication credentials to use this API.
2494
2780
  # This API requires the Auth Role to be enabled.
2781
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2495
2782
  #
2496
2783
  # @param [String] target_id The live connection GUID
2497
2784
  # @param [Comet::WinSMBAuth] wsa The target credentials to test
@@ -2519,6 +2806,7 @@ module Comet
2519
2806
  #
2520
2807
  # You must supply administrator authentication credentials to use this API.
2521
2808
  # This API requires the Auth Role to be enabled.
2809
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2522
2810
  #
2523
2811
  # @param [String] target_id The live connection GUID
2524
2812
  # @param [Boolean] remove_config_file Determine if the config.dat file will be deleted at the same time
@@ -2546,10 +2834,11 @@ module Comet
2546
2834
  #
2547
2835
  # You must supply administrator authentication credentials to use this API.
2548
2836
  # This API requires the Auth Role to be enabled.
2837
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2549
2838
  #
2550
2839
  # @param [String] target_id The live connection GUID
2551
2840
  # @param [String] destination The Storage Vault GUID
2552
- # @param [Boolean] allow_unsafe (Optional) Allow legacy Storage Vault unlocking, which is unsafe in some cases.
2841
+ # @param [Boolean] allow_unsafe (Optional) Allow legacy Storage Vault unlocking, which is unsafe in some cases. (>= 25.3.0)
2553
2842
  # @return [Comet::CometAPIResponseMessage]
2554
2843
  def admin_dispatcher_unlock(target_id, destination, allow_unsafe = nil)
2555
2844
  submit_params = {}
@@ -2574,9 +2863,11 @@ module Comet
2574
2863
  # AdminDispatcherUpdateLoginPassword
2575
2864
  #
2576
2865
  # Instruct a live connected device to update its login password.
2866
+ # This does not change the user profile password, it only tells the device to use an updated password.
2577
2867
  #
2578
2868
  # You must supply administrator authentication credentials to use this API.
2579
2869
  # This API requires the Auth Role to be enabled.
2870
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2580
2871
  #
2581
2872
  # @param [String] target_id The live connection GUID
2582
2873
  # @param [String] new_password The new password of this user
@@ -2605,10 +2896,11 @@ module Comet
2605
2896
  #
2606
2897
  # You must supply administrator authentication credentials to use this API.
2607
2898
  # This API requires the Auth Role to be enabled.
2899
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2608
2900
  #
2609
2901
  # @param [String] target_id The live connection GUID
2610
2902
  # @param [String] new_url The new external URL of this server
2611
- # @param [Boolean] force (Optional) No checks will be done using previous URL
2903
+ # @param [Boolean] force (Optional) No checks will be done using previous URL (>= 22.9.3)
2612
2904
  # @return [Comet::CometAPIResponseMessage]
2613
2905
  def admin_dispatcher_update_login_url(target_id, new_url, force = nil)
2614
2906
  submit_params = {}
@@ -2633,15 +2925,18 @@ module Comet
2633
2925
  # AdminDispatcherUpdateSoftware
2634
2926
  #
2635
2927
  # Instruct a live connected device to download a software update.
2928
+ # By default the request is queued for delivery and this API returns immediately, without waiting for the device. If WaitForConfirmation is true and the device supports confirming update requests, this API instead waits up to ten seconds for the device to confirm that it has accepted the request, and reports the device's response. A device that does not support it is sent the request without waiting, as if WaitForConfirmation were false.
2636
2929
  #
2637
2930
  # You must supply administrator authentication credentials to use this API.
2638
2931
  # This API requires the Auth Role to be enabled.
2639
2932
  # This API requires the Software Build Role to be enabled.
2933
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2640
2934
  #
2641
- # @param [String] target_id The live connection GUID
2935
+ # @param [String] target_id The live connection GUID (>= 17.2.0)
2642
2936
  # @param [String] self_address (Optional) The external URL of this server, used to resolve conflicts (>= 19.3.11)
2937
+ # @param [Boolean] wait_for_confirmation (Optional) If true, wait for the device to confirm that it accepted the request (>= 26.11.2)
2643
2938
  # @return [Comet::CometAPIResponseMessage]
2644
- def admin_dispatcher_update_software(target_id, self_address = nil)
2939
+ def admin_dispatcher_update_software(target_id, self_address = nil, wait_for_confirmation = nil)
2645
2940
  submit_params = {}
2646
2941
  raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
2647
2942
 
@@ -2653,6 +2948,9 @@ module Comet
2653
2948
 
2654
2949
  submit_params['SelfAddress'] = self_address
2655
2950
  end
2951
+ unless wait_for_confirmation.nil?
2952
+ submit_params['WaitForConfirmation'] = (wait_for_confirmation ? 1 : 0)
2953
+ end
2656
2954
 
2657
2955
  body = perform_request('api/v1/admin/dispatcher/update-software', submit_params)
2658
2956
  json_body = JSON.parse body
@@ -2667,6 +2965,7 @@ module Comet
2667
2965
  # Delete an external admin authentication source.
2668
2966
  #
2669
2967
  # You must supply administrator authentication credentials to use this API.
2968
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2670
2969
  #
2671
2970
  # @param [String] source_id (No description available)
2672
2971
  # @return [Comet::CometAPIResponseMessage]
@@ -2689,6 +2988,7 @@ module Comet
2689
2988
  # Get a map of all external admin authentication sources.
2690
2989
  #
2691
2990
  # You must supply administrator authentication credentials to use this API.
2991
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2692
2992
  #
2693
2993
  # @return [Hash{String => Comet::ExternalAuthenticationSource}]
2694
2994
  def admin_external_auth_sources_get
@@ -2712,6 +3012,7 @@ module Comet
2712
3012
  # Create an external admin authentication source.
2713
3013
  #
2714
3014
  # You must supply administrator authentication credentials to use this API.
3015
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2715
3016
  #
2716
3017
  # @param [Comet::ExternalAuthenticationSource] source (No description available)
2717
3018
  # @param [String] source_id (Optional) (No description available)
@@ -2741,6 +3042,7 @@ module Comet
2741
3042
  # sources for the tenant; none will be preserved.
2742
3043
  #
2743
3044
  # You must supply administrator authentication credentials to use this API.
3045
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2744
3046
  #
2745
3047
  # @param [Hash{String => Comet::ExternalAuthenticationSource}] sources (No description available)
2746
3048
  # @return [Comet::CometAPIResponseMessage]
@@ -2764,8 +3066,9 @@ module Comet
2764
3066
  #
2765
3067
  # You must supply administrator authentication credentials to use this API.
2766
3068
  # This API requires the Auth Role to be enabled.
3069
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2767
3070
  #
2768
- # @param [String] job_id Selected job ID
3071
+ # @param [String] job_id Selected job ID (>= 17.2.0)
2769
3072
  # @return [String]
2770
3073
  def admin_get_job_log(job_id)
2771
3074
  submit_params = {}
@@ -2782,10 +3085,11 @@ module Comet
2782
3085
  #
2783
3086
  # You must supply administrator authentication credentials to use this API.
2784
3087
  # This API requires the Auth Role to be enabled.
3088
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2785
3089
  #
2786
3090
  # @param [String] job_id Selected job ID
2787
- # @param [String] min_severity (Optional) Return only job log entries with equal or higher severity
2788
- # @param [String] message_contains (Optional) Return only job log entries that contain exact string
3091
+ # @param [String] min_severity (Optional) Return only job log entries with equal or higher severity (>= 23.3.1)
3092
+ # @param [String] message_contains (Optional) Return only job log entries that contain exact string (>= 23.3.1)
2789
3093
  # @return [Array<Comet::JobEntry>]
2790
3094
  def admin_get_job_log_entries(job_id, min_severity = nil, message_contains = nil)
2791
3095
  submit_params = {}
@@ -2824,8 +3128,9 @@ module Comet
2824
3128
  #
2825
3129
  # You must supply administrator authentication credentials to use this API.
2826
3130
  # This API requires the Auth Role to be enabled.
3131
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2827
3132
  #
2828
- # @param [String] job_id Selected job ID
3133
+ # @param [String] job_id Selected job ID (>= 17.2.0)
2829
3134
  # @return [Comet::BackupJobDetail]
2830
3135
  def admin_get_job_properties(job_id)
2831
3136
  submit_params = {}
@@ -2848,6 +3153,7 @@ module Comet
2848
3153
  #
2849
3154
  # You must supply administrator authentication credentials to use this API.
2850
3155
  # This API requires the Auth Role to be enabled.
3156
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2851
3157
  #
2852
3158
  # @return [Array<Comet::BackupJobDetail>]
2853
3159
  def admin_get_jobs_all
@@ -2873,6 +3179,7 @@ module Comet
2873
3179
  #
2874
3180
  # You must supply administrator authentication credentials to use this API.
2875
3181
  # This API requires the Auth Role to be enabled.
3182
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2876
3183
  #
2877
3184
  # @param [Comet::SearchClause] query (No description available)
2878
3185
  # @return [Array<Comet::BackupJobDetail>]
@@ -2912,6 +3219,7 @@ module Comet
2912
3219
  #
2913
3220
  # You must supply administrator authentication credentials to use this API.
2914
3221
  # This API requires the Auth Role to be enabled.
3222
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2915
3223
  #
2916
3224
  # @param [Number] start_value Timestamp (Unix)
2917
3225
  # @param [Number] end_value Timestamp (Unix)
@@ -2947,8 +3255,9 @@ module Comet
2947
3255
  #
2948
3256
  # You must supply administrator authentication credentials to use this API.
2949
3257
  # This API requires the Auth Role to be enabled.
3258
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2950
3259
  #
2951
- # @param [String] target_user Selected username
3260
+ # @param [String] target_user Selected username (>= 17.2.0)
2952
3261
  # @return [Array<Comet::BackupJobDetail>]
2953
3262
  def admin_get_jobs_for_user(target_user)
2954
3263
  submit_params = {}
@@ -2978,6 +3287,7 @@ module Comet
2978
3287
  #
2979
3288
  # You must supply administrator authentication credentials to use this API.
2980
3289
  # This API requires the Auth Role to be enabled.
3290
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
2981
3291
  #
2982
3292
  # @return [Array<Comet::BackupJobDetail>]
2983
3293
  def admin_get_jobs_recent
@@ -3002,6 +3312,7 @@ module Comet
3002
3312
  #
3003
3313
  # You must supply administrator authentication credentials to use this API.
3004
3314
  # This API requires the Auth Role to be enabled.
3315
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3005
3316
  #
3006
3317
  # @param [String] target_user Selected account username
3007
3318
  # @param [String] source_id Selected Protected Item GUID
@@ -3029,8 +3340,9 @@ module Comet
3029
3340
  #
3030
3341
  # You must supply administrator authentication credentials to use this API.
3031
3342
  # This API requires the Auth Role to be enabled.
3343
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3032
3344
  #
3033
- # @param [String] target_user Selected account username
3345
+ # @param [String] target_user Selected account username (>= 17.2.0)
3034
3346
  # @return [Comet::UserProfileConfig]
3035
3347
  def admin_get_user_profile(target_user)
3036
3348
  submit_params = {}
@@ -3054,8 +3366,9 @@ module Comet
3054
3366
  #
3055
3367
  # You must supply administrator authentication credentials to use this API.
3056
3368
  # This API requires the Auth Role to be enabled.
3369
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3057
3370
  #
3058
- # @param [String] target_user Selected account username
3371
+ # @param [String] target_user Selected account username (>= 17.2.0)
3059
3372
  # @return [Comet::GetProfileAndHashResponseMessage]
3060
3373
  def admin_get_user_profile_and_hash(target_user)
3061
3374
  submit_params = {}
@@ -3079,8 +3392,9 @@ module Comet
3079
3392
  #
3080
3393
  # You must supply administrator authentication credentials to use this API.
3081
3394
  # This API requires the Auth Role to be enabled.
3395
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3082
3396
  #
3083
- # @param [String] target_user Selected account username
3397
+ # @param [String] target_user Selected account username (>= 17.2.0)
3084
3398
  # @return [Comet::GetProfileHashResponseMessage]
3085
3399
  def admin_get_user_profile_hash(target_user)
3086
3400
  submit_params = {}
@@ -3103,6 +3417,7 @@ module Comet
3103
3417
  #
3104
3418
  # You must supply administrator authentication credentials to use this API.
3105
3419
  # This API requires the Auth Role to be enabled.
3420
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3106
3421
  #
3107
3422
  # @param [String] device_id The live connection Device GUID
3108
3423
  # @return [Comet::CometAPIResponseMessage]
@@ -3126,13 +3441,13 @@ module Comet
3126
3441
  #
3127
3442
  # You must supply administrator authentication credentials to use this API.
3128
3443
  # This API requires the Auth Role to be enabled.
3444
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3129
3445
  #
3130
3446
  # @param [String] device_id The live connection Device GUID
3131
3447
  # @param [String] target_user Selected account username
3132
3448
  # @param [String] target_password Selected account password
3133
- # @param [String] target_totpcode (Optional) Selected account TOTP code
3134
3449
  # @return [String]
3135
- def admin_installation_dispatch_register_device(device_id, target_user, target_password, target_totpcode = nil)
3450
+ def admin_installation_dispatch_register_device(device_id, target_user, target_password)
3136
3451
  submit_params = {}
3137
3452
  raise TypeError, "'device_id' expected String, got #{device_id.class}" unless device_id.is_a? String
3138
3453
 
@@ -3143,11 +3458,6 @@ module Comet
3143
3458
  raise TypeError, "'target_password' expected String, got #{target_password.class}" unless target_password.is_a? String
3144
3459
 
3145
3460
  submit_params['TargetPassword'] = target_password
3146
- unless target_totpcode.nil?
3147
- raise TypeError, "'target_totpcode' expected String, got #{target_totpcode.class}" unless target_totpcode.is_a? String
3148
-
3149
- submit_params['TargetTOTPCode'] = target_totpcode
3150
- end
3151
3461
 
3152
3462
  body = perform_request('api/v1/admin/installation/dispatch/register-device', submit_params)
3153
3463
  json_body = JSON.parse body
@@ -3164,6 +3474,7 @@ module Comet
3164
3474
  #
3165
3475
  # You must supply administrator authentication credentials to use this API.
3166
3476
  # This API requires the Auth Role to be enabled.
3477
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3167
3478
  #
3168
3479
  # @return [Hash{String => Comet::RegistrationLobbyConnection}]
3169
3480
  def admin_installation_list_active
@@ -3190,6 +3501,7 @@ module Comet
3190
3501
  #
3191
3502
  # You must supply administrator authentication credentials to use this API.
3192
3503
  # This API requires the Auth Role to be enabled.
3504
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3193
3505
  #
3194
3506
  # @param [String] target_user Username
3195
3507
  # @param [String] job_id Job ID
@@ -3220,6 +3532,7 @@ module Comet
3220
3532
  #
3221
3533
  # You must supply administrator authentication credentials to use this API.
3222
3534
  # This API requires the Auth Role to be enabled.
3535
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3223
3536
  #
3224
3537
  # @param [String] target_user Username
3225
3538
  # @param [String] job_id Job ID
@@ -3247,6 +3560,7 @@ module Comet
3247
3560
  #
3248
3561
  # You must supply administrator authentication credentials to use this API.
3249
3562
  # This API requires the Auth Role to be enabled.
3563
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3250
3564
  #
3251
3565
  # @return [Array<String>]
3252
3566
  def admin_list_users
@@ -3272,6 +3586,7 @@ module Comet
3272
3586
  #
3273
3587
  # You must supply administrator authentication credentials to use this API.
3274
3588
  # This API requires the Auth Role to be enabled.
3589
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3275
3590
  #
3276
3591
  # @return [Hash{String => Comet::UserProfileConfig}]
3277
3592
  def admin_list_users_full
@@ -3296,6 +3611,7 @@ module Comet
3296
3611
  #
3297
3612
  # You must supply administrator authentication credentials to use this API.
3298
3613
  # Access to this API may be prevented on a per-administrator basis.
3614
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3299
3615
  #
3300
3616
  # @return [Comet::ServerConfigOptionsBrandingFragment]
3301
3617
  def admin_meta_branding_config_get
@@ -3314,6 +3630,7 @@ module Comet
3314
3630
  #
3315
3631
  # You must supply administrator authentication credentials to use this API.
3316
3632
  # Access to this API may be prevented on a per-administrator basis.
3633
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3317
3634
  #
3318
3635
  # @param [Comet::BrandingOptions] branding_config Updated configuration content
3319
3636
  # @return [Comet::CometAPIResponseMessage]
@@ -3337,6 +3654,7 @@ module Comet
3337
3654
  #
3338
3655
  # You must supply administrator authentication credentials to use this API.
3339
3656
  # Access to this API may be prevented on a per-administrator basis.
3657
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3340
3658
  #
3341
3659
  # @return [Comet::ServerConfigOptionsSoftwareBuildRoleFragment]
3342
3660
  def admin_meta_build_config_get
@@ -3354,6 +3672,7 @@ module Comet
3354
3672
  #
3355
3673
  # You must supply administrator authentication credentials to use this API.
3356
3674
  # Access to this API may be prevented on a per-administrator basis.
3675
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3357
3676
  #
3358
3677
  # @param [Comet::SoftwareBuildRoleOptions] software_build_role_config Updated configuration content
3359
3678
  # @return [Comet::CometAPIResponseMessage]
@@ -3377,6 +3696,7 @@ module Comet
3377
3696
  #
3378
3697
  # You must supply administrator authentication credentials to use this API.
3379
3698
  # This API requires the Constellation Role to be enabled.
3699
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3380
3700
  #
3381
3701
  # @return [Comet::ConstellationRoleOptions]
3382
3702
  def admin_meta_constellation_config_get
@@ -3394,6 +3714,7 @@ module Comet
3394
3714
  #
3395
3715
  # You must supply administrator authentication credentials to use this API.
3396
3716
  # This API requires the Constellation Role to be enabled.
3717
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3397
3718
  #
3398
3719
  # @param [Comet::ConstellationRoleOptions] constellation_role_options Constellation role options to set
3399
3720
  # @return [Comet::CometAPIResponseMessage]
@@ -3417,6 +3738,7 @@ module Comet
3417
3738
  #
3418
3739
  # You must supply administrator authentication credentials to use this API.
3419
3740
  # Access to this API may be prevented on a per-administrator basis.
3741
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3420
3742
  #
3421
3743
  # @return [Comet::EmailOptions]
3422
3744
  def admin_meta_email_options_get
@@ -3428,12 +3750,46 @@ module Comet
3428
3750
  ret
3429
3751
  end
3430
3752
 
3753
+ # AdminMetaEmailOptionsOauthCallback
3754
+ #
3755
+ # Exchange an OAuth 2.0 authorization code for an encrypted SMTP refresh token.
3756
+ # The web interface calls this after the mailbox user grants consent. The response is the supplied SMTPOAuth with the refresh token added and secrets encrypted; store it in EmailOptions.SMTPOAuth and save it with the AdminMetaEmailOptionsSet API.
3757
+ #
3758
+ # You must supply administrator authentication credentials to use this API.
3759
+ # Access to this API may be prevented on a per-administrator basis.
3760
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3761
+ #
3762
+ # @param [Comet::SMTPOAuthOptions] smtpoauth The app registration that requested the authorization code. Flow must be SMTP_OAUTH_FLOW_AUTHORIZATION_CODE. The RefreshToken field is ignored. (>= 26.11.0)
3763
+ # @param [String] code The authorization code returned to the redirect URI (>= 26.11.0)
3764
+ # @param [String] redirect_uri The redirect URI used in the authorization request (>= 26.11.0)
3765
+ # @return [Comet::SMTPOAuthOptions]
3766
+ def admin_meta_email_options_oauth_callback(smtpoauth, code, redirect_uri)
3767
+ submit_params = {}
3768
+ raise TypeError, "'smtpoauth' expected Comet::SMTPOAuthOptions, got #{smtpoauth.class}" unless smtpoauth.is_a? Comet::SMTPOAuthOptions
3769
+
3770
+ submit_params['SMTPOAuth'] = smtpoauth.to_json
3771
+ raise TypeError, "'code' expected String, got #{code.class}" unless code.is_a? String
3772
+
3773
+ submit_params['Code'] = code
3774
+ raise TypeError, "'redirect_uri' expected String, got #{redirect_uri.class}" unless redirect_uri.is_a? String
3775
+
3776
+ submit_params['RedirectURI'] = redirect_uri
3777
+
3778
+ body = perform_request('api/v1/admin/meta/email-options/oauth-callback', submit_params)
3779
+ json_body = JSON.parse body
3780
+ check_status json_body
3781
+ ret = Comet::SMTPOAuthOptions.new
3782
+ ret.from_hash(json_body)
3783
+ ret
3784
+ end
3785
+
3431
3786
  # AdminMetaEmailOptionsSet
3432
3787
  #
3433
3788
  # Set the email options.
3434
3789
  #
3435
3790
  # You must supply administrator authentication credentials to use this API.
3436
3791
  # Access to this API may be prevented on a per-administrator basis.
3792
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3437
3793
  #
3438
3794
  # @param [Comet::EmailOptions] email_options The replacement email reporting options.
3439
3795
  # @return [Comet::CometAPIResponseMessage]
@@ -3457,6 +3813,7 @@ module Comet
3457
3813
  #
3458
3814
  # You must supply administrator authentication credentials to use this API.
3459
3815
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
3816
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3460
3817
  #
3461
3818
  # @return [Array<Number>]
3462
3819
  def admin_meta_list_available_log_days
@@ -3481,6 +3838,7 @@ module Comet
3481
3838
  # Get the server PSA configuration.
3482
3839
  #
3483
3840
  # You must supply administrator authentication credentials to use this API.
3841
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3484
3842
  #
3485
3843
  # @return [Array<Comet::PSAConfig>]
3486
3844
  def admin_meta_psa_config_list_get
@@ -3504,6 +3862,7 @@ module Comet
3504
3862
  # Update the server PSA configuration.
3505
3863
  #
3506
3864
  # You must supply administrator authentication credentials to use this API.
3865
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3507
3866
  #
3508
3867
  # @param [Array<Comet::PSAConfig>] psaconfig_list The replacement PSA configuration list
3509
3868
  # @return [Comet::CometAPIResponseMessage]
@@ -3528,6 +3887,7 @@ module Comet
3528
3887
  #
3529
3888
  # You must supply administrator authentication credentials to use this API.
3530
3889
  # This API requires the Auth Role to be enabled.
3890
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3531
3891
  #
3532
3892
  # @return [Comet::CometAPIResponseMessage]
3533
3893
  def admin_meta_psa_config_list_sync_now
@@ -3539,6 +3899,77 @@ module Comet
3539
3899
  ret
3540
3900
  end
3541
3901
 
3902
+ # AdminMetaPsaNinjaoneAuthCallback
3903
+ #
3904
+ # Exchange a NinjaOne OAuth authorization code for an encrypted refresh token.
3905
+ # The frontend should store the returned token on the NinjaOneConfig and persist it via the normal PSA config save flow.
3906
+ #
3907
+ # You must supply administrator authentication credentials to use this API.
3908
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3909
+ #
3910
+ # @param [String] code The authorization code from NinjaOne
3911
+ # @param [String] redirect_uri The callback URI used in the authorization request
3912
+ # @param [String] base_url The NinjaOne base URL
3913
+ # @param [String] client_id The OAuth Client ID
3914
+ # @param [String] client_secret The OAuth Client Secret
3915
+ # @return [Comet::NinjaOneAuthCallbackResponse]
3916
+ def admin_meta_psa_ninjaone_auth_callback(code, redirect_uri, base_url, client_id, client_secret)
3917
+ submit_params = {}
3918
+ raise TypeError, "'code' expected String, got #{code.class}" unless code.is_a? String
3919
+
3920
+ submit_params['Code'] = code
3921
+ raise TypeError, "'redirect_uri' expected String, got #{redirect_uri.class}" unless redirect_uri.is_a? String
3922
+
3923
+ submit_params['RedirectURI'] = redirect_uri
3924
+ raise TypeError, "'base_url' expected String, got #{base_url.class}" unless base_url.is_a? String
3925
+
3926
+ submit_params['BaseURL'] = base_url
3927
+ raise TypeError, "'client_id' expected String, got #{client_id.class}" unless client_id.is_a? String
3928
+
3929
+ submit_params['ClientID'] = client_id
3930
+ raise TypeError, "'client_secret' expected String, got #{client_secret.class}" unless client_secret.is_a? String
3931
+
3932
+ submit_params['ClientSecret'] = client_secret
3933
+
3934
+ body = perform_request('api/v1/admin/meta/psa/ninjaone/auth-callback', submit_params)
3935
+ json_body = JSON.parse body
3936
+ check_status json_body
3937
+ ret = Comet::NinjaOneAuthCallbackResponse.new
3938
+ ret.from_hash(json_body)
3939
+ ret
3940
+ end
3941
+
3942
+ # AdminMetaPsaNinjaoneOrganizations
3943
+ #
3944
+ # List NinjaOne organizations for a given PSA configuration.
3945
+ # Used to populate the NinjaOne Client ID dropdown in the admin UI.
3946
+ #
3947
+ # You must supply administrator authentication credentials to use this API.
3948
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3949
+ #
3950
+ # @param [Comet::PSAConfig] psaconfig The PSA configuration containing NinjaOne credentials
3951
+ # @return [Array<Comet::NinjaOneOrganization>]
3952
+ def admin_meta_psa_ninjaone_organizations(psaconfig)
3953
+ submit_params = {}
3954
+ raise TypeError, "'psaconfig' expected Comet::PSAConfig, got #{psaconfig.class}" unless psaconfig.is_a? Comet::PSAConfig
3955
+
3956
+ submit_params['PSAConfig'] = psaconfig.to_json
3957
+
3958
+ body = perform_request('api/v1/admin/meta/psa/ninjaone/organizations', submit_params)
3959
+ json_body = JSON.parse body
3960
+ check_status json_body
3961
+ if json_body.nil?
3962
+ ret = []
3963
+ else
3964
+ ret = Array.new(json_body.length)
3965
+ json_body.each_with_index do |v, i|
3966
+ ret[i] = Comet::NinjaOneOrganization.new
3967
+ ret[i].from_hash(v)
3968
+ end
3969
+ end
3970
+ ret
3971
+ end
3972
+
3542
3973
  # AdminMetaReadAllLogs
3543
3974
  #
3544
3975
  # Get a ZIP file of all of the server's log files.
@@ -3547,6 +3978,7 @@ module Comet
3547
3978
  #
3548
3979
  # You must supply administrator authentication credentials to use this API.
3549
3980
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
3981
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3550
3982
  #
3551
3983
  # @return [String]
3552
3984
  def admin_meta_read_all_logs
@@ -3561,8 +3993,9 @@ module Comet
3561
3993
  #
3562
3994
  # You must supply administrator authentication credentials to use this API.
3563
3995
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
3996
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3564
3997
  #
3565
- # @param [Number] log A log day, selected from the options returned by the Get Log Files API
3998
+ # @param [Number] log A log day, selected from the options returned by the Get Log Files API (>= 17.2.0)
3566
3999
  # @return [String]
3567
4000
  def admin_meta_read_logs(log)
3568
4001
  submit_params = {}
@@ -3581,6 +4014,7 @@ module Comet
3581
4014
  #
3582
4015
  # You must supply administrator authentication credentials to use this API.
3583
4016
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4017
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3584
4018
  #
3585
4019
  # @param [Array<Number>] logs An array of log days, selected from the options returned by the Get Log Files API
3586
4020
  # @return [String]
@@ -3599,6 +4033,7 @@ module Comet
3599
4033
  #
3600
4034
  # You must supply administrator authentication credentials to use this API.
3601
4035
  # Access to this API may be prevented on a per-administrator basis.
4036
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3602
4037
  #
3603
4038
  # @return [Array<Comet::RemoteStorageOption>]
3604
4039
  def admin_meta_remote_storage_vault_get
@@ -3623,9 +4058,10 @@ module Comet
3623
4058
  #
3624
4059
  # You must supply administrator authentication credentials to use this API.
3625
4060
  # Access to this API may be prevented on a per-administrator basis.
4061
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3626
4062
  #
3627
4063
  # @param [Array<Comet::RemoteStorageOption>] remote_storage_options Updated configuration content
3628
- # @param [String] replacement_auto_vault_id (Optional) Replacement Storage Template ID for auto Storage Vault configurations that use deleted Storage Templates
4064
+ # @param [String] replacement_auto_vault_id (Optional) Replacement Storage Template ID for auto Storage Vault configurations that use deleted Storage Templates (>= 24.12.0)
3629
4065
  # @return [Comet::CometAPIResponseMessage]
3630
4066
  def admin_meta_remote_storage_vault_set(remote_storage_options, replacement_auto_vault_id = nil)
3631
4067
  submit_params = {}
@@ -3652,6 +4088,7 @@ module Comet
3652
4088
  #
3653
4089
  # You must supply administrator authentication credentials to use this API.
3654
4090
  # Access to this API may be prevented on a per-administrator basis.
4091
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3655
4092
  #
3656
4093
  # @param [Comet::RemoteStorageOption] template_options Storage Template Vault Options
3657
4094
  # @return [Comet::CometAPIResponseMessage]
@@ -3675,6 +4112,7 @@ module Comet
3675
4112
  # Resources are used to upload files within the server configuration.
3676
4113
  #
3677
4114
  # You must supply administrator authentication credentials to use this API.
4115
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3678
4116
  #
3679
4117
  # @param [String] hash The resource identifier
3680
4118
  # @return [String]
@@ -3695,8 +4133,9 @@ module Comet
3695
4133
  # The lifespan of an uploaded resource is undefined. Resources may be deleted automatically, but it should remain available until the next call to AdminMetaServerConfigSet, and will remain available for as long as it is referenced by the server configuration.
3696
4134
  #
3697
4135
  # You must supply administrator authentication credentials to use this API.
4136
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3698
4137
  #
3699
- # @param [String] upload The uploaded file contents, as a multipart/form-data part.
4138
+ # @param [String] upload The uploaded file contents, as a multipart/form-data part. (>= 20.11.0)
3700
4139
  # @return [Comet::AdminResourceResponse]
3701
4140
  def admin_meta_resource_new(upload)
3702
4141
  submit_params = {}
@@ -3722,6 +4161,7 @@ module Comet
3722
4161
  # You must supply administrator authentication credentials to use this API.
3723
4162
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
3724
4163
  # Access to this API may be prevented on a per-administrator basis.
4164
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3725
4165
  #
3726
4166
  # @return [Comet::CometAPIResponseMessage]
3727
4167
  def admin_meta_restart_service
@@ -3740,6 +4180,7 @@ module Comet
3740
4180
  #
3741
4181
  # You must supply administrator authentication credentials to use this API.
3742
4182
  # Access to this API may be prevented on a per-administrator basis.
4183
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3743
4184
  #
3744
4185
  # @param [Comet::EmailOptions] email_options Updated configuration content
3745
4186
  # @param [String] recipient Target email address to send test email
@@ -3768,6 +4209,7 @@ module Comet
3768
4209
  #
3769
4210
  # You must supply administrator authentication credentials to use this API.
3770
4211
  # Access to this API may be prevented on a per-administrator basis.
4212
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3771
4213
  #
3772
4214
  # @param [Comet::EmailReportingOption] email_reporting_option Test email reporting option for sending
3773
4215
  # @param [String] target_organization (Optional) If present, Testing email with a target organization. Only allowed for top-level admins. (>= 24.3.0)
@@ -3797,6 +4239,7 @@ module Comet
3797
4239
  #
3798
4240
  # You must supply administrator authentication credentials to use this API.
3799
4241
  # Access to this API may be prevented on a per-administrator basis.
4242
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3800
4243
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
3801
4244
  #
3802
4245
  # @return [Comet::ServerConfigOptions]
@@ -3809,6 +4252,48 @@ module Comet
3809
4252
  ret
3810
4253
  end
3811
4254
 
4255
+ # AdminMetaServerConfigGetAndHash
4256
+ #
4257
+ # Get server configuration (atomic).
4258
+ # The resulting hash parameter can be passed to the AdminMetaServerConfigSet API, to atomically ensure that no changes occur between get/set operations.
4259
+ # The hash format is not publicly documented and may change in a future server version. Use server APIs to retrieve current hash values.
4260
+ #
4261
+ # You must supply administrator authentication credentials to use this API.
4262
+ # Access to this API may be prevented on a per-administrator basis.
4263
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4264
+ # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4265
+ #
4266
+ # @return [Comet::ServerConfigOptionsAndHashResponse]
4267
+ def admin_meta_server_config_get_and_hash
4268
+ body = perform_request('api/v1/admin/meta/server-config/get-and-hash')
4269
+ json_body = JSON.parse body
4270
+ check_status json_body
4271
+ ret = Comet::ServerConfigOptionsAndHashResponse.new
4272
+ ret.from_hash(json_body)
4273
+ ret
4274
+ end
4275
+
4276
+ # AdminMetaServerConfigGetHash
4277
+ #
4278
+ # Get server configuration (hash).
4279
+ # The hash can be used to determine if the server configuration has changed.
4280
+ # The hash format is not publicly documented and may change in a future server version. Use server APIs to retrieve current hash values.
4281
+ #
4282
+ # You must supply administrator authentication credentials to use this API.
4283
+ # Access to this API may be prevented on a per-administrator basis.
4284
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4285
+ # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4286
+ #
4287
+ # @return [Comet::ServerConfigOptionsHashResponse]
4288
+ def admin_meta_server_config_get_hash
4289
+ body = perform_request('api/v1/admin/meta/server-config/get-hash')
4290
+ json_body = JSON.parse body
4291
+ check_status json_body
4292
+ ret = Comet::ServerConfigOptionsHashResponse.new
4293
+ ret.from_hash(json_body)
4294
+ ret
4295
+ end
4296
+
3812
4297
  # AdminMetaServerConfigNetworkInterfaces
3813
4298
  #
3814
4299
  # List the available network interfaces on the PC running Comet Server.
@@ -3816,6 +4301,7 @@ module Comet
3816
4301
  #
3817
4302
  # You must supply administrator authentication credentials to use this API.
3818
4303
  # Access to this API may be prevented on a per-administrator basis.
4304
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3819
4305
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
3820
4306
  #
3821
4307
  # @return [Array<String>]
@@ -3845,15 +4331,22 @@ module Comet
3845
4331
  #
3846
4332
  # You must supply administrator authentication credentials to use this API.
3847
4333
  # Access to this API may be prevented on a per-administrator basis.
4334
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3848
4335
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
3849
4336
  #
3850
- # @param [Comet::ServerConfigOptions] config Updated configuration content
4337
+ # @param [Comet::ServerConfigOptions] config Updated configuration content (>= 17.3.8)
4338
+ # @param [String] require_hash (Optional) If present, the change is only applied if the server configuration is unchanged since this hash was retrieved from the AdminMetaServerConfigGetAndHash API. Otherwise, the change is rejected with status 409 and the server does not restart. (>= 26.11.0)
3851
4339
  # @return [Comet::CometAPIResponseMessage]
3852
- def admin_meta_server_config_set(config)
4340
+ def admin_meta_server_config_set(config, require_hash = nil)
3853
4341
  submit_params = {}
3854
4342
  raise TypeError, "'config' expected Comet::ServerConfigOptions, got #{config.class}" unless config.is_a? Comet::ServerConfigOptions
3855
4343
 
3856
4344
  submit_params['Config'] = config.to_json
4345
+ unless require_hash.nil?
4346
+ raise TypeError, "'require_hash' expected String, got #{require_hash.class}" unless require_hash.is_a? String
4347
+
4348
+ submit_params['RequireHash'] = require_hash
4349
+ end
3857
4350
 
3858
4351
  body = perform_request('api/v1/admin/meta/server-config/set', submit_params)
3859
4352
  json_body = JSON.parse body
@@ -3873,6 +4366,7 @@ module Comet
3873
4366
  # You must supply administrator authentication credentials to use this API.
3874
4367
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
3875
4368
  # Access to this API may be prevented on a per-administrator basis.
4369
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3876
4370
  #
3877
4371
  # @return [Comet::CometAPIResponseMessage]
3878
4372
  def admin_meta_shutdown_service
@@ -3889,6 +4383,7 @@ module Comet
3889
4383
  # Get software update news from the software provider.
3890
4384
  #
3891
4385
  # You must supply administrator authentication credentials to use this API.
4386
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3892
4387
  #
3893
4388
  # @return [Comet::SoftwareUpdateNewsResponse]
3894
4389
  def admin_meta_software_update_news
@@ -3906,8 +4401,9 @@ module Comet
3906
4401
  # The returned key-value map is not necessarily ordered. Client-side code should sort the result before display.
3907
4402
  #
3908
4403
  # You must supply administrator authentication credentials to use this API.
4404
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3909
4405
  #
3910
- # @param [Boolean] simple Remove redundant statistics
4406
+ # @param [Boolean] simple Remove redundant statistics (>= 18.9.1)
3911
4407
  # @return [Hash{Number => Comet::StatResult}]
3912
4408
  def admin_meta_stats(simple)
3913
4409
  submit_params = {}
@@ -3934,6 +4430,7 @@ module Comet
3934
4430
  # Retrieve the version number and basic properties about the server.
3935
4431
  #
3936
4432
  # You must supply administrator authentication credentials to use this API.
4433
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3937
4434
  #
3938
4435
  # @return [Comet::ServerMetaVersionInfo]
3939
4436
  def admin_meta_version
@@ -3951,6 +4448,7 @@ module Comet
3951
4448
  #
3952
4449
  # You must supply administrator authentication credentials to use this API.
3953
4450
  # Access to this API may be prevented on a per-administrator basis.
4451
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3954
4452
  #
3955
4453
  # @return [Hash{String => Comet::WebhookOption}]
3956
4454
  def admin_meta_webhook_options_get
@@ -3976,8 +4474,9 @@ module Comet
3976
4474
  #
3977
4475
  # You must supply administrator authentication credentials to use this API.
3978
4476
  # Access to this API may be prevented on a per-administrator basis.
4477
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
3979
4478
  #
3980
- # @param [Hash{String => Comet::WebhookOption}] webhook_options The replacement webhook target options.
4479
+ # @param [Hash{String => Comet::WebhookOption}] webhook_options The replacement webhook target options. (>= 20.6.8)
3981
4480
  # @return [Comet::CometAPIResponseMessage]
3982
4481
  def admin_meta_webhook_options_set(webhook_options)
3983
4482
  submit_params = {}
@@ -3999,6 +4498,7 @@ module Comet
3999
4498
  #
4000
4499
  # You must supply administrator authentication credentials to use this API.
4001
4500
  # This API requires the Auth Role to be enabled.
4501
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4002
4502
  #
4003
4503
  # @return [Hash{String => Comet::NewsEntry}]
4004
4504
  def admin_news_get_all
@@ -4023,8 +4523,9 @@ module Comet
4023
4523
  #
4024
4524
  # You must supply administrator authentication credentials to use this API.
4025
4525
  # This API requires the Auth Role to be enabled.
4526
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4026
4527
  #
4027
- # @param [String] news_item Selected news item GUID
4528
+ # @param [String] news_item Selected news item GUID (>= 17.2.0)
4028
4529
  # @return [Comet::CometAPIResponseMessage]
4029
4530
  def admin_news_remove(news_item)
4030
4531
  submit_params = {}
@@ -4046,8 +4547,9 @@ module Comet
4046
4547
  #
4047
4548
  # You must supply administrator authentication credentials to use this API.
4048
4549
  # This API requires the Auth Role to be enabled.
4550
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4049
4551
  #
4050
- # @param [String] news_content Content of news item
4552
+ # @param [String] news_content Content of news item (>= 17.2.0)
4051
4553
  # @return [Comet::CometAPIResponseMessage]
4052
4554
  def admin_news_submit(news_content)
4053
4555
  submit_params = {}
@@ -4063,6 +4565,64 @@ module Comet
4063
4565
  ret
4064
4566
  end
4065
4567
 
4568
+ # AdminOffice365ConvertLegacySelection
4569
+ #
4570
+ # Convert a legacy Office 365 Protected Item selection into an equivalent ordered rule list.
4571
+ # This is a pure computation with no device round-trip. The optional Accounts list is used only to enrich the generated rules' display metadata.
4572
+ #
4573
+ # You must supply administrator authentication credentials to use this API.
4574
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4575
+ #
4576
+ # @param [Comet::Office365CustomSettingV2] selection The legacy selection to convert
4577
+ # @param [Array<Comet::Office365MixedVirtualAccount>] accounts (Optional) The organization's account list, for display-name enrichment
4578
+ # @return [Comet::Office365ConvertSelectionResponse]
4579
+ def admin_office_365convert_legacy_selection(selection, accounts = nil)
4580
+ submit_params = {}
4581
+ raise TypeError, "'selection' expected Comet::Office365CustomSettingV2, got #{selection.class}" unless selection.is_a? Comet::Office365CustomSettingV2
4582
+
4583
+ submit_params['Selection'] = selection.to_json
4584
+ unless accounts.nil?
4585
+ raise TypeError, "'accounts' expected Array, got #{accounts.class}" unless accounts.is_a? Array
4586
+
4587
+ submit_params['Accounts'] = accounts.to_json
4588
+ end
4589
+
4590
+ body = perform_request('api/v1/admin/office365/convert-legacy-selection', submit_params)
4591
+ json_body = JSON.parse body
4592
+ check_status json_body
4593
+ ret = Comet::Office365ConvertSelectionResponse.new
4594
+ ret.from_hash(json_body)
4595
+ ret
4596
+ end
4597
+
4598
+ # AdminOffice365EvaluateSelectionRules
4599
+ #
4600
+ # Evaluate an ordered Office 365 rule list against an organization's accounts.
4601
+ # Returns the effective selection for every account, including per-service rule attribution. This is a pure computation with no device round-trip.
4602
+ #
4603
+ # You must supply administrator authentication credentials to use this API.
4604
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4605
+ #
4606
+ # @param [Array<Comet::Office365SelectionRule>] rules The ordered rule list to evaluate
4607
+ # @param [Array<Comet::Office365MixedVirtualAccount>] accounts The organization's account list
4608
+ # @return [Comet::Office365EvaluateSelectionRulesResponse]
4609
+ def admin_office_365evaluate_selection_rules(rules, accounts)
4610
+ submit_params = {}
4611
+ raise TypeError, "'rules' expected Array, got #{rules.class}" unless rules.is_a? Array
4612
+
4613
+ submit_params['Rules'] = rules.to_json
4614
+ raise TypeError, "'accounts' expected Array, got #{accounts.class}" unless accounts.is_a? Array
4615
+
4616
+ submit_params['Accounts'] = accounts.to_json
4617
+
4618
+ body = perform_request('api/v1/admin/office365/evaluate-selection-rules', submit_params)
4619
+ json_body = JSON.parse body
4620
+ check_status json_body
4621
+ ret = Comet::Office365EvaluateSelectionRulesResponse.new
4622
+ ret.from_hash(json_body)
4623
+ ret
4624
+ end
4625
+
4066
4626
  # AdminOrganizationDelete
4067
4627
  #
4068
4628
  # Delete an organization and all related users.
@@ -4071,6 +4631,7 @@ module Comet
4071
4631
  #
4072
4632
  # You must supply administrator authentication credentials to use this API.
4073
4633
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4634
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4074
4635
  #
4075
4636
  # @param [String] organization_id (Optional) (No description available)
4076
4637
  # @param [Comet::UninstallConfig] uninstall_config (Optional) Uninstall software configuration
@@ -4102,6 +4663,7 @@ module Comet
4102
4663
  #
4103
4664
  # You must supply administrator authentication credentials to use this API.
4104
4665
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4666
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4105
4667
  #
4106
4668
  # @param [Comet::SelfBackupExportOptions] options The export config options
4107
4669
  # @return [Comet::CometAPIResponseMessage]
@@ -4125,6 +4687,7 @@ module Comet
4125
4687
  #
4126
4688
  # You must supply administrator authentication credentials to use this API.
4127
4689
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4690
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4128
4691
  #
4129
4692
  # @return [Hash{String => Comet::Organization}]
4130
4693
  def admin_organization_list
@@ -4151,6 +4714,7 @@ module Comet
4151
4714
  #
4152
4715
  # You must supply administrator authentication credentials to use this API.
4153
4716
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4717
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4154
4718
  #
4155
4719
  # @param [String] organization_id (Optional) (No description available)
4156
4720
  # @param [Comet::Organization] organization (Optional) (No description available)
@@ -4182,6 +4746,7 @@ module Comet
4182
4746
  #
4183
4747
  # You must supply administrator authentication credentials to use this API.
4184
4748
  # This API requires the Auth Role to be enabled.
4749
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4185
4750
  #
4186
4751
  # @param [String] policy_id The policy ID to update or create
4187
4752
  # @return [Comet::CometAPIResponseMessage]
@@ -4206,6 +4771,7 @@ module Comet
4206
4771
  #
4207
4772
  # You must supply administrator authentication credentials to use this API.
4208
4773
  # This API requires the Auth Role to be enabled.
4774
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4209
4775
  #
4210
4776
  # @param [String] policy_id The policy ID to retrieve
4211
4777
  # @return [Comet::GetGroupPolicyResponse]
@@ -4230,8 +4796,9 @@ module Comet
4230
4796
  #
4231
4797
  # You must supply administrator authentication credentials to use this API.
4232
4798
  # This API requires the Auth Role to be enabled.
4799
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4233
4800
  #
4234
- # @param [String] target_organization (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.3.7)
4801
+ # @param [String] target_organization (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.5.0)
4235
4802
  # @return [Hash{String => String}]
4236
4803
  def admin_policies_list(target_organization = nil)
4237
4804
  submit_params = {}
@@ -4264,8 +4831,9 @@ module Comet
4264
4831
  #
4265
4832
  # You must supply administrator authentication credentials to use this API.
4266
4833
  # This API requires the Auth Role to be enabled.
4834
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4267
4835
  #
4268
- # @param [String] target_organization (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.3.7)
4836
+ # @param [String] target_organization (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.5.0)
4269
4837
  # @return [Hash{String => Comet::GroupPolicy}]
4270
4838
  def admin_policies_list_full(target_organization = nil)
4271
4839
  submit_params = {}
@@ -4296,6 +4864,7 @@ module Comet
4296
4864
  #
4297
4865
  # You must supply administrator authentication credentials to use this API.
4298
4866
  # This API requires the Auth Role to be enabled.
4867
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4299
4868
  #
4300
4869
  # @param [Comet::GroupPolicy] policy The policy data
4301
4870
  # @return [Comet::CreateGroupPolicyResponse]
@@ -4321,11 +4890,12 @@ module Comet
4321
4890
  #
4322
4891
  # You must supply administrator authentication credentials to use this API.
4323
4892
  # This API requires the Auth Role to be enabled.
4893
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4324
4894
  #
4325
4895
  # @param [String] policy_id The policy ID to update or create
4326
4896
  # @param [Comet::GroupPolicy] policy The policy data
4327
4897
  # @param [String] check_policy_hash (Optional) An atomic verification hash as supplied by the AdminPoliciesGet API
4328
- # @param [Comet::PolicyOptions] options (Optional) An array of PolicySourceID that will be explicitly deleted.
4898
+ # @param [Comet::PolicyOptions] options (Optional) An array of PolicySourceID that will be explicitly deleted. (>= 24.12.5)
4329
4899
  # @return [Comet::CometAPIResponseMessage]
4330
4900
  def admin_policies_set(policy_id, policy, check_policy_hash = nil, options = nil)
4331
4901
  submit_params = {}
@@ -4360,6 +4930,7 @@ module Comet
4360
4930
  #
4361
4931
  # You must supply administrator authentication credentials to use this API.
4362
4932
  # This API requires the Auth Role to be enabled.
4933
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4363
4934
  #
4364
4935
  # @param [String] target_user Selected account username
4365
4936
  # @param [Comet::EmailReportConfig] email_report_config Email report configuration to preview
@@ -4393,6 +4964,7 @@ module Comet
4393
4964
  #
4394
4965
  # You must supply administrator authentication credentials to use this API.
4395
4966
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4967
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4396
4968
  #
4397
4969
  # @return [Array<Comet::ReplicatorStateAPIResponse>]
4398
4970
  def admin_replication_state
@@ -4420,12 +4992,13 @@ module Comet
4420
4992
  #
4421
4993
  # You must supply administrator authentication credentials to use this API.
4422
4994
  # This API requires the Auth Role to be enabled.
4995
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4423
4996
  #
4424
4997
  # @param [String] target_user The user to receive the new Storage Vault
4425
4998
  # @param [String] storage_provider ID for the storage template destination
4426
4999
  # @param [String] self_address (Optional) The external URL for this server. Used to resolve conflicts
4427
- # @param [String] device_id (Optional) The ID of the device to be added as a associated device of the Storage Vault
4428
- # @param [String] profile_hash (Optional) The profile hash of the user profile
5000
+ # @param [String] device_id (Optional) The ID of the device to be added as a associated device of the Storage Vault (>= 24.12.0)
5001
+ # @param [String] profile_hash (Optional) The profile hash of the user profile (>= 25.3.2)
4429
5002
  # @return [Comet::RequestStorageVaultResponseMessage]
4430
5003
  def admin_request_storage_vault(target_user, storage_provider, self_address = nil, device_id = nil, profile_hash = nil)
4431
5004
  submit_params = {}
@@ -4467,8 +5040,9 @@ module Comet
4467
5040
  #
4468
5041
  # You must supply administrator authentication credentials to use this API.
4469
5042
  # This API requires the Auth Role to be enabled.
5043
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4470
5044
  #
4471
- # @param [String] target_organization (Optional) If present, list the storage template options belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.3.7)
5045
+ # @param [String] target_organization (Optional) If present, list the storage template options belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.5.0)
4472
5046
  # @return [Hash{String => String}]
4473
5047
  def admin_request_storage_vault_providers(target_organization = nil)
4474
5048
  submit_params = {}
@@ -4501,10 +5075,11 @@ module Comet
4501
5075
  #
4502
5076
  # You must supply administrator authentication credentials to use this API.
4503
5077
  # This API requires the Auth Role to be enabled.
5078
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4504
5079
  #
4505
5080
  # @param [String] target_user Selected account username
4506
5081
  # @param [String] new_password New account password
4507
- # @param [String] old_password (Optional) Old account password. Required if no recovery code is present for the user account.
5082
+ # @param [String] old_password (Optional) Old account password. Required if no recovery code is present for the user account. (>= 20.3.2)
4508
5083
  # @return [Comet::CometAPIResponseMessage]
4509
5084
  def admin_reset_user_password(target_user, new_password, old_password = nil)
4510
5085
  submit_params = {}
@@ -4535,6 +5110,7 @@ module Comet
4535
5110
  #
4536
5111
  # You must supply administrator authentication credentials to use this API.
4537
5112
  # This API requires the Auth Role to be enabled.
5113
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4538
5114
  #
4539
5115
  # @param [String] target_user Selected account username
4540
5116
  # @param [String] target_device Selected Device ID
@@ -4562,6 +5138,7 @@ module Comet
4562
5138
  #
4563
5139
  # You must supply administrator authentication credentials to use this API.
4564
5140
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
5141
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4565
5142
  #
4566
5143
  # @return [Comet::CometAPIResponseMessage]
4567
5144
  def admin_self_backup_start
@@ -4579,6 +5156,7 @@ module Comet
4579
5156
  #
4580
5157
  # You must supply administrator authentication credentials to use this API.
4581
5158
  # This API requires the Auth Role to be enabled.
5159
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4582
5160
  #
4583
5161
  # @param [String] target_user Selected account username
4584
5162
  # @param [String] source_id Selected Protected Item GUID
@@ -4624,11 +5202,13 @@ module Comet
4624
5202
  #
4625
5203
  # You must supply administrator authentication credentials to use this API.
4626
5204
  # This API requires the Auth Role to be enabled.
5205
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4627
5206
  #
4628
- # @param [String] target_user Selected account username
4629
- # @param [Comet::UserProfileConfig] profile_data Modified user profile
5207
+ # @param [String] target_user Selected account username (>= 17.2.0)
5208
+ # @param [Comet::UserProfileConfig] profile_data Modified user profile (>= 17.2.0)
5209
+ # @param [Comet::AdminOptions] admin_options (Optional) Instructions for modifying user profile (>= 24.12.5)
4630
5210
  # @return [Comet::CometAPIResponseMessage]
4631
- def admin_set_user_profile(target_user, profile_data)
5211
+ def admin_set_user_profile(target_user, profile_data, admin_options = nil)
4632
5212
  submit_params = {}
4633
5213
  raise TypeError, "'target_user' expected String, got #{target_user.class}" unless target_user.is_a? String
4634
5214
 
@@ -4636,6 +5216,11 @@ module Comet
4636
5216
  raise TypeError, "'profile_data' expected Comet::UserProfileConfig, got #{profile_data.class}" unless profile_data.is_a? Comet::UserProfileConfig
4637
5217
 
4638
5218
  submit_params['ProfileData'] = profile_data.to_json
5219
+ unless admin_options.nil?
5220
+ raise TypeError, "'admin_options' expected Comet::AdminOptions, got #{admin_options.class}" unless admin_options.is_a? Comet::AdminOptions
5221
+
5222
+ submit_params['AdminOptions'] = admin_options.to_json
5223
+ end
4639
5224
 
4640
5225
  body = perform_request('api/v1/admin/set-user-profile', submit_params)
4641
5226
  json_body = JSON.parse body
@@ -4653,11 +5238,12 @@ module Comet
4653
5238
  #
4654
5239
  # You must supply administrator authentication credentials to use this API.
4655
5240
  # This API requires the Auth Role to be enabled.
5241
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4656
5242
  #
4657
- # @param [String] target_user Selected account username
4658
- # @param [Comet::UserProfileConfig] profile_data Modified user profile
4659
- # @param [String] require_hash Previous hash parameter
4660
- # @param [Comet::AdminOptions] admin_options (Optional) Instructions for modifying user profile
5243
+ # @param [String] target_user Selected account username (>= 17.2.0)
5244
+ # @param [Comet::UserProfileConfig] profile_data Modified user profile (>= 17.2.0)
5245
+ # @param [String] require_hash Previous hash parameter (>= 17.2.0)
5246
+ # @param [Comet::AdminOptions] admin_options (Optional) Instructions for modifying user profile (>= 24.12.5)
4661
5247
  # @return [Comet::GetProfileAndHashResponseMessage]
4662
5248
  def admin_set_user_profile_hash(target_user, profile_data, require_hash, admin_options = nil)
4663
5249
  submit_params = {}
@@ -4690,6 +5276,7 @@ module Comet
4690
5276
  #
4691
5277
  # You must supply administrator authentication credentials to use this API.
4692
5278
  # This API requires the Auth Role to be enabled.
5279
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4693
5280
  #
4694
5281
  # @param [String] shared_storage_quota_id (No description available)
4695
5282
  # @return [Comet::CometAPIResponseMessage]
@@ -4713,6 +5300,7 @@ module Comet
4713
5300
  #
4714
5301
  # You must supply administrator authentication credentials to use this API.
4715
5302
  # This API requires the Auth Role to be enabled.
5303
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4716
5304
  #
4717
5305
  # @param [String] shared_storage_quota_id (No description available)
4718
5306
  # @return [Comet::GetSharedStorageQuotaResponse]
@@ -4736,6 +5324,7 @@ module Comet
4736
5324
  #
4737
5325
  # You must supply administrator authentication credentials to use this API.
4738
5326
  # This API requires the Auth Role to be enabled.
5327
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4739
5328
  #
4740
5329
  # @return [Comet::ListSharedStorageQuotaResponse]
4741
5330
  def admin_squota_list_all
@@ -4753,6 +5342,7 @@ module Comet
4753
5342
  #
4754
5343
  # You must supply administrator authentication credentials to use this API.
4755
5344
  # This API requires the Auth Role to be enabled.
5345
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4756
5346
  #
4757
5347
  # @param [String] shared_storage_quota_id (No description available)
4758
5348
  # @param [Comet::SharedStorageQuota] shared_storage_quota (No description available)
@@ -4787,6 +5377,7 @@ module Comet
4787
5377
  #
4788
5378
  # You must supply administrator authentication credentials to use this API.
4789
5379
  # This API requires the Storage Role to be enabled.
5380
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4790
5381
  #
4791
5382
  # @param [String] bucket_id Bucket ID
4792
5383
  # @param [Number] after_timestamp (Optional) Allow a stale size measurement if it is at least as new as the supplied Unix timestamp. Timestamps in the future may produce a result clamped down to the Comet Server's current time. If not present, the size measurement may be arbitrarily stale.
@@ -4817,8 +5408,9 @@ module Comet
4817
5408
  #
4818
5409
  # You must supply administrator authentication credentials to use this API.
4819
5410
  # This API requires the Storage Role to be enabled.
5411
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4820
5412
  #
4821
- # @param [String] bucket_id Selected bucket name
5413
+ # @param [String] bucket_id Selected bucket name (>= 17.2.0)
4822
5414
  # @return [Comet::CometAPIResponseMessage]
4823
5415
  def admin_storage_delete_bucket(bucket_id)
4824
5416
  submit_params = {}
@@ -4841,6 +5433,7 @@ module Comet
4841
5433
  # You must supply administrator authentication credentials to use this API.
4842
5434
  # Access to this API may be prevented on a per-administrator basis.
4843
5435
  # This API requires the Storage Role to be enabled.
5436
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4844
5437
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4845
5438
  #
4846
5439
  # @param [String] bucket_id (Optional) (This parameter is not used)
@@ -4867,6 +5460,7 @@ module Comet
4867
5460
  #
4868
5461
  # You must supply administrator authentication credentials to use this API.
4869
5462
  # This API requires the Storage Role to be enabled.
5463
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4870
5464
  #
4871
5465
  # @return [Hash{String => Comet::BucketProperties}]
4872
5466
  def admin_storage_list_buckets
@@ -4891,6 +5485,7 @@ module Comet
4891
5485
  #
4892
5486
  # You must supply administrator authentication credentials to use this API.
4893
5487
  # Access to this API may be prevented on a per-administrator basis.
5488
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4894
5489
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4895
5490
  #
4896
5491
  # @param [Comet::DestinationLocation] extra_data The destination location settings
@@ -4917,10 +5512,11 @@ module Comet
4917
5512
  #
4918
5513
  # You must supply administrator authentication credentials to use this API.
4919
5514
  # This API requires the Storage Role to be enabled.
5515
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4920
5516
  #
4921
- # @param [String] set_bucket_value (Optional) Bucket ID
4922
- # @param [String] set_key_hash_format (Optional) Bucket key hashing format
4923
- # @param [String] set_key_hash_value (Optional) Bucket key hash
5517
+ # @param [String] set_bucket_value (Optional) Bucket ID (>= 17.2.0)
5518
+ # @param [String] set_key_hash_format (Optional) Bucket key hashing format (>= 17.2.0)
5519
+ # @param [String] set_key_hash_value (Optional) Bucket key hash (>= 17.2.0)
4924
5520
  # @param [String] set_organization_id (Optional) Target organization ID (>= 20.9.0)
4925
5521
  # @return [Comet::AddBucketResponseMessage]
4926
5522
  def admin_storage_register_bucket(set_bucket_value = nil, set_key_hash_format = nil, set_key_hash_value = nil, set_organization_id = nil)
@@ -4954,6 +5550,32 @@ module Comet
4954
5550
  ret
4955
5551
  end
4956
5552
 
5553
+ # AdminStorageRotateBucketKey
5554
+ #
5555
+ # Issue a new key for an existing bucket, replacing the previous one.
5556
+ # The previous key stops working immediately. Any device or Storage Vault still using it loses access to the bucket until it is given the new key, so this can be used to cut off a backup job that is no longer supposed to be writing.
5557
+ # The new key is returned in the response message. It is not recoverable afterwards; if it is lost, issue another one.
5558
+ #
5559
+ # You must supply administrator authentication credentials to use this API.
5560
+ # This API requires the Storage Role to be enabled.
5561
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
5562
+ #
5563
+ # @param [String] bucket_id Selected bucket name
5564
+ # @return [Comet::AddBucketResponseMessage]
5565
+ def admin_storage_rotate_bucket_key(bucket_id)
5566
+ submit_params = {}
5567
+ raise TypeError, "'bucket_id' expected String, got #{bucket_id.class}" unless bucket_id.is_a? String
5568
+
5569
+ submit_params['BucketID'] = bucket_id
5570
+
5571
+ body = perform_request('api/v1/admin/storage/rotate-bucket-key', submit_params)
5572
+ json_body = JSON.parse body
5573
+ check_status json_body
5574
+ ret = Comet::AddBucketResponseMessage.new
5575
+ ret.from_hash(json_body)
5576
+ ret
5577
+ end
5578
+
4957
5579
  # AdminUpdateCampaignStart
4958
5580
  #
4959
5581
  # Start a new software update campaign.
@@ -4961,6 +5583,7 @@ module Comet
4961
5583
  # You must supply administrator authentication credentials to use this API.
4962
5584
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4963
5585
  # This API requires the Software Build Role to be enabled.
5586
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4964
5587
  # This API requires the Auth Role to be enabled.
4965
5588
  #
4966
5589
  # @param [Comet::UpdateCampaignOptions] options Configure targets for the software update campaign
@@ -4986,6 +5609,7 @@ module Comet
4986
5609
  # You must supply administrator authentication credentials to use this API.
4987
5610
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4988
5611
  # This API requires the Software Build Role to be enabled.
5612
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
4989
5613
  # This API requires the Auth Role to be enabled.
4990
5614
  #
4991
5615
  # @return [Comet::UpdateCampaignStatus]
@@ -5004,6 +5628,7 @@ module Comet
5004
5628
  #
5005
5629
  # You must supply administrator authentication credentials to use this API.
5006
5630
  # This API requires the Auth Role to be enabled.
5631
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
5007
5632
  #
5008
5633
  # @param [String] group_id The user group ID to delete
5009
5634
  # @return [Comet::CometAPIResponseMessage]
@@ -5027,6 +5652,7 @@ module Comet
5027
5652
  #
5028
5653
  # You must supply administrator authentication credentials to use this API.
5029
5654
  # This API requires the Auth Role to be enabled.
5655
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
5030
5656
  #
5031
5657
  # @param [String] group_id The user group ID to retrieve
5032
5658
  # @param [Boolean] include_users (Optional) If present, includes the users array in the response.
@@ -5055,6 +5681,7 @@ module Comet
5055
5681
  #
5056
5682
  # You must supply administrator authentication credentials to use this API.
5057
5683
  # This API requires the Auth Role to be enabled.
5684
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
5058
5685
  #
5059
5686
  # @param [String] target_organization (Optional) If present, list the user groups belonging to another organization. Only allowed for administrator accounts in the top-level organization.
5060
5687
  # @return [Hash{String => String}]
@@ -5089,6 +5716,7 @@ module Comet
5089
5716
  #
5090
5717
  # You must supply administrator authentication credentials to use this API.
5091
5718
  # This API requires the Auth Role to be enabled.
5719
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
5092
5720
  #
5093
5721
  # @param [String] target_organization (Optional) If present, list the user groups belonging to the specified organization. Only allowed for administrator accounts in the top-level organization.
5094
5722
  # @return [Hash{String => Comet::UserGroup}]
@@ -5121,6 +5749,7 @@ module Comet
5121
5749
  #
5122
5750
  # You must supply administrator authentication credentials to use this API.
5123
5751
  # This API requires the Auth Role to be enabled.
5752
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
5124
5753
  #
5125
5754
  # @param [String] name this is the name of the group.
5126
5755
  # @param [String] target_organization (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization.
@@ -5150,6 +5779,7 @@ module Comet
5150
5779
  #
5151
5780
  # You must supply administrator authentication credentials to use this API.
5152
5781
  # This API requires the Auth Role to be enabled.
5782
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
5153
5783
  #
5154
5784
  # @param [String] group_id The user group ID to update or create
5155
5785
  # @param [Comet::UserGroup] group The user group data
@@ -5179,6 +5809,7 @@ module Comet
5179
5809
  #
5180
5810
  # You must supply administrator authentication credentials to use this API.
5181
5811
  # This API requires the Auth Role to be enabled.
5812
+ # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
5182
5813
  #
5183
5814
  # @param [String] group_id The user group ID to update
5184
5815
  # @param [Array<String>] users An array of usernames.
@@ -5206,6 +5837,8 @@ module Comet
5206
5837
  # This hybrid API allows you to log in to the Comet Server as either an administrator or end-user account.
5207
5838
  # This API behaves like either AdminAccountSessionStart or UserWebSessionStart, depending on what the supplied credentials were valid for.
5208
5839
  #
5840
+ # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
5841
+ #
5209
5842
  # @return [Comet::SessionKeyRegeneratedResponse]
5210
5843
  def hybrid_session_start
5211
5844
  body = perform_request('api/v1/hybrid/session/start')
@@ -5304,6 +5937,7 @@ module Comet
5304
5937
  req.set_form(form_params, 'multipart/form-data')
5305
5938
 
5306
5939
  http = Net::HTTP.new(full_uri.hostname, full_uri.port)
5940
+ http.use_ssl = (full_uri.scheme == 'https')
5307
5941
  res = http.request(req)
5308
5942
 
5309
5943
  unless res.is_a?(Net::HTTPSuccess)