comet_backup_ruby_sdk 3.0.0 → 3.1.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/.github/workflows/publish.yml +52 -0
  3. data/.gitignore +0 -0
  4. data/.rubocop.yml +0 -0
  5. data/CHANGELOG.md +7 -0
  6. data/Gemfile +0 -0
  7. data/LICENSE +0 -0
  8. data/README.md +0 -0
  9. data/RELEASING.md +4 -2
  10. data/Rakefile +0 -0
  11. data/comet_backup_ruby_sdk.gemspec +1 -1
  12. data/lib/comet/api_response_error.rb +0 -0
  13. data/lib/comet/comet_server.rb +44 -12
  14. data/lib/comet/definitions.rb +2 -2
  15. data/lib/comet/models/add_bucket_response_message.rb +0 -0
  16. data/lib/comet/models/admin_account_apitoken_create_response.rb +0 -0
  17. data/lib/comet/models/admin_account_apitoken_list_response.rb +0 -0
  18. data/lib/comet/models/admin_account_properties_response.rb +0 -0
  19. data/lib/comet/models/admin_apitoken.rb +0 -0
  20. data/lib/comet/models/admin_apitoken_info.rb +0 -0
  21. data/lib/comet/models/admin_email_options.rb +0 -0
  22. data/lib/comet/models/admin_options.rb +0 -0
  23. data/lib/comet/models/admin_resource_response.rb +0 -0
  24. data/lib/comet/models/admin_security_options.rb +0 -0
  25. data/lib/comet/models/admin_u2fregistration.rb +0 -0
  26. data/lib/comet/models/admin_user_permissions.rb +0 -0
  27. data/lib/comet/models/admin_web_authn_registration.rb +0 -0
  28. data/lib/comet/models/allowed_admin_user.rb +0 -0
  29. data/lib/comet/models/amazon_awsvirtual_storage_role_settings.rb +0 -0
  30. data/lib/comet/models/attributed_content_measurement.rb +0 -0
  31. data/lib/comet/models/attributed_content_measurement_component.rb +0 -0
  32. data/lib/comet/models/authentication_role_options.rb +0 -0
  33. data/lib/comet/models/available_download.rb +0 -0
  34. data/lib/comet/models/azure_destination_location.rb +0 -0
  35. data/lib/comet/models/b2destination_location.rb +0 -0
  36. data/lib/comet/models/b2storage_extra_info.rb +0 -0
  37. data/lib/comet/models/b2transaction_totals.rb +0 -0
  38. data/lib/comet/models/b2virtual_storage_role_settings.rb +0 -0
  39. data/lib/comet/models/backup_job_advanced_options.rb +0 -0
  40. data/lib/comet/models/backup_job_detail.rb +0 -0
  41. data/lib/comet/models/backup_job_progress.rb +0 -0
  42. data/lib/comet/models/backup_rule_config.rb +0 -0
  43. data/lib/comet/models/backup_rule_event_triggers.rb +0 -0
  44. data/lib/comet/models/branding_options.rb +0 -0
  45. data/lib/comet/models/branding_properties.rb +0 -0
  46. data/lib/comet/models/browse_disk_drives_response.rb +0 -0
  47. data/lib/comet/models/browse_edbresponse.rb +0 -0
  48. data/lib/comet/models/browse_hvresponse.rb +0 -0
  49. data/lib/comet/models/browse_office_365list_virtual_accounts_response.rb +0 -0
  50. data/lib/comet/models/browse_office_365objects_response.rb +0 -0
  51. data/lib/comet/models/browse_proxmox_nodes_response.rb +0 -0
  52. data/lib/comet/models/browse_proxmox_response.rb +0 -0
  53. data/lib/comet/models/browse_proxmox_storage_response.rb +0 -0
  54. data/lib/comet/models/browse_sqlserver_response.rb +0 -0
  55. data/lib/comet/models/browse_vmware_datacenters_response.rb +0 -0
  56. data/lib/comet/models/browse_vmware_datastores_response.rb +0 -0
  57. data/lib/comet/models/browse_vmware_hosts_response.rb +0 -0
  58. data/lib/comet/models/browse_vmware_networks_response.rb +0 -0
  59. data/lib/comet/models/browse_vmware_response.rb +0 -0
  60. data/lib/comet/models/browse_vssresponse.rb +0 -0
  61. data/lib/comet/models/bucket_properties.rb +0 -0
  62. data/lib/comet/models/bucket_usage_info.rb +0 -0
  63. data/lib/comet/models/comet_apiresponse_message.rb +0 -0
  64. data/lib/comet/models/comet_destination_location.rb +0 -0
  65. data/lib/comet/models/constellation_check_report.rb +0 -0
  66. data/lib/comet/models/constellation_role_options.rb +0 -0
  67. data/lib/comet/models/constellation_stats.rb +0 -0
  68. data/lib/comet/models/constellation_status_apiresponse.rb +0 -0
  69. data/lib/comet/models/content_measurement.rb +0 -0
  70. data/lib/comet/models/content_measurement_component.rb +0 -0
  71. data/lib/comet/models/count_jobs_response.rb +0 -0
  72. data/lib/comet/models/create_group_policy_response.rb +0 -0
  73. data/lib/comet/models/create_user_group_response.rb +0 -0
  74. data/lib/comet/models/custom_branding_item.rb +0 -0
  75. data/lib/comet/models/custom_branding_options.rb +0 -0
  76. data/lib/comet/models/custom_branding_origin.rb +0 -0
  77. data/lib/comet/models/custom_remote_bucket_settings.rb +0 -0
  78. data/lib/comet/models/days_of_week_config.rb +0 -0
  79. data/lib/comet/models/default_email_report_policy.rb +0 -0
  80. data/lib/comet/models/default_source_with_osrestriction.rb +0 -0
  81. data/lib/comet/models/destination_config.rb +0 -0
  82. data/lib/comet/models/destination_location.rb +0 -0
  83. data/lib/comet/models/destination_statistics.rb +0 -0
  84. data/lib/comet/models/device_config.rb +0 -0
  85. data/lib/comet/models/device_identity_response.rb +0 -0
  86. data/lib/comet/models/disk_drive.rb +0 -0
  87. data/lib/comet/models/dispatch_with_job_idresponse.rb +0 -0
  88. data/lib/comet/models/dispatcher_admin_sources_response.rb +0 -0
  89. data/lib/comet/models/dispatcher_list_snapshot_virtual_machines_response.rb +0 -0
  90. data/lib/comet/models/dispatcher_stored_objects_response.rb +0 -0
  91. data/lib/comet/models/dispatcher_vault_snapshots_response.rb +0 -0
  92. data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +0 -0
  93. data/lib/comet/models/dnscache_options.rb +0 -0
  94. data/lib/comet/models/edbfile_info.rb +0 -0
  95. data/lib/comet/models/email_options.rb +0 -0
  96. data/lib/comet/models/email_report_config.rb +0 -0
  97. data/lib/comet/models/email_report_generated_preview.rb +0 -0
  98. data/lib/comet/models/email_reporting_option.rb +0 -0
  99. data/lib/comet/models/external_authentication_source.rb +0 -0
  100. data/lib/comet/models/external_authentication_source_display.rb +0 -0
  101. data/lib/comet/models/external_authentication_source_response.rb +0 -0
  102. data/lib/comet/models/external_ldapauthentication_source_server.rb +0 -0
  103. data/lib/comet/models/external_ldapauthentication_source_settings.rb +0 -0
  104. data/lib/comet/models/extra_file_exclusion.rb +0 -0
  105. data/lib/comet/models/file_option.rb +0 -0
  106. data/lib/comet/models/ftpdestination_location.rb +0 -0
  107. data/lib/comet/models/get_group_policy_response.rb +0 -0
  108. data/lib/comet/models/get_profile_and_hash_response_message.rb +0 -0
  109. data/lib/comet/models/get_profile_hash_response_message.rb +0 -0
  110. data/lib/comet/models/get_shared_storage_quota_response.rb +0 -0
  111. data/lib/comet/models/get_user_group_response.rb +0 -0
  112. data/lib/comet/models/get_user_group_with_users_response.rb +0 -0
  113. data/lib/comet/models/global_override_options.rb +0 -0
  114. data/lib/comet/models/group_policy.rb +0 -0
  115. data/lib/comet/models/hour_sched_config.rb +0 -0
  116. data/lib/comet/models/httpconnector_options.rb +0 -0
  117. data/lib/comet/models/hyper_vmachine_info.rb +0 -0
  118. data/lib/comet/models/hyper_vrestore_target_options.rb +0 -0
  119. data/lib/comet/models/impossible_cloud_iamtemplate_settings.rb +0 -0
  120. data/lib/comet/models/impossible_cloud_partner_template_settings.rb +0 -0
  121. data/lib/comet/models/install_creds.rb +0 -0
  122. data/lib/comet/models/install_token.rb +0 -0
  123. data/lib/comet/models/install_token_response.rb +0 -0
  124. data/lib/comet/models/job_entry.rb +0 -0
  125. data/lib/comet/models/license_limits.rb +0 -0
  126. data/lib/comet/models/license_options.rb +0 -0
  127. data/lib/comet/models/linux_rpm_code_sign_properties.rb +0 -0
  128. data/lib/comet/models/list_shared_storage_quota_response.rb +0 -0
  129. data/lib/comet/models/live_user_connection.rb +0 -0
  130. data/lib/comet/models/local_destination_location.rb +0 -0
  131. data/lib/comet/models/local_storage_directory.rb +0 -0
  132. data/lib/comet/models/login_protection_options.rb +0 -0
  133. data/lib/comet/models/mac_oscode_sign_properties.rb +0 -0
  134. data/lib/comet/models/mongo_dbconnection.rb +0 -0
  135. data/lib/comet/models/mssqlconnection.rb +0 -0
  136. data/lib/comet/models/mssqllogin_args.rb +0 -0
  137. data/lib/comet/models/my_sqlconnection.rb +0 -0
  138. data/lib/comet/models/new_bucket_detail.rb +0 -0
  139. data/lib/comet/models/news_entry.rb +0 -0
  140. data/lib/comet/models/nfsdestination_location.rb +0 -0
  141. data/lib/comet/models/ninja_one_auth_callback_response.rb +0 -0
  142. data/lib/comet/models/ninja_one_config.rb +0 -0
  143. data/lib/comet/models/ninja_one_organization.rb +0 -0
  144. data/lib/comet/models/node.rb +0 -0
  145. data/lib/comet/models/object_lock_storage_template_settings.rb +0 -0
  146. data/lib/comet/models/office_365connection.rb +0 -0
  147. data/lib/comet/models/office_365convert_selection_response.rb +0 -0
  148. data/lib/comet/models/office_365credential.rb +0 -0
  149. data/lib/comet/models/office_365custom_setting.rb +0 -0
  150. data/lib/comet/models/office_365custom_setting_v2.rb +0 -0
  151. data/lib/comet/models/office_365effective_selection.rb +0 -0
  152. data/lib/comet/models/office_365effective_selection_account.rb +0 -0
  153. data/lib/comet/models/office_365evaluate_selection_rules_response.rb +0 -0
  154. data/lib/comet/models/office_365mixed_virtual_account.rb +0 -0
  155. data/lib/comet/models/office_365object_info.rb +0 -0
  156. data/lib/comet/models/office_365selection_rule.rb +0 -0
  157. data/lib/comet/models/office_365service_rule_decision.rb +0 -0
  158. data/lib/comet/models/oidc_claim.rb +0 -0
  159. data/lib/comet/models/oidc_config.rb +0 -0
  160. data/lib/comet/models/organization.rb +0 -0
  161. data/lib/comet/models/organization_login_urlresponse.rb +0 -0
  162. data/lib/comet/models/organization_response.rb +0 -0
  163. data/lib/comet/models/osinfo.rb +0 -0
  164. data/lib/comet/models/partition.rb +0 -0
  165. data/lib/comet/models/partition_conflict.rb +0 -0
  166. data/lib/comet/models/pkcs_11allowed_driver.rb +0 -0
  167. data/lib/comet/models/pkcs_11allowlist_options.rb +0 -0
  168. data/lib/comet/models/policy_options.rb +0 -0
  169. data/lib/comet/models/postgre_sqlconnection.rb +0 -0
  170. data/lib/comet/models/private_branding_properties.rb +0 -0
  171. data/lib/comet/models/protected_item_engine_type_policy.rb +0 -0
  172. data/lib/comet/models/protected_item_with_backup_rules_response.rb +0 -0
  173. data/lib/comet/models/proxmox_connection.rb +0 -0
  174. data/lib/comet/models/proxmox_restore_target_options.rb +0 -0
  175. data/lib/comet/models/psaconfig.rb +0 -0
  176. data/lib/comet/models/psaconfig_connect_wise.rb +0 -0
  177. data/lib/comet/models/psagrouped_by.rb +0 -0
  178. data/lib/comet/models/public_branding_properties.rb +0 -0
  179. data/lib/comet/models/pvebackup_disk.rb +0 -0
  180. data/lib/comet/models/pvebackup_node.rb +0 -0
  181. data/lib/comet/models/pvebackup_vm.rb +0 -0
  182. data/lib/comet/models/pvedisk.rb +0 -0
  183. data/lib/comet/models/pveparams.rb +0 -0
  184. data/lib/comet/models/pvestorage_name.rb +0 -0
  185. data/lib/comet/models/pvevm.rb +0 -0
  186. data/lib/comet/models/ratelimit_options.rb +0 -0
  187. data/lib/comet/models/ratelimit_rule.rb +0 -0
  188. data/lib/comet/models/register_office_application_begin_response.rb +0 -0
  189. data/lib/comet/models/register_office_application_check_response.rb +0 -0
  190. data/lib/comet/models/registration_lobby_connection.rb +0 -0
  191. data/lib/comet/models/remote_server_address.rb +0 -0
  192. data/lib/comet/models/remote_storage_option.rb +0 -0
  193. data/lib/comet/models/replica_server.rb +0 -0
  194. data/lib/comet/models/replicator_state_apiresponse.rb +0 -0
  195. data/lib/comet/models/request_storage_vault_response_message.rb +0 -0
  196. data/lib/comet/models/restore_job_advanced_options.rb +0 -0
  197. data/lib/comet/models/retention_policy.rb +0 -0
  198. data/lib/comet/models/retention_range.rb +0 -0
  199. data/lib/comet/models/s3destination_location.rb +0 -0
  200. data/lib/comet/models/s3generic_virtual_storage_role.rb +0 -0
  201. data/lib/comet/models/schedule_config.rb +0 -0
  202. data/lib/comet/models/search_clause.rb +0 -0
  203. data/lib/comet/models/search_result_file_info.rb +0 -0
  204. data/lib/comet/models/search_snapshots_response.rb +0 -0
  205. data/lib/comet/models/self_backup_event_data.rb +0 -0
  206. data/lib/comet/models/self_backup_export_options.rb +0 -0
  207. data/lib/comet/models/self_backup_options.rb +0 -0
  208. data/lib/comet/models/self_backup_statistics.rb +0 -0
  209. data/lib/comet/models/self_backup_target.rb +0 -0
  210. data/lib/comet/models/server_config_options.rb +0 -0
  211. data/lib/comet/models/server_config_options_and_hash_response.rb +0 -0
  212. data/lib/comet/models/server_config_options_branding_fragment.rb +0 -0
  213. data/lib/comet/models/server_config_options_hash_response.rb +0 -0
  214. data/lib/comet/models/server_config_options_software_build_role_fragment.rb +0 -0
  215. data/lib/comet/models/server_meta_branding_properties.rb +0 -0
  216. data/lib/comet/models/server_meta_version_info.rb +0 -0
  217. data/lib/comet/models/session_key_regenerated_response.rb +0 -0
  218. data/lib/comet/models/session_options.rb +0 -0
  219. data/lib/comet/models/set_shared_storage_quota_response.rb +0 -0
  220. data/lib/comet/models/sftpdestination_location.rb +0 -0
  221. data/lib/comet/models/shared_storage_quota.rb +0 -0
  222. data/lib/comet/models/single_field_source.rb +0 -0
  223. data/lib/comet/models/size_measurement.rb +0 -0
  224. data/lib/comet/models/smbdestination_location.rb +0 -0
  225. data/lib/comet/models/smtpoauth_options.rb +0 -0
  226. data/lib/comet/models/software_build_role_options.rb +0 -0
  227. data/lib/comet/models/software_update_news_response.rb +0 -0
  228. data/lib/comet/models/source_basic_info.rb +0 -0
  229. data/lib/comet/models/source_config.rb +0 -0
  230. data/lib/comet/models/source_include_pattern.rb +0 -0
  231. data/lib/comet/models/source_statistics.rb +0 -0
  232. data/lib/comet/models/spanned_destination_location.rb +0 -0
  233. data/lib/comet/models/spanned_storage_extra_info.rb +0 -0
  234. data/lib/comet/models/speed_limit_time_window.rb +0 -0
  235. data/lib/comet/models/sshconnection.rb +0 -0
  236. data/lib/comet/models/stat_result.rb +0 -0
  237. data/lib/comet/models/storage_free_space_info.rb +0 -0
  238. data/lib/comet/models/storage_role_options.rb +0 -0
  239. data/lib/comet/models/storage_vault_provider_policy.rb +0 -0
  240. data/lib/comet/models/stored_object.rb +0 -0
  241. data/lib/comet/models/storj_destination_location.rb +0 -0
  242. data/lib/comet/models/storj_virtual_storage_role_setting.rb +0 -0
  243. data/lib/comet/models/streamable_event.rb +0 -0
  244. data/lib/comet/models/swift_destination_location.rb +0 -0
  245. data/lib/comet/models/test_response.rb +0 -0
  246. data/lib/comet/models/time_span.rb +0 -0
  247. data/lib/comet/models/totp_regenerated_response.rb +0 -0
  248. data/lib/comet/models/u2fregister_request.rb +0 -0
  249. data/lib/comet/models/u2fregistered_key.rb +0 -0
  250. data/lib/comet/models/u2fregistration_challenge_response.rb +0 -0
  251. data/lib/comet/models/u2fsign_request.rb +0 -0
  252. data/lib/comet/models/u2fsign_response.rb +0 -0
  253. data/lib/comet/models/uninstall_config.rb +0 -0
  254. data/lib/comet/models/update_campaign_device_status.rb +0 -0
  255. data/lib/comet/models/update_campaign_options.rb +0 -0
  256. data/lib/comet/models/update_campaign_properties.rb +0 -0
  257. data/lib/comet/models/update_campaign_skip_detail.rb +0 -0
  258. data/lib/comet/models/update_campaign_status.rb +0 -0
  259. data/lib/comet/models/update_campaign_status_device_entry.rb +0 -0
  260. data/lib/comet/models/user_custom_email_settings.rb +0 -0
  261. data/lib/comet/models/user_group.rb +0 -0
  262. data/lib/comet/models/user_on_server.rb +0 -0
  263. data/lib/comet/models/user_policy.rb +0 -0
  264. data/lib/comet/models/user_profile_config.rb +0 -0
  265. data/lib/comet/models/user_profile_fragment.rb +0 -0
  266. data/lib/comet/models/user_server_config.rb +0 -0
  267. data/lib/comet/models/vault_snapshot.rb +0 -0
  268. data/lib/comet/models/vmdisk_info.rb +0 -0
  269. data/lib/comet/models/vmdksnapshot_view_options.rb +0 -0
  270. data/lib/comet/models/vminfo.rb +0 -0
  271. data/lib/comet/models/vminfo_list.rb +0 -0
  272. data/lib/comet/models/vmware_connection.rb +0 -0
  273. data/lib/comet/models/vmware_datacenter_info.rb +0 -0
  274. data/lib/comet/models/vmware_datastore_info.rb +0 -0
  275. data/lib/comet/models/vmware_host_info.rb +0 -0
  276. data/lib/comet/models/vmware_machine_info.rb +0 -0
  277. data/lib/comet/models/vmware_network_info.rb +0 -0
  278. data/lib/comet/models/vmware_restore_target_options.rb +0 -0
  279. data/lib/comet/models/vsphere_connection.rb +0 -0
  280. data/lib/comet/models/vsscomponent.rb +0 -0
  281. data/lib/comet/models/vsswriter_info.rb +0 -0
  282. data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +0 -0
  283. data/lib/comet/models/web_authn_authenticator_selection.rb +0 -0
  284. data/lib/comet/models/web_authn_credential.rb +0 -0
  285. data/lib/comet/models/web_authn_credential_assertion.rb +0 -0
  286. data/lib/comet/models/web_authn_credential_descriptor.rb +0 -0
  287. data/lib/comet/models/web_authn_credential_entity.rb +0 -0
  288. data/lib/comet/models/web_authn_credential_parameter.rb +0 -0
  289. data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +0 -0
  290. data/lib/comet/models/web_authn_public_key_credential_request_options.rb +0 -0
  291. data/lib/comet/models/web_authn_registration_challenge_response.rb +0 -0
  292. data/lib/comet/models/web_authn_relying_party_entity.rb +0 -0
  293. data/lib/comet/models/web_authn_sign_request.rb +0 -0
  294. data/lib/comet/models/web_authn_sign_response.rb +0 -0
  295. data/lib/comet/models/web_authn_user_entity.rb +0 -0
  296. data/lib/comet/models/web_dav_destination_location.rb +0 -0
  297. data/lib/comet/models/web_interface_branding_properties.rb +0 -0
  298. data/lib/comet/models/webhook_awsoptions.rb +0 -0
  299. data/lib/comet/models/webhook_option.rb +0 -0
  300. data/lib/comet/models/win_smbauth.rb +0 -0
  301. data/lib/comet/models/windows_code_sign_properties.rb +0 -0
  302. data/lib/comet_backup_ruby_sdk.rb +0 -0
  303. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1835df4a6b4ec1d9252073cbe77134e7e6c46c954c36b7a3167992ea4443d073
