comet_backup_ruby_sdk 2.1.0 → 2.3.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/CHANGELOG.md +14 -0
- data/Gemfile.lock +1 -1
- data/LICENSE +0 -0
- data/RELEASING.md +4 -3
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/comet_server.rb +207 -12
- data/lib/comet/definitions.rb +27 -6
- data/lib/comet/models/admin_user_permissions.rb +16 -0
- data/lib/comet/models/destination_config.rb +8 -0
- data/lib/comet/models/destination_location.rb +8 -0
- data/lib/comet/models/external_authentication_source.rb +10 -0
- data/lib/comet/models/mssqllogin_args.rb +112 -0
- data/lib/comet/models/organization.rb +41 -0
- data/lib/comet/models/organization_login_urlresponse.rb +73 -0
- data/lib/comet/models/psaconfig.rb +111 -0
- data/lib/comet/models/remote_server_address.rb +10 -0
- data/lib/comet/models/remote_storage_option.rb +10 -0
- data/lib/comet/models/replica_server.rb +10 -0
- data/lib/comet/models/restore_job_advanced_options.rb +85 -0
- data/lib/comet/models/self_backup_export_options.rb +125 -0
- data/lib/comet/models/self_backup_target.rb +28 -8
- data/lib/comet/models/server_config_options.rb +15 -0
- data/lib/comet/models/server_meta_version_info.rb +15 -0
- data/lib/comet/models/storj_destination_location.rb +111 -0
- data/lib/comet/models/storj_virtual_storage_role_setting.rb +100 -0
- data/lib/comet/models/update_campaign_options.rb +2 -1
- data/lib/comet/models/user_profile_config.rb +4 -4
- data/lib/comet_backup_ruby_sdk.rb +6 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00e37092c7f0ac13f7e37c577871acad5fb531e1e48160c8613d6028d4856bbc
|
4
|
+
data.tar.gz: 8932a1d179e678dfcc8fdc5353df7ca48a08f056b519bba122fe40626d24b845
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 287538a1a3801d13a90d86669f8c927ffe98af836539db452fc7303c98685baed99b0d150f72ba04eba853ba504340735f62970a001b4298cdcadc1b4654eb0a
|
7
|
+
data.tar.gz: 8181631d4eeb1b01d79937045b1bacc5eac097245430ded01c07f9fa3078e10d3984c5b92c3dfe40986efaead8b599a312ea612ffa471b8beff749538bb39ba1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2022-12-09 v2.3.0
|
4
|
+
- Based on 22.11.1
|
5
|
+
- Support getCode() on exceptions to retrieve internal error code
|
6
|
+
- New features for PSAs, remote URLs and MS SQL Server restores.
|
7
|
+
- New features for exporting a self backup for single tenant.
|
8
|
+
|
9
|
+
## 2022-09-08 v2.2.0
|
10
|
+
- Based on 22.9.0
|
11
|
+
- Add Storj.io support as a Storage Vault Location and Storage Template provider
|
12
|
+
- Add Constellation role support for Tenants
|
13
|
+
- Add Webhook edit option for Tenant admins
|
14
|
+
- Add MySQL direct RestoreType
|
15
|
+
- Improve Office365 credentials handling
|
16
|
+
|
3
17
|
## 2022-07-27 v2.1.0
|
4
18
|
- Based on 22.6.7
|
5
19
|
- Add support enforcing the `RandomDelaySecs` for both whole-server and in policies
|
data/Gemfile.lock
CHANGED
data/LICENSE
CHANGED
File without changes
|
data/RELEASING.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# Procedure for releasing gem package updates
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
With docker installed: `docker run -it -v "${PWD}:/app" -w /app ruby:2.7 bash` will get you with a suitable ruby environment for testing, building, and releasing this package (use `-v "$(cygpath -w "$PWD"):/app"` for Cygwin).
|
4
|
+
|
5
|
+
1. All tests passing (e.g. COMETSERVER_ADDRESS=http://127.0.0.1:8060 COMETSERVER_ADMINUSER=admin COMETSERVER_ADMINPASS=admin rake)
|
5
6
|
2. Update changelog in `CHANGELOG.md`
|
6
7
|
3. Update version number in `comet_backup_ruby_sdk.gemspec`
|
7
8
|
4. `bundle install`
|
@@ -10,4 +11,4 @@
|
|
10
11
|
- Should be warning-free
|
11
12
|
6. Git tag
|
12
13
|
- Respect semver
|
13
|
-
7. `gem push comet_backup_ruby_sdk-
|
14
|
+
7. `gem push comet_backup_ruby_sdk-x.x.x.gem`
|
@@ -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.3.0'
|
16
16
|
spec.authors = ['Comet Licensing Ltd.']
|
17
17
|
spec.email = ['hello@cometbackup.com']
|
18
18
|
|
data/lib/comet/comet_server.rb
CHANGED
@@ -199,9 +199,9 @@ module Comet
|
|
199
199
|
# @param [String] u2fclient_data U2F response data supplied by hardware token
|
200
200
|
# @param [String] u2fregistration_data U2F response data supplied by hardware token
|
201
201
|
# @param [String] u2fversion U2F response data supplied by hardware token
|
202
|
-
# @param [String] description Optional
|
202
|
+
# @param [String] description (Optional) Description of the token
|
203
203
|
# @return [Comet::CometAPIResponseMessage]
|
204
|
-
def admin_account_u2f_submit_challenge_response(u2fchallenge_id, u2fclient_data, u2fregistration_data, u2fversion, description)
|
204
|
+
def admin_account_u2f_submit_challenge_response(u2fchallenge_id, u2fclient_data, u2fregistration_data, u2fversion, description = nil)
|
205
205
|
submit_params = {}
|
206
206
|
raise TypeError, "'u2fchallenge_id' expected String, got #{u2fchallenge_id.class}" unless u2fchallenge_id.is_a? String
|
207
207
|
|
@@ -215,9 +215,11 @@ module Comet
|
|
215
215
|
raise TypeError, "'u2fversion' expected String, got #{u2fversion.class}" unless u2fversion.is_a? String
|
216
216
|
|
217
217
|
submit_params['U2FVersion'] = u2fversion
|
218
|
-
|
218
|
+
unless description.nil?
|
219
|
+
raise TypeError, "'description' expected String, got #{description.class}" unless description.is_a? String
|
219
220
|
|
220
|
-
|
221
|
+
submit_params['Description'] = description
|
222
|
+
end
|
221
223
|
|
222
224
|
body = perform_request('api/v1/admin/account/u2f/submit-challenge-response', submit_params)
|
223
225
|
json_body = JSON.parse body
|
@@ -538,6 +540,29 @@ module Comet
|
|
538
540
|
perform_request('api/v1/admin/branding/generate-client/linuxgeneric', submit_params)
|
539
541
|
end
|
540
542
|
|
543
|
+
# AdminBrandingGenerateClientMacosArm64
|
544
|
+
#
|
545
|
+
# Download software (macOS arm64 pkg).
|
546
|
+
#
|
547
|
+
# This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads.
|
548
|
+
# This API requires the Software Build Role to be enabled.
|
549
|
+
# This API requires the Auth Role to be enabled.
|
550
|
+
#
|
551
|
+
# @param [String] self_address (Optional) The external URL of this server, used to resolve conflicts
|
552
|
+
# @return [String]
|
553
|
+
def admin_branding_generate_client_macos_arm_64(self_address = nil)
|
554
|
+
submit_params = {}
|
555
|
+
if self_address.nil?
|
556
|
+
submit_params['SelfAddress'] = @server_address
|
557
|
+
else
|
558
|
+
raise TypeError, "'self_address' expected String, got #{self_address.class}" unless self_address.is_a? String
|
559
|
+
|
560
|
+
submit_params['SelfAddress'] = self_address
|
561
|
+
end
|
562
|
+
|
563
|
+
perform_request('api/v1/admin/branding/generate-client/macos-arm64', submit_params)
|
564
|
+
end
|
565
|
+
|
541
566
|
# AdminBrandingGenerateClientMacosX8664
|
542
567
|
#
|
543
568
|
# Download software (macOS x86_64 pkg).
|
@@ -815,7 +840,6 @@ module Comet
|
|
815
840
|
# Get Constellation bucket usage report (cached).
|
816
841
|
#
|
817
842
|
# You must supply administrator authentication credentials to use this API.
|
818
|
-
# This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
|
819
843
|
# This API requires the Constellation Role to be enabled.
|
820
844
|
#
|
821
845
|
# @return [Comet::ConstellationCheckReport]
|
@@ -833,7 +857,6 @@ module Comet
|
|
833
857
|
# Get Constellation bucket usage report (regenerate).
|
834
858
|
#
|
835
859
|
# You must supply administrator authentication credentials to use this API.
|
836
|
-
# This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
|
837
860
|
# This API requires the Constellation Role to be enabled.
|
838
861
|
#
|
839
862
|
# @return [Comet::ConstellationCheckReport]
|
@@ -869,7 +892,6 @@ module Comet
|
|
869
892
|
# Get Constellation status.
|
870
893
|
#
|
871
894
|
# You must supply administrator authentication credentials to use this API.
|
872
|
-
# This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
|
873
895
|
# This API requires the Constellation Role to be enabled.
|
874
896
|
#
|
875
897
|
# @return [Comet::ConstellationStatusAPIResponse]
|
@@ -1153,6 +1175,30 @@ module Comet
|
|
1153
1175
|
ret
|
1154
1176
|
end
|
1155
1177
|
|
1178
|
+
# AdminDispatcherGetDefaultLoginUrl
|
1179
|
+
#
|
1180
|
+
# Get the default login URL for a tenant.
|
1181
|
+
#
|
1182
|
+
# You must supply administrator authentication credentials to use this API.
|
1183
|
+
# This API requires the Auth Role to be enabled.
|
1184
|
+
# This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
|
1185
|
+
#
|
1186
|
+
# @param [String] organization_id Target organization
|
1187
|
+
# @return [Comet::OrganizationLoginURLResponse]
|
1188
|
+
def admin_dispatcher_get_default_login_url(organization_id)
|
1189
|
+
submit_params = {}
|
1190
|
+
raise TypeError, "'organization_id' expected String, got #{organization_id.class}" unless organization_id.is_a? String
|
1191
|
+
|
1192
|
+
submit_params['OrganizationID'] = organization_id
|
1193
|
+
|
1194
|
+
body = perform_request('api/v1/admin/dispatcher/get-default-login-url', submit_params)
|
1195
|
+
json_body = JSON.parse body
|
1196
|
+
check_status json_body
|
1197
|
+
ret = Comet::OrganizationLoginURLResponse.new
|
1198
|
+
ret.from_hash(json_body)
|
1199
|
+
ret
|
1200
|
+
end
|
1201
|
+
|
1156
1202
|
# AdminDispatcherImportApply
|
1157
1203
|
#
|
1158
1204
|
# Instruct a live connected device to import settings from an installed product.
|
@@ -2012,8 +2058,9 @@ module Comet
|
|
2012
2058
|
#
|
2013
2059
|
# @param [String] target_id The live connection GUID
|
2014
2060
|
# @param [String] new_url The new external URL of this server
|
2061
|
+
# @param [Boolean] force (Optional) No checks will be done using previous URL
|
2015
2062
|
# @return [Comet::CometAPIResponseMessage]
|
2016
|
-
def admin_dispatcher_update_login_url(target_id, new_url)
|
2063
|
+
def admin_dispatcher_update_login_url(target_id, new_url, force = nil)
|
2017
2064
|
submit_params = {}
|
2018
2065
|
raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
|
2019
2066
|
|
@@ -2021,6 +2068,9 @@ module Comet
|
|
2021
2068
|
raise TypeError, "'new_url' expected String, got #{new_url.class}" unless new_url.is_a? String
|
2022
2069
|
|
2023
2070
|
submit_params['NewURL'] = new_url
|
2071
|
+
unless force.nil?
|
2072
|
+
submit_params['Force'] = (force ? 1 : 0)
|
2073
|
+
end
|
2024
2074
|
|
2025
2075
|
body = perform_request('api/v1/admin/dispatcher/update-login-url', submit_params)
|
2026
2076
|
json_body = JSON.parse body
|
@@ -2521,6 +2571,46 @@ module Comet
|
|
2521
2571
|
ret
|
2522
2572
|
end
|
2523
2573
|
|
2574
|
+
# AdminMetaConstellationConfigGet
|
2575
|
+
#
|
2576
|
+
# Get Constellation configuration for the current organization.
|
2577
|
+
#
|
2578
|
+
# You must supply administrator authentication credentials to use this API.
|
2579
|
+
# This API requires the Constellation Role to be enabled.
|
2580
|
+
#
|
2581
|
+
# @return [Comet::ConstellationRoleOptions]
|
2582
|
+
def admin_meta_constellation_config_get
|
2583
|
+
body = perform_request('api/v1/admin/meta/constellation/config/get')
|
2584
|
+
json_body = JSON.parse body
|
2585
|
+
check_status json_body
|
2586
|
+
ret = Comet::ConstellationRoleOptions.new
|
2587
|
+
ret.from_hash(json_body)
|
2588
|
+
ret
|
2589
|
+
end
|
2590
|
+
|
2591
|
+
# AdminMetaConstellationConfigSet
|
2592
|
+
#
|
2593
|
+
# Set Constellation configuration for the current organization.
|
2594
|
+
#
|
2595
|
+
# You must supply administrator authentication credentials to use this API.
|
2596
|
+
# This API requires the Constellation Role to be enabled.
|
2597
|
+
#
|
2598
|
+
# @param [Comet::ConstellationRoleOptions] constellation_role_options Constellation role options to set
|
2599
|
+
# @return [Comet::CometAPIResponseMessage]
|
2600
|
+
def admin_meta_constellation_config_set(constellation_role_options)
|
2601
|
+
submit_params = {}
|
2602
|
+
raise TypeError, "'constellation_role_options' expected Comet::ConstellationRoleOptions, got #{constellation_role_options.class}" unless constellation_role_options.is_a? Comet::ConstellationRoleOptions
|
2603
|
+
|
2604
|
+
submit_params['ConstellationRoleOptions'] = constellation_role_options.to_json
|
2605
|
+
|
2606
|
+
body = perform_request('api/v1/admin/meta/constellation/config/set', submit_params)
|
2607
|
+
json_body = JSON.parse body
|
2608
|
+
check_status json_body
|
2609
|
+
ret = Comet::CometAPIResponseMessage.new
|
2610
|
+
ret.from_hash(json_body)
|
2611
|
+
ret
|
2612
|
+
end
|
2613
|
+
|
2524
2614
|
# AdminMetaListAvailableLogDays
|
2525
2615
|
#
|
2526
2616
|
# Get log files.
|
@@ -2546,6 +2636,69 @@ module Comet
|
|
2546
2636
|
ret
|
2547
2637
|
end
|
2548
2638
|
|
2639
|
+
# AdminMetaPsaConfigListGet
|
2640
|
+
#
|
2641
|
+
# Get the server PSA configuration.
|
2642
|
+
#
|
2643
|
+
# You must supply administrator authentication credentials to use this API.
|
2644
|
+
#
|
2645
|
+
# @return [Array<Comet::PSAConfig>]
|
2646
|
+
def admin_meta_psa_config_list_get
|
2647
|
+
body = perform_request('api/v1/admin/meta/psa-config-list/get')
|
2648
|
+
json_body = JSON.parse body
|
2649
|
+
check_status json_body
|
2650
|
+
if json_body.nil?
|
2651
|
+
ret = []
|
2652
|
+
else
|
2653
|
+
ret = Array.new(json_body.length)
|
2654
|
+
json_body.each_with_index do |v, i|
|
2655
|
+
ret[i] = Comet::PSAConfig.new
|
2656
|
+
ret[i].from_hash(v)
|
2657
|
+
end
|
2658
|
+
end
|
2659
|
+
ret
|
2660
|
+
end
|
2661
|
+
|
2662
|
+
# AdminMetaPsaConfigListSet
|
2663
|
+
#
|
2664
|
+
# Update the server PSA configuration.
|
2665
|
+
#
|
2666
|
+
# You must supply administrator authentication credentials to use this API.
|
2667
|
+
#
|
2668
|
+
# @param [Array<Comet::PSAConfig>] psaconfig_list The replacement PSA configuration list
|
2669
|
+
# @return [Comet::CometAPIResponseMessage]
|
2670
|
+
def admin_meta_psa_config_list_set(psaconfig_list)
|
2671
|
+
submit_params = {}
|
2672
|
+
raise TypeError, "'psaconfig_list' expected Array, got #{psaconfig_list.class}" unless psaconfig_list.is_a? Array
|
2673
|
+
|
2674
|
+
submit_params['PSAConfigList'] = psaconfig_list.to_json
|
2675
|
+
|
2676
|
+
body = perform_request('api/v1/admin/meta/psa-config-list/set', submit_params)
|
2677
|
+
json_body = JSON.parse body
|
2678
|
+
check_status json_body
|
2679
|
+
ret = Comet::CometAPIResponseMessage.new
|
2680
|
+
ret.from_hash(json_body)
|
2681
|
+
ret
|
2682
|
+
end
|
2683
|
+
|
2684
|
+
# AdminMetaPsaConfigListSyncNow
|
2685
|
+
#
|
2686
|
+
# Synchronize all PSA services now.
|
2687
|
+
# This API applies to the current Organization's PSAConfig's only.
|
2688
|
+
#
|
2689
|
+
# You must supply administrator authentication credentials to use this API.
|
2690
|
+
# This API requires the Auth Role to be enabled.
|
2691
|
+
#
|
2692
|
+
# @return [Comet::CometAPIResponseMessage]
|
2693
|
+
def admin_meta_psa_config_list_sync_now
|
2694
|
+
body = perform_request('api/v1/admin/meta/psa-config-list/sync-now')
|
2695
|
+
json_body = JSON.parse body
|
2696
|
+
check_status json_body
|
2697
|
+
ret = Comet::CometAPIResponseMessage.new
|
2698
|
+
ret.from_hash(json_body)
|
2699
|
+
ret
|
2700
|
+
end
|
2701
|
+
|
2549
2702
|
# AdminMetaReadAllLogs
|
2550
2703
|
#
|
2551
2704
|
# Get a ZIP file of all of the server's log files.
|
@@ -3023,6 +3176,29 @@ module Comet
|
|
3023
3176
|
ret
|
3024
3177
|
end
|
3025
3178
|
|
3179
|
+
# AdminOrganizationExport
|
3180
|
+
#
|
3181
|
+
# Run self-backup for a specific tenant.
|
3182
|
+
#
|
3183
|
+
# You must supply administrator authentication credentials to use this API.
|
3184
|
+
# This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
|
3185
|
+
#
|
3186
|
+
# @param [Comet::SelfBackupExportOptions] options The export config options
|
3187
|
+
# @return [Comet::CometAPIResponseMessage]
|
3188
|
+
def admin_organization_export(options)
|
3189
|
+
submit_params = {}
|
3190
|
+
raise TypeError, "'options' expected Comet::SelfBackupExportOptions, got #{options.class}" unless options.is_a? Comet::SelfBackupExportOptions
|
3191
|
+
|
3192
|
+
submit_params['Options'] = options.to_json
|
3193
|
+
|
3194
|
+
body = perform_request('api/v1/admin/organization/export', submit_params)
|
3195
|
+
json_body = JSON.parse body
|
3196
|
+
check_status json_body
|
3197
|
+
ret = Comet::CometAPIResponseMessage.new
|
3198
|
+
ret.from_hash(json_body)
|
3199
|
+
ret
|
3200
|
+
end
|
3201
|
+
|
3026
3202
|
# AdminOrganizationList
|
3027
3203
|
#
|
3028
3204
|
# List Organizations.
|
@@ -3390,9 +3566,9 @@ module Comet
|
|
3390
3566
|
#
|
3391
3567
|
# @param [String] target_user Selected account username
|
3392
3568
|
# @param [String] new_password New account password
|
3393
|
-
# @param [String] old_password Old account password
|
3569
|
+
# @param [String] old_password (Optional) Old account password. Required if no recovery code is present for the user account.
|
3394
3570
|
# @return [Comet::CometAPIResponseMessage]
|
3395
|
-
def admin_reset_user_password(target_user, new_password, old_password)
|
3571
|
+
def admin_reset_user_password(target_user, new_password, old_password = nil)
|
3396
3572
|
submit_params = {}
|
3397
3573
|
raise TypeError, "'target_user' expected String, got #{target_user.class}" unless target_user.is_a? String
|
3398
3574
|
|
@@ -3400,9 +3576,11 @@ module Comet
|
|
3400
3576
|
raise TypeError, "'new_password' expected String, got #{new_password.class}" unless new_password.is_a? String
|
3401
3577
|
|
3402
3578
|
submit_params['NewPassword'] = new_password
|
3403
|
-
|
3579
|
+
unless old_password.nil?
|
3580
|
+
raise TypeError, "'old_password' expected String, got #{old_password.class}" unless old_password.is_a? String
|
3404
3581
|
|
3405
|
-
|
3582
|
+
submit_params['OldPassword'] = old_password
|
3583
|
+
end
|
3406
3584
|
|
3407
3585
|
body = perform_request('api/v1/admin/reset-user-password', submit_params)
|
3408
3586
|
json_body = JSON.parse body
|
@@ -3440,6 +3618,23 @@ module Comet
|
|
3440
3618
|
ret
|
3441
3619
|
end
|
3442
3620
|
|
3621
|
+
# AdminSelfBackupStart
|
3622
|
+
#
|
3623
|
+
# Run self-backup on all targets.
|
3624
|
+
#
|
3625
|
+
# You must supply administrator authentication credentials to use this API.
|
3626
|
+
# This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
|
3627
|
+
#
|
3628
|
+
# @return [Comet::CometAPIResponseMessage]
|
3629
|
+
def admin_self_backup_start
|
3630
|
+
body = perform_request('api/v1/admin/self-backup/start')
|
3631
|
+
json_body = JSON.parse body
|
3632
|
+
check_status json_body
|
3633
|
+
ret = Comet::CometAPIResponseMessage.new
|
3634
|
+
ret.from_hash(json_body)
|
3635
|
+
ret
|
3636
|
+
end
|
3637
|
+
|
3443
3638
|
# AdminSetUserProfile
|
3444
3639
|
#
|
3445
3640
|
# Modify user account profile.
|
data/lib/comet/definitions.rb
CHANGED
@@ -135,6 +135,8 @@ module Comet
|
|
135
135
|
|
136
136
|
DESTINATIONTYPE_B2 = 1008
|
137
137
|
|
138
|
+
DESTINATIONTYPE_STORJ = 1009
|
139
|
+
|
138
140
|
DESTINATIONTYPE_LATEST = 1100
|
139
141
|
|
140
142
|
DESTINATIONTYPE_ALL = 1101
|
@@ -154,8 +156,6 @@ module Comet
|
|
154
156
|
# FtpsModeType:
|
155
157
|
FTPS_MODE_EXPLICIT = 2
|
156
158
|
|
157
|
-
INSTALLER_METADATA_FILE = 'installer.json'
|
158
|
-
|
159
159
|
# Severity:
|
160
160
|
SEVERITY_INFO = 'I'
|
161
161
|
|
@@ -218,6 +218,12 @@ module Comet
|
|
218
218
|
# RestoreType:
|
219
219
|
RESTORETYPE_VMDK_FILE_ARCHIVE = 9
|
220
220
|
|
221
|
+
# RestoreType:
|
222
|
+
RESTORETYPE_MYSQL = 10
|
223
|
+
|
224
|
+
# RestoreType:
|
225
|
+
RESTORETYPE_MSSQL = 11
|
226
|
+
|
221
227
|
# RestoreType: RESTORETYPE_PROCESS_ARCHIVE
|
222
228
|
RESTORETYPE_PROCESS_TARBALL = 3
|
223
229
|
|
@@ -362,6 +368,12 @@ module Comet
|
|
362
368
|
# MSSQLMethod:
|
363
369
|
MSSQL_METHOD_OLEDB_32 = 'OLEDB_32'
|
364
370
|
|
371
|
+
# MSSQLRestoreOpt:
|
372
|
+
MSSQL_RESTORE_RECOVERY = 'RECOVERY'
|
373
|
+
|
374
|
+
# MSSQLRestoreOpt:
|
375
|
+
MSSQL_RESTORE_NORECOVERY = 'NO_RECOVERY'
|
376
|
+
|
365
377
|
# StoredObjectType:
|
366
378
|
STOREDOBJECTTYPE_FILE = 'file'
|
367
379
|
|
@@ -469,15 +481,15 @@ module Comet
|
|
469
481
|
|
470
482
|
DEFAULT_TIMEZONE = 'UTC'
|
471
483
|
|
472
|
-
APPLICATION_VERSION = '22.
|
484
|
+
APPLICATION_VERSION = '22.11.2'
|
473
485
|
|
474
486
|
APPLICATION_VERSION_MAJOR = 22
|
475
487
|
|
476
|
-
APPLICATION_VERSION_MINOR =
|
488
|
+
APPLICATION_VERSION_MINOR = 11
|
477
489
|
|
478
|
-
APPLICATION_VERSION_REVISION =
|
490
|
+
APPLICATION_VERSION_REVISION = 2
|
479
491
|
|
480
|
-
RELEASE_CODENAME = '
|
492
|
+
RELEASE_CODENAME = 'Ananke'
|
481
493
|
|
482
494
|
ENCRYPTIONMETHOD_UNCONFIGURED = 0
|
483
495
|
|
@@ -662,6 +674,9 @@ module Comet
|
|
662
674
|
# RemoteServerType:
|
663
675
|
REMOTESERVER_AWS = 'aws'
|
664
676
|
|
677
|
+
# RemoteServerType:
|
678
|
+
REMOTESERVER_STORJ = 'storj'
|
679
|
+
|
665
680
|
# RemoteServerType:
|
666
681
|
REMOTESERVER_IDRIVEE2 = 'idrivee2'
|
667
682
|
|
@@ -716,6 +731,12 @@ module Comet
|
|
716
731
|
# StreamableEventType:
|
717
732
|
SEVT__MAX = 4999
|
718
733
|
|
734
|
+
# PSAType:
|
735
|
+
PSA_TYPE_GENERIC = 0
|
736
|
+
|
737
|
+
# PSAType:
|
738
|
+
PSA_TYPE_GRADIENT = 1
|
739
|
+
|
719
740
|
# CompressMode:
|
720
741
|
COMPRESS_INVALID = 0
|
721
742
|
|
@@ -27,6 +27,12 @@ module Comet
|
|
27
27
|
# @type [Boolean] allow_edit_remote_storage
|
28
28
|
attr_accessor :allow_edit_remote_storage
|
29
29
|
|
30
|
+
# @type [Boolean] allow_edit_webhooks
|
31
|
+
attr_accessor :allow_edit_webhooks
|
32
|
+
|
33
|
+
# @type [Boolean] deny_constellation_role
|
34
|
+
attr_accessor :deny_constellation_role
|
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
|
|
@@ -61,6 +67,10 @@ module Comet
|
|
61
67
|
@allow_edit_branding = v
|
62
68
|
when 'AllowEditRemoteStorage'
|
63
69
|
@allow_edit_remote_storage = v
|
70
|
+
when 'AllowEditWebhooks'
|
71
|
+
@allow_edit_webhooks = v
|
72
|
+
when 'DenyConstellationRole'
|
73
|
+
@deny_constellation_role = v
|
64
74
|
else
|
65
75
|
@unknown_json_fields[k] = v
|
66
76
|
end
|
@@ -85,6 +95,12 @@ module Comet
|
|
85
95
|
unless @allow_edit_remote_storage.nil?
|
86
96
|
ret['AllowEditRemoteStorage'] = @allow_edit_remote_storage
|
87
97
|
end
|
98
|
+
unless @allow_edit_webhooks.nil?
|
99
|
+
ret['AllowEditWebhooks'] = @allow_edit_webhooks
|
100
|
+
end
|
101
|
+
unless @deny_constellation_role.nil?
|
102
|
+
ret['DenyConstellationRole'] = @deny_constellation_role
|
103
|
+
end
|
88
104
|
@unknown_json_fields.each do |k, v|
|
89
105
|
ret[k] = v
|
90
106
|
end
|
@@ -150,6 +150,9 @@ module Comet
|
|
150
150
|
# @type [Comet::B2DestinationLocation] b2
|
151
151
|
attr_accessor :b2
|
152
152
|
|
153
|
+
# @type [Comet::StorjDestinationLocation] storj
|
154
|
+
attr_accessor :storj
|
155
|
+
|
153
156
|
# @type [Array<Comet::DestinationLocation>] span_targets
|
154
157
|
attr_accessor :span_targets
|
155
158
|
|
@@ -229,6 +232,7 @@ module Comet
|
|
229
232
|
@localcopy_win_smbpassword_format = 0
|
230
233
|
@swift = Comet::SwiftDestinationLocation.new
|
231
234
|
@b2 = Comet::B2DestinationLocation.new
|
235
|
+
@storj = Comet::StorjDestinationLocation.new
|
232
236
|
@span_targets = []
|
233
237
|
@encryption_key_encryption_method = 0
|
234
238
|
@encrypted_encryption_key = ''
|
@@ -445,6 +449,9 @@ module Comet
|
|
445
449
|
when 'B2'
|
446
450
|
@b2 = Comet::B2DestinationLocation.new
|
447
451
|
@b2.from_hash(v)
|
452
|
+
when 'Storj'
|
453
|
+
@storj = Comet::StorjDestinationLocation.new
|
454
|
+
@storj.from_hash(v)
|
448
455
|
when 'SpanTargets'
|
449
456
|
if v.nil?
|
450
457
|
@span_targets = []
|
@@ -538,6 +545,7 @@ module Comet
|
|
538
545
|
ret['LocalcopyWinSMBPasswordFormat'] = @localcopy_win_smbpassword_format
|
539
546
|
ret['Swift'] = @swift
|
540
547
|
ret['B2'] = @b2
|
548
|
+
ret['Storj'] = @storj
|
541
549
|
ret['SpanTargets'] = @span_targets
|
542
550
|
ret['SpanUseStaticSlots'] = @span_use_static_slots
|
543
551
|
ret['EncryptionKeyEncryptionMethod'] = @encryption_key_encryption_method
|
@@ -132,6 +132,9 @@ module Comet
|
|
132
132
|
# @type [Comet::B2DestinationLocation] b2
|
133
133
|
attr_accessor :b2
|
134
134
|
|
135
|
+
# @type [Comet::StorjDestinationLocation] storj
|
136
|
+
attr_accessor :storj
|
137
|
+
|
135
138
|
# @type [Array<Comet::DestinationLocation>] span_targets
|
136
139
|
attr_accessor :span_targets
|
137
140
|
|
@@ -181,6 +184,7 @@ module Comet
|
|
181
184
|
@localcopy_win_smbpassword_format = 0
|
182
185
|
@swift = Comet::SwiftDestinationLocation.new
|
183
186
|
@b2 = Comet::B2DestinationLocation.new
|
187
|
+
@storj = Comet::StorjDestinationLocation.new
|
184
188
|
@span_targets = []
|
185
189
|
@unknown_json_fields = {}
|
186
190
|
end
|
@@ -346,6 +350,9 @@ module Comet
|
|
346
350
|
when 'B2'
|
347
351
|
@b2 = Comet::B2DestinationLocation.new
|
348
352
|
@b2.from_hash(v)
|
353
|
+
when 'Storj'
|
354
|
+
@storj = Comet::StorjDestinationLocation.new
|
355
|
+
@storj.from_hash(v)
|
349
356
|
when 'SpanTargets'
|
350
357
|
if v.nil?
|
351
358
|
@span_targets = []
|
@@ -407,6 +414,7 @@ module Comet
|
|
407
414
|
ret['LocalcopyWinSMBPasswordFormat'] = @localcopy_win_smbpassword_format
|
408
415
|
ret['Swift'] = @swift
|
409
416
|
ret['B2'] = @b2
|
417
|
+
ret['Storj'] = @storj
|
410
418
|
ret['SpanTargets'] = @span_targets
|
411
419
|
ret['SpanUseStaticSlots'] = @span_use_static_slots
|
412
420
|
@unknown_json_fields.each do |k, v|
|
@@ -46,6 +46,9 @@ module Comet
|
|
46
46
|
# @type [Comet::AmazonAWSVirtualStorageRoleSettings] aws
|
47
47
|
attr_accessor :aws
|
48
48
|
|
49
|
+
# @type [Comet::StorjVirtualStorageRoleSetting] storj
|
50
|
+
attr_accessor :storj
|
51
|
+
|
49
52
|
# @type [Comet::AdminUserPermissions] new_user_permissions
|
50
53
|
attr_accessor :new_user_permissions
|
51
54
|
|
@@ -68,6 +71,7 @@ module Comet
|
|
68
71
|
@custom = Comet::CustomRemoteBucketSettings.new
|
69
72
|
@s3 = Comet::S3GenericVirtualStorageRole.new
|
70
73
|
@aws = Comet::AmazonAWSVirtualStorageRoleSettings.new
|
74
|
+
@storj = Comet::StorjVirtualStorageRoleSetting.new
|
71
75
|
@new_user_permissions = Comet::AdminUserPermissions.new
|
72
76
|
@unknown_json_fields = {}
|
73
77
|
end
|
@@ -123,6 +127,9 @@ module Comet
|
|
123
127
|
when 'AWS'
|
124
128
|
@aws = Comet::AmazonAWSVirtualStorageRoleSettings.new
|
125
129
|
@aws.from_hash(v)
|
130
|
+
when 'Storj'
|
131
|
+
@storj = Comet::StorjVirtualStorageRoleSetting.new
|
132
|
+
@storj.from_hash(v)
|
126
133
|
when 'NewUserPermissions'
|
127
134
|
@new_user_permissions = Comet::AdminUserPermissions.new
|
128
135
|
@new_user_permissions.from_hash(v)
|
@@ -164,6 +171,9 @@ module Comet
|
|
164
171
|
unless @aws.nil?
|
165
172
|
ret['AWS'] = @aws
|
166
173
|
end
|
174
|
+
unless @storj.nil?
|
175
|
+
ret['Storj'] = @storj
|
176
|
+
end
|
167
177
|
ret['NewUserPermissions'] = @new_user_permissions
|
168
178
|
@unknown_json_fields.each do |k, v|
|
169
179
|
ret[k] = v
|