comet_backup_ruby_sdk 2.3.0 → 2.4.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 +7 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +1 -1
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/RELEASING.md +0 -0
- 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 +85 -3
- data/lib/comet/definitions.rb +12 -5
- 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 +1 -1
- data/lib/comet/models/admin_u2fregistration.rb +1 -1
- data/lib/comet/models/admin_user_permissions.rb +9 -1
- data/lib/comet/models/admin_web_authn_registration.rb +1 -1
- data/lib/comet/models/allowed_admin_user.rb +1 -1
- data/lib/comet/models/amazon_awsvirtual_storage_role_settings.rb +1 -1
- data/lib/comet/models/authentication_role_options.rb +1 -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 +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 +1 -1
- data/lib/comet/models/backup_job_detail.rb +1 -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_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 +1 -1
- data/lib/comet/models/count_jobs_response.rb +73 -0
- 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 +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 +27 -10
- 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/email_reporting_option.rb +106 -0
- data/lib/comet/models/external_authentication_source.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/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/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/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/license_options.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/local_storage_directory.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/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/office_365connection.rb +1 -1
- 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 +1 -1
- 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/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/private_branding_properties.rb +1 -1
- data/lib/comet/models/protected_item_engine_type_policy.rb +1 -1
- data/lib/comet/models/psaconfig.rb +1 -1
- data/lib/comet/models/public_branding_properties.rb +1 -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/remote_server_address.rb +1 -1
- data/lib/comet/models/remote_storage_option.rb +1 -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 +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/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/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 +123 -123
- 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/session_options.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 +10 -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_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/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 +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 +10 -1
- 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/vmdksnapshot_view_options.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 +12 -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 +1 -1
- 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_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 +3 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e25663bd2981d72004508afa32d6bbd82e6618ecfc9502d326a74bf7601e5ba
|
4
|
+
data.tar.gz: a31154c4fc007ac666eb30bacce04f570193387466d7a8458050bfdb901fca83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91f0c27cd10765ddc7e4804b306aaa85f07ded7abd5c90a308a02100041c1aa0e2b20144ce6b4f9391d516509af0beac581eee832382a913bcf3db9c5e6c86b6
|
7
|
+
data.tar.gz: 5aa36f2a530a61860938cbf1bc78bd55571d0caf9748a7f8bdca842d7a13671b762562382474aa7a5acaca8e7735c9432fae9fe13074309c13de2836bf65b7b3
|
data/.gitignore
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2023-01-11 v2.4.0
|
4
|
+
- Based on 22.12.2
|
5
|
+
- Add new `AdminCountJobsForCustomSearchRequest` API to count total number of jobs for a given search query
|
6
|
+
- Add new `AdminMetaEmailOptionsGetRequest` / `AdminMetaEmailOptionsSetRequest` / `AdminMetaSendTestReportRequest` APIs for managing tenant email settings
|
7
|
+
- Add new O365 Protected Accounts quota option in the `UserProfileConfig`
|
8
|
+
- Add new tenant admin permission `AllowEditEmailOptions`
|
9
|
+
|
3
10
|
## 2022-12-09 v2.3.0
|
4
11
|
- Based on 22.11.1
|
5
12
|
- Support getCode() on exceptions to retrieve internal error code
|
data/Gemfile
CHANGED
File without changes
|
data/Gemfile.lock
CHANGED
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/RELEASING.md
CHANGED
File without changes
|
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 = '2.
|
15
|
+
spec.version = '2.4.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
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2023 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -904,6 +904,29 @@ module Comet
|
|
904
904
|
ret
|
905
905
|
end
|
906
906
|
|
907
|
+
# AdminCountJobsForCustomSearch
|
908
|
+
#
|
909
|
+
# Count jobs (for custom search).
|
910
|
+
#
|
911
|
+
# You must supply administrator authentication credentials to use this API.
|
912
|
+
# This API requires the Auth Role to be enabled.
|
913
|
+
#
|
914
|
+
# @param [Comet::SearchClause] query (No description available)
|
915
|
+
# @return [Comet::CountJobsResponse]
|
916
|
+
def admin_count_jobs_for_custom_search(query)
|
917
|
+
submit_params = {}
|
918
|
+
raise TypeError, "'query' expected Comet::SearchClause, got #{query.class}" unless query.is_a? Comet::SearchClause
|
919
|
+
|
920
|
+
submit_params['Query'] = query.to_json
|
921
|
+
|
922
|
+
body = perform_request('api/v1/admin/count-jobs-for-custom-search', submit_params)
|
923
|
+
json_body = JSON.parse body
|
924
|
+
check_status json_body
|
925
|
+
ret = Comet::CountJobsResponse.new
|
926
|
+
ret.from_hash(json_body)
|
927
|
+
ret
|
928
|
+
end
|
929
|
+
|
907
930
|
# AdminCreateInstallToken
|
908
931
|
#
|
909
932
|
# Create token for silent installation.
|
@@ -2611,6 +2634,44 @@ module Comet
|
|
2611
2634
|
ret
|
2612
2635
|
end
|
2613
2636
|
|
2637
|
+
# AdminMetaEmailOptionsGet
|
2638
|
+
#
|
2639
|
+
# Get the email options.
|
2640
|
+
#
|
2641
|
+
# You must supply administrator authentication credentials to use this API.
|
2642
|
+
#
|
2643
|
+
# @return [Comet::EmailOptions]
|
2644
|
+
def admin_meta_email_options_get
|
2645
|
+
body = perform_request('api/v1/admin/meta/email-options/get')
|
2646
|
+
json_body = JSON.parse body
|
2647
|
+
check_status json_body
|
2648
|
+
ret = Comet::EmailOptions.new
|
2649
|
+
ret.from_hash(json_body)
|
2650
|
+
ret
|
2651
|
+
end
|
2652
|
+
|
2653
|
+
# AdminMetaEmailOptionsSet
|
2654
|
+
#
|
2655
|
+
# Set the email options.
|
2656
|
+
#
|
2657
|
+
# You must supply administrator authentication credentials to use this API.
|
2658
|
+
#
|
2659
|
+
# @param [Comet::EmailOptions] email_options The replacement email reporting options.
|
2660
|
+
# @return [Comet::CometAPIResponseMessage]
|
2661
|
+
def admin_meta_email_options_set(email_options)
|
2662
|
+
submit_params = {}
|
2663
|
+
raise TypeError, "'email_options' expected Comet::EmailOptions, got #{email_options.class}" unless email_options.is_a? Comet::EmailOptions
|
2664
|
+
|
2665
|
+
submit_params['EmailOptions'] = email_options.to_json
|
2666
|
+
|
2667
|
+
body = perform_request('api/v1/admin/meta/email-options/set', submit_params)
|
2668
|
+
json_body = JSON.parse body
|
2669
|
+
check_status json_body
|
2670
|
+
ret = Comet::CometAPIResponseMessage.new
|
2671
|
+
ret.from_hash(json_body)
|
2672
|
+
ret
|
2673
|
+
end
|
2674
|
+
|
2614
2675
|
# AdminMetaListAvailableLogDays
|
2615
2676
|
#
|
2616
2677
|
# Get log files.
|
@@ -2850,8 +2911,6 @@ module Comet
|
|
2850
2911
|
# This allows the Comet Server web interface to support testing different email credentials during setup.
|
2851
2912
|
#
|
2852
2913
|
# You must supply administrator authentication credentials to use this API.
|
2853
|
-
# This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
|
2854
|
-
# Access to this API may be prevented on a per-administrator basis.
|
2855
2914
|
#
|
2856
2915
|
# @param [Comet::EmailOptions] email_options Updated configuration content
|
2857
2916
|
# @param [String] recipient Target email address to send test email
|
@@ -2873,6 +2932,29 @@ module Comet
|
|
2873
2932
|
ret
|
2874
2933
|
end
|
2875
2934
|
|
2935
|
+
# AdminMetaSendTestReport
|
2936
|
+
#
|
2937
|
+
# Send a test admin email report.
|
2938
|
+
# This allows a user to send a test email report
|
2939
|
+
#
|
2940
|
+
# You must supply administrator authentication credentials to use this API.
|
2941
|
+
#
|
2942
|
+
# @param [Comet::EmailReportingOption] email_reporting_option Test email reporting option for sending
|
2943
|
+
# @return [Comet::CometAPIResponseMessage]
|
2944
|
+
def admin_meta_send_test_report(email_reporting_option)
|
2945
|
+
submit_params = {}
|
2946
|
+
raise TypeError, "'email_reporting_option' expected Comet::EmailReportingOption, got #{email_reporting_option.class}" unless email_reporting_option.is_a? Comet::EmailReportingOption
|
2947
|
+
|
2948
|
+
submit_params['EmailReportingOption'] = email_reporting_option.to_json
|
2949
|
+
|
2950
|
+
body = perform_request('api/v1/admin/meta/send-test-report', submit_params)
|
2951
|
+
json_body = JSON.parse body
|
2952
|
+
check_status json_body
|
2953
|
+
ret = Comet::CometAPIResponseMessage.new
|
2954
|
+
ret.from_hash(json_body)
|
2955
|
+
ret
|
2956
|
+
end
|
2957
|
+
|
2876
2958
|
# AdminMetaServerConfigGet
|
2877
2959
|
#
|
2878
2960
|
# Get server configuration.
|
data/lib/comet/definitions.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2023 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -481,15 +481,15 @@ module Comet
|
|
481
481
|
|
482
482
|
DEFAULT_TIMEZONE = 'UTC'
|
483
483
|
|
484
|
-
APPLICATION_VERSION = '22.
|
484
|
+
APPLICATION_VERSION = '22.12.2'
|
485
485
|
|
486
486
|
APPLICATION_VERSION_MAJOR = 22
|
487
487
|
|
488
|
-
APPLICATION_VERSION_MINOR =
|
488
|
+
APPLICATION_VERSION_MINOR = 12
|
489
489
|
|
490
490
|
APPLICATION_VERSION_REVISION = 2
|
491
491
|
|
492
|
-
RELEASE_CODENAME = '
|
492
|
+
RELEASE_CODENAME = 'Voyager'
|
493
493
|
|
494
494
|
ENCRYPTIONMETHOD_UNCONFIGURED = 0
|
495
495
|
|
@@ -639,7 +639,7 @@ module Comet
|
|
639
639
|
SEARCHOPERATOR_BOOL_NIS = 'bool_nis'
|
640
640
|
|
641
641
|
# EmailDeliveryType:
|
642
|
-
|
642
|
+
EMAIL_DELIVERY_INHERIT = ''
|
643
643
|
|
644
644
|
# EmailDeliveryType:
|
645
645
|
EMAIL_DELIVERY_MX_DIRECT = 'builtin'
|
@@ -650,9 +650,16 @@ module Comet
|
|
650
650
|
# EmailDeliveryType:
|
651
651
|
EMAIL_DELIVERY_SMTP_SSL = 'smtp-ssl'
|
652
652
|
|
653
|
+
# EmailDeliveryType:
|
654
|
+
EMAIL_DELIVERY_DISABLED = 'disabled'
|
655
|
+
|
653
656
|
# EmailDeliveryType: Legacy alias
|
654
657
|
EMAIL_DELIVERY_BUILTIN = EMAIL_DELIVERY_MX_DIRECT
|
655
658
|
|
659
|
+
# EmailDeliveryType: changed for clarity
|
660
|
+
# @deprecated This const has been deprecated since Comet version 22.12.1
|
661
|
+
EMAIL_DELIVERY_NONE = EMAIL_DELIVERY_INHERIT
|
662
|
+
|
656
663
|
# RemoteServerType:
|
657
664
|
REMOTESERVER_COMET = 'comet'
|
658
665
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2023 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -24,6 +24,9 @@ module Comet
|
|
24
24
|
# @type [Boolean] allow_edit_branding
|
25
25
|
attr_accessor :allow_edit_branding
|
26
26
|
|
27
|
+
# @type [Boolean] allow_edit_email_options
|
28
|
+
attr_accessor :allow_edit_email_options
|
29
|
+
|
27
30
|
# @type [Boolean] allow_edit_remote_storage
|
28
31
|
attr_accessor :allow_edit_remote_storage
|
29
32
|
|
@@ -65,6 +68,8 @@ module Comet
|
|
65
68
|
@prevent_change_password = v
|
66
69
|
when 'AllowEditBranding'
|
67
70
|
@allow_edit_branding = v
|
71
|
+
when 'AllowEditEmailOptions'
|
72
|
+
@allow_edit_email_options = v
|
68
73
|
when 'AllowEditRemoteStorage'
|
69
74
|
@allow_edit_remote_storage = v
|
70
75
|
when 'AllowEditWebhooks'
|
@@ -92,6 +97,9 @@ module Comet
|
|
92
97
|
unless @allow_edit_branding.nil?
|
93
98
|
ret['AllowEditBranding'] = @allow_edit_branding
|
94
99
|
end
|
100
|
+
unless @allow_edit_email_options.nil?
|
101
|
+
ret['AllowEditEmailOptions'] = @allow_edit_email_options
|
102
|
+
end
|
95
103
|
unless @allow_edit_remote_storage.nil?
|
96
104
|
ret['AllowEditRemoteStorage'] = @allow_edit_remote_storage
|
97
105
|
end
|