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.
- checksums.yaml +4 -4
- data/.github/workflows/publish.yml +52 -0
- data/.gitignore +0 -0
- data/.rubocop.yml +0 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/RELEASING.md +4 -2
- data/Rakefile +0 -0
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/api_response_error.rb +0 -0
- data/lib/comet/comet_server.rb +44 -12
- data/lib/comet/definitions.rb +2 -2
- data/lib/comet/models/add_bucket_response_message.rb +0 -0
- data/lib/comet/models/admin_account_apitoken_create_response.rb +0 -0
- data/lib/comet/models/admin_account_apitoken_list_response.rb +0 -0
- data/lib/comet/models/admin_account_properties_response.rb +0 -0
- data/lib/comet/models/admin_apitoken.rb +0 -0
- data/lib/comet/models/admin_apitoken_info.rb +0 -0
- data/lib/comet/models/admin_email_options.rb +0 -0
- data/lib/comet/models/admin_options.rb +0 -0
- data/lib/comet/models/admin_resource_response.rb +0 -0
- data/lib/comet/models/admin_security_options.rb +0 -0
- data/lib/comet/models/admin_u2fregistration.rb +0 -0
- data/lib/comet/models/admin_user_permissions.rb +0 -0
- data/lib/comet/models/admin_web_authn_registration.rb +0 -0
- data/lib/comet/models/allowed_admin_user.rb +0 -0
- data/lib/comet/models/amazon_awsvirtual_storage_role_settings.rb +0 -0
- data/lib/comet/models/attributed_content_measurement.rb +0 -0
- data/lib/comet/models/attributed_content_measurement_component.rb +0 -0
- data/lib/comet/models/authentication_role_options.rb +0 -0
- data/lib/comet/models/available_download.rb +0 -0
- data/lib/comet/models/azure_destination_location.rb +0 -0
- data/lib/comet/models/b2destination_location.rb +0 -0
- data/lib/comet/models/b2storage_extra_info.rb +0 -0
- data/lib/comet/models/b2transaction_totals.rb +0 -0
- data/lib/comet/models/b2virtual_storage_role_settings.rb +0 -0
- data/lib/comet/models/backup_job_advanced_options.rb +0 -0
- data/lib/comet/models/backup_job_detail.rb +0 -0
- data/lib/comet/models/backup_job_progress.rb +0 -0
- data/lib/comet/models/backup_rule_config.rb +0 -0
- data/lib/comet/models/backup_rule_event_triggers.rb +0 -0
- data/lib/comet/models/branding_options.rb +0 -0
- data/lib/comet/models/branding_properties.rb +0 -0
- data/lib/comet/models/browse_disk_drives_response.rb +0 -0
- data/lib/comet/models/browse_edbresponse.rb +0 -0
- data/lib/comet/models/browse_hvresponse.rb +0 -0
- data/lib/comet/models/browse_office_365list_virtual_accounts_response.rb +0 -0
- data/lib/comet/models/browse_office_365objects_response.rb +0 -0
- data/lib/comet/models/browse_proxmox_nodes_response.rb +0 -0
- data/lib/comet/models/browse_proxmox_response.rb +0 -0
- data/lib/comet/models/browse_proxmox_storage_response.rb +0 -0
- data/lib/comet/models/browse_sqlserver_response.rb +0 -0
- data/lib/comet/models/browse_vmware_datacenters_response.rb +0 -0
- data/lib/comet/models/browse_vmware_datastores_response.rb +0 -0
- data/lib/comet/models/browse_vmware_hosts_response.rb +0 -0
- data/lib/comet/models/browse_vmware_networks_response.rb +0 -0
- data/lib/comet/models/browse_vmware_response.rb +0 -0
- data/lib/comet/models/browse_vssresponse.rb +0 -0
- data/lib/comet/models/bucket_properties.rb +0 -0
- data/lib/comet/models/bucket_usage_info.rb +0 -0
- data/lib/comet/models/comet_apiresponse_message.rb +0 -0
- data/lib/comet/models/comet_destination_location.rb +0 -0
- data/lib/comet/models/constellation_check_report.rb +0 -0
- data/lib/comet/models/constellation_role_options.rb +0 -0
- data/lib/comet/models/constellation_stats.rb +0 -0
- data/lib/comet/models/constellation_status_apiresponse.rb +0 -0
- data/lib/comet/models/content_measurement.rb +0 -0
- data/lib/comet/models/content_measurement_component.rb +0 -0
- data/lib/comet/models/count_jobs_response.rb +0 -0
- data/lib/comet/models/create_group_policy_response.rb +0 -0
- data/lib/comet/models/create_user_group_response.rb +0 -0
- data/lib/comet/models/custom_branding_item.rb +0 -0
- data/lib/comet/models/custom_branding_options.rb +0 -0
- data/lib/comet/models/custom_branding_origin.rb +0 -0
- data/lib/comet/models/custom_remote_bucket_settings.rb +0 -0
- data/lib/comet/models/days_of_week_config.rb +0 -0
- data/lib/comet/models/default_email_report_policy.rb +0 -0
- data/lib/comet/models/default_source_with_osrestriction.rb +0 -0
- data/lib/comet/models/destination_config.rb +0 -0
- data/lib/comet/models/destination_location.rb +0 -0
- data/lib/comet/models/destination_statistics.rb +0 -0
- data/lib/comet/models/device_config.rb +0 -0
- data/lib/comet/models/device_identity_response.rb +0 -0
- data/lib/comet/models/disk_drive.rb +0 -0
- data/lib/comet/models/dispatch_with_job_idresponse.rb +0 -0
- data/lib/comet/models/dispatcher_admin_sources_response.rb +0 -0
- data/lib/comet/models/dispatcher_list_snapshot_virtual_machines_response.rb +0 -0
- data/lib/comet/models/dispatcher_stored_objects_response.rb +0 -0
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +0 -0
- data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +0 -0
- data/lib/comet/models/dnscache_options.rb +0 -0
- data/lib/comet/models/edbfile_info.rb +0 -0
- data/lib/comet/models/email_options.rb +0 -0
- data/lib/comet/models/email_report_config.rb +0 -0
- data/lib/comet/models/email_report_generated_preview.rb +0 -0
- data/lib/comet/models/email_reporting_option.rb +0 -0
- data/lib/comet/models/external_authentication_source.rb +0 -0
- data/lib/comet/models/external_authentication_source_display.rb +0 -0
- data/lib/comet/models/external_authentication_source_response.rb +0 -0
- data/lib/comet/models/external_ldapauthentication_source_server.rb +0 -0
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +0 -0
- data/lib/comet/models/extra_file_exclusion.rb +0 -0
- data/lib/comet/models/file_option.rb +0 -0
- data/lib/comet/models/ftpdestination_location.rb +0 -0
- data/lib/comet/models/get_group_policy_response.rb +0 -0
- data/lib/comet/models/get_profile_and_hash_response_message.rb +0 -0
- data/lib/comet/models/get_profile_hash_response_message.rb +0 -0
- data/lib/comet/models/get_shared_storage_quota_response.rb +0 -0
- data/lib/comet/models/get_user_group_response.rb +0 -0
- data/lib/comet/models/get_user_group_with_users_response.rb +0 -0
- data/lib/comet/models/global_override_options.rb +0 -0
- data/lib/comet/models/group_policy.rb +0 -0
- data/lib/comet/models/hour_sched_config.rb +0 -0
- data/lib/comet/models/httpconnector_options.rb +0 -0
- data/lib/comet/models/hyper_vmachine_info.rb +0 -0
- data/lib/comet/models/hyper_vrestore_target_options.rb +0 -0
- data/lib/comet/models/impossible_cloud_iamtemplate_settings.rb +0 -0
- data/lib/comet/models/impossible_cloud_partner_template_settings.rb +0 -0
- data/lib/comet/models/install_creds.rb +0 -0
- data/lib/comet/models/install_token.rb +0 -0
- data/lib/comet/models/install_token_response.rb +0 -0
- data/lib/comet/models/job_entry.rb +0 -0
- data/lib/comet/models/license_limits.rb +0 -0
- data/lib/comet/models/license_options.rb +0 -0
- data/lib/comet/models/linux_rpm_code_sign_properties.rb +0 -0
- data/lib/comet/models/list_shared_storage_quota_response.rb +0 -0
- data/lib/comet/models/live_user_connection.rb +0 -0
- data/lib/comet/models/local_destination_location.rb +0 -0
- data/lib/comet/models/local_storage_directory.rb +0 -0
- data/lib/comet/models/login_protection_options.rb +0 -0
- data/lib/comet/models/mac_oscode_sign_properties.rb +0 -0
- data/lib/comet/models/mongo_dbconnection.rb +0 -0
- data/lib/comet/models/mssqlconnection.rb +0 -0
- data/lib/comet/models/mssqllogin_args.rb +0 -0
- data/lib/comet/models/my_sqlconnection.rb +0 -0
- data/lib/comet/models/new_bucket_detail.rb +0 -0
- data/lib/comet/models/news_entry.rb +0 -0
- data/lib/comet/models/nfsdestination_location.rb +0 -0
- data/lib/comet/models/ninja_one_auth_callback_response.rb +0 -0
- data/lib/comet/models/ninja_one_config.rb +0 -0
- data/lib/comet/models/ninja_one_organization.rb +0 -0
- data/lib/comet/models/node.rb +0 -0
- data/lib/comet/models/object_lock_storage_template_settings.rb +0 -0
- data/lib/comet/models/office_365connection.rb +0 -0
- data/lib/comet/models/office_365convert_selection_response.rb +0 -0
- data/lib/comet/models/office_365credential.rb +0 -0
- data/lib/comet/models/office_365custom_setting.rb +0 -0
- data/lib/comet/models/office_365custom_setting_v2.rb +0 -0
- data/lib/comet/models/office_365effective_selection.rb +0 -0
- data/lib/comet/models/office_365effective_selection_account.rb +0 -0
- data/lib/comet/models/office_365evaluate_selection_rules_response.rb +0 -0
- data/lib/comet/models/office_365mixed_virtual_account.rb +0 -0
- data/lib/comet/models/office_365object_info.rb +0 -0
- data/lib/comet/models/office_365selection_rule.rb +0 -0
- data/lib/comet/models/office_365service_rule_decision.rb +0 -0
- data/lib/comet/models/oidc_claim.rb +0 -0
- data/lib/comet/models/oidc_config.rb +0 -0
- data/lib/comet/models/organization.rb +0 -0
- data/lib/comet/models/organization_login_urlresponse.rb +0 -0
- data/lib/comet/models/organization_response.rb +0 -0
- data/lib/comet/models/osinfo.rb +0 -0
- data/lib/comet/models/partition.rb +0 -0
- data/lib/comet/models/partition_conflict.rb +0 -0
- data/lib/comet/models/pkcs_11allowed_driver.rb +0 -0
- data/lib/comet/models/pkcs_11allowlist_options.rb +0 -0
- data/lib/comet/models/policy_options.rb +0 -0
- data/lib/comet/models/postgre_sqlconnection.rb +0 -0
- data/lib/comet/models/private_branding_properties.rb +0 -0
- data/lib/comet/models/protected_item_engine_type_policy.rb +0 -0
- data/lib/comet/models/protected_item_with_backup_rules_response.rb +0 -0
- data/lib/comet/models/proxmox_connection.rb +0 -0
- data/lib/comet/models/proxmox_restore_target_options.rb +0 -0
- data/lib/comet/models/psaconfig.rb +0 -0
- data/lib/comet/models/psaconfig_connect_wise.rb +0 -0
- data/lib/comet/models/psagrouped_by.rb +0 -0
- data/lib/comet/models/public_branding_properties.rb +0 -0
- data/lib/comet/models/pvebackup_disk.rb +0 -0
- data/lib/comet/models/pvebackup_node.rb +0 -0
- data/lib/comet/models/pvebackup_vm.rb +0 -0
- data/lib/comet/models/pvedisk.rb +0 -0
- data/lib/comet/models/pveparams.rb +0 -0
- data/lib/comet/models/pvestorage_name.rb +0 -0
- data/lib/comet/models/pvevm.rb +0 -0
- data/lib/comet/models/ratelimit_options.rb +0 -0
- data/lib/comet/models/ratelimit_rule.rb +0 -0
- data/lib/comet/models/register_office_application_begin_response.rb +0 -0
- data/lib/comet/models/register_office_application_check_response.rb +0 -0
- data/lib/comet/models/registration_lobby_connection.rb +0 -0
- data/lib/comet/models/remote_server_address.rb +0 -0
- data/lib/comet/models/remote_storage_option.rb +0 -0
- data/lib/comet/models/replica_server.rb +0 -0
- data/lib/comet/models/replicator_state_apiresponse.rb +0 -0
- data/lib/comet/models/request_storage_vault_response_message.rb +0 -0
- data/lib/comet/models/restore_job_advanced_options.rb +0 -0
- data/lib/comet/models/retention_policy.rb +0 -0
- data/lib/comet/models/retention_range.rb +0 -0
- data/lib/comet/models/s3destination_location.rb +0 -0
- data/lib/comet/models/s3generic_virtual_storage_role.rb +0 -0
- data/lib/comet/models/schedule_config.rb +0 -0
- data/lib/comet/models/search_clause.rb +0 -0
- data/lib/comet/models/search_result_file_info.rb +0 -0
- data/lib/comet/models/search_snapshots_response.rb +0 -0
- data/lib/comet/models/self_backup_event_data.rb +0 -0
- data/lib/comet/models/self_backup_export_options.rb +0 -0
- data/lib/comet/models/self_backup_options.rb +0 -0
- data/lib/comet/models/self_backup_statistics.rb +0 -0
- data/lib/comet/models/self_backup_target.rb +0 -0
- data/lib/comet/models/server_config_options.rb +0 -0
- data/lib/comet/models/server_config_options_and_hash_response.rb +0 -0
- data/lib/comet/models/server_config_options_branding_fragment.rb +0 -0
- data/lib/comet/models/server_config_options_hash_response.rb +0 -0
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +0 -0
- data/lib/comet/models/server_meta_branding_properties.rb +0 -0
- data/lib/comet/models/server_meta_version_info.rb +0 -0
- data/lib/comet/models/session_key_regenerated_response.rb +0 -0
- data/lib/comet/models/session_options.rb +0 -0
- data/lib/comet/models/set_shared_storage_quota_response.rb +0 -0
- data/lib/comet/models/sftpdestination_location.rb +0 -0
- data/lib/comet/models/shared_storage_quota.rb +0 -0
- data/lib/comet/models/single_field_source.rb +0 -0
- data/lib/comet/models/size_measurement.rb +0 -0
- data/lib/comet/models/smbdestination_location.rb +0 -0
- data/lib/comet/models/smtpoauth_options.rb +0 -0
- data/lib/comet/models/software_build_role_options.rb +0 -0
- data/lib/comet/models/software_update_news_response.rb +0 -0
- data/lib/comet/models/source_basic_info.rb +0 -0
- data/lib/comet/models/source_config.rb +0 -0
- data/lib/comet/models/source_include_pattern.rb +0 -0
- data/lib/comet/models/source_statistics.rb +0 -0
- data/lib/comet/models/spanned_destination_location.rb +0 -0
- data/lib/comet/models/spanned_storage_extra_info.rb +0 -0
- data/lib/comet/models/speed_limit_time_window.rb +0 -0
- data/lib/comet/models/sshconnection.rb +0 -0
- data/lib/comet/models/stat_result.rb +0 -0
- data/lib/comet/models/storage_free_space_info.rb +0 -0
- data/lib/comet/models/storage_role_options.rb +0 -0
- data/lib/comet/models/storage_vault_provider_policy.rb +0 -0
- data/lib/comet/models/stored_object.rb +0 -0
- data/lib/comet/models/storj_destination_location.rb +0 -0
- data/lib/comet/models/storj_virtual_storage_role_setting.rb +0 -0
- data/lib/comet/models/streamable_event.rb +0 -0
- data/lib/comet/models/swift_destination_location.rb +0 -0
- data/lib/comet/models/test_response.rb +0 -0
- data/lib/comet/models/time_span.rb +0 -0
- data/lib/comet/models/totp_regenerated_response.rb +0 -0
- data/lib/comet/models/u2fregister_request.rb +0 -0
- data/lib/comet/models/u2fregistered_key.rb +0 -0
- data/lib/comet/models/u2fregistration_challenge_response.rb +0 -0
- data/lib/comet/models/u2fsign_request.rb +0 -0
- data/lib/comet/models/u2fsign_response.rb +0 -0
- data/lib/comet/models/uninstall_config.rb +0 -0
- data/lib/comet/models/update_campaign_device_status.rb +0 -0
- data/lib/comet/models/update_campaign_options.rb +0 -0
- data/lib/comet/models/update_campaign_properties.rb +0 -0
- data/lib/comet/models/update_campaign_skip_detail.rb +0 -0
- data/lib/comet/models/update_campaign_status.rb +0 -0
- data/lib/comet/models/update_campaign_status_device_entry.rb +0 -0
- data/lib/comet/models/user_custom_email_settings.rb +0 -0
- data/lib/comet/models/user_group.rb +0 -0
- data/lib/comet/models/user_on_server.rb +0 -0
- data/lib/comet/models/user_policy.rb +0 -0
- data/lib/comet/models/user_profile_config.rb +0 -0
- data/lib/comet/models/user_profile_fragment.rb +0 -0
- data/lib/comet/models/user_server_config.rb +0 -0
- data/lib/comet/models/vault_snapshot.rb +0 -0
- data/lib/comet/models/vmdisk_info.rb +0 -0
- data/lib/comet/models/vmdksnapshot_view_options.rb +0 -0
- data/lib/comet/models/vminfo.rb +0 -0
- data/lib/comet/models/vminfo_list.rb +0 -0
- data/lib/comet/models/vmware_connection.rb +0 -0
- data/lib/comet/models/vmware_datacenter_info.rb +0 -0
- data/lib/comet/models/vmware_datastore_info.rb +0 -0
- data/lib/comet/models/vmware_host_info.rb +0 -0
- data/lib/comet/models/vmware_machine_info.rb +0 -0
- data/lib/comet/models/vmware_network_info.rb +0 -0
- data/lib/comet/models/vmware_restore_target_options.rb +0 -0
- data/lib/comet/models/vsphere_connection.rb +0 -0
- data/lib/comet/models/vsscomponent.rb +0 -0
- data/lib/comet/models/vsswriter_info.rb +0 -0
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +0 -0
- data/lib/comet/models/web_authn_authenticator_selection.rb +0 -0
- data/lib/comet/models/web_authn_credential.rb +0 -0
- data/lib/comet/models/web_authn_credential_assertion.rb +0 -0
- data/lib/comet/models/web_authn_credential_descriptor.rb +0 -0
- data/lib/comet/models/web_authn_credential_entity.rb +0 -0
- data/lib/comet/models/web_authn_credential_parameter.rb +0 -0
- data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +0 -0
- data/lib/comet/models/web_authn_public_key_credential_request_options.rb +0 -0
- data/lib/comet/models/web_authn_registration_challenge_response.rb +0 -0
- data/lib/comet/models/web_authn_relying_party_entity.rb +0 -0
- data/lib/comet/models/web_authn_sign_request.rb +0 -0
- data/lib/comet/models/web_authn_sign_response.rb +0 -0
- data/lib/comet/models/web_authn_user_entity.rb +0 -0
- data/lib/comet/models/web_dav_destination_location.rb +0 -0
- data/lib/comet/models/web_interface_branding_properties.rb +0 -0
- data/lib/comet/models/webhook_awsoptions.rb +0 -0
- data/lib/comet/models/webhook_option.rb +0 -0
- data/lib/comet/models/win_smbauth.rb +0 -0
- data/lib/comet/models/windows_code_sign_properties.rb +0 -0
- data/lib/comet_backup_ruby_sdk.rb +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15cc37e7643f00b3834ce13f149fc283791577ba2a99952645ba0a8cbd85d383
|
|
4
|
+
data.tar.gz: 1920e8353572edb74f9bfbdc9dd8d3fbe01c285d0a6b9449050fe2542e5c837f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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
|
data/lib/comet/comet_server.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
638
|
-
# @param [Comet::AllowedAdminUser] profile the updated administrator account (>= 26.
|
|
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.
|
|
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.
|
|
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
|
|
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
|
-
|
|
5910
|
-
|
|
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
|
-
|
|
5931
|
-
|
|
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|
|
data/lib/comet/definitions.rb
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
module Comet
|
|
9
9
|
|
|
10
|
-
APPLICATION_VERSION = '26.11.
|
|
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 =
|
|
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
|
|
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
|
data/lib/comet/models/node.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|