comet_backup_ruby_sdk 2.8.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 +20 -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 +193 -44
- 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/azure_destination_location.rb +2 -0
- data/lib/comet/models/b2destination_location.rb +2 -0
- data/lib/comet/models/backup_job_advanced_options.rb +3 -0
- data/lib/comet/models/backup_job_detail.rb +1 -0
- data/lib/comet/models/backup_job_progress.rb +4 -1
- data/lib/comet/models/backup_rule_config.rb +4 -0
- data/lib/comet/models/branding_options.rb +7 -0
- data/lib/comet/models/branding_properties.rb +5 -0
- data/lib/comet/models/bucket_properties.rb +2 -0
- data/lib/comet/models/comet_destination_location.rb +1 -0
- data/lib/comet/models/constellation_check_report.rb +2 -0
- data/lib/comet/models/constellation_stats.rb +5 -0
- data/lib/comet/models/content_measurement.rb +2 -0
- data/lib/comet/models/content_measurement_component.rb +12 -0
- data/lib/comet/models/default_email_report_policy.rb +4 -0
- data/lib/comet/models/destination_config.rb +35 -1
- data/lib/comet/models/destination_location.rb +33 -1
- data/lib/comet/models/destination_statistics.rb +2 -0
- data/lib/comet/models/device_config.rb +13 -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/file_option.rb +132 -0
- data/lib/comet/models/ftpdestination_location.rb +5 -1
- data/lib/comet/models/install_token.rb +5 -0
- data/lib/comet/models/local_destination_location.rb +5 -0
- data/lib/comet/models/mac_oscode_sign_properties.rb +7 -0
- data/lib/comet/models/mssqlconnection.rb +3 -0
- data/lib/comet/models/mssqllogin_args.rb +2 -0
- data/lib/comet/models/my_sqlconnection.rb +2 -0
- data/lib/comet/models/news_entry.rb +1 -0
- data/lib/comet/models/office_365custom_setting.rb +3 -0
- data/lib/comet/models/office_365custom_setting_v2.rb +9 -0
- data/lib/comet/models/organization.rb +85 -70
- 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 +17 -0
- data/lib/comet/models/retention_range.rb +8 -0
- data/lib/comet/models/search_clause.rb +16 -0
- data/lib/comet/models/search_result_file_info.rb +39 -17
- data/lib/comet/models/self_backup_export_options.rb +4 -0
- data/lib/comet/models/self_backup_target.rb +5 -0
- data/lib/comet/models/server_config_options.rb +24 -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/session_options.rb +2 -0
- data/lib/comet/models/sftpdestination_location.rb +7 -0
- data/lib/comet/models/single_field_source.rb +1 -0
- data/lib/comet/models/size_measurement.rb +3 -0
- data/lib/comet/models/software_update_news_response.rb +4 -0
- data/lib/comet/models/source_basic_info.rb +3 -0
- data/lib/comet/models/source_config.rb +26 -4
- data/lib/comet/models/source_include_pattern.rb +5 -0
- data/lib/comet/models/spanned_destination_location.rb +11 -0
- data/lib/comet/models/sshconnection.rb +6 -0
- data/lib/comet/models/storage_role_options.rb +1 -0
- data/lib/comet/models/stored_object.rb +7 -0
- data/lib/comet/models/streamable_event.rb +42 -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/user_profile_config.rb +9 -0
- data/lib/comet/models/user_profile_fragment.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/web_interface_branding_properties.rb +2 -0
- data/lib/comet/models/webhook_option.rb +35 -16
- data/lib/comet/models/windows_code_sign_properties.rb +4 -0
- data/lib/comet_backup_ruby_sdk.rb +1 -0
- metadata +3 -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,25 @@
|
|
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
|
+
|
12
|
+
## 2023-06-01 v2.9.0
|
13
|
+
|
14
|
+
- Based on Comet 23.5.0
|
15
|
+
- Add new `StreamableEventType` constants (`SEVT_*`) used for tracking Comet Server config changes
|
16
|
+
- Add new `StreamerType` constants (`STREAMER_TYPE_*`)
|
17
|
+
- Add new `FileOptions` type for configuring the Comet Server to log live events to a file
|
18
|
+
- Add new field `AuditFileOptions` to the `Organization` type for configuring per-tenant audit log options
|
19
|
+
- Add `Actor` (authenticated user), `ResourceID`, `Timestamp` and `TypeString` fields to the `StreamableEvent` type
|
20
|
+
- Deprecate the `UserProfileFragment` type
|
21
|
+
- Add extra comments to many types
|
22
|
+
|
3
23
|
## 2023-05-05 v2.8.0
|
4
24
|
|
5
25
|
- Based on Comet 23.3.7
|
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.
|
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
|
@@ -27,12 +27,16 @@ module Comet
|
|
27
27
|
# AutoRetentionLevel: The system will follow the automatic ruleset for a 'Low Power' device.
|
28
28
|
BACKUPJOBAUTORETENTION_LESS_OFTEN = 3
|
29
29
|
|
30
|
+
# If set, will be automatically replaced with one of the other BRANDINGSTYLETYPE_ constants after next server upgrade.
|
30
31
|
BRANDINGSTYLETYPE_AUTO_LEGACY = 0
|
31
32
|
|
33
|
+
# Use Comet company branding and colours for all web interface branding
|
32
34
|
BRANDINGSTYLETYPE_DEFAULT = 1
|
33
35
|
|
36
|
+
# Use custom branding and colours, with text in the main logo area.
|
34
37
|
BRANDINGSTYLETYPE_CUSTOM_TEXT = 2
|
35
38
|
|
39
|
+
# Use custom branding and colours, with a supplied image in the main logo area.
|
36
40
|
BRANDINGSTYLETYPE_CUSTOM_LOGO = 3
|
37
41
|
|
38
42
|
# ClientBrandingBuildMode: The software client will be custom-built by this Comet Server, allowing custom branding, default server URL, and codesigning.
|
@@ -81,28 +85,40 @@ module Comet
|
|
81
85
|
|
82
86
|
DESTINATIONTYPE___INVALID = 0
|
83
87
|
|
88
|
+
# S3-compatible, or a specific S3 service such as AWS S3, Wasabi, or iDrive e2
|
84
89
|
DESTINATIONTYPE_S3 = 1000
|
85
90
|
|
91
|
+
# SFTP protocol
|
86
92
|
DESTINATIONTYPE_SFTP = 1001
|
87
93
|
|
94
|
+
# Local Path
|
88
95
|
DESTINATIONTYPE_LOCALCOPY = 1002
|
89
96
|
|
97
|
+
# The Comet Server Storage Role protocol
|
90
98
|
DESTINATIONTYPE_COMET = 1003
|
91
99
|
|
100
|
+
# FTP protocol
|
92
101
|
DESTINATIONTYPE_FTP = 1004
|
93
102
|
|
103
|
+
# Azure Blob Storage
|
94
104
|
DESTINATIONTYPE_AZUREBLOB = 1005
|
95
105
|
|
106
|
+
# Spanned
|
96
107
|
DESTINATIONTYPE_SPANNED = 1006
|
97
108
|
|
109
|
+
# Openstack Swift
|
98
110
|
DESTINATIONTYPE_SWIFT = 1007
|
99
111
|
|
112
|
+
# Backblaze B2 (Native API)
|
100
113
|
DESTINATIONTYPE_B2 = 1008
|
101
114
|
|
115
|
+
# Storj
|
102
116
|
DESTINATIONTYPE_STORJ = 1009
|
103
117
|
|
118
|
+
# When defining a schedule via policy, use this option to dynamically select the Storage Vault that was created most recently.
|
104
119
|
DESTINATIONTYPE_LATEST = 1100
|
105
120
|
|
121
|
+
# When defining a schedule via policy, use this option to create a schedule for each Storage Vault in the user's profile.
|
106
122
|
DESTINATIONTYPE_ALL = 1101
|
107
123
|
|
108
124
|
# The Comet Server is still starting up and has not yet checked whether any email reports are due to be sent.
|
@@ -192,25 +208,25 @@ module Comet
|
|
192
208
|
# Office 365
|
193
209
|
ENGINE_BUILTIN_MSOFFICE = 'engine1/winmsofficemail'
|
194
210
|
|
195
|
-
# FtpsModeType
|
211
|
+
# FtpsModeType: Use plain FTP, do not use FTPS.
|
196
212
|
FTPS_MODE_PLAINTEXT = 0
|
197
213
|
|
198
|
-
# FtpsModeType
|
214
|
+
# FtpsModeType: Use implicit FTPS, immediately creating a secure SSL/TLS channel before any data is sent. This usually requires a different port on the FTP server. It is generally advised to use explicit mode instead.
|
199
215
|
FTPS_MODE_IMPLICIT = 1
|
200
216
|
|
201
|
-
# FtpsModeType
|
217
|
+
# FtpsModeType: Use explicit FTPS, first creating an insecure connection and then upgrading to SSL/TLS using AUTH TLS (like STARTTLS).
|
202
218
|
FTPS_MODE_EXPLICIT = 2
|
203
219
|
|
204
|
-
# JobClassification
|
220
|
+
# JobClassification: All BackupJobDetail.Classification fields will fall in the 4xxx range.
|
205
221
|
JOB_CLASSIFICATION__MIN = 4000
|
206
222
|
|
207
223
|
# JobClassification
|
208
224
|
JOB_CLASSIFICATION_UNKNOWN = 4000
|
209
225
|
|
210
|
-
# JobClassification
|
226
|
+
# JobClassification: This is a backup job.
|
211
227
|
JOB_CLASSIFICATION_BACKUP = 4001
|
212
228
|
|
213
|
-
# JobClassification
|
229
|
+
# JobClassification: This is a restore job.
|
214
230
|
JOB_CLASSIFICATION_RESTORE = 4002
|
215
231
|
|
216
232
|
# JobClassification: Automatic or manual retention cleaning pass.
|
@@ -228,13 +244,13 @@ module Comet
|
|
228
244
|
# JobClassification: Software update
|
229
245
|
JOB_CLASSIFICATION_UPDATE = 4007
|
230
246
|
|
231
|
-
# JobClassification
|
247
|
+
# JobClassification: Importing settings from another installed product
|
232
248
|
JOB_CLASSIFICATION_IMPORT = 4008
|
233
249
|
|
234
250
|
# JobClassification: Repair indexes
|
235
251
|
JOB_CLASSIFICATION_REINDEX = 4009
|
236
252
|
|
237
|
-
# JobClassification
|
253
|
+
# JobClassification: Deep Verify
|
238
254
|
JOB_CLASSIFICATION_DEEPVERIFY = 4010
|
239
255
|
|
240
256
|
# JobClassification: Software uninstall
|
@@ -243,7 +259,7 @@ module Comet
|
|
243
259
|
# JobClassification
|
244
260
|
JOB_CLASSIFICATION__MAX = 4999
|
245
261
|
|
246
|
-
# JobStatus
|
262
|
+
# JobStatus: If the BackupJobDetail.Status field is a 5xxx code, the job has stopped for a successful reason.
|
247
263
|
JOB_STATUS_STOP_SUCCESS__MIN = 5000
|
248
264
|
|
249
265
|
# JobStatus
|
@@ -252,7 +268,7 @@ module Comet
|
|
252
268
|
# JobStatus
|
253
269
|
JOB_STATUS_STOP_SUCCESS__MAX = 5999
|
254
270
|
|
255
|
-
# JobStatus
|
271
|
+
# JobStatus: If the BackupJobDetail.Status field is a 6xxx code, the job is still running.
|
256
272
|
JOB_STATUS_RUNNING__MIN = 6000
|
257
273
|
|
258
274
|
# JobStatus: Unused
|
@@ -267,7 +283,7 @@ module Comet
|
|
267
283
|
# JobStatus
|
268
284
|
JOB_STATUS_RUNNING__MAX = 6999
|
269
285
|
|
270
|
-
# JobStatus
|
286
|
+
# JobStatus: If the BackupJobDetail.Status field is a 7xxx code, the job has stopped for an unsuccessful reason.
|
271
287
|
JOB_STATUS_FAILED__MIN = 7000
|
272
288
|
|
273
289
|
# JobStatus
|
@@ -306,13 +322,13 @@ module Comet
|
|
306
322
|
# LDAPSecurityMethod
|
307
323
|
LDAPSECURITYMETHOD_STARTTLS = 'starttls'
|
308
324
|
|
309
|
-
# MacOSCodesignLevel
|
325
|
+
# MacOSCodesignLevel: Sign only
|
310
326
|
MACOSCODESIGN_LEVEL_SIGN = 0
|
311
327
|
|
312
|
-
# MacOSCodesignLevel
|
328
|
+
# MacOSCodesignLevel: Sign and notarize
|
313
329
|
MACOSCODESIGN_LEVEL_SIGN_NOTARISE = 1
|
314
330
|
|
315
|
-
# MacOSCodesignLevel
|
331
|
+
# MacOSCodesignLevel: Sign, notarize, and staple
|
316
332
|
MACOSCODESIGN_LEVEL_SIGN_NOTARISE_STAPLE = 2
|
317
333
|
|
318
334
|
MIXED_VIRTUAL_ACCOUNT_TYPE_USER = 1
|
@@ -430,58 +446,58 @@ module Comet
|
|
430
446
|
# ReplicatorDisplayClass
|
431
447
|
REPLICATOR_DISPLAYCLASS_USER = 101
|
432
448
|
|
433
|
-
# RestoreArchiveFormat
|
449
|
+
# RestoreArchiveFormat: Tar file format
|
434
450
|
RESTOREARCHIVEFORMAT_TAR = 0
|
435
451
|
|
436
|
-
# RestoreArchiveFormat
|
452
|
+
# RestoreArchiveFormat: Compressed Tar.gz (.tgz) file format
|
437
453
|
RESTOREARCHIVEFORMAT_TARGZ = 1
|
438
454
|
|
439
|
-
# RestoreArchiveFormat
|
455
|
+
# RestoreArchiveFormat: Zip file format
|
440
456
|
RESTOREARCHIVEFORMAT_ZIP = 2
|
441
457
|
|
442
458
|
# RestoreArchiveFormat: SquashFS container
|
443
459
|
RESTOREARCHIVEFORMAT_SQFS = 3
|
444
460
|
|
445
|
-
# RestoreArchiveFormat
|
461
|
+
# RestoreArchiveFormat: Compressed Tar.zstd (.tzst) file format
|
446
462
|
RESTOREARCHIVEFORMAT_TARZSTD = 4
|
447
463
|
|
448
464
|
# RestoreType
|
449
465
|
RESTORETYPE_INVALID = -1
|
450
466
|
|
451
|
-
# RestoreType
|
467
|
+
# RestoreType: Restore as files and folders
|
452
468
|
RESTORETYPE_FILE = 0
|
453
469
|
|
454
|
-
# RestoreType
|
470
|
+
# RestoreType: Download and reconstruct files, but do not save them (for test purposes)
|
455
471
|
RESTORETYPE_NULL = 1
|
456
472
|
|
457
|
-
# RestoreType
|
473
|
+
# RestoreType: Stream each restored file into the target command stdin. The target command may be executed multiple times, once for each restored file.
|
458
474
|
RESTORETYPE_PROCESS_PERFILE = 2
|
459
475
|
|
460
|
-
# RestoreType
|
476
|
+
# RestoreType: Stream an archive of each restored file into the target command stdin. The target command will be executed only once.
|
461
477
|
RESTORETYPE_PROCESS_ARCHIVE = 3
|
462
478
|
|
463
|
-
# RestoreType
|
479
|
+
# RestoreType: Restore partitions back to the physical disk
|
464
480
|
RESTORETYPE_WINDISK = 4
|
465
481
|
|
466
|
-
# RestoreType
|
482
|
+
# RestoreType: Restore selected files and folders as a single compressed archive
|
467
483
|
RESTORETYPE_FILE_ARCHIVE = 5
|
468
484
|
|
469
|
-
# RestoreType
|
485
|
+
# RestoreType: Restore selected Office 365 emails, contacts, calendars, and SharePoint/OneDrive data directly to the Office 365 cloud service
|
470
486
|
RESTORETYPE_OFFICE365_CLOUD = 6
|
471
487
|
|
472
|
-
# RestoreType
|
488
|
+
# RestoreType: Granular restore of single files from within a Disk Image or Hyper-V backup
|
473
489
|
RESTORETYPE_VMDK_FILE = 7
|
474
490
|
|
475
|
-
# RestoreType
|
491
|
+
# RestoreType: Granular restore of single files from within a Disk Image or Hyper-V backup, downloading and reconstructing files, but without saving them (for test purposes)
|
476
492
|
RESTORETYPE_VMDK_FILE_NULL = 8
|
477
493
|
|
478
|
-
# RestoreType
|
494
|
+
# RestoreType: Granular restore of single files from within a Disk Image or Hyper-V backup, creating an archive file of all selected files
|
479
495
|
RESTORETYPE_VMDK_FILE_ARCHIVE = 9
|
480
496
|
|
481
|
-
# RestoreType
|
497
|
+
# RestoreType: Stream restore as SQL statements into a target MySQL server
|
482
498
|
RESTORETYPE_MYSQL = 10
|
483
499
|
|
484
|
-
# RestoreType
|
500
|
+
# RestoreType: Stream restore as T-SQL BACKUP output into a target Microsoft SQL Server
|
485
501
|
RESTORETYPE_MSSQL = 11
|
486
502
|
|
487
503
|
# RestoreType: Legacy name alias - Prefer to use RESTORETYPE_PROCESS_ARCHIVE since multiple archive file formats are supported within this single RESTORETYPE_
|
@@ -559,13 +575,13 @@ module Comet
|
|
559
575
|
|
560
576
|
SCHEDULE_MAXINT = 1_125_899_906_842_624
|
561
577
|
|
562
|
-
# SearchClauseType
|
578
|
+
# SearchClauseType: The search clause is an explicit rule
|
563
579
|
SEARCHCLAUSE_RULE = ''
|
564
580
|
|
565
|
-
# SearchClauseType
|
581
|
+
# SearchClauseType: All of the ClauseChildren must match
|
566
582
|
SEARCHCLAUSE_AND = 'and'
|
567
583
|
|
568
|
-
# SearchClauseType
|
584
|
+
# SearchClauseType: At least one of the ClauseChildren must match
|
569
585
|
SEARCHCLAUSE_OR = 'or'
|
570
586
|
|
571
587
|
# SearchClauseType
|
@@ -574,66 +590,97 @@ module Comet
|
|
574
590
|
# SearchClauseType
|
575
591
|
SEARCHCLAUSE_NOT_OR = 'not_or'
|
576
592
|
|
593
|
+
# String equals (case sensitive)
|
577
594
|
SEARCHOPERATOR_STRING_EQ = 'str_eq'
|
578
595
|
|
596
|
+
# String does not equal (case sensitive)
|
579
597
|
SEARCHOPERATOR_STRING_NEQ = 'str_neq'
|
580
598
|
|
599
|
+
# String contains anywhere (case sensitive)
|
581
600
|
SEARCHOPERATOR_STRING_CONTAINS = 'str_contains'
|
582
601
|
|
602
|
+
# String does not contain anywhere (case sensitive)
|
583
603
|
SEARCHOPERATOR_STRING_NCONTAINS = 'str_ncontains'
|
584
604
|
|
605
|
+
# String starts with prefix (case sensitive)
|
585
606
|
SEARCHOPERATOR_STRING_STARTSWITH = 'str_startswith'
|
586
607
|
|
608
|
+
# String does not start with prefix (case sensitive)
|
587
609
|
SEARCHOPERATOR_STRING_NSTARTSWITH = 'str_nstartswith'
|
588
610
|
|
611
|
+
# String ends with suffix (case sensitive)
|
589
612
|
SEARCHOPERATOR_STRING_ENDSWITH = 'str_endswith'
|
590
613
|
|
614
|
+
# String does not end with suffix (case sensitive)
|
591
615
|
SEARCHOPERATOR_STRING_NENDSWITH = 'str_nendswith'
|
592
616
|
|
617
|
+
# String equals (case insensitive)
|
593
618
|
SEARCHOPERATOR_STRING_EQ_CI = 'str_eq_ci'
|
594
619
|
|
620
|
+
# String does not equal (case insensitive)
|
595
621
|
SEARCHOPERATOR_STRING_NEQ_CI = 'str_neq_ci'
|
596
622
|
|
623
|
+
# String contains anywhere (case sensitive)
|
597
624
|
SEARCHOPERATOR_STRING_CONTAINS_CI = 'str_contains_ci'
|
598
625
|
|
626
|
+
# String does not contain anywhere (case sensitive)
|
599
627
|
SEARCHOPERATOR_STRING_NCONTAINS_CI = 'str_ncontains_ci'
|
600
628
|
|
629
|
+
# String starts with prefix (case sensitive)
|
601
630
|
SEARCHOPERATOR_STRING_STARTSWITH_CI = 'str_startswith_ci'
|
602
631
|
|
632
|
+
# String does not start with (case sensitive)
|
603
633
|
SEARCHOPERATOR_STRING_NSTARTSWITH_CI = 'str_nstartswith_ci'
|
604
634
|
|
635
|
+
# String ends with suffix (case sensitive)
|
605
636
|
SEARCHOPERATOR_STRING_ENDSWITH_CI = 'str_endswith_ci'
|
606
637
|
|
638
|
+
# String does not end with suffix (case sensitive)
|
607
639
|
SEARCHOPERATOR_STRING_NENDSWITH_CI = 'str_nendswith_ci'
|
608
640
|
|
641
|
+
# String matches provided regular expression (using Go regex syntax)
|
609
642
|
SEARCHOPERATOR_STRING_REGEXMATCH = 'str_regexmatch'
|
610
643
|
|
644
|
+
# String does not match provided regular expression (using Go regex syntax)
|
611
645
|
SEARCHOPERATOR_STRING_NREGEXMATCH = 'str_nregexmatch'
|
612
646
|
|
647
|
+
# Integer field is equal to value
|
613
648
|
SEARCHOPERATOR_INT_EQ = 'int_eq'
|
614
649
|
|
650
|
+
# Integer field is not equal to value
|
615
651
|
SEARCHOPERATOR_INT_NEQ = 'int_neq'
|
616
652
|
|
653
|
+
# Integer field is greater than value
|
617
654
|
SEARCHOPERATOR_INT_GT = 'int_gt'
|
618
655
|
|
656
|
+
# Integer field is greater than or equal to value
|
619
657
|
SEARCHOPERATOR_INT_GTE = 'int_gte'
|
620
658
|
|
659
|
+
# Integer field is less than value
|
621
660
|
SEARCHOPERATOR_INT_LT = 'int_lt'
|
622
661
|
|
662
|
+
# Integer field is less than or equal to value
|
623
663
|
SEARCHOPERATOR_INT_LTE = 'int_lte'
|
624
664
|
|
665
|
+
# Boolean field matches value
|
625
666
|
SEARCHOPERATOR_BOOL_IS = 'bool_is'
|
626
667
|
|
668
|
+
# Boolean field does not match value
|
627
669
|
SEARCHOPERATOR_BOOL_NIS = 'bool_nis'
|
628
670
|
|
671
|
+
# 0000 0001. If this value is present in the bitset, then the Calendar service is selected for backup.
|
629
672
|
SERVICE_CALENDAR = 1
|
630
673
|
|
674
|
+
# 0000 0010. If this value is present in the bitset, then the Contact service is selected for backup.
|
631
675
|
SERVICE_CONTACT = 2
|
632
676
|
|
677
|
+
# 0000 0100. If this value is present in the bitset, then the Mail service is selected for backup.
|
633
678
|
SERVICE_MAIL = 4
|
634
679
|
|
680
|
+
# 0000 1000. If this value is present in the bitset, then the SharePoint service is selected for backup.
|
635
681
|
SERVICE_SHAREPOINT = 8
|
636
682
|
|
683
|
+
# 0001 0000. If this value is present in the bitset, then the OneDrive service is selected for backup.
|
637
684
|
SERVICE_ONEDRIVE = 16
|
638
685
|
|
639
686
|
# DefaultSettingMode
|
@@ -663,27 +710,111 @@ module Comet
|
|
663
710
|
# StreamableEventType
|
664
711
|
SEVT__MIN = 4000
|
665
712
|
|
666
|
-
# StreamableEventType:
|
713
|
+
# StreamableEventType: New websocket connection. Data is typically ServerMetaVersionInfo
|
667
714
|
SEVT_META_HELLO = 4000
|
668
715
|
|
669
|
-
# StreamableEventType: Data is the profile object
|
716
|
+
# StreamableEventType: User created. Data is the profile object
|
670
717
|
SEVT_ACCOUNT_NEW = 4100
|
671
718
|
|
672
|
-
# StreamableEventType:
|
719
|
+
# StreamableEventType: User deleted
|
673
720
|
SEVT_ACCOUNT_REMOVED = 4101
|
674
721
|
|
675
|
-
# StreamableEventType: Data is the profile object
|
722
|
+
# StreamableEventType: User updated. Data is the profile object
|
676
723
|
SEVT_ACCOUNT_UPDATED = 4102
|
677
724
|
|
678
|
-
# StreamableEventType
|
725
|
+
# StreamableEventType: User authentication succeeded. Only emitted for non-session requests. Resource is the requested path
|
726
|
+
SEVT_ACCOUNT_LOGIN = 4103
|
727
|
+
|
728
|
+
# StreamableEventType: User authentication failed. Only emitted if the user exists. Resource is the requested path
|
729
|
+
SEVT_ACCOUNT_LOGIN_FAILED = 4104
|
730
|
+
|
731
|
+
# StreamableEventType: User session token created. Data is the session object
|
732
|
+
SEVT_ACCOUNT_SESSION_START = 4105
|
733
|
+
|
734
|
+
# StreamableEventType: User session token deleted
|
735
|
+
SEVT_ACCOUNT_SESSION_REVOKE = 4106
|
736
|
+
|
737
|
+
# StreamableEventType: User session token expired
|
738
|
+
SEVT_ACCOUNT_SESSION_EXPIRE = 4107
|
739
|
+
|
740
|
+
# StreamableEventType: Admin created. Data is the profile object
|
741
|
+
SEVT_ACCOUNT_ADMIN_NEW = 4150
|
742
|
+
|
743
|
+
# StreamableEventType: Admin deleted
|
744
|
+
SEVT_ACCOUNT_ADMIN_REMOVED = 4151
|
745
|
+
|
746
|
+
# StreamableEventType: Admin updated
|
747
|
+
SEVT_ACCOUNT_ADMIN_UPDATED = 4152
|
748
|
+
|
749
|
+
# StreamableEventType: Admin authentication suceeded. Only emitted for non-session requests. Resource is the requested path
|
750
|
+
SEVT_ACCOUNT_ADMIN_LOGIN = 4153
|
751
|
+
|
752
|
+
# StreamableEventType: Admin authentication failed. Only emitted if the admin exists. Resource is the request path
|
753
|
+
SEVT_ACCOUNT_ADMIN_LOGIN_FAILED = 4154
|
754
|
+
|
755
|
+
# StreamableEventType: Admin session token created. Data is the session object
|
756
|
+
SEVT_ACCOUNT_ADMIN_SESSION_START = 4155
|
757
|
+
|
758
|
+
# StreamableEventType: Admin session token deleted
|
759
|
+
SEVT_ACCOUNT_ADMIN_SESSION_REVOKE = 4156
|
760
|
+
|
761
|
+
# StreamableEventType: Admin session token expired
|
762
|
+
SEVT_ACCOUNT_ADMIN_SESSION_EXPIRE = 4157
|
763
|
+
|
764
|
+
# StreamableEventType: New backup job started. Data is the job object
|
679
765
|
SEVT_JOB_NEW = 4200
|
680
766
|
|
681
|
-
# StreamableEventType
|
767
|
+
# StreamableEventType: Backup job completed. Data is the job object
|
682
768
|
SEVT_JOB_COMPLETED = 4201
|
683
769
|
|
684
|
-
# StreamableEventType:
|
770
|
+
# StreamableEventType: New bucket created
|
685
771
|
SEVT_BUCKET_NEW = 4300
|
686
772
|
|
773
|
+
# StreamableEventType: Bucket deleted
|
774
|
+
SEVT_BUCKET_REMOVED = 4301
|
775
|
+
|
776
|
+
# StreamableEventType: Server started
|
777
|
+
SEVT_SERVER_STARTED = 4400
|
778
|
+
|
779
|
+
# StreamableEventType: Server restarting (pending)
|
780
|
+
SEVT_SERVER_RESTARTED = 4401
|
781
|
+
|
782
|
+
# StreamableEventType: Server shutting down (pending)
|
783
|
+
SEVT_SERVER_SHUTDOWN = 4402
|
784
|
+
|
785
|
+
# StreamableEventType: Server configuration has been updated. Data is the server config object
|
786
|
+
SEVT_SERVER_UPDATED = 4403
|
787
|
+
|
788
|
+
# StreamableEventType: Tenant created. Data is the tenant object
|
789
|
+
SEVT_TENANT_NEW = 4500
|
790
|
+
|
791
|
+
# StreamableEventType: Tenant deleted
|
792
|
+
SEVT_TENANT_REMOVED = 4501
|
793
|
+
|
794
|
+
# StreamableEventType: Tenant updated. Data is the tenant object
|
795
|
+
SEVT_TENANT_UPDATED = 4502
|
796
|
+
|
797
|
+
# StreamableEventType: Policy created. Data is the policy object
|
798
|
+
SEVT_POLICY_NEW = 4600
|
799
|
+
|
800
|
+
# StreamableEventType: Policy deleted
|
801
|
+
SEVT_POLICY_REMOVED = 4601
|
802
|
+
|
803
|
+
# StreamableEventType: Policy updated. Data is the policy object
|
804
|
+
SEVT_POLICY_UPDATED = 4602
|
805
|
+
|
806
|
+
# StreamableEventType: Device created. Data is device object
|
807
|
+
SEVT_DEVICE_NEW = 4700
|
808
|
+
|
809
|
+
# StreamableEventType: Device deleted
|
810
|
+
SEVT_DEVICE_REMOVED = 4701
|
811
|
+
|
812
|
+
# StreamableEventType: Device live connection started
|
813
|
+
SEVT_DEVICE_LIVE_CONNECT = 4702
|
814
|
+
|
815
|
+
# StreamableEventType: Device live connection ended
|
816
|
+
SEVT_DEVICE_LIVE_DISCONNECT = 4703
|
817
|
+
|
687
818
|
# StreamableEventType
|
688
819
|
SEVT__MAX = 4999
|
689
820
|
|
@@ -774,6 +905,24 @@ module Comet
|
|
774
905
|
# StoredObjectType
|
775
906
|
STOREDOBJECTTYPE_VHDX_MBR_PARTITION = 'vhdxpartitionmbr'
|
776
907
|
|
908
|
+
# StreamLevel: Event data contains full data types
|
909
|
+
STREAM_LEVEL_FULL = 'full'
|
910
|
+
|
911
|
+
# StreamLevel: Event data contains nothing
|
912
|
+
STREAM_LEVEL_NONE = 'none'
|
913
|
+
|
914
|
+
# StreamerType
|
915
|
+
STREAMER_TYPE_INTERNAL = 'internal'
|
916
|
+
|
917
|
+
# StreamerType
|
918
|
+
STREAMER_TYPE_WEBHOOK = 'webhook'
|
919
|
+
|
920
|
+
# StreamerType
|
921
|
+
STREAMER_TYPE_WEBSOCKET = 'websocket'
|
922
|
+
|
923
|
+
# StreamerType
|
924
|
+
STREAMER_TYPE_FILE = 'file'
|
925
|
+
|
777
926
|
# If an API response returns in failure, but it includes this value in the CometAPIResponseMessage->Message parameter, it indicates that your supplied authentication was insufficient, and you must supply additional two-factor authentication credentials.
|
778
927
|
TOTPREQUIRED_ERROR = 'ERR_TOTP_REQUIRED'
|
779
928
|
|
@@ -825,7 +974,7 @@ module Comet
|
|
825
974
|
# WebAuthnDeviceType
|
826
975
|
WEBAUTHN_DEVICE_TYPE__TPM_LINUX = 6
|
827
976
|
|
828
|
-
# WindowsCodesignMethod: When upgrading from a version of Comet Server prior to 22.12.7, this option will be automatically converted to a more specific type
|
977
|
+
# WindowsCodesignMethod: When upgrading from a version of Comet Server prior to 22.12.7, this option will be automatically converted to a more specific type.
|
829
978
|
# @deprecated This const has been deprecated since Comet version 22.12.7
|
830
979
|
WINDOWSCODESIGN_METHOD_AUTO = 0
|
831
980
|
|
@@ -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
|
|