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
|
|
@@ -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
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
# SelfBackupEventData is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
# SelfBackupEventData is the Data payload for the SEVT_SELFBACKUP_START, SEVT_SELFBACKUP_SUCCEEDED
|
|
14
|
+
# and SEVT_SELFBACKUP_FAILED events.
|
|
15
|
+
# This type is available in Comet 26.11.1 and later.
|
|
16
|
+
class SelfBackupEventData
|
|
17
|
+
|
|
18
|
+
# For a System Self-Backup, the position of this target in ServerMetaVersionInfo.SelfBackup. Not
|
|
19
|
+
# meaningful for a tenant export.
|
|
20
|
+
# @type [Number] target_index
|
|
21
|
+
attr_accessor :target_index
|
|
22
|
+
|
|
23
|
+
# For a tenant export, the ID of the exported tenant. Empty for a System Self-Backup.
|
|
24
|
+
# @type [String] organization_id
|
|
25
|
+
attr_accessor :organization_id
|
|
26
|
+
|
|
27
|
+
# One of the DESTINATIONTYPE_ constants
|
|
28
|
+
# @type [Number] destination_type
|
|
29
|
+
attr_accessor :destination_type
|
|
30
|
+
|
|
31
|
+
# Unix timestamp, in seconds.
|
|
32
|
+
# @type [Number] start_time
|
|
33
|
+
attr_accessor :start_time
|
|
34
|
+
|
|
35
|
+
# Unix timestamp, in seconds. Zero in SEVT_SELFBACKUP_START events.
|
|
36
|
+
# @type [Number] end_time
|
|
37
|
+
attr_accessor :end_time
|
|
38
|
+
|
|
39
|
+
# True in SEVT_SELFBACKUP_SUCCEEDED events, and false otherwise.
|
|
40
|
+
# @type [Boolean] success
|
|
41
|
+
attr_accessor :success
|
|
42
|
+
|
|
43
|
+
# Size of the self-backup archive, in bytes. Zero in SEVT_SELFBACKUP_START events.
|
|
44
|
+
# @type [Number] size
|
|
45
|
+
attr_accessor :size
|
|
46
|
+
|
|
47
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
48
|
+
attr_accessor :unknown_json_fields
|
|
49
|
+
|
|
50
|
+
def initialize
|
|
51
|
+
clear
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def clear
|
|
55
|
+
@target_index = 0
|
|
56
|
+
@organization_id = ''
|
|
57
|
+
@destination_type = 0
|
|
58
|
+
@start_time = 0
|
|
59
|
+
@end_time = 0
|
|
60
|
+
@size = 0
|
|
61
|
+
@unknown_json_fields = {}
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# @param [String] json_string The complete object in JSON format
|
|
65
|
+
def from_json(json_string)
|
|
66
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
67
|
+
|
|
68
|
+
from_hash(JSON.parse(json_string))
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
72
|
+
def from_hash(obj)
|
|
73
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
74
|
+
|
|
75
|
+
obj.each do |k, v|
|
|
76
|
+
case k
|
|
77
|
+
when 'TargetIndex'
|
|
78
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
79
|
+
|
|
80
|
+
@target_index = v
|
|
81
|
+
when 'OrganizationID'
|
|
82
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
83
|
+
|
|
84
|
+
@organization_id = v
|
|
85
|
+
when 'DestinationType'
|
|
86
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
87
|
+
|
|
88
|
+
@destination_type = v
|
|
89
|
+
when 'StartTime'
|
|
90
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
91
|
+
|
|
92
|
+
@start_time = v
|
|
93
|
+
when 'EndTime'
|
|
94
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
95
|
+
|
|
96
|
+
@end_time = v
|
|
97
|
+
when 'Success'
|
|
98
|
+
@success = v
|
|
99
|
+
when 'Size'
|
|
100
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
101
|
+
|
|
102
|
+
@size = v
|
|
103
|
+
else
|
|
104
|
+
@unknown_json_fields[k] = v
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
110
|
+
def to_hash
|
|
111
|
+
ret = {}
|
|
112
|
+
ret['TargetIndex'] = @target_index
|
|
113
|
+
ret['OrganizationID'] = @organization_id
|
|
114
|
+
ret['DestinationType'] = @destination_type
|
|
115
|
+
ret['StartTime'] = @start_time
|
|
116
|
+
ret['EndTime'] = @end_time
|
|
117
|
+
ret['Success'] = @success
|
|
118
|
+
ret['Size'] = @size
|
|
119
|
+
@unknown_json_fields.each do |k, v|
|
|
120
|
+
ret[k] = v
|
|
121
|
+
end
|
|
122
|
+
ret
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
126
|
+
def to_h
|
|
127
|
+
to_hash
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# @return [String] The complete object as a JSON string
|
|
131
|
+
def to_json(options = {})
|
|
132
|
+
to_hash.to_json(options)
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
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
|
|
@@ -46,10 +46,15 @@ module Comet
|
|
|
46
46
|
# @type [Comet::RatelimitOptions] iprate_limit
|
|
47
47
|
attr_accessor :iprate_limit
|
|
48
48
|
|
|
49
|
+
# Enable these options to block repeated failed login attempts to the Comet Server.
|
|
49
50
|
# This field is available in Comet 24.9.x and later.
|
|
50
51
|
# @type [Comet::LoginProtectionOptions] login_protection
|
|
51
52
|
attr_accessor :login_protection
|
|
52
53
|
|
|
54
|
+
# Configure the in-process DNS cache used for outbound HTTP requests.
|
|
55
|
+
# @type [Comet::DNSCacheOptions] dnscache
|
|
56
|
+
attr_accessor :dnscache
|
|
57
|
+
|
|
53
58
|
# @type [Comet::LicenseOptions] license
|
|
54
59
|
attr_accessor :license
|
|
55
60
|
|
|
@@ -78,18 +83,57 @@ module Comet
|
|
|
78
83
|
# @type [Comet::StorageRoleOptions] storage_role
|
|
79
84
|
attr_accessor :storage_role
|
|
80
85
|
|
|
86
|
+
# Defense-in-depth allowlist of permitted PKCS#11 driver module paths during Authenticode
|
|
87
|
+
# codesigning. Top-level only - not read from per-tenant configuration.
|
|
88
|
+
# This field is available in Comet 26.8.1 and later.
|
|
89
|
+
# @type [Comet::Pkcs11AllowlistOptions] pkcs_11allowlist
|
|
90
|
+
attr_accessor :pkcs_11allowlist
|
|
91
|
+
|
|
81
92
|
# If true, the X-Forwarded-For header will be trusted for the purposes of IP allowlisting. This
|
|
82
93
|
# should only be enabled when you explicitly configure Comet Server behind a reverse proxy,
|
|
83
94
|
# otherwise it could allow malicious users to bypass the IP allowlist.
|
|
84
95
|
# @type [Boolean] trust_xforwarded_for
|
|
85
96
|
attr_accessor :trust_xforwarded_for
|
|
86
97
|
|
|
98
|
+
# If true, this Comet Server may send email through SMTP servers on loopback, RFC1918, or other
|
|
99
|
+
# private/link-local IP addresses. Enable this only if you intentionally run an SMTP relay on the
|
|
100
|
+
# LAN. Otherwise a tenant admin who controls SMTP host or recipient settings could direct outbound
|
|
101
|
+
# SMTP traffic at internal network services. If unset (null), Comet Server picks a value at startup
|
|
102
|
+
# by DNS-resolving the currently configured SMTP servers: enabled if any resolve to a private
|
|
103
|
+
# address (preserves the behavior of servers upgrading from a version without this setting),
|
|
104
|
+
# disabled otherwise.
|
|
105
|
+
# This field is available in Comet 26.9.x and later.
|
|
106
|
+
# @type [Boolean] allow_email_delivery_to_private_addresses
|
|
107
|
+
attr_accessor :allow_email_delivery_to_private_addresses
|
|
108
|
+
|
|
87
109
|
# @type [Hash{String => Comet::WebhookOption}] webhook_options
|
|
88
110
|
attr_accessor :webhook_options
|
|
89
111
|
|
|
90
112
|
# @type [Hash{String => Comet::FileOption}] audit_file_options
|
|
91
113
|
attr_accessor :audit_file_options
|
|
92
114
|
|
|
115
|
+
# Start a new Bulk Upgrade Campaign at each server start using the saved campaign options
|
|
116
|
+
# This field is available in Comet 26.5.5 and later.
|
|
117
|
+
# @type [Boolean] auto_start_upgrade_campaign
|
|
118
|
+
attr_accessor :auto_start_upgrade_campaign
|
|
119
|
+
|
|
120
|
+
# Saved campaign options reused at startup
|
|
121
|
+
# This field is available in Comet 26.5.5 and later.
|
|
122
|
+
# @type [Comet::UpdateCampaignOptions] auto_start_upgrade_campaign_options
|
|
123
|
+
attr_accessor :auto_start_upgrade_campaign_options
|
|
124
|
+
|
|
125
|
+
# Custom JavaScript / CSS injected into the web interface of the top-level organization and all
|
|
126
|
+
# tenants. Can only be configured by a top-level admin
|
|
127
|
+
# This field is available in Comet 26.8.2 and later.
|
|
128
|
+
# @type [Comet::CustomBrandingOptions] custom_branding
|
|
129
|
+
attr_accessor :custom_branding
|
|
130
|
+
|
|
131
|
+
# If true, admin accounts may create personal API tokens and authenticate using them. Defaults to
|
|
132
|
+
# true on new installations, and false when upgrading from a version without this feature.
|
|
133
|
+
# This field is available in Comet 26.8.4 and later.
|
|
134
|
+
# @type [Boolean] allow_admin_apitokens
|
|
135
|
+
attr_accessor :allow_admin_apitokens
|
|
136
|
+
|
|
93
137
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
94
138
|
attr_accessor :unknown_json_fields
|
|
95
139
|
|
|
@@ -108,6 +152,7 @@ module Comet
|
|
|
108
152
|
@external_admin_user_sources = {}
|
|
109
153
|
@iprate_limit = Comet::RatelimitOptions.new
|
|
110
154
|
@login_protection = Comet::LoginProtectionOptions.new
|
|
155
|
+
@dnscache = Comet::DNSCacheOptions.new
|
|
111
156
|
@license = Comet::LicenseOptions.new
|
|
112
157
|
@listen_addresses = []
|
|
113
158
|
@organizations = {}
|
|
@@ -116,8 +161,11 @@ module Comet
|
|
|
116
161
|
@session_settings = Comet::SessionOptions.new
|
|
117
162
|
@software_build_role = Comet::SoftwareBuildRoleOptions.new
|
|
118
163
|
@storage_role = Comet::StorageRoleOptions.new
|
|
164
|
+
@pkcs_11allowlist = Comet::Pkcs11AllowlistOptions.new
|
|
119
165
|
@webhook_options = {}
|
|
120
166
|
@audit_file_options = {}
|
|
167
|
+
@auto_start_upgrade_campaign_options = Comet::UpdateCampaignOptions.new
|
|
168
|
+
@custom_branding = Comet::CustomBrandingOptions.new
|
|
121
169
|
@unknown_json_fields = {}
|
|
122
170
|
end
|
|
123
171
|
|
|
@@ -186,6 +234,9 @@ module Comet
|
|
|
186
234
|
when 'LoginProtection'
|
|
187
235
|
@login_protection = Comet::LoginProtectionOptions.new
|
|
188
236
|
@login_protection.from_hash(v)
|
|
237
|
+
when 'DNSCache'
|
|
238
|
+
@dnscache = Comet::DNSCacheOptions.new
|
|
239
|
+
@dnscache.from_hash(v)
|
|
189
240
|
when 'License'
|
|
190
241
|
@license = Comet::LicenseOptions.new
|
|
191
242
|
@license.from_hash(v)
|
|
@@ -231,8 +282,13 @@ module Comet
|
|
|
231
282
|
when 'StorageRole'
|
|
232
283
|
@storage_role = Comet::StorageRoleOptions.new
|
|
233
284
|
@storage_role.from_hash(v)
|
|
285
|
+
when 'Pkcs11Allowlist'
|
|
286
|
+
@pkcs_11allowlist = Comet::Pkcs11AllowlistOptions.new
|
|
287
|
+
@pkcs_11allowlist.from_hash(v)
|
|
234
288
|
when 'TrustXForwardedFor'
|
|
235
289
|
@trust_xforwarded_for = v
|
|
290
|
+
when 'AllowEmailDeliveryToPrivateAddresses'
|
|
291
|
+
@allow_email_delivery_to_private_addresses = v
|
|
236
292
|
when 'WebhookOptions'
|
|
237
293
|
@webhook_options = {}
|
|
238
294
|
if v.nil?
|
|
@@ -253,6 +309,16 @@ module Comet
|
|
|
253
309
|
@audit_file_options[k1].from_hash(v1)
|
|
254
310
|
end
|
|
255
311
|
end
|
|
312
|
+
when 'AutoStartUpgradeCampaign'
|
|
313
|
+
@auto_start_upgrade_campaign = v
|
|
314
|
+
when 'AutoStartUpgradeCampaignOptions'
|
|
315
|
+
@auto_start_upgrade_campaign_options = Comet::UpdateCampaignOptions.new
|
|
316
|
+
@auto_start_upgrade_campaign_options.from_hash(v)
|
|
317
|
+
when 'CustomBranding'
|
|
318
|
+
@custom_branding = Comet::CustomBrandingOptions.new
|
|
319
|
+
@custom_branding.from_hash(v)
|
|
320
|
+
when 'AllowAdminAPITokens'
|
|
321
|
+
@allow_admin_apitokens = v
|
|
256
322
|
else
|
|
257
323
|
@unknown_json_fields[k] = v
|
|
258
324
|
end
|
|
@@ -276,6 +342,7 @@ module Comet
|
|
|
276
342
|
ret['ExternalAdminUserSources'] = @external_admin_user_sources
|
|
277
343
|
ret['IPRateLimit'] = @iprate_limit
|
|
278
344
|
ret['LoginProtection'] = @login_protection
|
|
345
|
+
ret['DNSCache'] = @dnscache
|
|
279
346
|
ret['License'] = @license
|
|
280
347
|
ret['ListenAddresses'] = @listen_addresses
|
|
281
348
|
ret['Organizations'] = @organizations
|
|
@@ -284,9 +351,17 @@ module Comet
|
|
|
284
351
|
ret['SessionSettings'] = @session_settings
|
|
285
352
|
ret['SoftwareBuildRole'] = @software_build_role
|
|
286
353
|
ret['StorageRole'] = @storage_role
|
|
354
|
+
ret['Pkcs11Allowlist'] = @pkcs_11allowlist
|
|
287
355
|
ret['TrustXForwardedFor'] = @trust_xforwarded_for
|
|
356
|
+
unless @allow_email_delivery_to_private_addresses.nil?
|
|
357
|
+
ret['AllowEmailDeliveryToPrivateAddresses'] = @allow_email_delivery_to_private_addresses
|
|
358
|
+
end
|
|
288
359
|
ret['WebhookOptions'] = @webhook_options
|
|
289
360
|
ret['AuditFileOptions'] = @audit_file_options
|
|
361
|
+
ret['AutoStartUpgradeCampaign'] = @auto_start_upgrade_campaign
|
|
362
|
+
ret['AutoStartUpgradeCampaignOptions'] = @auto_start_upgrade_campaign_options
|
|
363
|
+
ret['CustomBranding'] = @custom_branding
|
|
364
|
+
ret['AllowAdminAPITokens'] = @allow_admin_apitokens
|
|
290
365
|
@unknown_json_fields.each do |k, v|
|
|
291
366
|
ret[k] = v
|
|
292
367
|
end
|