comet_backup_ruby_sdk 1.11.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -2
- data/Gemfile.lock +1 -1
- data/README.md +3 -2
- data/RELEASING.md +1 -1
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/api_response_error.rb +27 -0
- data/lib/comet/api_response_error.rb +1 -1
- data/lib/comet/comet_server.rb +85 -6
- data/lib/comet/definitions.rb +72 -14
- data/lib/comet/models/add_bucket_response_message.rb +1 -1
- data/lib/comet/models/admin_account_properties_response.rb +1 -1
- data/lib/comet/models/admin_email_options.rb +1 -1
- data/lib/comet/models/admin_resource_response.rb +1 -1
- data/lib/comet/models/admin_security_options.rb +3 -1
- data/lib/comet/models/admin_u2fregistration.rb +2 -1
- data/lib/comet/models/admin_user_permissions.rb +1 -1
- data/lib/comet/models/admin_web_authn_registration.rb +10 -1
- data/lib/comet/models/allowed_admin_user.rb +3 -1
- 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 +2 -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 +10 -1
- data/lib/comet/models/backup_job_detail.rb +54 -1
- data/lib/comet/models/backup_job_progress.rb +1 -1
- data/lib/comet/models/backup_rule_config.rb +10 -1
- data/lib/comet/models/backup_rule_event_triggers.rb +1 -1
- data/lib/comet/models/branding_options.rb +10 -1
- data/lib/comet/models/branding_properties.rb +10 -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_sqlserver_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_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 +1 -1
- data/lib/comet/models/create_group_policy_response.rb +1 -1
- data/lib/comet/models/custom_remote_bucket_settings.rb +1 -1
- data/lib/comet/models/days_of_week_config.rb +108 -0
- 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 +1 -1
- data/lib/comet/models/destination_location.rb +1 -1
- data/lib/comet/models/destination_statistics.rb +1 -1
- data/lib/comet/models/device_config.rb +1 -1
- data/lib/comet/models/disk_drive.rb +1 -1
- data/lib/comet/models/dispatcher_admin_sources_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/edbfile_info.rb +1 -1
- data/lib/comet/models/email_options.rb +1 -1
- data/lib/comet/models/email_report_config.rb +1 -1
- data/lib/comet/models/email_report_generated_preview.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/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/group_policy.rb +1 -1
- data/lib/comet/models/hour_sched_config.rb +84 -0
- data/lib/comet/models/hyper_vmachine_info.rb +1 -1
- data/lib/comet/models/install_creds.rb +1 -1
- data/lib/comet/models/install_token.rb +1 -1
- data/lib/comet/models/install_token_response.rb +1 -1
- data/lib/comet/models/job_entry.rb +2 -1
- data/lib/comet/models/live_user_connection.rb +1 -1
- data/lib/comet/models/local_destination_location.rb +1 -1
- data/lib/comet/models/mac_oscode_sign_properties.rb +70 -1
- data/lib/comet/models/mongo_dbconnection.rb +1 -1
- data/lib/comet/models/mssqlconnection.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/office_365connection.rb +1 -1
- data/lib/comet/models/office_365credential.rb +1 -1
- data/lib/comet/models/office_365custom_setting.rb +2 -1
- data/lib/comet/models/office_365custom_setting_v2.rb +1 -1
- data/lib/comet/models/office_365mixed_virtual_account.rb +9 -1
- data/lib/comet/models/office_365object_info.rb +1 -1
- data/lib/comet/models/organization.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/private_branding_properties.rb +10 -1
- data/lib/comet/models/protected_item_engine_type_policy.rb +1 -1
- data/lib/comet/models/public_branding_properties.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/remote_server_address.rb +1 -1
- data/lib/comet/models/remote_storage_option.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 +1 -1
- 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/schedule_config.rb +37 -1
- data/lib/comet/models/search_clause.rb +1 -1
- data/lib/comet/models/self_backup_statistics.rb +1 -1
- data/lib/comet/models/server_config_options_branding_fragment.rb +1 -1
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +1 -1
- data/lib/comet/models/server_meta_branding_properties.rb +1 -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/sftpdestination_location.rb +1 -1
- data/lib/comet/models/size_measurement.rb +1 -1
- 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 +1 -1
- data/lib/comet/models/source_config.rb +1 -1
- 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/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_vault_provider_policy.rb +1 -1
- data/lib/comet/models/stored_object.rb +2 -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/totp_regenerated_response.rb +1 -1
- data/lib/comet/models/u2fregister_request.rb +2 -1
- data/lib/comet/models/u2fregistered_key.rb +2 -1
- data/lib/comet/models/u2fregistration_challenge_response.rb +2 -1
- data/lib/comet/models/u2fsign_request.rb +2 -1
- data/lib/comet/models/u2fsign_response.rb +2 -1
- data/lib/comet/models/uninstall_config.rb +1 -1
- data/lib/comet/models/update_campaign_device_status.rb +1 -1
- data/lib/comet/models/update_campaign_options.rb +24 -1
- data/lib/comet/models/update_campaign_properties.rb +21 -1
- data/lib/comet/models/update_campaign_status.rb +21 -1
- data/lib/comet/models/update_campaign_status_device_entry.rb +1 -1
- data/lib/comet/models/user_custom_email_settings.rb +1 -1
- data/lib/comet/models/user_on_server.rb +1 -1
- data/lib/comet/models/user_policy.rb +1 -1
- data/lib/comet/models/user_profile_config.rb +10 -1
- data/lib/comet/models/user_profile_fragment.rb +1 -1
- data/lib/comet/models/vault_snapshot.rb +1 -1
- data/lib/comet/models/vmdksnapshot_view_options.rb +90 -0
- 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 +3 -4
- data/lib/comet/models/web_authn_public_key_credential_request_options.rb +3 -4
- 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_interface_branding_properties.rb +1 -1
- data/lib/comet/models/webhook_option.rb +1 -1
- data/lib/comet/models/win_smbauth.rb +1 -1
- data/lib/comet/models/windows_code_sign_properties.rb +1 -1
- data/lib/comet_backup_ruby_sdk.rb +4 -1
- data/lib/comet_server.rb +3785 -0
- data/lib/definitions.rb +710 -0
- data/lib/models/add_bucket_response_message.rb +102 -0
- data/lib/models/admin_account_properties_response.rb +91 -0
- data/lib/models/admin_email_options.rb +84 -0
- data/lib/models/admin_resource_response.rb +93 -0
- data/lib/models/admin_security_options.rb +177 -0
- data/lib/models/admin_u2fregistration.rb +93 -0
- data/lib/models/admin_user_permissions.rb +106 -0
- data/lib/models/admin_web_authn_registration.rb +121 -0
- data/lib/models/allowed_admin_user.rb +214 -0
- data/lib/models/available_download.rb +90 -0
- data/lib/models/azure_destination_location.rb +111 -0
- data/lib/models/b2destination_location.rb +130 -0
- data/lib/models/b2storage_extra_info.rb +81 -0
- data/lib/models/b2transaction_totals.rb +93 -0
- data/lib/models/b2virtual_storage_role_settings.rb +99 -0
- data/lib/models/backup_job_advanced_options.rb +117 -0
- data/lib/models/backup_job_detail.rb +328 -0
- data/lib/models/backup_job_progress.rb +111 -0
- data/lib/models/backup_rule_config.rb +233 -0
- data/lib/models/backup_rule_event_triggers.rb +82 -0
- data/lib/models/branding_options.rb +335 -0
- data/lib/models/branding_properties.rb +293 -0
- data/lib/models/browse_disk_drives_response.rb +99 -0
- data/lib/models/browse_edbresponse.rb +99 -0
- data/lib/models/browse_hvresponse.rb +99 -0
- data/lib/models/browse_office_365list_virtual_accounts_response.rb +99 -0
- data/lib/models/browse_office_365objects_response.rb +99 -0
- data/lib/models/browse_sqlserver_response.rb +100 -0
- data/lib/models/browse_vssresponse.rb +99 -0
- data/lib/models/bucket_properties.rb +110 -0
- data/lib/models/bucket_usage_info.rb +97 -0
- data/lib/models/comet_apiresponse_message.rb +84 -0
- data/lib/models/comet_destination_location.rb +93 -0
- data/lib/models/constellation_check_report.rb +99 -0
- data/lib/models/constellation_stats.rb +102 -0
- data/lib/models/constellation_status_apiresponse.rb +114 -0
- data/lib/models/content_measurement.rb +99 -0
- data/lib/models/content_measurement_component.rb +91 -0
- data/lib/models/create_group_policy_response.rb +93 -0
- data/lib/models/custom_remote_bucket_settings.rb +75 -0
- data/lib/models/days_of_week_config.rb +108 -0
- data/lib/models/default_email_report_policy.rb +87 -0
- data/lib/models/default_source_with_osrestriction.rb +83 -0
- data/lib/models/destination_config.rb +562 -0
- data/lib/models/destination_location.rb +421 -0
- data/lib/models/destination_statistics.rb +115 -0
- data/lib/models/device_config.rb +124 -0
- data/lib/models/disk_drive.rb +180 -0
- data/lib/models/dispatcher_admin_sources_response.rb +100 -0
- data/lib/models/dispatcher_stored_objects_response.rb +99 -0
- data/lib/models/dispatcher_vault_snapshots_response.rb +99 -0
- data/lib/models/dispatcher_windisk_snapshot_response.rb +99 -0
- data/lib/models/edbfile_info.rb +99 -0
- data/lib/models/email_options.rb +153 -0
- data/lib/models/email_report_config.rb +98 -0
- data/lib/models/email_report_generated_preview.rb +136 -0
- data/lib/models/external_ldapauthentication_source_settings.rb +135 -0
- data/lib/models/extra_file_exclusion.rb +90 -0
- data/lib/models/ftpdestination_location.rb +141 -0
- data/lib/models/get_group_policy_response.rb +101 -0
- data/lib/models/get_profile_and_hash_response_message.rb +101 -0
- data/lib/models/get_profile_hash_response_message.rb +93 -0
- data/lib/models/group_policy.rb +98 -0
- data/lib/models/hour_sched_config.rb +84 -0
- data/lib/models/hyper_vmachine_info.rb +84 -0
- data/lib/models/install_creds.rb +99 -0
- data/lib/models/install_token.rb +117 -0
- data/lib/models/install_token_response.rb +92 -0
- data/lib/models/job_entry.rb +94 -0
- data/lib/models/live_user_connection.rb +149 -0
- data/lib/models/local_destination_location.rb +102 -0
- data/lib/models/mac_oscode_sign_properties.rb +197 -0
- data/lib/models/mongo_dbconnection.rb +230 -0
- data/lib/models/mssqlconnection.rb +120 -0
- data/lib/models/my_sqlconnection.rb +141 -0
- data/lib/models/new_bucket_detail.rb +84 -0
- data/lib/models/news_entry.rb +93 -0
- data/lib/models/office_365connection.rb +131 -0
- data/lib/models/office_365credential.rb +111 -0
- data/lib/models/office_365custom_setting.rb +133 -0
- data/lib/models/office_365custom_setting_v2.rb +108 -0
- data/lib/models/office_365mixed_virtual_account.rb +211 -0
- data/lib/models/office_365object_info.rb +118 -0
- data/lib/models/organization.rb +151 -0
- data/lib/models/organization_response.rb +101 -0
- data/lib/models/osinfo.rb +99 -0
- data/lib/models/partition.rb +172 -0
- data/lib/models/private_branding_properties.rb +227 -0
- data/lib/models/protected_item_engine_type_policy.rb +88 -0
- data/lib/models/public_branding_properties.rb +132 -0
- data/lib/models/register_office_application_begin_response.rb +93 -0
- data/lib/models/register_office_application_check_response.rb +100 -0
- data/lib/models/remote_server_address.rb +167 -0
- data/lib/models/remote_storage_option.rb +188 -0
- data/lib/models/replicator_state_apiresponse.rb +174 -0
- data/lib/models/request_storage_vault_response_message.rb +93 -0
- data/lib/models/restore_job_advanced_options.rb +131 -0
- data/lib/models/retention_policy.rb +90 -0
- data/lib/models/retention_range.rb +138 -0
- data/lib/models/s3destination_location.rb +123 -0
- data/lib/models/s3generic_virtual_storage_role.rb +111 -0
- data/lib/models/schedule_config.rb +131 -0
- data/lib/models/search_clause.rb +119 -0
- data/lib/models/self_backup_statistics.rb +108 -0
- data/lib/models/server_config_options_branding_fragment.rb +74 -0
- data/lib/models/server_config_options_software_build_role_fragment.rb +74 -0
- data/lib/models/server_meta_branding_properties.rb +144 -0
- data/lib/models/server_meta_version_info.rb +261 -0
- data/lib/models/session_key_regenerated_response.rb +102 -0
- data/lib/models/sftpdestination_location.rb +135 -0
- data/lib/models/size_measurement.rb +93 -0
- data/lib/models/software_build_role_options.rb +78 -0
- data/lib/models/software_update_news_response.rb +109 -0
- data/lib/models/source_basic_info.rb +101 -0
- data/lib/models/source_config.rb +202 -0
- data/lib/models/source_include_pattern.rb +84 -0
- data/lib/models/source_statistics.rb +82 -0
- data/lib/models/spanned_destination_location.rb +87 -0
- data/lib/models/spanned_storage_extra_info.rb +81 -0
- data/lib/models/sshconnection.rb +126 -0
- data/lib/models/stat_result.rb +111 -0
- data/lib/models/storage_free_space_info.rb +110 -0
- data/lib/models/storage_vault_provider_policy.rb +88 -0
- data/lib/models/stored_object.rb +238 -0
- data/lib/models/streamable_event.rb +92 -0
- data/lib/models/swift_destination_location.rb +209 -0
- data/lib/models/test_response.rb +90 -0
- data/lib/models/totp_regenerated_response.rb +111 -0
- data/lib/models/u2fregister_request.rb +85 -0
- data/lib/models/u2fregistered_key.rb +94 -0
- data/lib/models/u2fregistration_challenge_response.rb +133 -0
- data/lib/models/u2fsign_request.rb +109 -0
- data/lib/models/u2fsign_response.rb +103 -0
- data/lib/models/uninstall_config.rb +78 -0
- data/lib/models/update_campaign_device_status.rb +75 -0
- data/lib/models/update_campaign_options.rb +113 -0
- data/lib/models/update_campaign_properties.rb +128 -0
- data/lib/models/update_campaign_status.rb +143 -0
- data/lib/models/update_campaign_status_device_entry.rb +93 -0
- data/lib/models/user_custom_email_settings.rb +81 -0
- data/lib/models/user_on_server.rb +84 -0
- data/lib/models/user_policy.rb +339 -0
- data/lib/models/user_profile_config.rb +349 -0
- data/lib/models/user_profile_fragment.rb +75 -0
- data/lib/models/vault_snapshot.rb +99 -0
- data/lib/models/vmdksnapshot_view_options.rb +90 -0
- data/lib/models/vsscomponent.rb +99 -0
- data/lib/models/vsswriter_info.rb +90 -0
- data/lib/models/wasabi_virtual_storage_role_settings.rb +93 -0
- data/lib/models/web_authn_authenticator_selection.rb +96 -0
- data/lib/models/web_authn_credential.rb +105 -0
- data/lib/models/web_authn_credential_assertion.rb +74 -0
- data/lib/models/web_authn_credential_descriptor.rb +101 -0
- data/lib/models/web_authn_credential_entity.rb +86 -0
- data/lib/models/web_authn_credential_parameter.rb +84 -0
- data/lib/models/web_authn_public_key_credential_creation_options.rb +172 -0
- data/lib/models/web_authn_public_key_credential_request_options.rb +140 -0
- data/lib/models/web_authn_registration_challenge_response.rb +101 -0
- data/lib/models/web_authn_relying_party_entity.rb +95 -0
- data/lib/models/web_authn_sign_request.rb +83 -0
- data/lib/models/web_authn_sign_response.rb +84 -0
- data/lib/models/web_authn_user_entity.rb +105 -0
- data/lib/models/web_interface_branding_properties.rb +108 -0
- data/lib/models/webhook_option.rb +107 -0
- data/lib/models/win_smbauth.rb +102 -0
- data/lib/models/windows_code_sign_properties.rb +147 -0
- metadata +174 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a833332b5cd52d9b4e3758fcddb3b9373df704be059cf7111590c713d892969
|
4
|
+
data.tar.gz: 54592e78d1caff12b0bb1c1bc45970732b18a9be8512a3d20df834bc2d2cf421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abaab4397fa41629c8c6f2aafa31729265b1d9d3563cce1dcf4153042468e68c2d8e861c08ef2d7dafc7ddf2929a5a183db9fbe967121abb40b836cb2a7509df
|
7
|
+
data.tar.gz: 7c378053ecaee1576a4ea609a233c88e97b4122a8e46063f35ceea1cb07aac898d191c6a2e7e9020388ec75427ede2d4799352b8c942f1cf701b28c25b811af6
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,35 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2022-05-25 v1.14.0
|
4
|
+
- Based on 22.3.7
|
5
|
+
- Add new `REMOTESERVER_S3_GENERIC` `RemoteServerType`
|
6
|
+
- add new `S3GenericVirtualStorageRole` support to the `RemoteServerAddress`
|
7
|
+
|
8
|
+
## 2022-05-10 v1.13.0
|
9
|
+
- Based on 22.3.5
|
10
|
+
- Add new `RestrictRuntime`, `FromTime`, `ToTime`, `RestrictDays`, `DaysSelect` types to ScheduleConfig to add time and day restrictions in a hourly schedule.
|
11
|
+
- Add new `TotalVmCount` to `BackupJobDetail` API.
|
12
|
+
- Add new fields to `MacOSCodeSignProperties` to support code signing.
|
13
|
+
- Add new `ForceUpgradeRunning`, `ApplyDeviceFilter`, and `DeviceFilter` fields to `UpdateCampaign` types to support sending a bulk upgrade to a custom query of users
|
14
|
+
- Add new `AdminBrandingGenerateClientSpkDsm6` and `AdminBrandingGenerateClientSpkDsm7` APIs and associated types for generating and downloading Synology SPKs
|
15
|
+
- Add new `PathAppIconImage` field to branding options types to support branding of the app icon when installed in Synology's Package Center (and other software managers)
|
16
|
+
- Add new constants for VMDK single file restore
|
17
|
+
|
18
|
+
## 2022-01-28 v1.12.0
|
19
|
+
- Based on 21.12.4
|
20
|
+
- Add `AdminStoragePingDestination` API to perform a server-side Test Connections action when configuring Storage Role
|
21
|
+
- Add `DestinationSize*` on `BackupJobDetail` struct, to track Storage Vault size measurements taken as part of jobs
|
22
|
+
- Add `HasLicense` on `Office365MixedVirtualAccount` struct, and add `TotalLicensedMailsCount` and `TotalUnlicensedMailsCount` on `BackupJobDetail` struct, to track Office 365 license usage
|
23
|
+
- Add `AdminWebAuthnRegistration` new `Type` field and `WEBAUTHN_DEVICE_TYPE` constants, to determine the type of hardware WebAuthn device
|
24
|
+
- Add deprecation comments to U2F types (use WebAuthn instead), to `B2DestinationLocation.MaxConnections`, and to `Office365CustomSetting` (use Office365CustomSettingV2 instead)
|
25
|
+
- Fix an issue with wrong array types in `WebAuthnPublicKeyCredentialCreationOptions` and `WebAuthnPublicKeyCredentialRequestOptions`
|
26
|
+
- Fix an issue with wrong values for some `STOREDOBJECTTYPE_` constants related to Office 365
|
27
|
+
- Fix an issue with executable permissions on some files
|
28
|
+
|
3
29
|
## 2021-12-22 v1.11.0
|
4
30
|
- Based on 21.12.1
|
5
|
-
- Add `AdminAccountWebauthnRegistration` endpoint for new
|
6
|
-
- Deprecate `
|
31
|
+
- Add `AdminAccountWebauthnRegistration` endpoint for new WebAuthn support.
|
32
|
+
- Deprecate `AdminAccountU2fSubmitChallenge` as U2F is ending browser support in February 2022.
|
7
33
|
|
8
34
|
## 2021-11-24 v1.10.0
|
9
35
|
- Based on 21.9.12
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/RELEASING.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Procedure for releasing gem package updates
|
2
2
|
|
3
|
-
0. As a cygwin user, with docker installed; `docker run -it -v "
|
3
|
+
0. As a cygwin user, with docker installed; `docker run -it -v "$(cygpath -w "$PWD"):/app" -w /app ruby:2.7 bash` will get you with a suitable ruby environment for testing/building and releasing this package9.
|
4
4
|
1. All tests passing
|
5
5
|
2. Update changelog in `CHANGELOG.md`
|
6
6
|
3. Update version number in `comet_backup_ruby_sdk.gemspec`
|
@@ -12,7 +12,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
12
12
|
|
13
13
|
Gem::Specification.new do |spec|
|
14
14
|
spec.name = 'comet_backup_ruby_sdk'
|
15
|
-
spec.version = '1.
|
15
|
+
spec.version = '1.14.0'
|
16
16
|
spec.authors = ['Comet Licensing Ltd.']
|
17
17
|
spec.email = ['hello@cometbackup.com']
|
18
18
|
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
|
+
#
|
3
|
+
# Copyright (c) 2020-2022 Comet Licensing Ltd.
|
4
|
+
# Please see the LICENSE file for usage information.
|
5
|
+
#
|
6
|
+
# SPDX-License-Identifier: MIT
|
7
|
+
#
|
8
|
+
# frozen_string_literal: true
|
9
|
+
|
10
|
+
module Comet
|
11
|
+
|
12
|
+
# APIResponseError is a custom exception class that wraps the Comet::CometAPIResponseMessage
|
13
|
+
# type. These represent application-level error responses from the Comet Server API.
|
14
|
+
# Network-level error responses should be caught using the Net::HTTP error types.
|
15
|
+
class APIResponseError < StandardError
|
16
|
+
|
17
|
+
# @type [Comet::CometAPIResponseMessage] The application-level error
|
18
|
+
attr_reader :detail
|
19
|
+
|
20
|
+
def initialize(carm)
|
21
|
+
@detail = carm
|
22
|
+
|
23
|
+
super("#{carm.message} (#{carm.status})")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
data/lib/comet/comet_server.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2022 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -551,6 +551,52 @@ module Comet
|
|
551
551
|
perform_request('api/v1/admin/branding/generate-client/macos-x86_64', submit_params)
|
552
552
|
end
|
553
553
|
|
554
|
+
# AdminBrandingGenerateClientSpkDsm6
|
555
|
+
#
|
556
|
+
# Download software (Synology SPK for DSM 6).
|
557
|
+
#
|
558
|
+
# This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads.
|
559
|
+
# This API requires the Software Build Role to be enabled.
|
560
|
+
# This API requires the Auth Role to be enabled.
|
561
|
+
#
|
562
|
+
# @param [String] self_address (Optional) The external URL of this server, used to resolve conflicts
|
563
|
+
# @return [String]
|
564
|
+
def admin_branding_generate_client_spk_dsm_6(self_address = nil)
|
565
|
+
submit_params = {}
|
566
|
+
if self_address.nil?
|
567
|
+
submit_params['SelfAddress'] = @server_address
|
568
|
+
else
|
569
|
+
raise TypeError, "'self_address' expected String, got #{self_address.class}" unless self_address.is_a? String
|
570
|
+
|
571
|
+
submit_params['SelfAddress'] = self_address
|
572
|
+
end
|
573
|
+
|
574
|
+
perform_request('api/v1/admin/branding/generate-client/spk-dsm6', submit_params)
|
575
|
+
end
|
576
|
+
|
577
|
+
# AdminBrandingGenerateClientSpkDsm7
|
578
|
+
#
|
579
|
+
# Download software (Synology SPK for DSM 7).
|
580
|
+
#
|
581
|
+
# This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads.
|
582
|
+
# This API requires the Software Build Role to be enabled.
|
583
|
+
# This API requires the Auth Role to be enabled.
|
584
|
+
#
|
585
|
+
# @param [String] self_address (Optional) The external URL of this server, used to resolve conflicts
|
586
|
+
# @return [String]
|
587
|
+
def admin_branding_generate_client_spk_dsm_7(self_address = nil)
|
588
|
+
submit_params = {}
|
589
|
+
if self_address.nil?
|
590
|
+
submit_params['SelfAddress'] = @server_address
|
591
|
+
else
|
592
|
+
raise TypeError, "'self_address' expected String, got #{self_address.class}" unless self_address.is_a? String
|
593
|
+
|
594
|
+
submit_params['SelfAddress'] = self_address
|
595
|
+
end
|
596
|
+
|
597
|
+
perform_request('api/v1/admin/branding/generate-client/spk-dsm7', submit_params)
|
598
|
+
end
|
599
|
+
|
554
600
|
# AdminBrandingGenerateClientTest
|
555
601
|
#
|
556
602
|
# Check if a software download is available.
|
@@ -828,8 +874,10 @@ module Comet
|
|
828
874
|
|
829
875
|
# AdminCreateInstallToken
|
830
876
|
#
|
831
|
-
# Create token for silent installation
|
877
|
+
# Create token for silent installation.
|
878
|
+
# Currently only supported for Windows & macOS only
|
832
879
|
# Provide the installation token to silently install the client on windows `install.exe /TOKEN=<installtoken>`
|
880
|
+
# Provide the installation token to silently install the client on Mac OS `sudo launchctl setenv BACKUP_APP_TOKEN "installtoken" && sudo /usr/sbin/installer -allowUntrusted -pkg "Comet Backup.pkg" -target /`
|
833
881
|
#
|
834
882
|
# You must supply administrator authentication credentials to use this API.
|
835
883
|
# This API requires the Auth Role to be enabled.
|
@@ -1631,9 +1679,10 @@ module Comet
|
|
1631
1679
|
# @param [String] target_id The live connection GUID
|
1632
1680
|
# @param [String] destination The Storage Vault ID
|
1633
1681
|
# @param [String] snapshot_id The selected backup job snapshot
|
1634
|
-
# @param [String] tree_id (Optional) Browse objects inside subdirectory of backup snapshot
|
1682
|
+
# @param [String] tree_id (Optional) Browse objects inside subdirectory of backup snapshot. If it is for VMDK single file restore, it should be the disk image's subtree ID.
|
1683
|
+
# @param [Comet::VMDKSnapshotViewOptions] options (Optional) Request a list of stored objects in vmdk file
|
1635
1684
|
# @return [Comet::DispatcherStoredObjectsResponse]
|
1636
|
-
def admin_dispatcher_request_stored_objects(target_id, destination, snapshot_id, tree_id = nil)
|
1685
|
+
def admin_dispatcher_request_stored_objects(target_id, destination, snapshot_id, tree_id = nil, options = nil)
|
1637
1686
|
submit_params = {}
|
1638
1687
|
raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
|
1639
1688
|
|
@@ -1649,6 +1698,11 @@ module Comet
|
|
1649
1698
|
|
1650
1699
|
submit_params['TreeID'] = tree_id
|
1651
1700
|
end
|
1701
|
+
unless options.nil?
|
1702
|
+
raise TypeError, "'options' expected Comet::VMDKSnapshotViewOptions, got #{options.class}" unless options.is_a? Comet::VMDKSnapshotViewOptions
|
1703
|
+
|
1704
|
+
submit_params['Options'] = options.to_json
|
1705
|
+
end
|
1652
1706
|
|
1653
1707
|
body = perform_request('api/v1/admin/dispatcher/request-stored-objects', submit_params)
|
1654
1708
|
json_body = JSON.parse body
|
@@ -3500,6 +3554,31 @@ module Comet
|
|
3500
3554
|
ret
|
3501
3555
|
end
|
3502
3556
|
|
3557
|
+
# AdminStoragePingDestination
|
3558
|
+
#
|
3559
|
+
# Ping a storage destination.
|
3560
|
+
#
|
3561
|
+
# You must supply administrator authentication credentials to use this API.
|
3562
|
+
# Access to this API may be prevented on a per-administrator basis.
|
3563
|
+
# This API requires the Storage Role to be enabled.
|
3564
|
+
# This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
|
3565
|
+
#
|
3566
|
+
# @param [Comet::DestinationLocation] extra_data The destination location settings
|
3567
|
+
# @return [Comet::CometAPIResponseMessage]
|
3568
|
+
def admin_storage_ping_destination(extra_data)
|
3569
|
+
submit_params = {}
|
3570
|
+
raise TypeError, "'extra_data' expected Comet::DestinationLocation, got #{extra_data.class}" unless extra_data.is_a? Comet::DestinationLocation
|
3571
|
+
|
3572
|
+
submit_params['ExtraData'] = extra_data.to_json
|
3573
|
+
|
3574
|
+
body = perform_request('api/v1/admin/storage/ping-destination', submit_params)
|
3575
|
+
json_body = JSON.parse body
|
3576
|
+
check_status json_body
|
3577
|
+
ret = Comet::CometAPIResponseMessage.new
|
3578
|
+
ret.from_hash(json_body)
|
3579
|
+
ret
|
3580
|
+
end
|
3581
|
+
|
3503
3582
|
# AdminStorageRegisterBucket
|
3504
3583
|
#
|
3505
3584
|
# Create a new bucket.
|
@@ -3651,7 +3730,7 @@ module Comet
|
|
3651
3730
|
|
3652
3731
|
ret_error = Comet::CometAPIResponseMessage.new
|
3653
3732
|
ret_error.from_hash(obj)
|
3654
|
-
raise Comet::APIResponseError
|
3733
|
+
raise Comet::APIResponseError, ret_error
|
3655
3734
|
end
|
3656
3735
|
|
3657
3736
|
# Perform a synchronous HTTP request.
|
@@ -3688,7 +3767,7 @@ module Comet
|
|
3688
3767
|
|
3689
3768
|
form_params = []
|
3690
3769
|
params.each do |k, v|
|
3691
|
-
form_params.append [k, v, {:filename => k}]
|
3770
|
+
form_params.append [k, v, { :filename => k }]
|
3692
3771
|
end
|
3693
3772
|
req.set_form(form_params, 'multipart/form-data')
|
3694
3773
|
|
data/lib/comet/definitions.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2022 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -9,6 +9,18 @@
|
|
9
9
|
|
10
10
|
module Comet
|
11
11
|
|
12
|
+
# AutoRetentionLevel: The system will automatically choose how often to run an automatic Retention Pass after each backup job.
|
13
|
+
BACKUPJOBAUTORETENTION_AUTOMATIC = 0
|
14
|
+
|
15
|
+
# AutoRetentionLevel: The system will run a Retention Pass after every single backup job. This is more system-intensive, but is the most responsive at freeing storage space.
|
16
|
+
BACKUPJOBAUTORETENTION_IMMEDIATE = 1
|
17
|
+
|
18
|
+
# AutoRetentionLevel: The system will follow the automatic ruleset for a 'High Power' device.
|
19
|
+
BACKUPJOBAUTORETENTION_MORE_OFTEN = 2
|
20
|
+
|
21
|
+
# AutoRetentionLevel: The system will follow the automatic ruleset for a 'Low Power' device.
|
22
|
+
BACKUPJOBAUTORETENTION_LESS_OFTEN = 3
|
23
|
+
|
12
24
|
# JobClassification:
|
13
25
|
JOB_CLASSIFICATION__MIN = 4000
|
14
26
|
|
@@ -144,6 +156,8 @@ module Comet
|
|
144
156
|
# FtpsModeType:
|
145
157
|
FTPS_MODE_EXPLICIT = 2
|
146
158
|
|
159
|
+
INSTALLER_METADATA_FILE = 'installer.json'
|
160
|
+
|
147
161
|
# Severity:
|
148
162
|
SEVERITY_INFO = 'I'
|
149
163
|
|
@@ -197,6 +211,15 @@ module Comet
|
|
197
211
|
# RestoreType:
|
198
212
|
RESTORETYPE_OFFICE365_CLOUD = 6
|
199
213
|
|
214
|
+
# RestoreType:
|
215
|
+
RESTORETYPE_VMDK_FILE = 7
|
216
|
+
|
217
|
+
# RestoreType:
|
218
|
+
RESTORETYPE_VMDK_FILE_NULL = 8
|
219
|
+
|
220
|
+
# RestoreType:
|
221
|
+
RESTORETYPE_VMDK_FILE_ARCHIVE = 9
|
222
|
+
|
200
223
|
# RestoreType: RESTORETYPE_PROCESS_ARCHIVE
|
201
224
|
RESTORETYPE_PROCESS_TARBALL = 3
|
202
225
|
|
@@ -360,22 +383,22 @@ module Comet
|
|
360
383
|
STOREDOBJECTTYPE_WINEFS = 'winefs'
|
361
384
|
|
362
385
|
# StoredObjectType: "file"
|
363
|
-
STOREDOBJECTTYPE_EMAILMESSAGE = 'emailmessage
|
386
|
+
STOREDOBJECTTYPE_EMAILMESSAGE = 'emailmessage'
|
364
387
|
|
365
388
|
# StoredObjectType: "dir"
|
366
|
-
STOREDOBJECTTYPE_EMAILFOLDER = 'mailfolder
|
389
|
+
STOREDOBJECTTYPE_EMAILFOLDER = 'mailfolder'
|
367
390
|
|
368
391
|
# StoredObjectType: "file"
|
369
|
-
STOREDOBJECTTYPE_OFFICECONTACT = 'contact
|
392
|
+
STOREDOBJECTTYPE_OFFICECONTACT = 'contact'
|
370
393
|
|
371
394
|
# StoredObjectType: "dir"
|
372
|
-
STOREDOBJECTTYPE_OFFICECONTACTFOLDER = 'contactfolder
|
395
|
+
STOREDOBJECTTYPE_OFFICECONTACTFOLDER = 'contactfolder'
|
373
396
|
|
374
397
|
# StoredObjectType: "file"
|
375
|
-
STOREDOBJECTTYPE_OFFICECALENDAREVENT = 'calendarevent
|
398
|
+
STOREDOBJECTTYPE_OFFICECALENDAREVENT = 'calendarevent'
|
376
399
|
|
377
400
|
# StoredObjectType: "dir"
|
378
|
-
STOREDOBJECTTYPE_OFFICECALENDAR = 'calendar
|
401
|
+
STOREDOBJECTTYPE_OFFICECALENDAR = 'calendar'
|
379
402
|
|
380
403
|
# StoredObjectType:
|
381
404
|
STOREDOBJECTTYPE_MSSITE = 'mssite'
|
@@ -392,6 +415,18 @@ module Comet
|
|
392
415
|
# StoredObjectType:
|
393
416
|
STOREDOBJECTTYPE_MSSITELISTDRIVEENTITY = 'mssitelistdriveentity'
|
394
417
|
|
418
|
+
# StoredObjectType:
|
419
|
+
STOREDOBJECTTYPE_VMDK_FILE = 'vmdkfile'
|
420
|
+
|
421
|
+
# StoredObjectType:
|
422
|
+
STOREDOBJECTTYPE_VMDK_DIRECTORY = 'vmdkdir'
|
423
|
+
|
424
|
+
# StoredObjectType:
|
425
|
+
STOREDOBJECTTYPE_VMDK_WINEFS = 'vmdkwinefs'
|
426
|
+
|
427
|
+
# StoredObjectType:
|
428
|
+
STOREDOBJECTTYPE_VMDK_SYMLINK = 'vmdksymlink'
|
429
|
+
|
395
430
|
# ExtraFileExclusionOSRestriction:
|
396
431
|
OS_ANY = 0
|
397
432
|
|
@@ -425,18 +460,18 @@ module Comet
|
|
425
460
|
# DefaultSettingMode:
|
426
461
|
SETTING_ENFORCED_OFF = 4
|
427
462
|
|
428
|
-
#
|
463
|
+
# LanguageCode:
|
429
464
|
DEFAULT_LANGUAGE = 'en_US'
|
430
465
|
|
431
466
|
DEFAULT_TIMEZONE = 'UTC'
|
432
467
|
|
433
|
-
APPLICATION_VERSION = '
|
468
|
+
APPLICATION_VERSION = '22.3.5'
|
434
469
|
|
435
|
-
APPLICATION_VERSION_MAJOR =
|
470
|
+
APPLICATION_VERSION_MAJOR = 22
|
436
471
|
|
437
|
-
APPLICATION_VERSION_MINOR =
|
472
|
+
APPLICATION_VERSION_MINOR = 3
|
438
473
|
|
439
|
-
APPLICATION_VERSION_REVISION =
|
474
|
+
APPLICATION_VERSION_REVISION = 5
|
440
475
|
|
441
476
|
RELEASE_CODENAME = 'Voyager'
|
442
477
|
|
@@ -444,6 +479,12 @@ module Comet
|
|
444
479
|
|
445
480
|
PASSWORD_FORMAT_PLAINTEXT = 0
|
446
481
|
|
482
|
+
UNKNOWN_DEVICE_ERROR = 'ERR_UNKNOWN_DEVICE'
|
483
|
+
|
484
|
+
TOTPREQUIRED_ERROR = 'ERR_TOTP_REQUIRED'
|
485
|
+
|
486
|
+
UNSUPPORT_VMDK_FILE_SYSTEM = 'ERR_UNSUPPORT_VMDK_FILE_SYSTEM'
|
487
|
+
|
447
488
|
EMAIL_WORKER_STATE_NOT_STARTED = 0
|
448
489
|
|
449
490
|
EMAIL_WORKER_STATE_STARTED = 1
|
@@ -454,9 +495,26 @@ module Comet
|
|
454
495
|
|
455
496
|
EMAIL_WORKER_STATE_SENDING = 4
|
456
497
|
|
457
|
-
|
498
|
+
# WebAuthnDeviceType:
|
499
|
+
WEBAUTHN_DEVICE_TYPE__UNKNOWN = 0
|
458
500
|
|
459
|
-
|
501
|
+
# WebAuthnDeviceType:
|
502
|
+
WEBAUTHN_DEVICE_TYPE__HARDWARE_TOKEN = 1
|
503
|
+
|
504
|
+
# WebAuthnDeviceType:
|
505
|
+
WEBAUTHN_DEVICE_TYPE__ANDROID = 2
|
506
|
+
|
507
|
+
# WebAuthnDeviceType:
|
508
|
+
WEBAUTHN_DEVICE_TYPE__APPLE = 3
|
509
|
+
|
510
|
+
# WebAuthnDeviceType:
|
511
|
+
WEBAUTHN_DEVICE_TYPE__TPM_GENERIC = 4
|
512
|
+
|
513
|
+
# WebAuthnDeviceType:
|
514
|
+
WEBAUTHN_DEVICE_TYPE__TPM_WINDOWS = 5
|
515
|
+
|
516
|
+
# WebAuthnDeviceType:
|
517
|
+
WEBAUTHN_DEVICE_TYPE__TPM_LINUX = 6
|
460
518
|
|
461
519
|
# UpdateStatus:
|
462
520
|
UPDATESTATUS_NOT_SEEN = 0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2022 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -27,12 +27,14 @@ module Comet
|
|
27
27
|
attr_accessor :allow_password_and_totplogin
|
28
28
|
|
29
29
|
# @type [Boolean] allow_password_and_u2flogin
|
30
|
+
# @deprecated This member has been deprecated since Comet version 21.12.0
|
30
31
|
attr_accessor :allow_password_and_u2flogin
|
31
32
|
|
32
33
|
# @type [Boolean] allow_password_and_web_authn_login
|
33
34
|
attr_accessor :allow_password_and_web_authn_login
|
34
35
|
|
35
36
|
# @type [Array<Comet::AdminU2FRegistration>] u2fregistrations
|
37
|
+
# @deprecated This member has been deprecated since Comet version 21.12.0
|
36
38
|
attr_accessor :u2fregistrations
|
37
39
|
|
38
40
|
# @type [Array<Comet::AdminWebAuthnRegistration>] web_authn_registrations
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2022 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -13,6 +13,7 @@ require 'json'
|
|
13
13
|
module Comet
|
14
14
|
|
15
15
|
# AdminU2FRegistration is a typed class wrapper around the underlying Comet Server API data structure.
|
16
|
+
# @deprecated This type has been deprecated since Comet version 21.12.0
|
16
17
|
class AdminU2FRegistration
|
17
18
|
|
18
19
|
# @type [String] description
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2022 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -21,6 +21,9 @@ module Comet
|
|
21
21
|
# @type [Number] register_time
|
22
22
|
attr_accessor :register_time
|
23
23
|
|
24
|
+
# @type [Number] type
|
25
|
+
attr_accessor :type
|
26
|
+
|
24
27
|
# @type [Boolean] is_legacy_u2f
|
25
28
|
attr_accessor :is_legacy_u2f
|
26
29
|
|
@@ -40,6 +43,7 @@ module Comet
|
|
40
43
|
def clear
|
41
44
|
@description = ''
|
42
45
|
@register_time = 0
|
46
|
+
@type = 0
|
43
47
|
@id = []
|
44
48
|
@credential = Comet::WebAuthnCredential.new
|
45
49
|
@unknown_json_fields = {}
|
@@ -66,6 +70,10 @@ module Comet
|
|
66
70
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
67
71
|
|
68
72
|
@register_time = v
|
73
|
+
when 'Type'
|
74
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
75
|
+
|
76
|
+
@type = v
|
69
77
|
when 'IsLegacyU2F'
|
70
78
|
@is_legacy_u2f = v
|
71
79
|
when 'ID'
|
@@ -84,6 +92,7 @@ module Comet
|
|
84
92
|
ret = {}
|
85
93
|
ret['Description'] = @description
|
86
94
|
ret['RegisterTime'] = @register_time
|
95
|
+
ret['Type'] = @type
|
87
96
|
unless @is_legacy_u2f.nil?
|
88
97
|
ret['IsLegacyU2F'] = @is_legacy_u2f
|
89
98
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2022 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -36,12 +36,14 @@ module Comet
|
|
36
36
|
attr_accessor :allow_password_and_totplogin
|
37
37
|
|
38
38
|
# @type [Boolean] allow_password_and_u2flogin
|
39
|
+
# @deprecated This member has been deprecated since Comet version 21.12.0
|
39
40
|
attr_accessor :allow_password_and_u2flogin
|
40
41
|
|
41
42
|
# @type [Boolean] allow_password_and_web_authn_login
|
42
43
|
attr_accessor :allow_password_and_web_authn_login
|
43
44
|
|
44
45
|
# @type [Array<Comet::AdminU2FRegistration>] u2fregistrations
|
46
|
+
# @deprecated This member has been deprecated since Comet version 21.12.0
|
45
47
|
attr_accessor :u2fregistrations
|
46
48
|
|
47
49
|
# @type [Array<Comet::AdminWebAuthnRegistration>] web_authn_registrations
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2022 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -27,6 +27,7 @@ module Comet
|
|
27
27
|
attr_accessor :prefix
|
28
28
|
|
29
29
|
# @type [Number] max_connections
|
30
|
+
# @deprecated This member has been deprecated since Comet version 21.9.7
|
30
31
|
attr_accessor :max_connections
|
31
32
|
|
32
33
|
# @type [Boolean] hide_deleted_files
|