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
|
@@ -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
|
|
@@ -17,9 +17,9 @@ module Comet
|
|
|
17
17
|
|
|
18
18
|
# A list of strings describing which groups of snapshots rely on reaching this component of data.
|
|
19
19
|
# The strings may take the following formats:
|
|
20
|
-
# - source_id
|
|
20
|
+
# - CURRENT/source_id - this data is required by the most recent backup job snapshot for the listed
|
|
21
21
|
# Protected Item source.
|
|
22
|
-
# - source_id
|
|
22
|
+
# - HISTORIC/source_id - this data is required by an older backup job snapshot for the listed
|
|
23
23
|
# Protected Item source.
|
|
24
24
|
# - TRUNCATED/* - there are too many separate components to show, and this component represents data
|
|
25
25
|
# that is used by some other combination of components. If present, it will be the only entry in the
|
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
# CustomBrandingItem is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class CustomBrandingItem
|
|
14
|
+
|
|
15
|
+
# Display label for this item in the Comet Server web interface
|
|
16
|
+
# @type [String] description
|
|
17
|
+
attr_accessor :description
|
|
18
|
+
|
|
19
|
+
# One of the CUSTOMBRANDING_CONTENT_ constants
|
|
20
|
+
# @type [String] content_type
|
|
21
|
+
attr_accessor :content_type
|
|
22
|
+
|
|
23
|
+
# One of the CUSTOMBRANDING_SOURCE_ constants
|
|
24
|
+
# @type [String] source_type
|
|
25
|
+
attr_accessor :source_type
|
|
26
|
+
|
|
27
|
+
# One of the CUSTOMBRANDING_PLACEMENT_ constants. An empty string defaults to head placement
|
|
28
|
+
# @type [String] placement
|
|
29
|
+
attr_accessor :placement
|
|
30
|
+
|
|
31
|
+
# Inline JavaScript or CSS source text. Only used when SourceType is inline. For inline JavaScript,
|
|
32
|
+
# the Content-Security-Policy is automatically extended with this script's SHA-256 hash
|
|
33
|
+
# @type [String] content
|
|
34
|
+
attr_accessor :content
|
|
35
|
+
|
|
36
|
+
# Absolute http(s) URL of an external script or stylesheet. Only used when SourceType is url. The
|
|
37
|
+
# URL's origin is automatically added to the relevant Content-Security-Policy directive
|
|
38
|
+
# @type [String] url
|
|
39
|
+
attr_accessor :url
|
|
40
|
+
|
|
41
|
+
# Extra origins that the injected code needs to contact (XHR / beacon / tracking pixel), added to
|
|
42
|
+
# the web interface Content-Security-Policy
|
|
43
|
+
# @type [Array<Comet::CustomBrandingOrigin>] additional_network_origins
|
|
44
|
+
attr_accessor :additional_network_origins
|
|
45
|
+
|
|
46
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
47
|
+
attr_accessor :unknown_json_fields
|
|
48
|
+
|
|
49
|
+
def initialize
|
|
50
|
+
clear
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def clear
|
|
54
|
+
@description = ''
|
|
55
|
+
@content_type = ''
|
|
56
|
+
@source_type = ''
|
|
57
|
+
@placement = ''
|
|
58
|
+
@content = ''
|
|
59
|
+
@url = ''
|
|
60
|
+
@additional_network_origins = []
|
|
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 'Description'
|
|
78
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
79
|
+
|
|
80
|
+
@description = v
|
|
81
|
+
when 'ContentType'
|
|
82
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
83
|
+
|
|
84
|
+
@content_type = v
|
|
85
|
+
when 'SourceType'
|
|
86
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
87
|
+
|
|
88
|
+
@source_type = v
|
|
89
|
+
when 'Placement'
|
|
90
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
91
|
+
|
|
92
|
+
@placement = v
|
|
93
|
+
when 'Content'
|
|
94
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
95
|
+
|
|
96
|
+
@content = v
|
|
97
|
+
when 'URL'
|
|
98
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
99
|
+
|
|
100
|
+
@url = v
|
|
101
|
+
when 'AdditionalNetworkOrigins'
|
|
102
|
+
if v.nil?
|
|
103
|
+
@additional_network_origins = []
|
|
104
|
+
else
|
|
105
|
+
@additional_network_origins = Array.new(v.length)
|
|
106
|
+
v.each_with_index do |v1, i1|
|
|
107
|
+
@additional_network_origins[i1] = Comet::CustomBrandingOrigin.new
|
|
108
|
+
@additional_network_origins[i1].from_hash(v1)
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
else
|
|
112
|
+
@unknown_json_fields[k] = v
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
118
|
+
def to_hash
|
|
119
|
+
ret = {}
|
|
120
|
+
ret['Description'] = @description
|
|
121
|
+
ret['ContentType'] = @content_type
|
|
122
|
+
ret['SourceType'] = @source_type
|
|
123
|
+
ret['Placement'] = @placement
|
|
124
|
+
ret['Content'] = @content
|
|
125
|
+
ret['URL'] = @url
|
|
126
|
+
ret['AdditionalNetworkOrigins'] = @additional_network_origins
|
|
127
|
+
@unknown_json_fields.each do |k, v|
|
|
128
|
+
ret[k] = v
|
|
129
|
+
end
|
|
130
|
+
ret
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
134
|
+
def to_h
|
|
135
|
+
to_hash
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# @return [String] The complete object as a JSON string
|
|
139
|
+
def to_json(options = {})
|
|
140
|
+
to_hash.to_json(options)
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
# CustomBrandingOptions is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class CustomBrandingOptions
|
|
14
|
+
|
|
15
|
+
# @type [Array<Comet::CustomBrandingItem>] items
|
|
16
|
+
attr_accessor :items
|
|
17
|
+
|
|
18
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
19
|
+
attr_accessor :unknown_json_fields
|
|
20
|
+
|
|
21
|
+
def initialize
|
|
22
|
+
clear
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def clear
|
|
26
|
+
@items = []
|
|
27
|
+
@unknown_json_fields = {}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# @param [String] json_string The complete object in JSON format
|
|
31
|
+
def from_json(json_string)
|
|
32
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
33
|
+
|
|
34
|
+
from_hash(JSON.parse(json_string))
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
38
|
+
def from_hash(obj)
|
|
39
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
40
|
+
|
|
41
|
+
obj.each do |k, v|
|
|
42
|
+
case k
|
|
43
|
+
when 'Items'
|
|
44
|
+
if v.nil?
|
|
45
|
+
@items = []
|
|
46
|
+
else
|
|
47
|
+
@items = Array.new(v.length)
|
|
48
|
+
v.each_with_index do |v1, i1|
|
|
49
|
+
@items[i1] = Comet::CustomBrandingItem.new
|
|
50
|
+
@items[i1].from_hash(v1)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
else
|
|
54
|
+
@unknown_json_fields[k] = v
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
60
|
+
def to_hash
|
|
61
|
+
ret = {}
|
|
62
|
+
ret['Items'] = @items
|
|
63
|
+
@unknown_json_fields.each do |k, v|
|
|
64
|
+
ret[k] = v
|
|
65
|
+
end
|
|
66
|
+
ret
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
70
|
+
def to_h
|
|
71
|
+
to_hash
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# @return [String] The complete object as a JSON string
|
|
75
|
+
def to_json(options = {})
|
|
76
|
+
to_hash.to_json(options)
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
# CustomBrandingOrigin is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class CustomBrandingOrigin
|
|
14
|
+
|
|
15
|
+
# A web origin in scheme://host[:port] form. It is added to the connect-src and img-src directives
|
|
16
|
+
# of the web interface Content-Security-Policy, allowing injected code to contact it (e.g. an
|
|
17
|
+
# analytics ingestion endpoint)
|
|
18
|
+
# @type [String] origin
|
|
19
|
+
attr_accessor :origin
|
|
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
|
+
@origin = ''
|
|
30
|
+
@unknown_json_fields = {}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# @param [String] json_string The complete object in JSON format
|
|
34
|
+
def from_json(json_string)
|
|
35
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
36
|
+
|
|
37
|
+
from_hash(JSON.parse(json_string))
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
41
|
+
def from_hash(obj)
|
|
42
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
43
|
+
|
|
44
|
+
obj.each do |k, v|
|
|
45
|
+
case k
|
|
46
|
+
when 'Origin'
|
|
47
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
48
|
+
|
|
49
|
+
@origin = v
|
|
50
|
+
else
|
|
51
|
+
@unknown_json_fields[k] = v
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
57
|
+
def to_hash
|
|
58
|
+
ret = {}
|
|
59
|
+
ret['Origin'] = @origin
|
|
60
|
+
@unknown_json_fields.each do |k, v|
|
|
61
|
+
ret[k] = v
|
|
62
|
+
end
|
|
63
|
+
ret
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
67
|
+
def to_h
|
|
68
|
+
to_hash
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# @return [String] The complete object as a JSON string
|
|
72
|
+
def to_json(options = {})
|
|
73
|
+
to_hash.to_json(options)
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
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
|
|
@@ -23,6 +23,10 @@ module Comet
|
|
|
23
23
|
# @type [Number] modify_time
|
|
24
24
|
attr_accessor :modify_time
|
|
25
25
|
|
|
26
|
+
# Unix timestamp in seconds. A 0 value indicates unsuspended
|
|
27
|
+
# @type [Number] suspended_time
|
|
28
|
+
attr_accessor :suspended_time
|
|
29
|
+
|
|
26
30
|
# Custom commands to run before the job
|
|
27
31
|
# @type [Array<String>] pre_exec
|
|
28
32
|
attr_accessor :pre_exec
|
|
@@ -175,7 +179,7 @@ module Comet
|
|
|
175
179
|
# @type [String] localcopy_win_smbpassword
|
|
176
180
|
attr_accessor :localcopy_win_smbpassword
|
|
177
181
|
|
|
178
|
-
# One of the
|
|
182
|
+
# One of the ENCRYPTIONMETHOD_ constants. It controls the hash format of the LocalcopyWinSMBPassword
|
|
179
183
|
# field.
|
|
180
184
|
# @type [Number] localcopy_win_smbpassword_format
|
|
181
185
|
attr_accessor :localcopy_win_smbpassword_format
|
|
@@ -196,6 +200,10 @@ module Comet
|
|
|
196
200
|
# @type [Comet::SMBDestinationLocation] smb
|
|
197
201
|
attr_accessor :smb
|
|
198
202
|
|
|
203
|
+
# This field is available in Comet 26.9.x and later.
|
|
204
|
+
# @type [Comet::NFSDestinationLocation] nfs
|
|
205
|
+
attr_accessor :nfs
|
|
206
|
+
|
|
199
207
|
# A list of underlying destinations, that will be combined and presented as one.
|
|
200
208
|
# @type [Array<Comet::DestinationLocation>] span_targets
|
|
201
209
|
attr_accessor :span_targets
|
|
@@ -236,6 +244,11 @@ module Comet
|
|
|
236
244
|
# @type [Number] storage_limit_bytes
|
|
237
245
|
attr_accessor :storage_limit_bytes
|
|
238
246
|
|
|
247
|
+
# If set, use a shared Storage Vault quota from the Comet Management Console. The direct value of
|
|
248
|
+
# StorageLimitBytes is ignored.
|
|
249
|
+
# @type [String] storage_limit_id
|
|
250
|
+
attr_accessor :storage_limit_id
|
|
251
|
+
|
|
239
252
|
# @type [Comet::DestinationStatistics] statistics
|
|
240
253
|
attr_accessor :statistics
|
|
241
254
|
|
|
@@ -249,6 +262,13 @@ module Comet
|
|
|
249
262
|
# @type [Boolean] rebrand_storage
|
|
250
263
|
attr_accessor :rebrand_storage
|
|
251
264
|
|
|
265
|
+
# If true, the end-user account is prevented from modifying this Storage Vault (e.g. its quota,
|
|
266
|
+
# retention rules, or storage location), regardless of the account policy's PreventEditStorageVault
|
|
267
|
+
# setting - it takes priority over that policy. Typically set by the Storage Template that
|
|
268
|
+
# provisioned this Storage Vault.
|
|
269
|
+
# @type [Boolean] prevent_user_edit
|
|
270
|
+
attr_accessor :prevent_user_edit
|
|
271
|
+
|
|
252
272
|
# If not empty, an error occured during a retention pass. Describes the error.
|
|
253
273
|
# @type [String] retention_error
|
|
254
274
|
attr_accessor :retention_error
|
|
@@ -267,6 +287,7 @@ module Comet
|
|
|
267
287
|
@description = ''
|
|
268
288
|
@create_time = 0
|
|
269
289
|
@modify_time = 0
|
|
290
|
+
@suspended_time = 0
|
|
270
291
|
@pre_exec = []
|
|
271
292
|
@thaw_exec = []
|
|
272
293
|
@post_exec = []
|
|
@@ -310,12 +331,14 @@ module Comet
|
|
|
310
331
|
@web_dav = Comet::WebDavDestinationLocation.new
|
|
311
332
|
@storj = Comet::StorjDestinationLocation.new
|
|
312
333
|
@smb = Comet::SMBDestinationLocation.new
|
|
334
|
+
@nfs = Comet::NFSDestinationLocation.new
|
|
313
335
|
@span_targets = []
|
|
314
336
|
@tag = ''
|
|
315
337
|
@encryption_key_encryption_method = 0
|
|
316
338
|
@encrypted_encryption_key = ''
|
|
317
339
|
@repo_init_timestamp = 0
|
|
318
340
|
@storage_limit_bytes = 0
|
|
341
|
+
@storage_limit_id = ''
|
|
319
342
|
@statistics = Comet::DestinationStatistics.new
|
|
320
343
|
@default_retention = Comet::RetentionPolicy.new
|
|
321
344
|
@retention_error = ''
|
|
@@ -348,6 +371,10 @@ module Comet
|
|
|
348
371
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
349
372
|
|
|
350
373
|
@modify_time = v
|
|
374
|
+
when 'SuspendedTime'
|
|
375
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
376
|
+
|
|
377
|
+
@suspended_time = v
|
|
351
378
|
when 'PreExec'
|
|
352
379
|
if v.nil?
|
|
353
380
|
@pre_exec = []
|
|
@@ -548,6 +575,9 @@ module Comet
|
|
|
548
575
|
when 'SMB'
|
|
549
576
|
@smb = Comet::SMBDestinationLocation.new
|
|
550
577
|
@smb.from_hash(v)
|
|
578
|
+
when 'NFS'
|
|
579
|
+
@nfs = Comet::NFSDestinationLocation.new
|
|
580
|
+
@nfs.from_hash(v)
|
|
551
581
|
when 'SpanTargets'
|
|
552
582
|
if v.nil?
|
|
553
583
|
@span_targets = []
|
|
@@ -582,6 +612,10 @@ module Comet
|
|
|
582
612
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
583
613
|
|
|
584
614
|
@storage_limit_bytes = v
|
|
615
|
+
when 'StorageLimitID'
|
|
616
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
617
|
+
|
|
618
|
+
@storage_limit_id = v
|
|
585
619
|
when 'Statistics'
|
|
586
620
|
@statistics = Comet::DestinationStatistics.new
|
|
587
621
|
@statistics.from_hash(v)
|
|
@@ -590,6 +624,8 @@ module Comet
|
|
|
590
624
|
@default_retention.from_hash(v)
|
|
591
625
|
when 'RebrandStorage'
|
|
592
626
|
@rebrand_storage = v
|
|
627
|
+
when 'PreventUserEdit'
|
|
628
|
+
@prevent_user_edit = v
|
|
593
629
|
when 'RetentionError'
|
|
594
630
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
595
631
|
|
|
@@ -617,6 +653,7 @@ module Comet
|
|
|
617
653
|
ret['Description'] = @description
|
|
618
654
|
ret['CreateTime'] = @create_time
|
|
619
655
|
ret['ModifyTime'] = @modify_time
|
|
656
|
+
ret['SuspendedTime'] = @suspended_time
|
|
620
657
|
ret['PreExec'] = @pre_exec
|
|
621
658
|
ret['ThawExec'] = @thaw_exec
|
|
622
659
|
ret['PostExec'] = @post_exec
|
|
@@ -666,6 +703,7 @@ module Comet
|
|
|
666
703
|
ret['WebDav'] = @web_dav
|
|
667
704
|
ret['Storj'] = @storj
|
|
668
705
|
ret['SMB'] = @smb
|
|
706
|
+
ret['NFS'] = @nfs
|
|
669
707
|
ret['SpanTargets'] = @span_targets
|
|
670
708
|
ret['SpanUseStaticSlots'] = @span_use_static_slots
|
|
671
709
|
ret['Tag'] = @tag
|
|
@@ -674,11 +712,11 @@ module Comet
|
|
|
674
712
|
ret['RepoInitTimestamp'] = @repo_init_timestamp
|
|
675
713
|
ret['StorageLimitEnabled'] = @storage_limit_enabled
|
|
676
714
|
ret['StorageLimitBytes'] = @storage_limit_bytes
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
end
|
|
715
|
+
ret['StorageLimitID'] = @storage_limit_id
|
|
716
|
+
ret['Statistics'] = @statistics
|
|
680
717
|
ret['DefaultRetention'] = @default_retention
|
|
681
718
|
ret['RebrandStorage'] = @rebrand_storage
|
|
719
|
+
ret['PreventUserEdit'] = @prevent_user_edit
|
|
682
720
|
ret['RetentionError'] = @retention_error
|
|
683
721
|
ret['AssociatedDevices'] = @associated_devices
|
|
684
722
|
@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
|
|
@@ -155,7 +155,7 @@ module Comet
|
|
|
155
155
|
# @type [String] localcopy_win_smbpassword
|
|
156
156
|
attr_accessor :localcopy_win_smbpassword
|
|
157
157
|
|
|
158
|
-
# One of the
|
|
158
|
+
# One of the ENCRYPTIONMETHOD_ constants. It controls the hash format of the LocalcopyWinSMBPassword
|
|
159
159
|
# field.
|
|
160
160
|
# @type [Number] localcopy_win_smbpassword_format
|
|
161
161
|
attr_accessor :localcopy_win_smbpassword_format
|
|
@@ -176,6 +176,10 @@ module Comet
|
|
|
176
176
|
# @type [Comet::SMBDestinationLocation] smb
|
|
177
177
|
attr_accessor :smb
|
|
178
178
|
|
|
179
|
+
# This field is available in Comet 26.9.x and later.
|
|
180
|
+
# @type [Comet::NFSDestinationLocation] nfs
|
|
181
|
+
attr_accessor :nfs
|
|
182
|
+
|
|
179
183
|
# A list of underlying destinations, that will be combined and presented as one.
|
|
180
184
|
# @type [Array<Comet::DestinationLocation>] span_targets
|
|
181
185
|
attr_accessor :span_targets
|
|
@@ -244,6 +248,7 @@ module Comet
|
|
|
244
248
|
@web_dav = Comet::WebDavDestinationLocation.new
|
|
245
249
|
@storj = Comet::StorjDestinationLocation.new
|
|
246
250
|
@smb = Comet::SMBDestinationLocation.new
|
|
251
|
+
@nfs = Comet::NFSDestinationLocation.new
|
|
247
252
|
@span_targets = []
|
|
248
253
|
@tag = ''
|
|
249
254
|
@unknown_json_fields = {}
|
|
@@ -429,6 +434,9 @@ module Comet
|
|
|
429
434
|
when 'SMB'
|
|
430
435
|
@smb = Comet::SMBDestinationLocation.new
|
|
431
436
|
@smb.from_hash(v)
|
|
437
|
+
when 'NFS'
|
|
438
|
+
@nfs = Comet::NFSDestinationLocation.new
|
|
439
|
+
@nfs.from_hash(v)
|
|
432
440
|
when 'SpanTargets'
|
|
433
441
|
if v.nil?
|
|
434
442
|
@span_targets = []
|
|
@@ -500,6 +508,7 @@ module Comet
|
|
|
500
508
|
ret['WebDav'] = @web_dav
|
|
501
509
|
ret['Storj'] = @storj
|
|
502
510
|
ret['SMB'] = @smb
|
|
511
|
+
ret['NFS'] = @nfs
|
|
503
512
|
ret['SpanTargets'] = @span_targets
|
|
504
513
|
ret['SpanUseStaticSlots'] = @span_use_static_slots
|
|
505
514
|
ret['Tag'] = @tag
|