4
- data.tar.gz: a36203a704e596cb289f78c2c8741c21d7f2fea607ca4cf019fe93c699f484a7
3
+ metadata.gz: 15cc37e7643f00b3834ce13f149fc283791577ba2a99952645ba0a8cbd85d383
4
+ data.tar.gz: 1920e8353572edb74f9bfbdc9dd8d3fbe01c285d0a6b9449050fe2542e5c837f
5
5
  SHA512:
6
- metadata.gz: b3276602fffebdfa23bb3af8c07120336b7256a3867fb91a817909196fb155adfd1fa4fc21db240aa1fe22bc9cb4ed7d094740e58997503de9f418e87f6a181b
7
- data.tar.gz: 3026e34d38d2db37fcffeb9981ca79dff27c750f53502318e6b2cbb87574ca8a1db2a9cb20621c7b141cdea9e143ed35a851981e40c3d930ef1c5840c59ecebd
6
+ metadata.gz: e848c2638fa3e4549434874acdab9a41361a46efa85238adc7c670d694d627205be0ffce77b3d224131315ca5be3c74354baa8de3caa7388ef0f60f0882fb718
7
+ data.tar.gz: 8d8ab251cbd65b0fa872904cc38a117ebf72358c88167a2fea16337c7ca2405b20b2a2aac4de4a261e7fde587f25d1d352590103b098eb1e0250ac3c4d912232
@@ -0,0 +1,52 @@
1
+ # Publishes comet_backup_ruby_sdk to rubygems.org when a version tag (v1.2.3) is pushed, using
2
+ # RubyGems trusted publishing: rubygems.org verifies this workflow run's identity through GitHub's
3
+ # OIDC token and issues a short-lived API key, so no long-lived API key or TOTP secret is stored
4
+ # anywhere.
5
+ #
6
+ # The trusted publisher configured for the gem on rubygems.org names this repository and this
7
+ # workflow file (publish.yml). Renaming either stops publishing until that configuration is updated.
8
+ # See https://guides.rubygems.org/trusted-publishing/
9
+
10
+ name: Publish to RubyGems
11
+
12
+ on:
13
+ push:
14
+ tags:
15
+ - 'v*'
16
+ # Fallback: run it from the Actions tab, choosing the tag, if a tag push did not start a run
17
+ workflow_dispatch:
18
+
19
+ permissions:
20
+ contents: read
21
+
22
+ jobs:
23
+ publish:
24
+ # The internal mirror receives the same tags, but only the public repository is a trusted publisher
25
+ if: github.repository == 'CometBackup/comet-ruby-sdk'
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ contents: read
29
+ id-token: write # RubyGems trusted publishing
30
+ steps:
31
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32
+ with:
33
+ persist-credentials: false
34
+
35
+ - uses: ruby/setup-ruby@78c62f2208e480ce3d5ae4dfd9b9e181acf48b63 # v1.344.0
36
+ with:
37
+ ruby-version: ruby
38
+
39
+ - name: Check the tag matches the gemspec version
40
+ run: |
41
+ version="v$(ruby -e 'puts Gem::Specification.load("comet_backup_ruby_sdk.gemspec").version')"
42
+ if [ "${version}" != "${GITHUB_REF_NAME}" ]; then
43
+ echo "::error::${GITHUB_REF_NAME} does not match the gemspec version ${version}"
44
+ exit 1
45
+ fi
46
+
47
+ # The gem has no runtime dependencies, so building it needs no bundle install
48
+ - run: gem build comet_backup_ruby_sdk.gemspec
49
+
50
+ - uses: rubygems/configure-rubygems-credentials@c6ca7f4bac0e29c9bde8eeae0a0a986b27efa05f # v2.2.0
51
+
52
+ - run: gem push "comet_backup_ruby_sdk-${GITHUB_REF_NAME#v}.gem"
data/.gitignore CHANGED
File without changes
data/.rubocop.yml CHANGED
File without changes
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2026-11-25 v3.1.0
4
+
5
+ - Based on Comet 26.11.3
6
+ - Add admin API token authentication (requires Comet Server 26.8.3 or later)
7
+ - An error-shaped response with a Status of 200–299 is now success, and anything outside that range is an error. This stops Ruby raising on 2xx results like 204, and lets Go and PHP report 1xx/3xx errors.
8
+ - Corrected (>= x.y.z) version annotations for the admin-user and RequireHash parameters
9
+
3
10
  ## 2026-11-23 v3.0.0
