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
|
|
@@ -40,6 +40,23 @@ module Comet
|
|
|
40
40
|
# @type [String] syncro_uuid
|
|
41
41
|
attr_accessor :syncro_uuid
|
|
42
42
|
|
|
43
|
+
# This field is available in Comet 26.2.4 and later.
|
|
44
|
+
# @type [Number] ninja_one_node_id
|
|
45
|
+
attr_accessor :ninja_one_node_id
|
|
46
|
+
|
|
47
|
+
# A hash of a hardware-derived secret that the device supplies on every device-scoped API call,
|
|
48
|
+
# binding the device to its DeviceID.
|
|
49
|
+
# The server sets it when the device registers, or on first use for devices registered before this
|
|
50
|
+
# field existed. It is never returned to devices or to the user web interface.
|
|
51
|
+
# In an admin profile update, an empty value leaves the stored hash unchanged, and
|
|
52
|
+
# DEVICE_SECRET_HASH_RESET removes it so that the device binds a new secret on its next connection.
|
|
53
|
+
# @type [String] device_secret_hash
|
|
54
|
+
attr_accessor :device_secret_hash
|
|
55
|
+
|
|
56
|
+
# One of the PASSWORD_FORMAT_ constants
|
|
57
|
+
# @type [Number] device_secret_hash_format
|
|
58
|
+
attr_accessor :device_secret_hash_format
|
|
59
|
+
|
|
43
60
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
44
61
|
attr_accessor :unknown_json_fields
|
|
45
62
|
|
|
@@ -55,6 +72,9 @@ module Comet
|
|
|
55
72
|
@device_timezone = ''
|
|
56
73
|
@client_version = ''
|
|
57
74
|
@syncro_uuid = ''
|
|
75
|
+
@ninja_one_node_id = 0
|
|
76
|
+
@device_secret_hash = ''
|
|
77
|
+
@device_secret_hash_format = 0
|
|
58
78
|
@unknown_json_fields = {}
|
|
59
79
|
end
|
|
60
80
|
|
|
@@ -104,6 +124,18 @@ module Comet
|
|
|
104
124
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
105
125
|
|
|
106
126
|
@syncro_uuid = v
|
|
127
|
+
when 'NinjaOneNodeId'
|
|
128
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
129
|
+
|
|
130
|
+
@ninja_one_node_id = v
|
|
131
|
+
when 'DeviceSecretHash'
|
|
132
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
133
|
+
|
|
134
|
+
@device_secret_hash = v
|
|
135
|
+
when 'DeviceSecretHashFormat'
|
|
136
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
137
|
+
|
|
138
|
+
@device_secret_hash_format = v
|
|
107
139
|
else
|
|
108
140
|
@unknown_json_fields[k] = v
|
|
109
141
|
end
|
|
@@ -132,6 +164,15 @@ module Comet
|
|
|
132
164
|
unless @syncro_uuid.nil?
|
|
133
165
|
ret['SyncroUUID'] = @syncro_uuid
|
|
134
166
|
end
|
|
167
|
+
unless @ninja_one_node_id.nil?
|
|
168
|
+
ret['NinjaOneNodeId'] = @ninja_one_node_id
|
|
169
|
+
end
|
|
170
|
+
unless @device_secret_hash.nil?
|
|
171
|
+
ret['DeviceSecretHash'] = @device_secret_hash
|
|
172
|
+
end
|
|
173
|
+
unless @device_secret_hash_format.nil?
|
|
174
|
+
ret['DeviceSecretHashFormat'] = @device_secret_hash_format
|
|
175
|
+
end
|
|
135
176
|
@unknown_json_fields.each do |k, v|
|
|
136
177
|
ret[k] = v
|
|
137
178
|
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# DeviceIdentityResponse is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class DeviceIdentityResponse
|
|
14
|
+
|
|
15
|
+
# @type [String] device_id
|
|
16
|
+
attr_accessor :device_id
|
|
17
|
+
|
|
18
|
+
# @type [String] device_secret
|
|
19
|
+
attr_accessor :device_secret
|
|
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
|
+
@device_id = ''
|
|
30
|
+
@device_secret = ''
|
|
31
|
+
@unknown_json_fields = {}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# @param [String] json_string The complete object in JSON format
|
|
35
|
+
def from_json(json_string)
|
|
36
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
37
|
+
|
|
38
|
+
from_hash(JSON.parse(json_string))
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
42
|
+
def from_hash(obj)
|
|
43
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
44
|
+
|
|
45
|
+
obj.each do |k, v|
|
|
46
|
+
case k
|
|
47
|
+
when 'DeviceID'
|
|
48
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
49
|
+
|
|
50
|
+
@device_id = v
|
|
51
|
+
when 'DeviceSecret'
|
|
52
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
53
|
+
|
|
54
|
+
@device_secret = v
|
|
55
|
+
else
|
|
56
|
+
@unknown_json_fields[k] = v
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
62
|
+
def to_hash
|
|
63
|
+
ret = {}
|
|
64
|
+
ret['DeviceID'] = @device_id
|
|
65
|
+
ret['DeviceSecret'] = @device_secret
|
|
66
|
+
@unknown_json_fields.each do |k, v|
|
|
67
|
+
ret[k] = v
|
|
68
|
+
end
|
|
69
|
+
ret
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
73
|
+
def to_h
|
|
74
|
+
to_hash
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# @return [String] The complete object as a JSON string
|
|
78
|
+
def to_json(options = {})
|
|
79
|
+
to_hash.to_json(options)
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
# DNSCacheOptions is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class DNSCacheOptions
|
|
14
|
+
|
|
15
|
+
# Enable an in-process DNS cache. Recommended on Linux/macOS hosts that do not run a system DNS
|
|
16
|
+
# cache. Default: enabled on non-Windows
|
|
17
|
+
# @type [Boolean] enabled
|
|
18
|
+
attr_accessor :enabled
|
|
19
|
+
|
|
20
|
+
# How long, in seconds, to cache a successful DNS resolution. If the feature is enabled, should be
|
|
21
|
+
# at least 1 second. Default: 60 seconds.
|
|
22
|
+
# @type [Number] positive_ttlseconds
|
|
23
|
+
attr_accessor :positive_ttlseconds
|
|
24
|
+
|
|
25
|
+
# How long, in seconds, to cache an NXDOMAIN response. If the feature is enabled, should be at least
|
|
26
|
+
# 1 second. Default: 5 seconds.
|
|
27
|
+
# @type [Number] negative_ttlseconds
|
|
28
|
+
attr_accessor :negative_ttlseconds
|
|
29
|
+
|
|
30
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
31
|
+
attr_accessor :unknown_json_fields
|
|
32
|
+
|
|
33
|
+
def initialize
|
|
34
|
+
clear
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def clear
|
|
38
|
+
@positive_ttlseconds = 0
|
|
39
|
+
@negative_ttlseconds = 0
|
|
40
|
+
@unknown_json_fields = {}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# @param [String] json_string The complete object in JSON format
|
|
44
|
+
def from_json(json_string)
|
|
45
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
46
|
+
|
|
47
|
+
from_hash(JSON.parse(json_string))
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
51
|
+
def from_hash(obj)
|
|
52
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
53
|
+
|
|
54
|
+
obj.each do |k, v|
|
|
55
|
+
case k
|
|
56
|
+
when 'Enabled'
|
|
57
|
+
@enabled = v
|
|
58
|
+
when 'PositiveTTLSeconds'
|
|
59
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
60
|
+
|
|
61
|
+
@positive_ttlseconds = v
|
|
62
|
+
when 'NegativeTTLSeconds'
|
|
63
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
64
|
+
|
|
65
|
+
@negative_ttlseconds = v
|
|
66
|
+
else
|
|
67
|
+
@unknown_json_fields[k] = v
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
73
|
+
def to_hash
|
|
74
|
+
ret = {}
|
|
75
|
+
ret['Enabled'] = @enabled
|
|
76
|
+
ret['PositiveTTLSeconds'] = @positive_ttlseconds
|
|
77
|
+
ret['NegativeTTLSeconds'] = @negative_ttlseconds
|
|
78
|
+
@unknown_json_fields.each do |k, v|
|
|
79
|
+
ret[k] = v
|
|
80
|
+
end
|
|
81
|
+
ret
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
85
|
+
def to_h
|
|
86
|
+
to_hash
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# @return [String] The complete object as a JSON string
|
|
90
|
+
def to_json(options = {})
|
|
91
|
+
to_hash.to_json(options)
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
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
|
|
@@ -48,6 +48,12 @@ module Comet
|
|
|
48
48
|
# @type [String] smtpcustom_ehlo
|
|
49
49
|
attr_accessor :smtpcustom_ehlo
|
|
50
50
|
|
|
51
|
+
# If set, authenticate to the SMTP server with OAuth 2.0 (SASL XOAUTH2) as SMTPUsername instead of
|
|
52
|
+
# using SMTPPassword.
|
|
53
|
+
# This field is available in Comet 26.11.0 and later.
|
|
54
|
+
# @type [Comet::SMTPOAuthOptions] smtpoauth
|
|
55
|
+
attr_accessor :smtpoauth
|
|
56
|
+
|
|
51
57
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
52
58
|
attr_accessor :unknown_json_fields
|
|
53
59
|
|
|
@@ -65,6 +71,7 @@ module Comet
|
|
|
65
71
|
@smtpusername = ''
|
|
66
72
|
@smtppassword = ''
|
|
67
73
|
@smtpcustom_ehlo = ''
|
|
74
|
+
@smtpoauth = Comet::SMTPOAuthOptions.new
|
|
68
75
|
@unknown_json_fields = {}
|
|
69
76
|
end
|
|
70
77
|
|
|
@@ -127,6 +134,9 @@ module Comet
|
|
|
127
134
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
128
135
|
|
|
129
136
|
@smtpcustom_ehlo = v
|
|
137
|
+
when 'SMTPOAuth'
|
|
138
|
+
@smtpoauth = Comet::SMTPOAuthOptions.new
|
|
139
|
+
@smtpoauth.from_hash(v)
|
|
130
140
|
else
|
|
131
141
|
@unknown_json_fields[k] = v
|
|
132
142
|
end
|
|
@@ -163,6 +173,9 @@ module Comet
|
|
|
163
173
|
unless @smtpcustom_ehlo.nil?
|
|
164
174
|
ret['SMTPCustomEhlo'] = @smtpcustom_ehlo
|
|
165
175
|
end
|
|
176
|
+
unless @smtpoauth.nil?
|
|
177
|
+
ret['SMTPOAuth'] = @smtpoauth
|
|
178
|
+
end
|
|
166
179
|
@unknown_json_fields.each do |k, v|
|
|
167
180
|
ret[k] = v
|
|
168
181
|
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
|
|
@@ -27,6 +27,12 @@ module Comet
|
|
|
27
27
|
# @type [Comet::SearchClause] filter
|
|
28
28
|
attr_accessor :filter
|
|
29
29
|
|
|
30
|
+
# A custom name for this email report, used to distinguish it from other reports of the same type.
|
|
31
|
+
# If blank, the report is labelled by its type.
|
|
32
|
+
# This field is available in Comet 26.6.0 and later.
|
|
33
|
+
# @type [String] title
|
|
34
|
+
attr_accessor :title
|
|
35
|
+
|
|
30
36
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
31
37
|
attr_accessor :unknown_json_fields
|
|
32
38
|
|
|
@@ -39,6 +45,7 @@ module Comet
|
|
|
39
45
|
@summary_frequency = []
|
|
40
46
|
@time_span = Comet::TimeSpan.new
|
|
41
47
|
@filter = Comet::SearchClause.new
|
|
48
|
+
@title = ''
|
|
42
49
|
@unknown_json_fields = {}
|
|
43
50
|
end
|
|
44
51
|
|
|
@@ -75,6 +82,10 @@ module Comet
|
|
|
75
82
|
when 'Filter'
|
|
76
83
|
@filter = Comet::SearchClause.new
|
|
77
84
|
@filter.from_hash(v)
|
|
85
|
+
when 'Title'
|
|
86
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
87
|
+
|
|
88
|
+
@title = v
|
|
78
89
|
else
|
|
79
90
|
@unknown_json_fields[k] = v
|
|
80
91
|
end
|
|
@@ -90,6 +101,9 @@ module Comet
|
|
|
90
101
|
ret['TimeSpan'] = @time_span
|
|
91
102
|
end
|
|
92
103
|
ret['Filter'] = @filter
|
|
104
|
+
unless @title.nil?
|
|
105
|
+
ret['Title'] = @title
|
|
106
|
+
end
|
|
93
107
|
@unknown_json_fields.each do |k, v|
|
|
94
108
|
ret[k] = v
|
|
95
109
|
end
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
# GetSharedStorageQuotaResponse is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class GetSharedStorageQuotaResponse
|
|
14
|
+
|
|
15
|
+
# If the operation was successful, the status will be in the 200-299 range.
|
|
16
|
+
# @type [Number] status
|
|
17
|
+
attr_accessor :status
|
|
18
|
+
|
|
19
|
+
# @type [String] message
|
|
20
|
+
attr_accessor :message
|
|
21
|
+
|
|
22
|
+
# @type [Comet::SharedStorageQuota] shared_storage_quota
|
|
23
|
+
attr_accessor :shared_storage_quota
|
|
24
|
+
|
|
25
|
+
# @type [String] shared_storage_quota_hash
|
|
26
|
+
attr_accessor :shared_storage_quota_hash
|
|
27
|
+
|
|
28
|
+
# Bytes
|
|
29
|
+
# @type [Number] current_usage
|
|
30
|
+
attr_accessor :current_usage
|
|
31
|
+
|
|
32
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
33
|
+
attr_accessor :unknown_json_fields
|
|
34
|
+
|
|
35
|
+
def initialize
|
|
36
|
+
clear
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def clear
|
|
40
|
+
@status = 0
|
|
41
|
+
@message = ''
|
|
42
|
+
@shared_storage_quota = Comet::SharedStorageQuota.new
|
|
43
|
+
@shared_storage_quota_hash = ''
|
|
44
|
+
@current_usage = 0
|
|
45
|
+
@unknown_json_fields = {}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# @param [String] json_string The complete object in JSON format
|
|
49
|
+
def from_json(json_string)
|
|
50
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
51
|
+
|
|
52
|
+
from_hash(JSON.parse(json_string))
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
56
|
+
def from_hash(obj)
|
|
57
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
58
|
+
|
|
59
|
+
obj.each do |k, v|
|
|
60
|
+
case k
|
|
61
|
+
when 'Status'
|
|
62
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
63
|
+
|
|
64
|
+
@status = v
|
|
65
|
+
when 'Message'
|
|
66
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
67
|
+
|
|
68
|
+
@message = v
|
|
69
|
+
when 'SharedStorageQuota'
|
|
70
|
+
@shared_storage_quota = Comet::SharedStorageQuota.new
|
|
71
|
+
@shared_storage_quota.from_hash(v)
|
|
72
|
+
when 'SharedStorageQuotaHash'
|
|
73
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
74
|
+
|
|
75
|
+
@shared_storage_quota_hash = v
|
|
76
|
+
when 'CurrentUsage'
|
|
77
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
78
|
+
|
|
79
|
+
@current_usage = v
|
|
80
|
+
else
|
|
81
|
+
@unknown_json_fields[k] = v
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
87
|
+
def to_hash
|
|
88
|
+
ret = {}
|
|
89
|
+
ret['Status'] = @status
|
|
90
|
+
ret['Message'] = @message
|
|
91
|
+
ret['SharedStorageQuota'] = @shared_storage_quota
|
|
92
|
+
ret['SharedStorageQuotaHash'] = @shared_storage_quota_hash
|
|
93
|
+
ret['CurrentUsage'] = @current_usage
|
|
94
|
+
@unknown_json_fields.each do |k, v|
|
|
95
|
+
ret[k] = v
|
|
96
|
+
end
|
|
97
|
+
ret
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
101
|
+
def to_h
|
|
102
|
+
to_hash
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# @return [String] The complete object as a JSON string
|
|
106
|
+
def to_json(options = {})
|
|
107
|
+
to_hash.to_json(options)
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|