comet_backup_ruby_sdk 1.11.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.rubocop.yml +0 -0
- data/CHANGELOG.md +12 -2
- data/Gemfile +0 -0
- data/Gemfile.lock +1 -1
- data/LICENSE +0 -0
- data/RELEASING.md +1 -1
- data/Rakefile +0 -0
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/api_response_error.rb +1 -1
- data/lib/comet/comet_server.rb +26 -1
- data/lib/comet/definitions.rb +33 -12
- 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 +1 -1
- data/lib/comet/models/backup_job_detail.rb +43 -1
- data/lib/comet/models/backup_job_progress.rb +1 -1
- data/lib/comet/models/backup_rule_config.rb +1 -1
- data/lib/comet/models/backup_rule_event_triggers.rb +1 -1
- data/lib/comet/models/branding_options.rb +1 -1
- data/lib/comet/models/branding_properties.rb +1 -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/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/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 +1 -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 +1 -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 +1 -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 +1 -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 +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/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 +1 -1
- data/lib/comet/models/update_campaign_properties.rb +1 -1
- data/lib/comet/models/update_campaign_status.rb +1 -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 +1 -1
- data/lib/comet/models/user_profile_fragment.rb +1 -1
- data/lib/comet/models/vault_snapshot.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 +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 +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69a41caa98a2a94326271b4b1ee4f2d7f61e98b0d62c1964ac1707e1984dca72
|
4
|
+
data.tar.gz: 3dce1759fcc473dcd64b592cfab33633ae31fe619ea07b0a9e13719c7981e5da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3f505381b2cd44a90667f1de2f8fa6d4b99cffeb106e271eac055545ea7f51c57c948077baabb52025b120ded6efe0bd1bbbcf3df5b3dceabc84960b5040a3f
|
7
|
+
data.tar.gz: 4a3588488fb2a2da49662460438c0e8d85f7f57cb7fdd654199c30fe6c4bfd820e418872a8f0f751c1a7094d0d6b0754809c4fcb94cf98846cbbe3810eb341a0
|
data/.gitignore
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2022-01-28 v1.12.0
|
4
|
+
- Based on 21.12.4
|
5
|
+
- Add `AdminStoragePingDestination` API to perform a server-side Test Connections action when configuring Storage Role
|
6
|
+
- Add `HasLicense` on `Office365MixedVirtualAccount` struct, and add `TotalLicensedMailsCount` and `TotalUnlicensedMailsCount` on `BackupJobDetail` struct, to track Office 365 license usage
|
7
|
+
- Add `AdminWebAuthnRegistration` new `Type` field and `WEBAUTHN_DEVICE_TYPE` constants, to determine the type of hardware WebAuthn device
|
8
|
+
- Add deprecation comments to U2F types (use WebAuthn instead), to `B2DestinationLocation.MaxConnections`, and to `Office365CustomSetting` (use Office365CustomSettingV2 instead)
|
9
|
+
- Fix an issue with wrong array types in `WebAuthnPublicKeyCredentialCreationOptions` and `WebAuthnPublicKeyCredentialRequestOptions`
|
10
|
+
- Fix an issue with wrong values for some `STOREDOBJECTTYPE_` constants related to Office 365
|
11
|
+
- Fix an issue with executable permissions on some files
|
12
|
+
|
3
13
|
## 2021-12-22 v1.11.0
|
4
14
|
- Based on 21.12.1
|
5
|
-
- Add `AdminAccountWebauthnRegistration` endpoint for new
|
6
|
-
- Deprecate `
|
15
|
+
- Add `AdminAccountWebauthnRegistration` endpoint for new WebAuthn support.
|
16
|
+
- Deprecate `AdminAccountU2fSubmitChallenge` as U2F is ending browser support in February 2022.
|
7
17
|
|
8
18
|
## 2021-11-24 v1.10.0
|
9
19
|
- Based on 21.9.12
|
data/Gemfile
CHANGED
File without changes
|
data/Gemfile.lock
CHANGED
data/LICENSE
CHANGED
File without changes
|
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`
|
data/Rakefile
CHANGED
File without changes
|
@@ -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.12.0'
|
16
16
|
spec.authors = ['Comet Licensing Ltd.']
|
17
17
|
spec.email = ['hello@cometbackup.com']
|
18
18
|
|
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
|
@@ -3500,6 +3500,31 @@ module Comet
|
|
3500
3500
|
ret
|
3501
3501
|
end
|
3502
3502
|
|
3503
|
+
# AdminStoragePingDestination
|
3504
|
+
#
|
3505
|
+
# Ping a storage destination.
|
3506
|
+
#
|
3507
|
+
# You must supply administrator authentication credentials to use this API.
|
3508
|
+
# Access to this API may be prevented on a per-administrator basis.
|
3509
|
+
# This API requires the Storage Role to be enabled.
|
3510
|
+
# This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
|
3511
|
+
#
|
3512
|
+
# @param [Comet::DestinationLocation] extra_data The destination location settings
|
3513
|
+
# @return [Comet::CometAPIResponseMessage]
|
3514
|
+
def admin_storage_ping_destination(extra_data)
|
3515
|
+
submit_params = {}
|
3516
|
+
raise TypeError, "'extra_data' expected Comet::DestinationLocation, got #{extra_data.class}" unless extra_data.is_a? Comet::DestinationLocation
|
3517
|
+
|
3518
|
+
submit_params['ExtraData'] = extra_data.to_json
|
3519
|
+
|
3520
|
+
body = perform_request('api/v1/admin/storage/ping-destination', submit_params)
|
3521
|
+
json_body = JSON.parse body
|
3522
|
+
check_status json_body
|
3523
|
+
ret = Comet::CometAPIResponseMessage.new
|
3524
|
+
ret.from_hash(json_body)
|
3525
|
+
ret
|
3526
|
+
end
|
3527
|
+
|
3503
3528
|
# AdminStorageRegisterBucket
|
3504
3529
|
#
|
3505
3530
|
# Create a new bucket.
|
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
|
@@ -360,22 +360,22 @@ module Comet
|
|
360
360
|
STOREDOBJECTTYPE_WINEFS = 'winefs'
|
361
361
|
|
362
362
|
# StoredObjectType: "file"
|
363
|
-
STOREDOBJECTTYPE_EMAILMESSAGE = 'emailmessage
|
363
|
+
STOREDOBJECTTYPE_EMAILMESSAGE = 'emailmessage'
|
364
364
|
|
365
365
|
# StoredObjectType: "dir"
|
366
|
-
STOREDOBJECTTYPE_EMAILFOLDER = 'mailfolder
|
366
|
+
STOREDOBJECTTYPE_EMAILFOLDER = 'mailfolder'
|
367
367
|
|
368
368
|
# StoredObjectType: "file"
|
369
|
-
STOREDOBJECTTYPE_OFFICECONTACT = 'contact
|
369
|
+
STOREDOBJECTTYPE_OFFICECONTACT = 'contact'
|
370
370
|
|
371
371
|
# StoredObjectType: "dir"
|
372
|
-
STOREDOBJECTTYPE_OFFICECONTACTFOLDER = 'contactfolder
|
372
|
+
STOREDOBJECTTYPE_OFFICECONTACTFOLDER = 'contactfolder'
|
373
373
|
|
374
374
|
# StoredObjectType: "file"
|
375
|
-
STOREDOBJECTTYPE_OFFICECALENDAREVENT = 'calendarevent
|
375
|
+
STOREDOBJECTTYPE_OFFICECALENDAREVENT = 'calendarevent'
|
376
376
|
|
377
377
|
# StoredObjectType: "dir"
|
378
|
-
STOREDOBJECTTYPE_OFFICECALENDAR = 'calendar
|
378
|
+
STOREDOBJECTTYPE_OFFICECALENDAR = 'calendar'
|
379
379
|
|
380
380
|
# StoredObjectType:
|
381
381
|
STOREDOBJECTTYPE_MSSITE = 'mssite'
|
@@ -425,18 +425,18 @@ module Comet
|
|
425
425
|
# DefaultSettingMode:
|
426
426
|
SETTING_ENFORCED_OFF = 4
|
427
427
|
|
428
|
-
#
|
428
|
+
# LanguageCode:
|
429
429
|
DEFAULT_LANGUAGE = 'en_US'
|
430
430
|
|
431
431
|
DEFAULT_TIMEZONE = 'UTC'
|
432
432
|
|
433
|
-
APPLICATION_VERSION = '21.12.
|
433
|
+
APPLICATION_VERSION = '21.12.4'
|
434
434
|
|
435
435
|
APPLICATION_VERSION_MAJOR = 21
|
436
436
|
|
437
437
|
APPLICATION_VERSION_MINOR = 12
|
438
438
|
|
439
|
-
APPLICATION_VERSION_REVISION =
|
439
|
+
APPLICATION_VERSION_REVISION = 4
|
440
440
|
|
441
441
|
RELEASE_CODENAME = 'Voyager'
|
442
442
|
|
@@ -444,6 +444,10 @@ module Comet
|
|
444
444
|
|
445
445
|
PASSWORD_FORMAT_PLAINTEXT = 0
|
446
446
|
|
447
|
+
UNKNOWN_DEVICE_ERROR = 'ERR_UNKNOWN_DEVICE'
|
448
|
+
|
449
|
+
TOTPREQUIRED_ERROR = 'ERR_TOTP_REQUIRED'
|
450
|
+
|
447
451
|
EMAIL_WORKER_STATE_NOT_STARTED = 0
|
448
452
|
|
449
453
|
EMAIL_WORKER_STATE_STARTED = 1
|
@@ -454,9 +458,26 @@ module Comet
|
|
454
458
|
|
455
459
|
EMAIL_WORKER_STATE_SENDING = 4
|
456
460
|
|
457
|
-
|
461
|
+
# WebAuthnDeviceType:
|
462
|
+
WEBAUTHN_DEVICE_TYPE__UNKNOWN = 0
|
458
463
|
|
459
|
-
|
464
|
+
# WebAuthnDeviceType:
|
465
|
+
WEBAUTHN_DEVICE_TYPE__HARDWARE_TOKEN = 1
|
466
|
+
|
467
|
+
# WebAuthnDeviceType:
|
468
|
+
WEBAUTHN_DEVICE_TYPE__ANDROID = 2
|
469
|
+
|
470
|
+
# WebAuthnDeviceType:
|
471
|
+
WEBAUTHN_DEVICE_TYPE__APPLE = 3
|
472
|
+
|
473
|
+
# WebAuthnDeviceType:
|
474
|
+
WEBAUTHN_DEVICE_TYPE__TPM_GENERIC = 4
|
475
|
+
|
476
|
+
# WebAuthnDeviceType:
|
477
|
+
WEBAUTHN_DEVICE_TYPE__TPM_WINDOWS = 5
|
478
|
+
|
479
|
+
# WebAuthnDeviceType:
|
480
|
+
WEBAUTHN_DEVICE_TYPE__TPM_LINUX = 6
|
460
481
|
|
461
482
|
# UpdateStatus:
|
462
483
|
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
|
@@ -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
|
@@ -74,12 +74,24 @@ module Comet
|
|
74
74
|
# @type [Number] total_accounts_count
|
75
75
|
attr_accessor :total_accounts_count
|
76
76
|
|
77
|
+
# @type [Number] total_licensed_mails_count
|
78
|
+
attr_accessor :total_licensed_mails_count
|
79
|
+
|
80
|
+
# @type [Number] total_unlicensed_mails_count
|
81
|
+
attr_accessor :total_unlicensed_mails_count
|
82
|
+
|
77
83
|
# @type [String] cancellation_id
|
78
84
|
attr_accessor :cancellation_id
|
79
85
|
|
80
86
|
# @type [Comet::BackupJobProgress] progress
|
81
87
|
attr_accessor :progress
|
82
88
|
|
89
|
+
# @type [Comet::SizeMeasurement] destination_size_start
|
90
|
+
attr_accessor :destination_size_start
|
91
|
+
|
92
|
+
# @type [Comet::SizeMeasurement] destination_size_end
|
93
|
+
attr_accessor :destination_size_end
|
94
|
+
|
83
95
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
84
96
|
attr_accessor :unknown_json_fields
|
85
97
|
|
@@ -108,8 +120,12 @@ module Comet
|
|
108
120
|
@total_mails_count = 0
|
109
121
|
@total_sites_count = 0
|
110
122
|
@total_accounts_count = 0
|
123
|
+
@total_licensed_mails_count = 0
|
124
|
+
@total_unlicensed_mails_count = 0
|
111
125
|
@cancellation_id = ''
|
112
126
|
@progress = Comet::BackupJobProgress.new
|
127
|
+
@destination_size_start = Comet::SizeMeasurement.new
|
128
|
+
@destination_size_end = Comet::SizeMeasurement.new
|
113
129
|
@unknown_json_fields = {}
|
114
130
|
end
|
115
131
|
|
@@ -206,6 +222,14 @@ module Comet
|
|
206
222
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
207
223
|
|
208
224
|
@total_accounts_count = v
|
225
|
+
when 'TotalLicensedMailsCount'
|
226
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
227
|
+
|
228
|
+
@total_licensed_mails_count = v
|
229
|
+
when 'TotalUnlicensedMailsCount'
|
230
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
231
|
+
|
232
|
+
@total_unlicensed_mails_count = v
|
209
233
|
when 'CancellationID'
|
210
234
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
211
235
|
|
@@ -213,6 +237,12 @@ module Comet
|
|
213
237
|
when 'Progress'
|
214
238
|
@progress = Comet::BackupJobProgress.new
|
215
239
|
@progress.from_hash(v)
|
240
|
+
when 'DestinationSizeStart'
|
241
|
+
@destination_size_start = Comet::SizeMeasurement.new
|
242
|
+
@destination_size_start.from_hash(v)
|
243
|
+
when 'DestinationSizeEnd'
|
244
|
+
@destination_size_end = Comet::SizeMeasurement.new
|
245
|
+
@destination_size_end.from_hash(v)
|
216
246
|
else
|
217
247
|
@unknown_json_fields[k] = v
|
218
248
|
end
|
@@ -250,12 +280,24 @@ module Comet
|
|
250
280
|
unless @total_accounts_count.nil?
|
251
281
|
ret['TotalAccountsCount'] = @total_accounts_count
|
252
282
|
end
|
283
|
+
unless @total_licensed_mails_count.nil?
|
284
|
+
ret['TotalLicensedMailsCount'] = @total_licensed_mails_count
|
285
|
+
end
|
286
|
+
unless @total_unlicensed_mails_count.nil?
|
287
|
+
ret['TotalUnlicensedMailsCount'] = @total_unlicensed_mails_count
|
288
|
+
end
|
253
289
|
unless @cancellation_id.nil?
|
254
290
|
ret['CancellationID'] = @cancellation_id
|
255
291
|
end
|
256
292
|
unless @progress.nil?
|
257
293
|
ret['Progress'] = @progress
|
258
294
|
end
|
295
|
+
unless @destination_size_start.nil?
|
296
|
+
ret['DestinationSizeStart'] = @destination_size_start
|
297
|
+
end
|
298
|
+
unless @destination_size_end.nil?
|
299
|
+
ret['DestinationSizeEnd'] = @destination_size_end
|
300
|
+
end
|
259
301
|
@unknown_json_fields.each do |k, v|
|
260
302
|
ret[k] = v
|
261
303
|
end
|