4
11
 
5
12
  - Based on Comet 26.11.3-rc
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/RELEASING.md CHANGED
@@ -9,6 +9,8 @@ With docker installed: `docker run -it -v "${PWD}:/app" -w /app ruby bash` will
9
9
  3. Update version number in `comet_backup_ruby_sdk.gemspec`
10
10
  4. `gem build comet_backup_ruby_sdk.gemspec`
11
11
  - Should be warning-free
12
- 5. Git tag
12
+ 5. Git tag the version-bump commit (e.g. `v3.1.0`)
13
13
  - Respect semver
14
- 6. `gem push comet_backup_ruby_sdk-x.x.x.gem`
14
+ 6. Push the tag to https://github.com/CometBackup/comet-ruby-sdk
15
+
16
+ Pushing the tag runs the [Publish to RubyGems](.github/workflows/publish.yml) workflow, which checks that the tag matches the gemspec version, builds the gem, and pushes it using [RubyGems trusted publishing](https://guides.rubygems.org/trusted-publishing/). No API key or one-time password is needed. If the tag push does not start a run, run the workflow from the Actions tab and choose the tag.
data/Rakefile CHANGED
File without changes
@@ -12,7 +12,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
12
12
 
13
13
  Gem::Specification.new do |spec|
14
14
  spec.name = 'comet_backup_ruby_sdk'
15
- spec.version = '3.0.0'
15
+ spec.version = '3.1.0'
16
16
  spec.authors = ['Comet Licensing Ltd.']
17
17
  spec.email = ['hello@cometbackup.com']
18
18
 
File without changes
@@ -22,6 +22,9 @@ module Comet
22
22
  # @type [String] Password to log in to the Comet Server API
23
23
  attr_accessor :password
24
24
 
25
+ # @type [String, nil] Admin personal API token. If set, it is used instead of the password
26
+ attr_accessor :token
27
+
25
28
  # Initialize a new CometServer class instance.
26
29
  def initialize(server_address, username, password)
27
30
  raise TypeError, "'server_address' expected String, got #{server_address.class}" unless server_address.is_a? String
@@ -33,11 +36,30 @@ module Comet
33
36
  @server_address = server_address
34
37
  @username = username
35
38
  @password = password
39
+ @token = nil
36
40
 
37
41
  # Ensure Comet Server URL has a trailing slash
38
42
  @server_address += '/' unless server_address.end_with?('/')
39
43
  end
40
44
 
45
+ # Initialize a new CometServer class instance that authenticates using an admin personal API token.
46
+ # A token is not asked for 2FA, but is only accepted by APIs documented as accepting it.
47
+ #
48
+ # Admin personal API tokens require Comet Server 26.8.3 or later. Since Comet Server 26.11.3, a
49
+ # token can also be passed as the password to new.
50
+ #
51
+ # @param [String] server_address The Comet Server URL
52
+ # @param [String] username Username of the admin that owns the token
53
+ # @param [String] token Admin personal API token
54
+ # @return [CometServer]
55
+ def self.with_token(server_address, username, token)
56
+ raise TypeError, "'token' expected String, got #{token.class}" unless token.is_a? String
57
+
58
+ server = new(server_address, username, '')
59
+ server.token = token
60
+ server
61
+ end
62
+
41
63
  # AdminAccountApiTokenCreate
42
64
  #
43
65
  # Create a new personal API token for the current admin account.
@@ -529,7 +551,7 @@ module Comet
529
551
  # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
530
552
  #
531
553
  # @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)
554
+ # @param [String] target_org_id (Optional) the organization ID of the admin to be deleted. If omitted, defaults to the top-level organization. (>= 26.10.2)
533
555
  # @return [Comet::CometAPIResponseMessage]
534
556
  def admin_admin_user_delete(target_user, target_org_id = nil)
535
557
  submit_params = {}
@@ -559,7 +581,7 @@ module Comet
559
581
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
560
582
  # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
561
583
  #
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)
584
+ # @param [String] target_org_id (Optional) If present, only list the administrators belonging to this organization. Otherwise, administrators from all organizations are listed. (>= 26.10.2)
563
585
  # @return [Array<Comet::AllowedAdminUser>]
