comet_backup_ruby_sdk 2.43.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 +35 -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 +824 -90
- data/lib/comet/definitions.rb +409 -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 +43 -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 +110 -0
- 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 +98 -0
- 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 +17 -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 +92 -0
- data/lib/comet/models/sftpdestination_location.rb +1 -1
- data/lib/comet/models/shared_storage_quota.rb +94 -0
- 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 +39 -1
- metadata +43 -23
- data/Gemfile.lock +0 -43
|
@@ -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
|
+
# PSAConfigConnectWise is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class PSAConfigConnectWise
|
|
14
|
+
|
|
15
|
+
# The ConnectWise Manage company ID used for API authentication
|
|
16
|
+
# @type [String] company_id
|
|
17
|
+
attr_accessor :company_id
|
|
18
|
+
|
|
19
|
+
# The public part of the ConnectWise Manage API member keypair
|
|
20
|
+
# @type [String] public_key
|
|
21
|
+
attr_accessor :public_key
|
|
22
|
+
|
|
23
|
+
# The private part of the ConnectWise Manage API member keypair
|
|
24
|
+
# @type [String] private_key
|
|
25
|
+
attr_accessor :private_key
|
|
26
|
+
|
|
27
|
+
# The ConnectWise Manage developer "clientId" header value
|
|
28
|
+
# @type [String] client_id
|
|
29
|
+
attr_accessor :client_id
|
|
30
|
+
|
|
31
|
+
# Optional. The name of the Service Board that tickets are created on. If blank, the ConnectWise
|
|
32
|
+
# Manage default board is used
|
|
33
|
+
# @type [String] service_board
|
|
34
|
+
attr_accessor :service_board
|
|
35
|
+
|
|
36
|
+
# Optional. The identifier of the ConnectWise Manage company that tickets are raised against, when
|
|
37
|
+
# no company matches the Comet user account's AccountName
|
|
38
|
+
# @type [String] ticket_company
|
|
39
|
+
attr_accessor :ticket_company
|
|
40
|
+
|
|
41
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
42
|
+
attr_accessor :unknown_json_fields
|
|
43
|
+
|
|
44
|
+
def initialize
|
|
45
|
+
clear
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def clear
|
|
49
|
+
@company_id = ''
|
|
50
|
+
@public_key = ''
|
|
51
|
+
@private_key = ''
|
|
52
|
+
@client_id = ''
|
|
53
|
+
@service_board = ''
|
|
54
|
+
@ticket_company = ''
|
|
55
|
+
@unknown_json_fields = {}
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# @param [String] json_string The complete object in JSON format
|
|
59
|
+
def from_json(json_string)
|
|
60
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
61
|
+
|
|
62
|
+
from_hash(JSON.parse(json_string))
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
66
|
+
def from_hash(obj)
|
|
67
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
68
|
+
|
|
69
|
+
obj.each do |k, v|
|
|
70
|
+
case k
|
|
71
|
+
when 'CompanyID'
|
|
72
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
73
|
+
|
|
74
|
+
@company_id = v
|
|
75
|
+
when 'PublicKey'
|
|
76
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
77
|
+
|
|
78
|
+
@public_key = v
|
|
79
|
+
when 'PrivateKey'
|
|
80
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
81
|
+
|
|
82
|
+
@private_key = v
|
|
83
|
+
when 'ClientID'
|
|
84
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
85
|
+
|
|
86
|
+
@client_id = v
|
|
87
|
+
when 'ServiceBoard'
|
|
88
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
89
|
+
|
|
90
|
+
@service_board = v
|
|
91
|
+
when 'TicketCompany'
|
|
92
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
93
|
+
|
|
94
|
+
@ticket_company = v
|
|
95
|
+
else
|
|
96
|
+
@unknown_json_fields[k] = v
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
102
|
+
def to_hash
|
|
103
|
+
ret = {}
|
|
104
|
+
ret['CompanyID'] = @company_id
|
|
105
|
+
ret['PublicKey'] = @public_key
|
|
106
|
+
ret['PrivateKey'] = @private_key
|
|
107
|
+
ret['ClientID'] = @client_id
|
|
108
|
+
unless @service_board.nil?
|
|
109
|
+
ret['ServiceBoard'] = @service_board
|
|
110
|
+
end
|
|
111
|
+
unless @ticket_company.nil?
|
|
112
|
+
ret['TicketCompany'] = @ticket_company
|
|
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
|
data/lib/comet/models/pvedisk.rb
CHANGED
|
@@ -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
|
|
@@ -112,9 +112,7 @@ module Comet
|
|
|
112
112
|
unless @method.nil?
|
|
113
113
|
ret['Method'] = @method
|
|
114
114
|
end
|
|
115
|
-
|
|
116
|
-
ret['SSHConnection'] = @sshconnection
|
|
117
|
-
end
|
|
115
|
+
ret['SSHConnection'] = @sshconnection
|
|
118
116
|
unless @selections.nil?
|
|
119
117
|
ret['Selections'] = @selections
|
|
120
118
|
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
|
|
@@ -19,6 +19,9 @@ module Comet
|
|
|
19
19
|
# @type [String] type
|
|
20
20
|
attr_accessor :type
|
|
21
21
|
|
|
22
|
+
# @type [Array<String>] content
|
|
23
|
+
attr_accessor :content
|
|
24
|
+
|
|
22
25
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
23
26
|
attr_accessor :unknown_json_fields
|
|
24
27
|
|
|
@@ -29,6 +32,7 @@ module Comet
|
|
|
29
32
|
def clear
|
|
30
33
|
@name = ''
|
|
31
34
|
@type = ''
|
|
35
|
+
@content = []
|
|
32
36
|
@unknown_json_fields = {}
|
|
33
37
|
end
|
|
34
38
|
|
|
@@ -53,6 +57,17 @@ module Comet
|
|
|
53
57
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
54
58
|
|
|
55
59
|
@type = v
|
|
60
|
+
when 'Content'
|
|
61
|
+
if v.nil?
|
|
62
|
+
@content = []
|
|
63
|
+
else
|
|
64
|
+
@content = Array.new(v.length)
|
|
65
|
+
v.each_with_index do |v1, i1|
|
|
66
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
|
67
|
+
|
|
68
|
+
@content[i1] = v1
|
|
69
|
+
end
|
|
70
|
+
end
|
|
56
71
|
else
|
|
57
72
|
@unknown_json_fields[k] = v
|
|
58
73
|
end
|
|
@@ -64,6 +79,7 @@ module Comet
|
|
|
64
79
|
ret = {}
|
|
65
80
|
ret['Name'] = @name
|
|
66
81
|
ret['Type'] = @type
|
|
82
|
+
ret['Content'] = @content
|
|
67
83
|
@unknown_json_fields.each do |k, v|
|
|
68
84
|
ret[k] = v
|
|
69
85
|
end
|
data/lib/comet/models/pvevm.rb
CHANGED
|
@@ -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
|
|
@@ -19,6 +19,7 @@ module Comet
|
|
|
19
19
|
# @type [Array<Comet::PVEDisk>] disks
|
|
20
20
|
attr_accessor :disks
|
|
21
21
|
|
|
22
|
+
# Memory is a human-formatted string of the VM's memory. It might be rounded.
|
|
22
23
|
# @type [String] memory
|
|
23
24
|
attr_accessor :memory
|
|
24
25
|
|
|
@@ -37,6 +38,9 @@ module Comet
|
|
|
37
38
|
# @type [String] type
|
|
38
39
|
attr_accessor :type
|
|
39
40
|
|
|
41
|
+
# @type [Boolean] template
|
|
42
|
+
attr_accessor :template
|
|
43
|
+
|
|
40
44
|
# String type, but always contains an integer value
|
|
41
45
|
# @type [String] vmid
|
|
42
46
|
attr_accessor :vmid
|
|
@@ -109,6 +113,8 @@ module Comet
|
|
|
109
113
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
110
114
|
|
|
111
115
|
@type = v
|
|
116
|
+
when 'Template'
|
|
117
|
+
@template = v
|
|
112
118
|
when 'VMID'
|
|
113
119
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
114
120
|
|
|
@@ -130,6 +136,7 @@ module Comet
|
|
|
130
136
|
ret['OSType'] = @ostype
|
|
131
137
|
ret['Running'] = @running
|
|
132
138
|
ret['Type'] = @type
|
|
139
|
+
ret['Template'] = @template
|
|
133
140
|
ret['VMID'] = @vmid
|
|
134
141
|
@unknown_json_fields.each do |k, v|
|
|
135
142
|
ret[k] = v
|
|
@@ -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
|
|
@@ -77,6 +77,12 @@ module Comet
|
|
|
77
77
|
# @type [Boolean] rebrand_storage
|
|
78
78
|
attr_accessor :rebrand_storage
|
|
79
79
|
|
|
80
|
+
# If true, Storage Vaults provisioned from this Storage Template are marked so that the end-user
|
|
81
|
+
# account cannot modify them. This takes priority over the account policy's PreventEditStorageVault
|
|
82
|
+
# setting.
|
|
83
|
+
# @type [Boolean] prevent_user_edit
|
|
84
|
+
attr_accessor :prevent_user_edit
|
|
85
|
+
|
|
80
86
|
# @type [String] id
|
|
81
87
|
attr_accessor :id
|
|
82
88
|
|
|
@@ -182,6 +188,8 @@ module Comet
|
|
|
182
188
|
@storage_limit_bytes = v
|
|
183
189
|
when 'RebrandStorage'
|
|
184
190
|
@rebrand_storage = v
|
|
191
|
+
when 'PreventUserEdit'
|
|
192
|
+
@prevent_user_edit = v
|
|
185
193
|
when 'ID'
|
|
186
194
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
187
195
|
|
|
@@ -241,6 +249,7 @@ module Comet
|
|
|
241
249
|
ret['StorageLimitEnabled'] = @storage_limit_enabled
|
|
242
250
|
ret['StorageLimitBytes'] = @storage_limit_bytes
|
|
243
251
|
ret['RebrandStorage'] = @rebrand_storage
|
|
252
|
+
ret['PreventUserEdit'] = @prevent_user_edit
|
|
244
253
|
ret['ID'] = @id
|
|
245
254
|
ret['Default'] = @default
|
|
246
255
|
@unknown_json_fields.each do |k, v|
|
|
@@ -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
|
|
@@ -63,46 +63,70 @@ module Comet
|
|
|
63
63
|
# @type [Boolean] on_disk_indexes_key
|
|
64
64
|
attr_accessor :on_disk_indexes_key
|
|
65
65
|
|
|
66
|
+
# Default disabled. For RESTORETYPE_FILE. If set, restored files are always written in full.
|
|
67
|
+
# Otherwise, large
|
|
68
|
+
# zero-filled regions may be restored as sparse regions or extended without writing, which is faster
|
|
69
|
+
# and can use
|
|
70
|
+
# less disk space, but some files (e.g. swap files, preallocated database files) require full
|
|
71
|
+
# allocation.
|
|
72
|
+
# Corresponds to the "Fully allocate restored files (disable sparse files)" option
|
|
73
|
+
# This field is available in Comet 26.11.x and later.
|
|
74
|
+
# @type [Boolean] prevent_auto_sparsify
|
|
75
|
+
attr_accessor :prevent_auto_sparsify
|
|
76
|
+
|
|
66
77
|
# For RESTORETYPE_OFFICE365_CLOUD.
|
|
67
78
|
# @type [Comet::Office365Credential] office_365credential
|
|
68
79
|
attr_accessor :office_365credential
|
|
69
80
|
|
|
70
|
-
# For
|
|
81
|
+
# Default disabled. For RESTORETYPE_OFFICE365_CLOUD. If set, items already present at the
|
|
82
|
+
# destination are skipped instead of being restored again.
|
|
83
|
+
# Corresponds to the "Skip items that are already present at the destination" option
|
|
84
|
+
# This field is available in Comet 26.9.x and later.
|
|
85
|
+
# @type [Boolean] office_365skip_existing
|
|
86
|
+
attr_accessor :office_365skip_existing
|
|
87
|
+
|
|
88
|
+
# For RESTORETYPE_MYSQL and RESTORETYPE_POSTGRESQL
|
|
71
89
|
# @type [String] username
|
|
72
90
|
attr_accessor :username
|
|
73
91
|
|
|
74
|
-
# For RESTORETYPE_MYSQL
|
|
92
|
+
# For RESTORETYPE_MYSQL and RESTORETYPE_POSTGRESQL
|
|
75
93
|
# @type [String] password
|
|
76
94
|
attr_accessor :password
|
|
77
95
|
|
|
78
|
-
# For RESTORETYPE_MYSQL
|
|
96
|
+
# For RESTORETYPE_MYSQL and RESTORETYPE_POSTGRESQL
|
|
79
97
|
# @type [String] host
|
|
80
98
|
attr_accessor :host
|
|
81
99
|
|
|
82
|
-
# For RESTORETYPE_MYSQL
|
|
100
|
+
# For RESTORETYPE_MYSQL and RESTORETYPE_POSTGRESQL
|
|
83
101
|
# @type [String] port
|
|
84
102
|
attr_accessor :port
|
|
85
103
|
|
|
86
|
-
# For RESTORETYPE_MYSQL
|
|
104
|
+
# For RESTORETYPE_MYSQL and RESTORETYPE_POSTGRESQL
|
|
87
105
|
# @type [Boolean] use_ssl
|
|
88
106
|
attr_accessor :use_ssl
|
|
89
107
|
|
|
90
|
-
# For RESTORETYPE_MYSQL i.e.: Self signed certs
|
|
108
|
+
# For RESTORETYPE_MYSQL and RESTORETYPE_POSTGRESQL i.e.: Self signed certs
|
|
91
109
|
# @type [Boolean] ssl_allow_invalid
|
|
92
110
|
attr_accessor :ssl_allow_invalid
|
|
93
111
|
|
|
94
|
-
# For RESTORETYPE_MYSQL
|
|
112
|
+
# For RESTORETYPE_MYSQL and RESTORETYPE_POSTGRESQL
|
|
95
113
|
# @type [String] ssl_ca_file
|
|
96
114
|
attr_accessor :ssl_ca_file
|
|
97
115
|
|
|
98
|
-
# For RESTORETYPE_MYSQL
|
|
116
|
+
# For RESTORETYPE_MYSQL and RESTORETYPE_POSTGRESQL
|
|
99
117
|
# @type [String] ssl_crt_file
|
|
100
118
|
attr_accessor :ssl_crt_file
|
|
101
119
|
|
|
102
|
-
# For RESTORETYPE_MYSQL
|
|
120
|
+
# For RESTORETYPE_MYSQL and RESTORETYPE_POSTGRESQL
|
|
103
121
|
# @type [String] ssl_key_file
|
|
104
122
|
attr_accessor :ssl_key_file
|
|
105
123
|
|
|
124
|
+
# For RESTORETYPE_POSTGRESQL. The database to connect to in order to
|
|
125
|
+
# create the restored databases. If blank, "postgres" is used
|
|
126
|
+
# This field is available in Comet 26.11.0 and later.
|
|
127
|
+
# @type [String] postgres_connect_database
|
|
128
|
+
attr_accessor :postgres_connect_database
|
|
129
|
+
|
|
106
130
|
# For RESTORETYPE_MSSQL.
|
|
107
131
|
# @type [Comet::MSSQLLoginArgs] ms_sql_connection
|
|
108
132
|
attr_accessor :ms_sql_connection
|
|
@@ -121,6 +145,13 @@ module Comet
|
|
|
121
145
|
# @type [Comet::ProxmoxRestoreTargetOptions] proxmox_connection
|
|
122
146
|
attr_accessor :proxmox_connection
|
|
123
147
|
|
|
148
|
+
# For RESTORETYPE_CLOUD_STORAGE. Describes the target cloud/remote storage
|
|
149
|
+
# location. The destination path (subdir/prefix) is taken from the fields
|
|
150
|
+
# inside this DestinationLocation - no separate DestPath is used.
|
|
151
|
+
# This field is available in Comet 26.8.1 and later.
|
|
152
|
+
# @type [Comet::DestinationLocation] destination_location
|
|
153
|
+
attr_accessor :destination_location
|
|
154
|
+
|
|
124
155
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
125
156
|
attr_accessor :unknown_json_fields
|
|
126
157
|
|
|
@@ -141,10 +172,12 @@ module Comet
|
|
|
141
172
|
@ssl_ca_file = ''
|
|
142
173
|
@ssl_crt_file = ''
|
|
143
174
|
@ssl_key_file = ''
|
|
175
|
+
@postgres_connect_database = ''
|
|
144
176
|
@ms_sql_connection = Comet::MSSQLLoginArgs.new
|
|
145
177
|
@vmware_connection = Comet::VMwareRestoreTargetOptions.new
|
|
146
178
|
@hyper_vconnection = Comet::HyperVRestoreTargetOptions.new
|
|
147
179
|
@proxmox_connection = Comet::ProxmoxRestoreTargetOptions.new
|
|
180
|
+
@destination_location = Comet::DestinationLocation.new
|
|
148
181
|
@unknown_json_fields = {}
|
|
149
182
|
end
|
|
150
183
|
|
|
@@ -198,9 +231,13 @@ module Comet
|
|
|
198
231
|
@skip_unreadable_chunks = v
|
|
199
232
|
when 'OnDiskIndexesKey'
|
|
200
233
|
@on_disk_indexes_key = v
|
|
234
|
+
when 'PreventAutoSparsify'
|
|
235
|
+
@prevent_auto_sparsify = v
|
|
201
236
|
when 'Office365Credential'
|
|
202
237
|
@office_365credential = Comet::Office365Credential.new
|
|
203
238
|
@office_365credential.from_hash(v)
|
|
239
|
+
when 'Office365SkipExisting'
|
|
240
|
+
@office_365skip_existing = v
|
|
204
241
|
when 'Username'
|
|
205
242
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
206
243
|
|
|
@@ -233,6 +270,10 @@ module Comet
|
|
|
233
270
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
234
271
|
|
|
235
272
|
@ssl_key_file = v
|
|
273
|
+
when 'PostgresConnectDatabase'
|
|
274
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
275
|
+
|
|
276
|
+
@postgres_connect_database = v
|
|
236
277
|
when 'MsSqlConnection'
|
|
237
278
|
@ms_sql_connection = Comet::MSSQLLoginArgs.new
|
|
238
279
|
@ms_sql_connection.from_hash(v)
|
|
@@ -245,6 +286,9 @@ module Comet
|
|
|
245
286
|
when 'ProxmoxConnection'
|
|
246
287
|
@proxmox_connection = Comet::ProxmoxRestoreTargetOptions.new
|
|
247
288
|
@proxmox_connection.from_hash(v)
|
|
289
|
+
when 'DestinationLocation'
|
|
290
|
+
@destination_location = Comet::DestinationLocation.new
|
|
291
|
+
@destination_location.from_hash(v)
|
|
248
292
|
else
|
|
249
293
|
@unknown_json_fields[k] = v
|
|
250
294
|
end
|
|
@@ -265,9 +309,15 @@ module Comet
|
|
|
265
309
|
ret['ArchiveFormat'] = @archive_format
|
|
266
310
|
ret['SkipUnreadableChunks'] = @skip_unreadable_chunks
|
|
267
311
|
ret['OnDiskIndexesKey'] = @on_disk_indexes_key
|
|
312
|
+
unless @prevent_auto_sparsify.nil?
|
|
313
|
+
ret['PreventAutoSparsify'] = @prevent_auto_sparsify
|
|
314
|
+
end
|
|
268
315
|
unless @office_365credential.nil?
|
|
269
316
|
ret['Office365Credential'] = @office_365credential
|
|
270
317
|
end
|
|
318
|
+
unless @office_365skip_existing.nil?
|
|
319
|
+
ret['Office365SkipExisting'] = @office_365skip_existing
|
|
320
|
+
end
|
|
271
321
|
ret['Username'] = @username
|
|
272
322
|
ret['Password'] = @password
|
|
273
323
|
ret['Host'] = @host
|
|
@@ -277,6 +327,9 @@ module Comet
|
|
|
277
327
|
ret['SslCaFile'] = @ssl_ca_file
|
|
278
328
|
ret['SslCrtFile'] = @ssl_crt_file
|
|
279
329
|
ret['SslKeyFile'] = @ssl_key_file
|
|
330
|
+
unless @postgres_connect_database.nil?
|
|
331
|
+
ret['PostgresConnectDatabase'] = @postgres_connect_database
|
|
332
|
+
end
|
|
280
333
|
unless @ms_sql_connection.nil?
|
|
281
334
|
ret['MsSqlConnection'] = @ms_sql_connection
|
|
282
335
|
end
|
|
@@ -289,6 +342,9 @@ module Comet
|
|
|
289
342
|
unless @proxmox_connection.nil?
|
|
290
343
|
ret['ProxmoxConnection'] = @proxmox_connection
|
|
291
344
|
end
|
|
345
|
+
unless @destination_location.nil?
|
|
346
|
+
ret['DestinationLocation'] = @destination_location
|
|
347
|
+
end
|
|
292
348
|
@unknown_json_fields.each do |k, v|
|
|
293
349
|
ret[k] = v
|
|
294
350
|
end
|