comet_backup_ruby_sdk 2.9.0 → 2.10.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 +9 -0
- data/Gemfile.lock +1 -1
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/comet_server.rb +19 -1
- data/lib/comet/definitions.rb +33 -7
- data/lib/comet/models/admin_account_properties_response.rb +1 -0
- data/lib/comet/models/admin_security_options.rb +4 -0
- data/lib/comet/models/admin_u2fregistration.rb +2 -0
- data/lib/comet/models/admin_user_permissions.rb +73 -0
- data/lib/comet/models/admin_web_authn_registration.rb +2 -0
- data/lib/comet/models/allowed_admin_user.rb +4 -0
- data/lib/comet/models/authentication_role_options.rb +2 -0
- data/lib/comet/models/branding_options.rb +5 -0
- data/lib/comet/models/branding_properties.rb +5 -0
- data/lib/comet/models/bucket_properties.rb +2 -0
- data/lib/comet/models/constellation_stats.rb +5 -0
- data/lib/comet/models/device_config.rb +12 -0
- data/lib/comet/models/email_reporting_option.rb +2 -0
- data/lib/comet/models/external_ldapauthentication_source_server.rb +1 -0
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +1 -0
- data/lib/comet/models/install_token.rb +5 -0
- data/lib/comet/models/mac_oscode_sign_properties.rb +6 -0
- data/lib/comet/models/mssqlconnection.rb +3 -0
- data/lib/comet/models/news_entry.rb +1 -0
- data/lib/comet/models/osinfo.rb +30 -0
- data/lib/comet/models/partition.rb +5 -0
- data/lib/comet/models/private_branding_properties.rb +5 -0
- data/lib/comet/models/psaconfig.rb +4 -0
- data/lib/comet/models/restore_job_advanced_options.rb +16 -0
- data/lib/comet/models/retention_range.rb +8 -0
- data/lib/comet/models/search_clause.rb +16 -0
- data/lib/comet/models/self_backup_export_options.rb +1 -0
- data/lib/comet/models/self_backup_target.rb +1 -0
- data/lib/comet/models/server_config_options.rb +1 -0
- data/lib/comet/models/server_meta_branding_properties.rb +2 -0
- data/lib/comet/models/server_meta_version_info.rb +2 -0
- data/lib/comet/models/session_key_regenerated_response.rb +2 -0
- data/lib/comet/models/single_field_source.rb +1 -0
- data/lib/comet/models/software_update_news_response.rb +4 -0
- data/lib/comet/models/source_basic_info.rb +2 -0
- data/lib/comet/models/source_config.rb +20 -0
- data/lib/comet/models/storage_role_options.rb +1 -0
- data/lib/comet/models/totp_regenerated_response.rb +3 -0
- data/lib/comet/models/update_campaign_device_status.rb +1 -0
- data/lib/comet/models/update_campaign_properties.rb +1 -0
- data/lib/comet/models/update_campaign_status.rb +1 -0
- data/lib/comet/models/update_campaign_status_device_entry.rb +1 -0
- data/lib/comet/models/vault_snapshot.rb +1 -0
- data/lib/comet/models/vsscomponent.rb +1 -0
- data/lib/comet/models/web_authn_credential.rb +2 -0
- data/lib/comet/models/web_authn_credential_descriptor.rb +1 -0
- data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +1 -0
- data/lib/comet/models/web_authn_public_key_credential_request_options.rb +1 -0
- data/lib/comet/models/web_authn_user_entity.rb +1 -0
- data/lib/comet/models/windows_code_sign_properties.rb +4 -0
- 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: bf7e87fdc27ef3763c733ea58dc87801cee0f836a83aae1ef1bb7675a83d4af8
|
4
|
+
data.tar.gz: db96863bb3c92d8d1809b7db280af67c46c10922520ccb3ad3bc27de1d7aed65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bab833349a8fd00d7f32392f2fe4d1b796fb7c7299cdab66988b14e307a14ad24a50840aea05586fd37337a7e41fc0be606b1a6b5328e5ed8a78c0327e044df
|
7
|
+
data.tar.gz: 5997a150f92013e65f975872bd0028245fcb3d7f228a4bf81ed790fc0042d1db5227d84b36b9e5869ec83922c9e181d06d6aafae52d9951686a7c99f29d9fdda
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2023-07-11 v2.10.0
|
4
|
+
|
5
|
+
- Based on Comet 23.6.5
|
6
|
+
- Support `DeviceConfig->ClientVersion`
|
7
|
+
- Support new `OSInfo` and `RestoreJobAdvancedOptions` fields
|
8
|
+
- Support new `SourceConfig` fields for tracking policy-enforced Protected Items
|
9
|
+
- Support new optional parameters in `AdminDispatcherRunRestoreCustom` API
|
10
|
+
- Add many more documentation comments, including behaviour of base64 byte arrays
|
11
|
+
|
3
12
|
## 2023-06-01 v2.9.0
|
4
13
|
|
5
14
|
- Based on Comet 23.5.0
|
data/Gemfile.lock
CHANGED
@@ -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.10.0'
|
16
16
|
spec.authors = ['Comet Licensing Ltd.']
|
17
17
|
spec.email = ['hello@cometbackup.com']
|
18
18
|
|
data/lib/comet/comet_server.rb
CHANGED
@@ -1983,8 +1983,11 @@ module Comet
|
|
1983
1983
|
# @param [Comet::RestoreJobAdvancedOptions] options Restore targets
|
1984
1984
|
# @param [String] snapshot (Optional) If present, restore a specific snapshot. Otherwise, restore the latest snapshot for the selected Protected Item + Storage Vault pair
|
1985
1985
|
# @param [Array<String>] paths (Optional) If present, restore these paths only. Otherwise, restore all data
|
1986
|
+
# @param [Number] known_file_count (Optional) The number of files to restore, if known. Supplying this means we don't need to walk the entire tree just to find the file count and will speed up the restoration process.
|
1987
|
+
# @param [Number] known_byte_count (Optional) The total size in bytes of files to restore, if known. Supplying this means we don't need to walk the entire tree just to find the total file size and will speed up the restoration process.
|
1988
|
+
# @param [Number] known_dir_count (Optional) The number of directories to restore, if known. Supplying this means we don't need to walk the entire tree just to find the number of directories and will speed up the restoration process.
|
1986
1989
|
# @return [Comet::CometAPIResponseMessage]
|
1987
|
-
def admin_dispatcher_run_restore_custom(target_id, source, destination, options, snapshot = nil, paths = nil)
|
1990
|
+
def admin_dispatcher_run_restore_custom(target_id, source, destination, options, snapshot = nil, paths = nil, known_file_count = nil, known_byte_count = nil, known_dir_count = nil)
|
1988
1991
|
submit_params = {}
|
1989
1992
|
raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
|
1990
1993
|
|
@@ -2008,6 +2011,21 @@ module Comet
|
|
2008
2011
|
|
2009
2012
|
submit_params['Paths'] = paths.to_json
|
2010
2013
|
end
|
2014
|
+
unless known_file_count.nil?
|
2015
|
+
raise TypeError, "'known_file_count' expected Numeric, got #{known_file_count.class}" unless known_file_count.is_a? Numeric
|
2016
|
+
|
2017
|
+
submit_params['KnownFileCount'] = known_file_count
|
2018
|
+
end
|
2019
|
+
unless known_byte_count.nil?
|
2020
|
+
raise TypeError, "'known_byte_count' expected Numeric, got #{known_byte_count.class}" unless known_byte_count.is_a? Numeric
|
2021
|
+
|
2022
|
+
submit_params['KnownByteCount'] = known_byte_count
|
2023
|
+
end
|
2024
|
+
unless known_dir_count.nil?
|
2025
|
+
raise TypeError, "'known_dir_count' expected Numeric, got #{known_dir_count.class}" unless known_dir_count.is_a? Numeric
|
2026
|
+
|
2027
|
+
submit_params['KnownDirCount'] = known_dir_count
|
2028
|
+
end
|
2011
2029
|
|
2012
2030
|
body = perform_request('api/v1/admin/dispatcher/run-restore-custom', submit_params)
|
2013
2031
|
json_body = JSON.parse body
|
data/lib/comet/definitions.rb
CHANGED
@@ -7,13 +7,13 @@
|
|
7
7
|
|
8
8
|
module Comet
|
9
9
|
|
10
|
-
APPLICATION_VERSION = '23.5
|
10
|
+
APPLICATION_VERSION = '23.6.5'
|
11
11
|
|
12
12
|
APPLICATION_VERSION_MAJOR = 23
|
13
13
|
|
14
|
-
APPLICATION_VERSION_MINOR =
|
14
|
+
APPLICATION_VERSION_MINOR = 6
|
15
15
|
|
16
|
-
APPLICATION_VERSION_REVISION =
|
16
|
+
APPLICATION_VERSION_REVISION = 5
|
17
17
|
|
18
18
|
# AutoRetentionLevel: The system will automatically choose how often to run an automatic Retention Pass after each backup job.
|
19
19
|
BACKUPJOBAUTORETENTION_AUTOMATIC = 0
|
@@ -396,7 +396,7 @@ module Comet
|
|
396
396
|
# PSAType
|
397
397
|
PSA_TYPE_GRADIENT = 1
|
398
398
|
|
399
|
-
RELEASE_CODENAME = '
|
399
|
+
RELEASE_CODENAME = 'Voyager'
|
400
400
|
|
401
401
|
# RemoteServerType
|
402
402
|
REMOTESERVER_COMET = 'comet'
|
@@ -575,13 +575,13 @@ module Comet
|
|
575
575
|
|
576
576
|
SCHEDULE_MAXINT = 1_125_899_906_842_624
|
577
577
|
|
578
|
-
# SearchClauseType
|
578
|
+
# SearchClauseType: The search clause is an explicit rule
|
579
579
|
SEARCHCLAUSE_RULE = ''
|
580
580
|
|
581
|
-
# SearchClauseType
|
581
|
+
# SearchClauseType: All of the ClauseChildren must match
|
582
582
|
SEARCHCLAUSE_AND = 'and'
|
583
583
|
|
584
|
-
# SearchClauseType
|
584
|
+
# SearchClauseType: At least one of the ClauseChildren must match
|
585
585
|
SEARCHCLAUSE_OR = 'or'
|
586
586
|
|
587
587
|
# SearchClauseType
|
@@ -590,56 +590,82 @@ module Comet
|
|
590
590
|
# SearchClauseType
|
591
591
|
SEARCHCLAUSE_NOT_OR = 'not_or'
|
592
592
|
|
593
|
+
# String equals (case sensitive)
|
593
594
|
SEARCHOPERATOR_STRING_EQ = 'str_eq'
|
594
595
|
|
596
|
+
# String does not equal (case sensitive)
|
595
597
|
SEARCHOPERATOR_STRING_NEQ = 'str_neq'
|
596
598
|
|
599
|
+
# String contains anywhere (case sensitive)
|
597
600
|
SEARCHOPERATOR_STRING_CONTAINS = 'str_contains'
|
598
601
|
|
602
|
+
# String does not contain anywhere (case sensitive)
|
599
603
|
SEARCHOPERATOR_STRING_NCONTAINS = 'str_ncontains'
|
600
604
|
|
605
|
+
# String starts with prefix (case sensitive)
|
601
606
|
SEARCHOPERATOR_STRING_STARTSWITH = 'str_startswith'
|
602
607
|
|
608
|
+
# String does not start with prefix (case sensitive)
|
603
609
|
SEARCHOPERATOR_STRING_NSTARTSWITH = 'str_nstartswith'
|
604
610
|
|
611
|
+
# String ends with suffix (case sensitive)
|
605
612
|
SEARCHOPERATOR_STRING_ENDSWITH = 'str_endswith'
|
606
613
|
|
614
|
+
# String does not end with suffix (case sensitive)
|
607
615
|
SEARCHOPERATOR_STRING_NENDSWITH = 'str_nendswith'
|
608
616
|
|
617
|
+
# String equals (case insensitive)
|
609
618
|
SEARCHOPERATOR_STRING_EQ_CI = 'str_eq_ci'
|
610
619
|
|
620
|
+
# String does not equal (case insensitive)
|
611
621
|
SEARCHOPERATOR_STRING_NEQ_CI = 'str_neq_ci'
|
612
622
|
|
623
|
+
# String contains anywhere (case sensitive)
|
613
624
|
SEARCHOPERATOR_STRING_CONTAINS_CI = 'str_contains_ci'
|
614
625
|
|
626
|
+
# String does not contain anywhere (case sensitive)
|
615
627
|
SEARCHOPERATOR_STRING_NCONTAINS_CI = 'str_ncontains_ci'
|
616
628
|
|
629
|
+
# String starts with prefix (case sensitive)
|
617
630
|
SEARCHOPERATOR_STRING_STARTSWITH_CI = 'str_startswith_ci'
|
618
631
|
|
632
|
+
# String does not start with (case sensitive)
|
619
633
|
SEARCHOPERATOR_STRING_NSTARTSWITH_CI = 'str_nstartswith_ci'
|
620
634
|
|
635
|
+
# String ends with suffix (case sensitive)
|
621
636
|
SEARCHOPERATOR_STRING_ENDSWITH_CI = 'str_endswith_ci'
|
622
637
|
|
638
|
+
# String does not end with suffix (case sensitive)
|
623
639
|
SEARCHOPERATOR_STRING_NENDSWITH_CI = 'str_nendswith_ci'
|
624
640
|
|
641
|
+
# String matches provided regular expression (using Go regex syntax)
|
625
642
|
SEARCHOPERATOR_STRING_REGEXMATCH = 'str_regexmatch'
|
626
643
|
|
644
|
+
# String does not match provided regular expression (using Go regex syntax)
|
627
645
|
SEARCHOPERATOR_STRING_NREGEXMATCH = 'str_nregexmatch'
|
628
646
|
|
647
|
+
# Integer field is equal to value
|
629
648
|
SEARCHOPERATOR_INT_EQ = 'int_eq'
|
630
649
|
|
650
|
+
# Integer field is not equal to value
|
631
651
|
SEARCHOPERATOR_INT_NEQ = 'int_neq'
|
632
652
|
|
653
|
+
# Integer field is greater than value
|
633
654
|
SEARCHOPERATOR_INT_GT = 'int_gt'
|
634
655
|
|
656
|
+
# Integer field is greater than or equal to value
|
635
657
|
SEARCHOPERATOR_INT_GTE = 'int_gte'
|
636
658
|
|
659
|
+
# Integer field is less than value
|
637
660
|
SEARCHOPERATOR_INT_LT = 'int_lt'
|
638
661
|
|
662
|
+
# Integer field is less than or equal to value
|
639
663
|
SEARCHOPERATOR_INT_LTE = 'int_lte'
|
640
664
|
|
665
|
+
# Boolean field matches value
|
641
666
|
SEARCHOPERATOR_BOOL_IS = 'bool_is'
|
642
667
|
|
668
|
+
# Boolean field does not match value
|
643
669
|
SEARCHOPERATOR_BOOL_NIS = 'bool_nis'
|
644
670
|
|
645
671
|
# 0000 0001. If this value is present in the bitset, then the Calendar service is selected for backup.
|
@@ -12,6 +12,7 @@ module Comet
|
|
12
12
|
# AdminSecurityOptions is a typed class wrapper around the underlying Comet Server API data structure.
|
13
13
|
class AdminSecurityOptions
|
14
14
|
|
15
|
+
# One of the PASSWORD_FORMAT_ constants
|
15
16
|
# @type [Number] password_format
|
16
17
|
attr_accessor :password_format
|
17
18
|
|
@@ -38,12 +39,15 @@ module Comet
|
|
38
39
|
# @type [Array<Comet::AdminWebAuthnRegistration>] web_authn_registrations
|
39
40
|
attr_accessor :web_authn_registrations
|
40
41
|
|
42
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
41
43
|
# @type [Number] totpkey_encryption_format
|
42
44
|
attr_accessor :totpkey_encryption_format
|
43
45
|
|
44
46
|
# @type [String] totpkey
|
45
47
|
attr_accessor :totpkey
|
46
48
|
|
49
|
+
# A regular expression in Go regex syntax, for which IP addresses are allowed to authenticate as
|
50
|
+
# this admin account
|
47
51
|
# @type [String] ipwhitelist
|
48
52
|
attr_accessor :ipwhitelist
|
49
53
|
|
@@ -17,9 +17,11 @@ module Comet
|
|
17
17
|
# @type [String] description
|
18
18
|
attr_accessor :description
|
19
19
|
|
20
|
+
# Unix timestamp, in seconds.
|
20
21
|
# @type [Number] register_time
|
21
22
|
attr_accessor :register_time
|
22
23
|
|
24
|
+
# When this field is expressed as a AdminU2FRegistration class instance, this field may contain binary data. When this field is expressed as JSON, the field is expressed as base64. The marshalling methods on this class will automatically perform base64 conversion as necessary.
|
23
25
|
# @type [Array<Object>] registration
|
24
26
|
attr_accessor :registration
|
25
27
|
|
@@ -36,6 +36,34 @@ module Comet
|
|
36
36
|
# @type [Boolean] deny_constellation_role
|
37
37
|
attr_accessor :deny_constellation_role
|
38
38
|
|
39
|
+
# This field is available in Comet 23.6.0 and later.
|
40
|
+
# @type [Boolean] deny_view_server_history
|
41
|
+
attr_accessor :deny_view_server_history
|
42
|
+
|
43
|
+
# This field is available in Comet 23.6.0 and later.
|
44
|
+
# @type [Boolean] deny_view_server_info
|
45
|
+
attr_accessor :deny_view_server_info
|
46
|
+
|
47
|
+
# This field is available in Comet 23.6.0 and later.
|
48
|
+
# @type [Boolean] prevent_request_storage_vault
|
49
|
+
attr_accessor :prevent_request_storage_vault
|
50
|
+
|
51
|
+
# This field is available in Comet 23.6.0 and later.
|
52
|
+
# @type [Boolean] prevent_add_custom_storage_vault
|
53
|
+
attr_accessor :prevent_add_custom_storage_vault
|
54
|
+
|
55
|
+
# This field is available in Comet 23.6.0 and later.
|
56
|
+
# @type [Boolean] hide_cloud_storage_branding
|
57
|
+
attr_accessor :hide_cloud_storage_branding
|
58
|
+
|
59
|
+
# This field is available in Comet 23.6.0 and later.
|
60
|
+
# @type [Boolean] should_restrict_provider_list
|
61
|
+
attr_accessor :should_restrict_provider_list
|
62
|
+
|
63
|
+
# This field is available in Comet 23.6.0 and later.
|
64
|
+
# @type [Array<Number>] allowed_providers_when_restricted
|
65
|
+
attr_accessor :allowed_providers_when_restricted
|
66
|
+
|
39
67
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
40
68
|
attr_accessor :unknown_json_fields
|
41
69
|
|
@@ -44,6 +72,7 @@ module Comet
|
|
44
72
|
end
|
45
73
|
|
46
74
|
def clear
|
75
|
+
@allowed_providers_when_restricted = []
|
47
76
|
@unknown_json_fields = {}
|
48
77
|
end
|
49
78
|
|
@@ -76,6 +105,29 @@ module Comet
|
|
76
105
|
@allow_edit_webhooks = v
|
77
106
|
when 'DenyConstellationRole'
|
78
107
|
@deny_constellation_role = v
|
108
|
+
when 'DenyViewServerHistory'
|
109
|
+
@deny_view_server_history = v
|
110
|
+
when 'DenyViewServerInfo'
|
111
|
+
@deny_view_server_info = v
|
112
|
+
when 'PreventRequestStorageVault'
|
113
|
+
@prevent_request_storage_vault = v
|
114
|
+
when 'PreventAddCustomStorageVault'
|
115
|
+
@prevent_add_custom_storage_vault = v
|
116
|
+
when 'HideCloudStorageBranding'
|
117
|
+
@hide_cloud_storage_branding = v
|
118
|
+
when 'ShouldRestrictProviderList'
|
119
|
+
@should_restrict_provider_list = v
|
120
|
+
when 'AllowedProvidersWhenRestricted'
|
121
|
+
if v.nil?
|
122
|
+
@allowed_providers_when_restricted = []
|
123
|
+
else
|
124
|
+
@allowed_providers_when_restricted = Array.new(v.length)
|
125
|
+
v.each_with_index do |v1, i1|
|
126
|
+
raise TypeError, "'v1' expected Numeric, got #{v1.class}" unless v1.is_a? Numeric
|
127
|
+
|
128
|
+
@allowed_providers_when_restricted[i1] = v1
|
129
|
+
end
|
130
|
+
end
|
79
131
|
else
|
80
132
|
@unknown_json_fields[k] = v
|
81
133
|
end
|
@@ -109,6 +161,27 @@ module Comet
|
|
109
161
|
unless @deny_constellation_role.nil?
|
110
162
|
ret['DenyConstellationRole'] = @deny_constellation_role
|
111
163
|
end
|
164
|
+
unless @deny_view_server_history.nil?
|
165
|
+
ret['DenyViewServerHistory'] = @deny_view_server_history
|
166
|
+
end
|
167
|
+
unless @deny_view_server_info.nil?
|
168
|
+
ret['DenyViewServerInfo'] = @deny_view_server_info
|
169
|
+
end
|
170
|
+
unless @prevent_request_storage_vault.nil?
|
171
|
+
ret['PreventRequestStorageVault'] = @prevent_request_storage_vault
|
172
|
+
end
|
173
|
+
unless @prevent_add_custom_storage_vault.nil?
|
174
|
+
ret['PreventAddCustomStorageVault'] = @prevent_add_custom_storage_vault
|
175
|
+
end
|
176
|
+
unless @hide_cloud_storage_branding.nil?
|
177
|
+
ret['HideCloudStorageBranding'] = @hide_cloud_storage_branding
|
178
|
+
end
|
179
|
+
unless @should_restrict_provider_list.nil?
|
180
|
+
ret['ShouldRestrictProviderList'] = @should_restrict_provider_list
|
181
|
+
end
|
182
|
+
unless @allowed_providers_when_restricted.nil?
|
183
|
+
ret['AllowedProvidersWhenRestricted'] = @allowed_providers_when_restricted
|
184
|
+
end
|
112
185
|
@unknown_json_fields.each do |k, v|
|
113
186
|
ret[k] = v
|
114
187
|
end
|
@@ -16,6 +16,7 @@ module Comet
|
|
16
16
|
# @type [String] description
|
17
17
|
attr_accessor :description
|
18
18
|
|
19
|
+
# Unix timestamp, in seconds.
|
19
20
|
# @type [Number] register_time
|
20
21
|
attr_accessor :register_time
|
21
22
|
|
@@ -25,6 +26,7 @@ module Comet
|
|
25
26
|
# @type [Boolean] is_legacy_u2f
|
26
27
|
attr_accessor :is_legacy_u2f
|
27
28
|
|
29
|
+
# When this field is expressed as a AdminWebAuthnRegistration class instance, this field may contain binary data. When this field is expressed as JSON, the field is expressed as base64. The marshalling methods on this class will automatically perform base64 conversion as necessary.
|
28
30
|
# @type [Array<Object>] id
|
29
31
|
attr_accessor :id
|
30
32
|
|
@@ -21,6 +21,7 @@ module Comet
|
|
21
21
|
# @type [String] external_authentication_source
|
22
22
|
attr_accessor :external_authentication_source
|
23
23
|
|
24
|
+
# One of the PASSWORD_FORMAT_ constants
|
24
25
|
# @type [Number] password_format
|
25
26
|
attr_accessor :password_format
|
26
27
|
|
@@ -47,12 +48,15 @@ module Comet
|
|
47
48
|
# @type [Array<Comet::AdminWebAuthnRegistration>] web_authn_registrations
|
48
49
|
attr_accessor :web_authn_registrations
|
49
50
|
|
51
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
50
52
|
# @type [Number] totpkey_encryption_format
|
51
53
|
attr_accessor :totpkey_encryption_format
|
52
54
|
|
53
55
|
# @type [String] totpkey
|
54
56
|
attr_accessor :totpkey
|
55
57
|
|
58
|
+
# A regular expression in Go regex syntax, for which IP addresses are allowed to authenticate as
|
59
|
+
# this admin account
|
56
60
|
# @type [String] ipwhitelist
|
57
61
|
attr_accessor :ipwhitelist
|
58
62
|
|
@@ -15,12 +15,14 @@ module Comet
|
|
15
15
|
# @type [Boolean] role_enabled
|
16
16
|
attr_accessor :role_enabled
|
17
17
|
|
18
|
+
# One of the INTEGRITYCHECK_ constants
|
18
19
|
# @type [Number] database_check_level
|
19
20
|
attr_accessor :database_check_level
|
20
21
|
|
21
22
|
# @type [Boolean] generate_missed_backup_events
|
22
23
|
attr_accessor :generate_missed_backup_events
|
23
24
|
|
25
|
+
# Unix timestamp in seconds, before which no Missed jobs are created
|
24
26
|
# @type [Number] no_missed_backup_events_before
|
25
27
|
attr_accessor :no_missed_backup_events_before
|
26
28
|
|
@@ -59,6 +59,7 @@ module Comet
|
|
59
59
|
# @type [Boolean] hide_background_logo
|
60
60
|
attr_accessor :hide_background_logo
|
61
61
|
|
62
|
+
# One of the CLIENTBRANDINGBUILD_ constants
|
62
63
|
# @type [Number] build_mode
|
63
64
|
attr_accessor :build_mode
|
64
65
|
|
@@ -86,12 +87,14 @@ module Comet
|
|
86
87
|
# @type [String] package_identifier
|
87
88
|
attr_accessor :package_identifier
|
88
89
|
|
90
|
+
# One of the WINDOWSCODESIGN_METHOD_ constants
|
89
91
|
# @type [Number] windows_code_sign_method
|
90
92
|
attr_accessor :windows_code_sign_method
|
91
93
|
|
92
94
|
# @type [String] windows_code_sign_pkcs12file_path
|
93
95
|
attr_accessor :windows_code_sign_pkcs12file_path
|
94
96
|
|
97
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
95
98
|
# @type [Number] windows_code_sign_pkcs12password_format
|
96
99
|
attr_accessor :windows_code_sign_pkcs12password_format
|
97
100
|
|
@@ -111,6 +114,7 @@ module Comet
|
|
111
114
|
# @type [String] windows_code_sign_pkcs11key_id
|
112
115
|
attr_accessor :windows_code_sign_pkcs11key_id
|
113
116
|
|
117
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
114
118
|
# @type [Number] windows_code_sign_pkcs11password_format
|
115
119
|
attr_accessor :windows_code_sign_pkcs11password_format
|
116
120
|
|
@@ -126,6 +130,7 @@ module Comet
|
|
126
130
|
# @type [String] windows_code_sign_azure_app_id
|
127
131
|
attr_accessor :windows_code_sign_azure_app_id
|
128
132
|
|
133
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
129
134
|
# @type [Number] windows_code_sign_azure_app_secret_format
|
130
135
|
attr_accessor :windows_code_sign_azure_app_secret_format
|
131
136
|
|
@@ -36,6 +36,7 @@ module Comet
|
|
36
36
|
# @type [Boolean] hide_background_logo
|
37
37
|
attr_accessor :hide_background_logo
|
38
38
|
|
39
|
+
# One of the CLIENTBRANDINGBUILD_ constants
|
39
40
|
# @type [Number] build_mode
|
40
41
|
attr_accessor :build_mode
|
41
42
|
|
@@ -63,12 +64,14 @@ module Comet
|
|
63
64
|
# @type [String] package_identifier
|
64
65
|
attr_accessor :package_identifier
|
65
66
|
|
67
|
+
# One of the WINDOWSCODESIGN_METHOD_ constants
|
66
68
|
# @type [Number] windows_code_sign_method
|
67
69
|
attr_accessor :windows_code_sign_method
|
68
70
|
|
69
71
|
# @type [String] windows_code_sign_pkcs12file_path
|
70
72
|
attr_accessor :windows_code_sign_pkcs12file_path
|
71
73
|
|
74
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
72
75
|
# @type [Number] windows_code_sign_pkcs12password_format
|
73
76
|
attr_accessor :windows_code_sign_pkcs12password_format
|
74
77
|
|
@@ -88,6 +91,7 @@ module Comet
|
|
88
91
|
# @type [String] windows_code_sign_pkcs11key_id
|
89
92
|
attr_accessor :windows_code_sign_pkcs11key_id
|
90
93
|
|
94
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
91
95
|
# @type [Number] windows_code_sign_pkcs11password_format
|
92
96
|
attr_accessor :windows_code_sign_pkcs11password_format
|
93
97
|
|
@@ -103,6 +107,7 @@ module Comet
|
|
103
107
|
# @type [String] windows_code_sign_azure_app_id
|
104
108
|
attr_accessor :windows_code_sign_azure_app_id
|
105
109
|
|
110
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
106
111
|
# @type [Number] windows_code_sign_azure_app_secret_format
|
107
112
|
attr_accessor :windows_code_sign_azure_app_secret_format
|
108
113
|
|
@@ -15,9 +15,11 @@ module Comet
|
|
15
15
|
# @type [String] organization_id
|
16
16
|
attr_accessor :organization_id
|
17
17
|
|
18
|
+
# Unix timestamp, in seconds.
|
18
19
|
# @type [Number] create_time
|
19
20
|
attr_accessor :create_time
|
20
21
|
|
22
|
+
# One of the PASSWORD_FORMAT_ constants
|
21
23
|
# @type [Number] read_write_key_format
|
22
24
|
attr_accessor :read_write_key_format
|
23
25
|
|
@@ -12,12 +12,17 @@ module Comet
|
|
12
12
|
# ConstellationStats is a typed class wrapper around the underlying Comet Server API data structure.
|
13
13
|
class ConstellationStats
|
14
14
|
|
15
|
+
# Unix timestamp, in seconds.
|
15
16
|
# @type [Number] last_check_start
|
16
17
|
attr_accessor :last_check_start
|
17
18
|
|
19
|
+
# The total number of Constellation bucket report scans that have been performed since this Comet
|
20
|
+
# Server was last restarted
|
18
21
|
# @type [Number] total_checks_started
|
19
22
|
attr_accessor :total_checks_started
|
20
23
|
|
24
|
+
# The total number of buckets that Constellation has successfully deleted since this Comet Server
|
25
|
+
# was last restarted
|
21
26
|
# @type [Number] total_buckets_deleted
|
22
27
|
attr_accessor :total_buckets_deleted
|
23
28
|
|
@@ -32,6 +32,10 @@ module Comet
|
|
32
32
|
# @type [String] device_timezone
|
33
33
|
attr_accessor :device_timezone
|
34
34
|
|
35
|
+
# This field is available in Comet 23.6.0 and later.
|
36
|
+
# @type [String] client_version
|
37
|
+
attr_accessor :client_version
|
38
|
+
|
35
39
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
36
40
|
attr_accessor :unknown_json_fields
|
37
41
|
|
@@ -45,6 +49,7 @@ module Comet
|
|
45
49
|
@platform_version = Comet::OSInfo.new
|
46
50
|
@sources = {}
|
47
51
|
@device_timezone = ''
|
52
|
+
@client_version = ''
|
48
53
|
@unknown_json_fields = {}
|
49
54
|
end
|
50
55
|
|
@@ -86,6 +91,10 @@ module Comet
|
|
86
91
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
87
92
|
|
88
93
|
@device_timezone = v
|
94
|
+
when 'ClientVersion'
|
95
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
96
|
+
|
97
|
+
@client_version = v
|
89
98
|
else
|
90
99
|
@unknown_json_fields[k] = v
|
91
100
|
end
|
@@ -108,6 +117,9 @@ module Comet
|
|
108
117
|
unless @device_timezone.nil?
|
109
118
|
ret['DeviceTimezone'] = @device_timezone
|
110
119
|
end
|
120
|
+
unless @client_version.nil?
|
121
|
+
ret['ClientVersion'] = @client_version
|
122
|
+
end
|
111
123
|
@unknown_json_fields.each do |k, v|
|
112
124
|
ret[k] = v
|
113
125
|
end
|
@@ -15,9 +15,11 @@ module Comet
|
|
15
15
|
# @type [Comet::EmailReportConfig] email_report_config
|
16
16
|
attr_accessor :email_report_config
|
17
17
|
|
18
|
+
# A supported language code (e.g. "en_US" or the DEFAULT_LANGUAGE constant)
|
18
19
|
# @type [String] language_code
|
19
20
|
attr_accessor :language_code
|
20
21
|
|
22
|
+
# The timezone in IANA format (e.g. "Pacific/Auckland" or the DEFAULT_TIMEZONE constant)
|
21
23
|
# @type [String] local_timezone
|
22
24
|
attr_accessor :local_timezone
|
23
25
|
|
@@ -15,18 +15,23 @@ module Comet
|
|
15
15
|
# @type [String] username
|
16
16
|
attr_accessor :username
|
17
17
|
|
18
|
+
# The URL of the Comet Server (Auth Role) for the target user to log in to.
|
18
19
|
# @type [String] server
|
19
20
|
attr_accessor :server
|
20
21
|
|
22
|
+
# The token for use with the "/TOKEN=" silent install flag.
|
21
23
|
# @type [String] token
|
22
24
|
attr_accessor :token
|
23
25
|
|
26
|
+
# Unix timestamp, in seconds.
|
24
27
|
# @type [Number] create_time
|
25
28
|
attr_accessor :create_time
|
26
29
|
|
30
|
+
# If the token has been used, it cannot be used again.
|
27
31
|
# @type [Boolean] used
|
28
32
|
attr_accessor :used
|
29
33
|
|
34
|
+
# Unix timestamp, in seconds.
|
30
35
|
# @type [Number] expire_time
|
31
36
|
attr_accessor :expire_time
|
32
37
|
|
@@ -22,9 +22,13 @@ module Comet
|
|
22
22
|
# @type [Comet::SSHConnection] sshserver
|
23
23
|
attr_accessor :sshserver
|
24
24
|
|
25
|
+
# "Developer ID Installer" certificate, either a local filepath or a resource:// URI. Used for
|
26
|
+
# signing the final flat *.pkg.
|
25
27
|
# @type [String] certificate_name
|
26
28
|
attr_accessor :certificate_name
|
27
29
|
|
30
|
+
# "Developer ID Application" certificate, either a local filepath or a resource:// URI. Used for
|
31
|
+
# signing internal binaries if Notary is enabled
|
28
32
|
# @type [String] app_certificate_name
|
29
33
|
attr_accessor :app_certificate_name
|
30
34
|
|
@@ -34,6 +38,7 @@ module Comet
|
|
34
38
|
# @type [String] apple_idpass
|
35
39
|
attr_accessor :apple_idpass
|
36
40
|
|
41
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
37
42
|
# @type [Number] apple_idpass_format
|
38
43
|
attr_accessor :apple_idpass_format
|
39
44
|
|
@@ -46,6 +51,7 @@ module Comet
|
|
46
51
|
# @type [String] pfx_file_password
|
47
52
|
attr_accessor :pfx_file_password
|
48
53
|
|
54
|
+
# One of the ENCRYPTIONMETHOD_ constants
|
49
55
|
# @type [Number] pfx_file_password_format
|
50
56
|
attr_accessor :pfx_file_password_format
|
51
57
|
|
@@ -12,6 +12,7 @@ module Comet
|
|
12
12
|
# MSSQLConnection is a typed class wrapper around the underlying Comet Server API data structure.
|
13
13
|
class MSSQLConnection
|
14
14
|
|
15
|
+
# One of the MSSQL_AUTH_ constants (e.g. "windows" or "native")
|
15
16
|
# @type [String] type
|
16
17
|
attr_accessor :type
|
17
18
|
|
@@ -22,11 +23,13 @@ module Comet
|
|
22
23
|
attr_accessor :password
|
23
24
|
|
24
25
|
# @type [String] hostname
|
26
|
+
# @deprecated This member has been deprecated since Comet version Unused
|
25
27
|
attr_accessor :hostname
|
26
28
|
|
27
29
|
# @type [String] instance_name
|
28
30
|
attr_accessor :instance_name
|
29
31
|
|
32
|
+
# One of the MSSQL_METHOD_ constants, to control using x86_32 or x86_64 OLEDB drivers
|
30
33
|
# @type [String] method
|
31
34
|
attr_accessor :method
|
32
35
|
|