564
586
  def admin_admin_user_list(target_org_id = nil)
565
587
  submit_params = {}
@@ -634,9 +656,9 @@ module Comet
634
656
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
635
657
  # This API does not accept admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
636
658
  #
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)
659
+ # @param [String] target_user the username of the admin to be updated (>= 26.10.2)
660
+ # @param [Comet::AllowedAdminUser] profile the updated administrator account (>= 26.10.2)
661
+ # @param [String] target_org_id (Optional) the organization ID of the admin to be updated. If omitted, defaults to the top-level organization. (>= 26.10.2)
640
662
  # @return [Comet::CometAPIResponseMessage]
641
663
  def admin_admin_user_set(target_user, profile, target_org_id = nil)
642
664
  submit_params = {}
@@ -1371,7 +1393,7 @@ module Comet
1371
1393
  # This API requires the Auth Role to be enabled.
1372
1394
  # This API accepts admin personal API token authentication (AuthType=Token, or the token supplied as the password with AuthType=Password).
1373
1395
  #
1374
- # @param [String] target_id The live connection GUID
1396
+ # @param [String] target_id The live connection GUID (>= 26.11.3)
1375
1397
  # @return [Comet::CometAPIResponseMessage]
1376
1398
  def admin_dispatcher_clear_login_password(target_id)
