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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +0 -0
- data/CHANGELOG.md +29 -0
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/RELEASING.md +7 -7
- data/Rakefile +0 -0
- data/comet_backup_ruby_sdk.gemspec +2 -3
- data/lib/comet/api_response_error.rb +1 -1
- data/lib/comet/comet_server.rb +724 -90
- data/lib/comet/definitions.rb +400 -125
- data/lib/comet/models/add_bucket_response_message.rb +1 -1
- data/lib/comet/models/admin_account_apitoken_create_response.rb +102 -0
- data/lib/comet/models/admin_account_apitoken_list_response.rb +98 -0
- data/lib/comet/models/admin_account_properties_response.rb +38 -1
- data/lib/comet/models/admin_apitoken.rb +139 -0
- data/lib/comet/models/admin_apitoken_info.rb +117 -0
- data/lib/comet/models/admin_email_options.rb +1 -1
- data/lib/comet/models/admin_options.rb +1 -1
- data/lib/comet/models/admin_resource_response.rb +1 -1
- data/lib/comet/models/admin_security_options.rb +1 -1
- data/lib/comet/models/admin_u2fregistration.rb +1 -1
- data/lib/comet/models/admin_user_permissions.rb +20 -1
- data/lib/comet/models/admin_web_authn_registration.rb +1 -1
- data/lib/comet/models/allowed_admin_user.rb +19 -1
- data/lib/comet/models/amazon_awsvirtual_storage_role_settings.rb +1 -1
- data/lib/comet/models/attributed_content_measurement.rb +146 -0
- data/lib/comet/models/attributed_content_measurement_component.rb +105 -0
- data/lib/comet/models/authentication_role_options.rb +2 -4
- data/lib/comet/models/available_download.rb +1 -1
- data/lib/comet/models/azure_destination_location.rb +1 -1
- data/lib/comet/models/b2destination_location.rb +1 -1
- data/lib/comet/models/b2storage_extra_info.rb +1 -1
- data/lib/comet/models/b2transaction_totals.rb +1 -1
- data/lib/comet/models/b2virtual_storage_role_settings.rb +1 -1
- data/lib/comet/models/backup_job_advanced_options.rb +15 -1
- data/lib/comet/models/backup_job_detail.rb +14 -2
- data/lib/comet/models/backup_job_progress.rb +1 -1
- data/lib/comet/models/backup_rule_config.rb +43 -1
- data/lib/comet/models/backup_rule_event_triggers.rb +1 -1
- data/lib/comet/models/branding_options.rb +184 -1
- data/lib/comet/models/branding_properties.rb +184 -1
- data/lib/comet/models/browse_disk_drives_response.rb +1 -1
- data/lib/comet/models/browse_edbresponse.rb +1 -1
- data/lib/comet/models/browse_hvresponse.rb +1 -1
- data/lib/comet/models/browse_office_365list_virtual_accounts_response.rb +1 -1
- data/lib/comet/models/browse_office_365objects_response.rb +1 -1
- data/lib/comet/models/browse_proxmox_nodes_response.rb +1 -1
- data/lib/comet/models/browse_proxmox_response.rb +16 -1
- data/lib/comet/models/browse_proxmox_storage_response.rb +1 -1
- data/lib/comet/models/browse_sqlserver_response.rb +1 -1
- data/lib/comet/models/browse_vmware_datacenters_response.rb +1 -1
- data/lib/comet/models/browse_vmware_datastores_response.rb +1 -1
- data/lib/comet/models/browse_vmware_hosts_response.rb +1 -1
- data/lib/comet/models/browse_vmware_networks_response.rb +1 -1
- data/lib/comet/models/browse_vmware_response.rb +1 -1
- data/lib/comet/models/browse_vssresponse.rb +1 -1
- data/lib/comet/models/bucket_properties.rb +1 -1
- data/lib/comet/models/bucket_usage_info.rb +1 -1
- data/lib/comet/models/comet_apiresponse_message.rb +1 -1
- data/lib/comet/models/comet_destination_location.rb +1 -1
- data/lib/comet/models/constellation_check_report.rb +1 -1
- data/lib/comet/models/constellation_role_options.rb +1 -1
- data/lib/comet/models/constellation_stats.rb +1 -1
- data/lib/comet/models/constellation_status_apiresponse.rb +1 -1
- data/lib/comet/models/content_measurement.rb +1 -1
- data/lib/comet/models/content_measurement_component.rb +3 -3
- data/lib/comet/models/count_jobs_response.rb +1 -1
- data/lib/comet/models/create_group_policy_response.rb +1 -1
- data/lib/comet/models/create_user_group_response.rb +1 -1
- data/lib/comet/models/custom_branding_item.rb +143 -0
- data/lib/comet/models/custom_branding_options.rb +79 -0
- data/lib/comet/models/custom_branding_origin.rb +76 -0
- data/lib/comet/models/custom_remote_bucket_settings.rb +1 -1
- data/lib/comet/models/days_of_week_config.rb +1 -1
- data/lib/comet/models/default_email_report_policy.rb +1 -1
- data/lib/comet/models/default_source_with_osrestriction.rb +1 -1
- data/lib/comet/models/destination_config.rb +32 -5
- data/lib/comet/models/destination_location.rb +11 -2
- data/lib/comet/models/destination_statistics.rb +1 -1
- data/lib/comet/models/device_config.rb +42 -1
- data/lib/comet/models/device_identity_response.rb +82 -0
- data/lib/comet/models/disk_drive.rb +1 -1
- data/lib/comet/models/dispatch_with_job_idresponse.rb +1 -1
- data/lib/comet/models/dispatcher_admin_sources_response.rb +1 -1
- data/lib/comet/models/dispatcher_list_snapshot_virtual_machines_response.rb +1 -1
- data/lib/comet/models/dispatcher_stored_objects_response.rb +1 -1
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +1 -1
- data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +1 -1
- data/lib/comet/models/dnscache_options.rb +94 -0
- data/lib/comet/models/edbfile_info.rb +1 -1
- data/lib/comet/models/email_options.rb +14 -1
- data/lib/comet/models/email_report_config.rb +15 -1
- data/lib/comet/models/email_report_generated_preview.rb +1 -1
- data/lib/comet/models/email_reporting_option.rb +1 -1
- data/lib/comet/models/external_authentication_source.rb +1 -1
- data/lib/comet/models/external_authentication_source_display.rb +1 -1
- data/lib/comet/models/external_authentication_source_response.rb +1 -1
- data/lib/comet/models/external_ldapauthentication_source_server.rb +1 -1
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +1 -1
- data/lib/comet/models/extra_file_exclusion.rb +1 -1
- data/lib/comet/models/file_option.rb +1 -1
- data/lib/comet/models/ftpdestination_location.rb +1 -1
- data/lib/comet/models/get_group_policy_response.rb +1 -1
- data/lib/comet/models/get_profile_and_hash_response_message.rb +1 -1
- data/lib/comet/models/get_profile_hash_response_message.rb +1 -1
- data/lib/comet/models/get_shared_storage_quota_response.rb +1 -1
- data/lib/comet/models/get_user_group_response.rb +1 -1
- data/lib/comet/models/get_user_group_with_users_response.rb +1 -1
- data/lib/comet/models/global_override_options.rb +1 -1
- data/lib/comet/models/group_policy.rb +1 -1
- data/lib/comet/models/hour_sched_config.rb +1 -1
- data/lib/comet/models/httpconnector_options.rb +1 -1
- data/lib/comet/models/hyper_vmachine_info.rb +1 -1
- data/lib/comet/models/hyper_vrestore_target_options.rb +1 -1
- data/lib/comet/models/impossible_cloud_iamtemplate_settings.rb +1 -1
- data/lib/comet/models/impossible_cloud_partner_template_settings.rb +1 -1
- data/lib/comet/models/install_creds.rb +1 -1
- data/lib/comet/models/install_token.rb +8 -8
- data/lib/comet/models/install_token_response.rb +1 -1
- data/lib/comet/models/job_entry.rb +1 -1
- data/lib/comet/models/license_limits.rb +1 -1
- data/lib/comet/models/license_options.rb +1 -1
- data/lib/comet/models/linux_rpm_code_sign_properties.rb +115 -0
- data/lib/comet/models/list_shared_storage_quota_response.rb +1 -1
- data/lib/comet/models/live_user_connection.rb +1 -1
- data/lib/comet/models/local_destination_location.rb +2 -2
- data/lib/comet/models/local_storage_directory.rb +1 -1
- data/lib/comet/models/login_protection_options.rb +1 -1
- data/lib/comet/models/mac_oscode_sign_properties.rb +1 -1
- data/lib/comet/models/mongo_dbconnection.rb +4 -1
- data/lib/comet/models/mssqlconnection.rb +1 -1
- data/lib/comet/models/mssqllogin_args.rb +1 -1
- data/lib/comet/models/my_sqlconnection.rb +1 -1
- data/lib/comet/models/new_bucket_detail.rb +1 -1
- data/lib/comet/models/news_entry.rb +1 -1
- data/lib/comet/models/nfsdestination_location.rb +132 -0
- data/lib/comet/models/ninja_one_auth_callback_response.rb +82 -0
- data/lib/comet/models/ninja_one_config.rb +130 -0
- data/lib/comet/models/ninja_one_organization.rb +91 -0
- data/lib/comet/models/node.rb +80 -0
- data/lib/comet/models/object_lock_storage_template_settings.rb +1 -1
- data/lib/comet/models/office_365connection.rb +1 -1
- data/lib/comet/models/office_365convert_selection_response.rb +102 -0
- data/lib/comet/models/office_365credential.rb +1 -1
- data/lib/comet/models/office_365custom_setting.rb +1 -1
- data/lib/comet/models/office_365custom_setting_v2.rb +23 -1
- data/lib/comet/models/office_365effective_selection.rb +109 -0
- data/lib/comet/models/office_365effective_selection_account.rb +101 -0
- data/lib/comet/models/office_365evaluate_selection_rules_response.rb +95 -0
- data/lib/comet/models/office_365mixed_virtual_account.rb +1 -1
- data/lib/comet/models/office_365object_info.rb +1 -1
- data/lib/comet/models/office_365selection_rule.rb +182 -0
- data/lib/comet/models/office_365service_rule_decision.rb +93 -0
- data/lib/comet/models/oidc_claim.rb +1 -1
- data/lib/comet/models/oidc_config.rb +1 -1
- data/lib/comet/models/organization.rb +1 -1
- data/lib/comet/models/organization_login_urlresponse.rb +1 -1
- data/lib/comet/models/organization_response.rb +1 -1
- data/lib/comet/models/osinfo.rb +1 -1
- data/lib/comet/models/partition.rb +1 -1
- data/lib/comet/models/partition_conflict.rb +1 -1
- data/lib/comet/models/pkcs_11allowed_driver.rb +75 -0
- data/lib/comet/models/pkcs_11allowlist_options.rb +90 -0
- data/lib/comet/models/policy_options.rb +1 -1
- data/lib/comet/models/postgre_sqlconnection.rb +151 -0
- data/lib/comet/models/private_branding_properties.rb +184 -1
- data/lib/comet/models/protected_item_engine_type_policy.rb +1 -1
- data/lib/comet/models/protected_item_with_backup_rules_response.rb +1 -1
- data/lib/comet/models/proxmox_connection.rb +1 -1
- data/lib/comet/models/proxmox_restore_target_options.rb +1 -1
- data/lib/comet/models/psaconfig.rb +26 -1
- data/lib/comet/models/psaconfig_connect_wise.rb +130 -0
- data/lib/comet/models/psagrouped_by.rb +1 -1
- data/lib/comet/models/public_branding_properties.rb +1 -1
- data/lib/comet/models/pvebackup_disk.rb +1 -1
- data/lib/comet/models/pvebackup_node.rb +1 -1
- data/lib/comet/models/pvebackup_vm.rb +1 -1
- data/lib/comet/models/pvedisk.rb +1 -1
- data/lib/comet/models/pveparams.rb +2 -4
- data/lib/comet/models/pvestorage_name.rb +1 -1
- data/lib/comet/models/pvevm.rb +8 -1
- data/lib/comet/models/ratelimit_options.rb +1 -1
- data/lib/comet/models/ratelimit_rule.rb +1 -1
- data/lib/comet/models/register_office_application_begin_response.rb +1 -1
- data/lib/comet/models/register_office_application_check_response.rb +1 -1
- data/lib/comet/models/registration_lobby_connection.rb +1 -1
- data/lib/comet/models/remote_server_address.rb +1 -1
- data/lib/comet/models/remote_storage_option.rb +10 -1
- data/lib/comet/models/replica_server.rb +1 -1
- data/lib/comet/models/replicator_state_apiresponse.rb +1 -1
- data/lib/comet/models/request_storage_vault_response_message.rb +1 -1
- data/lib/comet/models/restore_job_advanced_options.rb +66 -10
- data/lib/comet/models/retention_policy.rb +1 -1
- data/lib/comet/models/retention_range.rb +1 -1
- data/lib/comet/models/s3destination_location.rb +1 -1
- data/lib/comet/models/s3generic_virtual_storage_role.rb +1 -1
- data/lib/comet/models/schedule_config.rb +1 -1
- data/lib/comet/models/search_clause.rb +1 -1
- data/lib/comet/models/search_result_file_info.rb +1 -1
- data/lib/comet/models/search_snapshots_response.rb +1 -1
- data/lib/comet/models/self_backup_event_data.rb +135 -0
- data/lib/comet/models/self_backup_export_options.rb +1 -1
- data/lib/comet/models/self_backup_options.rb +1 -1
- data/lib/comet/models/self_backup_statistics.rb +1 -1
- data/lib/comet/models/self_backup_target.rb +1 -1
- data/lib/comet/models/server_config_options.rb +76 -1
- data/lib/comet/models/server_config_options_and_hash_response.rb +103 -0
- data/lib/comet/models/server_config_options_branding_fragment.rb +1 -1
- data/lib/comet/models/server_config_options_hash_response.rb +95 -0
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +1 -1
- data/lib/comet/models/server_meta_branding_properties.rb +20 -1
- data/lib/comet/models/server_meta_version_info.rb +1 -1
- data/lib/comet/models/session_key_regenerated_response.rb +1 -1
- data/lib/comet/models/session_options.rb +1 -1
- data/lib/comet/models/set_shared_storage_quota_response.rb +1 -1
- data/lib/comet/models/sftpdestination_location.rb +1 -1
- data/lib/comet/models/shared_storage_quota.rb +1 -1
- data/lib/comet/models/single_field_source.rb +2 -2
- data/lib/comet/models/size_measurement.rb +1 -1
- data/lib/comet/models/smbdestination_location.rb +1 -1
- data/lib/comet/models/smtpoauth_options.rb +154 -0
- data/lib/comet/models/software_build_role_options.rb +1 -1
- data/lib/comet/models/software_update_news_response.rb +1 -1
- data/lib/comet/models/source_basic_info.rb +10 -1
- data/lib/comet/models/source_config.rb +69 -4
- data/lib/comet/models/source_include_pattern.rb +1 -1
- data/lib/comet/models/source_statistics.rb +1 -1
- data/lib/comet/models/spanned_destination_location.rb +1 -1
- data/lib/comet/models/spanned_storage_extra_info.rb +1 -1
- data/lib/comet/models/speed_limit_time_window.rb +114 -0
- data/lib/comet/models/sshconnection.rb +1 -1
- data/lib/comet/models/stat_result.rb +1 -1
- data/lib/comet/models/storage_free_space_info.rb +1 -1
- data/lib/comet/models/storage_role_options.rb +1 -1
- data/lib/comet/models/storage_vault_provider_policy.rb +1 -1
- data/lib/comet/models/stored_object.rb +1 -1
- data/lib/comet/models/storj_destination_location.rb +1 -1
- data/lib/comet/models/storj_virtual_storage_role_setting.rb +1 -1
- data/lib/comet/models/streamable_event.rb +1 -1
- data/lib/comet/models/swift_destination_location.rb +1 -1
- data/lib/comet/models/test_response.rb +1 -1
- data/lib/comet/models/time_span.rb +1 -1
- data/lib/comet/models/totp_regenerated_response.rb +1 -1
- data/lib/comet/models/u2fregister_request.rb +1 -1
- data/lib/comet/models/u2fregistered_key.rb +1 -1
- data/lib/comet/models/u2fregistration_challenge_response.rb +1 -1
- data/lib/comet/models/u2fsign_request.rb +1 -1
- data/lib/comet/models/u2fsign_response.rb +1 -1
- data/lib/comet/models/uninstall_config.rb +1 -1
- data/lib/comet/models/update_campaign_device_status.rb +9 -1
- data/lib/comet/models/update_campaign_options.rb +1 -1
- data/lib/comet/models/update_campaign_properties.rb +1 -1
- data/lib/comet/models/update_campaign_skip_detail.rb +100 -0
- data/lib/comet/models/update_campaign_status.rb +1 -1
- data/lib/comet/models/update_campaign_status_device_entry.rb +9 -1
- data/lib/comet/models/user_custom_email_settings.rb +1 -1
- data/lib/comet/models/user_group.rb +1 -1
- data/lib/comet/models/user_on_server.rb +1 -1
- data/lib/comet/models/user_policy.rb +18 -1
- data/lib/comet/models/user_profile_config.rb +82 -8
- data/lib/comet/models/user_profile_fragment.rb +1 -1
- data/lib/comet/models/user_server_config.rb +1 -1
- data/lib/comet/models/vault_snapshot.rb +1 -1
- data/lib/comet/models/vmdisk_info.rb +1 -1
- data/lib/comet/models/vmdksnapshot_view_options.rb +1 -1
- data/lib/comet/models/vminfo.rb +1 -1
- data/lib/comet/models/vminfo_list.rb +1 -1
- data/lib/comet/models/vmware_connection.rb +1 -1
- data/lib/comet/models/vmware_datacenter_info.rb +1 -1
- data/lib/comet/models/vmware_datastore_info.rb +1 -1
- data/lib/comet/models/vmware_host_info.rb +1 -1
- data/lib/comet/models/vmware_machine_info.rb +1 -1
- data/lib/comet/models/vmware_network_info.rb +1 -1
- data/lib/comet/models/vmware_restore_target_options.rb +1 -1
- data/lib/comet/models/vsphere_connection.rb +1 -1
- data/lib/comet/models/vsscomponent.rb +1 -1
- data/lib/comet/models/vsswriter_info.rb +1 -1
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +1 -1
- data/lib/comet/models/web_authn_authenticator_selection.rb +1 -1
- data/lib/comet/models/web_authn_credential.rb +1 -1
- data/lib/comet/models/web_authn_credential_assertion.rb +1 -1
- data/lib/comet/models/web_authn_credential_descriptor.rb +1 -1
- data/lib/comet/models/web_authn_credential_entity.rb +1 -1
- data/lib/comet/models/web_authn_credential_parameter.rb +1 -1
- data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +2 -4
- data/lib/comet/models/web_authn_public_key_credential_request_options.rb +1 -1
- data/lib/comet/models/web_authn_registration_challenge_response.rb +1 -1
- data/lib/comet/models/web_authn_relying_party_entity.rb +1 -1
- data/lib/comet/models/web_authn_sign_request.rb +1 -1
- data/lib/comet/models/web_authn_sign_response.rb +1 -1
- data/lib/comet/models/web_authn_user_entity.rb +1 -1
- data/lib/comet/models/web_dav_destination_location.rb +1 -1
- data/lib/comet/models/web_interface_branding_properties.rb +1 -1
- data/lib/comet/models/webhook_awsoptions.rb +96 -0
- data/lib/comet/models/webhook_option.rb +49 -2
- data/lib/comet/models/win_smbauth.rb +3 -3
- data/lib/comet/models/windows_code_sign_properties.rb +176 -1
- data/lib/comet_backup_ruby_sdk.rb +35 -1
- metadata +39 -23
- data/Gemfile.lock +0 -43
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2020-
|
|
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
|
|
@@ -27,14 +27,14 @@ module Comet
|
|
|
27
27
|
# @type [Number] create_time
|
|
28
28
|
attr_accessor :create_time
|
|
29
29
|
|
|
30
|
-
# If the token has been used, it cannot be used again.
|
|
31
|
-
# @type [Boolean] used
|
|
32
|
-
attr_accessor :used
|
|
33
|
-
|
|
34
30
|
# Unix timestamp, in seconds.
|
|
35
31
|
# @type [Number] expire_time
|
|
36
32
|
attr_accessor :expire_time
|
|
37
33
|
|
|
34
|
+
# If the token has been used, it cannot be used again.
|
|
35
|
+
# @type [Boolean] used
|
|
36
|
+
attr_accessor :used
|
|
37
|
+
|
|
38
38
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
39
39
|
attr_accessor :unknown_json_fields
|
|
40
40
|
|
|
@@ -80,12 +80,12 @@ module Comet
|
|
|
80
80
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
81
81
|
|
|
82
82
|
@create_time = v
|
|
83
|
-
when 'Used'
|
|
84
|
-
@used = v
|
|
85
83
|
when 'ExpireTime'
|
|
86
84
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
87
85
|
|
|
88
86
|
@expire_time = v
|
|
87
|
+
when 'Used'
|
|
88
|
+
@used = v
|
|
89
89
|
else
|
|
90
90
|
@unknown_json_fields[k] = v
|
|
91
91
|
end
|
|
@@ -99,8 +99,8 @@ module Comet
|
|
|
99
99
|
ret['Server'] = @server
|
|
100
100
|
ret['Token'] = @token
|
|
101
101
|
ret['CreateTime'] = @create_time
|
|
102
|
-
ret['Used'] = @used
|
|
103
102
|
ret['ExpireTime'] = @expire_time
|
|
103
|
+
ret['Used'] = @used
|
|
104
104
|
@unknown_json_fields.each do |k, v|
|
|
105
105
|
ret[k] = v
|
|
106
106
|
end
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# LinuxRpmCodeSignProperties is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class LinuxRpmCodeSignProperties
|
|
14
|
+
|
|
15
|
+
# One of the LINUXRPMCODESIGN_METHOD_ constants
|
|
16
|
+
# @type [Number] method
|
|
17
|
+
attr_accessor :method
|
|
18
|
+
|
|
19
|
+
# ASCII-armored GPG private key, either a local filepath or a resource:// URI
|
|
20
|
+
# @type [String] key_file
|
|
21
|
+
attr_accessor :key_file
|
|
22
|
+
|
|
23
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
|
24
|
+
# @type [Number] key_password_format
|
|
25
|
+
attr_accessor :key_password_format
|
|
26
|
+
|
|
27
|
+
# Passphrase for the GPG private key; may be empty for passphrase-less keys
|
|
28
|
+
# @type [String] key_password
|
|
29
|
+
attr_accessor :key_password
|
|
30
|
+
|
|
31
|
+
# GPG long key ID (16 hex characters) or a full 40-hex fingerprint; only the trailing 16 hex
|
|
32
|
+
# characters are used at signing time
|
|
33
|
+
# @type [String] key_id
|
|
34
|
+
attr_accessor :key_id
|
|
35
|
+
|
|
36
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
37
|
+
attr_accessor :unknown_json_fields
|
|
38
|
+
|
|
39
|
+
def initialize
|
|
40
|
+
clear
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def clear
|
|
44
|
+
@method = 0
|
|
45
|
+
@key_file = ''
|
|
46
|
+
@key_password_format = 0
|
|
47
|
+
@key_password = ''
|
|
48
|
+
@key_id = ''
|
|
49
|
+
@unknown_json_fields = {}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# @param [String] json_string The complete object in JSON format
|
|
53
|
+
def from_json(json_string)
|
|
54
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
55
|
+
|
|
56
|
+
from_hash(JSON.parse(json_string))
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
60
|
+
def from_hash(obj)
|
|
61
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
62
|
+
|
|
63
|
+
obj.each do |k, v|
|
|
64
|
+
case k
|
|
65
|
+
when 'Method'
|
|
66
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
67
|
+
|
|
68
|
+
@method = v
|
|
69
|
+
when 'KeyFile'
|
|
70
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
71
|
+
|
|
72
|
+
@key_file = v
|
|
73
|
+
when 'KeyPasswordFormat'
|
|
74
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
75
|
+
|
|
76
|
+
@key_password_format = v
|
|
77
|
+
when 'KeyPassword'
|
|
78
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
79
|
+
|
|
80
|
+
@key_password = v
|
|
81
|
+
when 'KeyID'
|
|
82
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
83
|
+
|
|
84
|
+
@key_id = v
|
|
85
|
+
else
|
|
86
|
+
@unknown_json_fields[k] = v
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
92
|
+
def to_hash
|
|
93
|
+
ret = {}
|
|
94
|
+
ret['Method'] = @method
|
|
95
|
+
ret['KeyFile'] = @key_file
|
|
96
|
+
ret['KeyPasswordFormat'] = @key_password_format
|
|
97
|
+
ret['KeyPassword'] = @key_password
|
|
98
|
+
ret['KeyID'] = @key_id
|
|
99
|
+
@unknown_json_fields.each do |k, v|
|
|
100
|
+
ret[k] = v
|
|
101
|
+
end
|
|
102
|
+
ret
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
106
|
+
def to_h
|
|
107
|
+
to_hash
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# @return [String] The complete object as a JSON string
|
|
111
|
+
def to_json(options = {})
|
|
112
|
+
to_hash.to_json(options)
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2020-
|
|
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
|
|
@@ -24,7 +24,7 @@ module Comet
|
|
|
24
24
|
# @type [String] localcopy_win_smbpassword
|
|
25
25
|
attr_accessor :localcopy_win_smbpassword
|
|
26
26
|
|
|
27
|
-
# One of the
|
|
27
|
+
# One of the ENCRYPTIONMETHOD_ constants. It controls the hash format of the LocalcopyWinSMBPassword
|
|
28
28
|
# field.
|
|
29
29
|
# @type [Number] localcopy_win_smbpassword_format
|
|
30
30
|
attr_accessor :localcopy_win_smbpassword_format
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2020-
|
|
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
|
|
@@ -33,7 +33,10 @@ module Comet
|
|
|
33
33
|
# @deprecated This member has been deprecated since Comet version 22.12.3
|
|
34
34
|
attr_accessor :mongo_shell_path
|
|
35
35
|
|
|
36
|
+
# External mongodump path. This is deprecated in Comet 25.9.11, Comet now includes MongoDB dump
|
|
37
|
+
# functionality.
|
|
36
38
|
# @type [String] mongodump_path
|
|
39
|
+
# @deprecated This member has been deprecated since Comet version 25.9.11
|
|
37
40
|
attr_accessor :mongodump_path
|
|
38
41
|
|
|
39
42
|
# @type [String] read_preference
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# NFSDestinationLocation is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
# NFSDestinationLocation describes an NFSv4 storage location.
|
|
14
|
+
# Only NFS version 4 is supported; the older mount protocol (NFSv2/v3) is not.
|
|
15
|
+
# This type is available in Comet 26.9.x and later.
|
|
16
|
+
class NFSDestinationLocation
|
|
17
|
+
|
|
18
|
+
# The hostname or IP address of the NFSv4 server. An optional ":port" suffix may be supplied; the
|
|
19
|
+
# default port is 2049.
|
|
20
|
+
# @type [String] server
|
|
21
|
+
attr_accessor :server
|
|
22
|
+
|
|
23
|
+
# The target directory path underneath the server's NFSv4 pseudo-filesystem root
|
|
24
|
+
# @type [String] path
|
|
25
|
+
attr_accessor :path
|
|
26
|
+
|
|
27
|
+
# The numeric user ID presented to the server for AUTH_SYS authentication.
|
|
28
|
+
# NFSv4 performs no password exchange; the server grants access based on this
|
|
29
|
+
# identity and on its own export rules. Defaults to 0 (root).
|
|
30
|
+
# @type [Number] uid
|
|
31
|
+
attr_accessor :uid
|
|
32
|
+
|
|
33
|
+
# The numeric group ID presented to the server for AUTH_SYS authentication.
|
|
34
|
+
# Defaults to 0 (root).
|
|
35
|
+
# @type [Number] gid
|
|
36
|
+
attr_accessor :gid
|
|
37
|
+
|
|
38
|
+
# The client machine name presented to the server for AUTH_SYS authentication.
|
|
39
|
+
# If blank, the local hostname is used.
|
|
40
|
+
# @type [String] machine_name
|
|
41
|
+
attr_accessor :machine_name
|
|
42
|
+
|
|
43
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
44
|
+
attr_accessor :unknown_json_fields
|
|
45
|
+
|
|
46
|
+
def initialize
|
|
47
|
+
clear
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def clear
|
|
51
|
+
@server = ''
|
|
52
|
+
@path = ''
|
|
53
|
+
@uid = 0
|
|
54
|
+
@gid = 0
|
|
55
|
+
@machine_name = ''
|
|
56
|
+
@unknown_json_fields = {}
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# @param [String] json_string The complete object in JSON format
|
|
60
|
+
def from_json(json_string)
|
|
61
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
62
|
+
|
|
63
|
+
from_hash(JSON.parse(json_string))
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
67
|
+
def from_hash(obj)
|
|
68
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
69
|
+
|
|
70
|
+
obj.each do |k, v|
|
|
71
|
+
case k
|
|
72
|
+
when 'Server'
|
|
73
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
74
|
+
|
|
75
|
+
@server = v
|
|
76
|
+
when 'Path'
|
|
77
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
78
|
+
|
|
79
|
+
@path = v
|
|
80
|
+
when 'Uid'
|
|
81
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
82
|
+
|
|
83
|
+
@uid = v
|
|
84
|
+
when 'Gid'
|
|
85
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
86
|
+
|
|
87
|
+
@gid = v
|
|
88
|
+
when 'MachineName'
|
|
89
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
90
|
+
|
|
91
|
+
@machine_name = v
|
|
92
|
+
else
|
|
93
|
+
@unknown_json_fields[k] = v
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
99
|
+
def to_hash
|
|
100
|
+
ret = {}
|
|
101
|
+
unless @server.nil?
|
|
102
|
+
ret['Server'] = @server
|
|
103
|
+
end
|
|
104
|
+
unless @path.nil?
|
|
105
|
+
ret['Path'] = @path
|
|
106
|
+
end
|
|
107
|
+
unless @uid.nil?
|
|
108
|
+
ret['Uid'] = @uid
|
|
109
|
+
end
|
|
110
|
+
unless @gid.nil?
|
|
111
|
+
ret['Gid'] = @gid
|
|
112
|
+
end
|
|
113
|
+
unless @machine_name.nil?
|
|
114
|
+
ret['MachineName'] = @machine_name
|
|
115
|
+
end
|
|
116
|
+
@unknown_json_fields.each do |k, v|
|
|
117
|
+
ret[k] = v
|
|
118
|
+
end
|
|
119
|
+
ret
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
123
|
+
def to_h
|
|
124
|
+
to_hash
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# @return [String] The complete object as a JSON string
|
|
128
|
+
def to_json(options = {})
|
|
129
|
+
to_hash.to_json(options)
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# NinjaOneAuthCallbackResponse is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class NinjaOneAuthCallbackResponse
|
|
14
|
+
|
|
15
|
+
# @type [String] refresh_token
|
|
16
|
+
attr_accessor :refresh_token
|
|
17
|
+
|
|
18
|
+
# @type [Number] refresh_token_format
|
|
19
|
+
attr_accessor :refresh_token_format
|
|
20
|
+
|
|
21
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
22
|
+
attr_accessor :unknown_json_fields
|
|
23
|
+
|
|
24
|
+
def initialize
|
|
25
|
+
clear
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def clear
|
|
29
|
+
@refresh_token = ''
|
|
30
|
+
@refresh_token_format = 0
|
|
31
|
+
@unknown_json_fields = {}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# @param [String] json_string The complete object in JSON format
|
|
35
|
+
def from_json(json_string)
|
|
36
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
37
|
+
|
|
38
|
+
from_hash(JSON.parse(json_string))
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
42
|
+
def from_hash(obj)
|
|
43
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
44
|
+
|
|
45
|
+
obj.each do |k, v|
|
|
46
|
+
case k
|
|
47
|
+
when 'RefreshToken'
|
|
48
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
49
|
+
|
|
50
|
+
@refresh_token = v
|
|
51
|
+
when 'RefreshTokenFormat'
|
|
52
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
53
|
+
|
|
54
|
+
@refresh_token_format = v
|
|
55
|
+
else
|
|
56
|
+
@unknown_json_fields[k] = v
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
62
|
+
def to_hash
|
|
63
|
+
ret = {}
|
|
64
|
+
ret['RefreshToken'] = @refresh_token
|
|
65
|
+
ret['RefreshTokenFormat'] = @refresh_token_format
|
|
66
|
+
@unknown_json_fields.each do |k, v|
|
|
67
|
+
ret[k] = v
|
|
68
|
+
end
|
|
69
|
+
ret
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
73
|
+
def to_h
|
|
74
|
+
to_hash
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# @return [String] The complete object as a JSON string
|
|
78
|
+
def to_json(options = {})
|
|
79
|
+
to_hash.to_json(options)
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# NinjaOneConfig is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class NinjaOneConfig
|
|
14
|
+
|
|
15
|
+
# OAuth 2.0 Client ID for NinjaOne API
|
|
16
|
+
# @type [String] client_id
|
|
17
|
+
attr_accessor :client_id
|
|
18
|
+
|
|
19
|
+
# OAuth 2.0 Client Secret for NinjaOne API
|
|
20
|
+
# @type [String] client_secret
|
|
21
|
+
attr_accessor :client_secret
|
|
22
|
+
|
|
23
|
+
# @type [String] refresh_token
|
|
24
|
+
attr_accessor :refresh_token
|
|
25
|
+
|
|
26
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
|
27
|
+
# @type [Number] refresh_token_format
|
|
28
|
+
attr_accessor :refresh_token_format
|
|
29
|
+
|
|
30
|
+
# Whether to create and manage tickets in NinjaOne for backup failures
|
|
31
|
+
# @type [Boolean] tickets_enabled
|
|
32
|
+
attr_accessor :tickets_enabled
|
|
33
|
+
|
|
34
|
+
# NinjaOne client (organization) ID. Required when tickets are enabled.
|
|
35
|
+
# @type [Number] ninja_client_id
|
|
36
|
+
attr_accessor :ninja_client_id
|
|
37
|
+
|
|
38
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
39
|
+
attr_accessor :unknown_json_fields
|
|
40
|
+
|
|
41
|
+
def initialize
|
|
42
|
+
clear
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def clear
|
|
46
|
+
@client_id = ''
|
|
47
|
+
@client_secret = ''
|
|
48
|
+
@refresh_token = ''
|
|
49
|
+
@refresh_token_format = 0
|
|
50
|
+
@ninja_client_id = 0
|
|
51
|
+
@unknown_json_fields = {}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# @param [String] json_string The complete object in JSON format
|
|
55
|
+
def from_json(json_string)
|
|
56
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
57
|
+
|
|
58
|
+
from_hash(JSON.parse(json_string))
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
62
|
+
def from_hash(obj)
|
|
63
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
64
|
+
|
|
65
|
+
obj.each do |k, v|
|
|
66
|
+
case k
|
|
67
|
+
when 'ClientID'
|
|
68
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
69
|
+
|
|
70
|
+
@client_id = v
|
|
71
|
+
when 'ClientSecret'
|
|
72
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
73
|
+
|
|
74
|
+
@client_secret = v
|
|
75
|
+
when 'RefreshToken'
|
|
76
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
77
|
+
|
|
78
|
+
@refresh_token = v
|
|
79
|
+
when 'RefreshTokenFormat'
|
|
80
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
81
|
+
|
|
82
|
+
@refresh_token_format = v
|
|
83
|
+
when 'TicketsEnabled'
|
|
84
|
+
@tickets_enabled = v
|
|
85
|
+
when 'NinjaClientID'
|
|
86
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
87
|
+
|
|
88
|
+
@ninja_client_id = v
|
|
89
|
+
else
|
|
90
|
+
@unknown_json_fields[k] = v
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
96
|
+
def to_hash
|
|
97
|
+
ret = {}
|
|
98
|
+
unless @client_id.nil?
|
|
99
|
+
ret['ClientID'] = @client_id
|
|
100
|
+
end
|
|
101
|
+
unless @client_secret.nil?
|
|
102
|
+
ret['ClientSecret'] = @client_secret
|
|
103
|
+
end
|
|
104
|
+
unless @refresh_token.nil?
|
|
105
|
+
ret['RefreshToken'] = @refresh_token
|
|
106
|
+
end
|
|
107
|
+
unless @refresh_token_format.nil?
|
|
108
|
+
ret['RefreshTokenFormat'] = @refresh_token_format
|
|
109
|
+
end
|
|
110
|
+
ret['TicketsEnabled'] = @tickets_enabled
|
|
111
|
+
unless @ninja_client_id.nil?
|
|
112
|
+
ret['NinjaClientID'] = @ninja_client_id
|
|
113
|
+
end
|
|
114
|
+
@unknown_json_fields.each do |k, v|
|
|
115
|
+
ret[k] = v
|
|
116
|
+
end
|
|
117
|
+
ret
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
121
|
+
def to_h
|
|
122
|
+
to_hash
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# @return [String] The complete object as a JSON string
|
|
126
|
+
def to_json(options = {})
|
|
127
|
+
to_hash.to_json(options)
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|