1377
1399
  submit_params = {}
@@ -4335,7 +4357,7 @@ module Comet
4335
4357
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4336
4358
  #
4337
4359
  # @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)
4360
+ # @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.10.2)
4339
4361
  # @return [Comet::CometAPIResponseMessage]
4340
4362
  def admin_meta_server_config_set(config, require_hash = nil)
4341
4363
  submit_params = {}
@@ -5891,7 +5913,7 @@ module Comet
5891
5913
  return unless obj.is_a? Hash
5892
5914
  return unless obj.key?('Status')
5893
5915
  return unless obj.key?('Message')
5894
- return unless obj['Status'] != 200 && obj['Status'] != 201
5916
+ return if (200..299).cover?(obj['Status'])
5895
5917
 
5896
5918
  ret_error = Comet::CometAPIResponseMessage.new
5897
5919
  ret_error.from_hash(obj)
@@ -5906,8 +5928,13 @@ module Comet
5906
5928
  def perform_request(endpoint, params = {})
5907
5929
  full_uri = URI(@server_address + endpoint)
5908
5930
  params['Username'] = @username
5909
- params['AuthType'] = 'Password'
5910
- params['Password'] = @password
5931
+ if @token.nil? || @token.empty?
5932
+ params['AuthType'] = 'Password'
5933
+ params['Password'] = @password
5934
+ else
5935
+ params['AuthType'] = 'Token'
5936
+ params['Token'] = @token
5937
+ end
5911
5938
 
5912
5939
  res = Net::HTTP.post_form(full_uri, params)
5913
5940
  unless res.is_a?(Net::HTTPSuccess)
@@ -5927,8 +5954,13 @@ module Comet
5927
5954
 
5928
5955
  req = Net::HTTP::Post.new(full_uri)
5929
5956
  req['X-Comet-Admin-Username'] = @username
5930
- req['X-Comet-Admin-AuthType'] = 'Password'
5931
- req['X-Comet-Admin-Password'] = @password
5957
+ if @token.nil? || @token.empty?
5958
+ req['X-Comet-Admin-AuthType'] = 'Password'
5959
+ req['X-Comet-Admin-Password'] = @password
5960
+ else
5961
+ req['X-Comet-Admin-AuthType'] = 'Token'
5962
+ req['X-Comet-Admin-Token'] = @token
5963
+ end
5932
5964
 
5933
5965
  form_params = []
5934
5966
  params.each do |k, v|
@@ -7,13 +7,13 @@
7
7
 
8
8
  module Comet
9
9
 
10
- APPLICATION_VERSION = '26.11.2'
10
+ APPLICATION_VERSION = '26.11.3'
11
11
 
12
12
  APPLICATION_VERSION_MAJOR = 26
13
13
 
14
14
  APPLICATION_VERSION_MINOR = 11
15
15
 
16
- APPLICATION_VERSION_REVISION = 2
16
+ APPLICATION_VERSION_REVISION = 3
17
17
 
18
18
  # AutoRetentionLevel: The system will automatically choose how often to run an automatic Retention
19
19
  # Pass after each backup job.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes