comet_backup_ruby_sdk 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +2 -2
- data/LICENSE +0 -0
- data/README.md +1 -1
- data/RELEASING.md +1 -0
- data/Rakefile +0 -0
- data/comet_backup_ruby_sdk-1.8.0.gem +0 -0
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/api_response_error.rb +0 -0
- data/lib/comet/comet_server.rb +46 -0
- data/lib/comet/definitions.rb +2 -2
- data/lib/comet/models/add_bucket_response_message.rb +0 -0
- data/lib/comet/models/admin_account_properties_response.rb +0 -0
- data/lib/comet/models/admin_email_options.rb +0 -0
- data/lib/comet/models/admin_resource_response.rb +0 -0
- data/lib/comet/models/admin_security_options.rb +0 -0
- data/lib/comet/models/admin_u2fregistration.rb +0 -0
- data/lib/comet/models/admin_user_permissions.rb +0 -0
- data/lib/comet/models/available_download.rb +0 -0
- data/lib/comet/models/azure_destination_location.rb +0 -0
- data/lib/comet/models/b2destination_location.rb +8 -0
- data/lib/comet/models/b2storage_extra_info.rb +0 -0
- data/lib/comet/models/b2transaction_totals.rb +0 -0
- data/lib/comet/models/b2virtual_storage_role_settings.rb +6 -0
- data/lib/comet/models/backup_job_advanced_options.rb +0 -0
- data/lib/comet/models/backup_job_detail.rb +0 -0
- data/lib/comet/models/backup_job_progress.rb +0 -0
- data/lib/comet/models/backup_rule_config.rb +0 -0
- data/lib/comet/models/backup_rule_event_triggers.rb +0 -0
- data/lib/comet/models/branding_options.rb +0 -0
- data/lib/comet/models/branding_properties.rb +0 -0
- data/lib/comet/models/browse_disk_drives_response.rb +0 -0
- data/lib/comet/models/browse_edbresponse.rb +0 -0
- data/lib/comet/models/browse_hvresponse.rb +0 -0
- data/lib/comet/models/browse_office_365objects_response.rb +0 -0
- data/lib/comet/models/browse_sqlserver_response.rb +0 -0
- data/lib/comet/models/browse_vssresponse.rb +0 -0
- data/lib/comet/models/bucket_properties.rb +0 -0
- data/lib/comet/models/bucket_usage_info.rb +0 -0
- data/lib/comet/models/comet_apiresponse_message.rb +0 -0
- data/lib/comet/models/comet_destination_location.rb +0 -0
- data/lib/comet/models/constellation_check_report.rb +0 -0
- data/lib/comet/models/constellation_stats.rb +0 -0
- data/lib/comet/models/constellation_status_apiresponse.rb +0 -0
- data/lib/comet/models/content_measurement.rb +0 -0
- data/lib/comet/models/content_measurement_component.rb +0 -0
- data/lib/comet/models/create_group_policy_response.rb +0 -0
- data/lib/comet/models/custom_remote_bucket_settings.rb +0 -0
- data/lib/comet/models/default_email_report_policy.rb +0 -0
- data/lib/comet/models/default_source_with_osrestriction.rb +0 -0
- data/lib/comet/models/destination_config.rb +0 -0
- data/lib/comet/models/destination_location.rb +0 -0
- data/lib/comet/models/destination_statistics.rb +0 -0
- data/lib/comet/models/device_config.rb +11 -0
- data/lib/comet/models/disk_drive.rb +0 -0
- data/lib/comet/models/dispatcher_admin_sources_response.rb +0 -0
- data/lib/comet/models/dispatcher_stored_objects_response.rb +0 -0
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +0 -0
- data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +99 -0
- data/lib/comet/models/edbfile_info.rb +0 -0
- data/lib/comet/models/email_options.rb +0 -0
- data/lib/comet/models/email_report_config.rb +0 -0
- data/lib/comet/models/email_report_generated_preview.rb +0 -0
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +0 -0
- data/lib/comet/models/extra_file_exclusion.rb +0 -0
- data/lib/comet/models/ftpdestination_location.rb +0 -0
- data/lib/comet/models/get_group_policy_response.rb +0 -0
- data/lib/comet/models/get_profile_and_hash_response_message.rb +0 -0
- data/lib/comet/models/get_profile_hash_response_message.rb +0 -0
- data/lib/comet/models/group_policy.rb +0 -0
- data/lib/comet/models/hyper_vmachine_info.rb +0 -0
- data/lib/comet/models/install_creds.rb +0 -0
- data/lib/comet/models/install_token.rb +0 -0
- data/lib/comet/models/install_token_response.rb +0 -0
- data/lib/comet/models/job_entry.rb +0 -0
- data/lib/comet/models/local_destination_location.rb +0 -0
- data/lib/comet/models/mac_oscode_sign_properties.rb +0 -0
- data/lib/comet/models/mongo_dbconnection.rb +0 -0
- data/lib/comet/models/mssqlconnection.rb +0 -0
- data/lib/comet/models/my_sqlconnection.rb +39 -0
- data/lib/comet/models/new_bucket_detail.rb +0 -0
- data/lib/comet/models/news_entry.rb +0 -0
- data/lib/comet/models/office_365connection.rb +0 -0
- data/lib/comet/models/office_365credential.rb +0 -0
- data/lib/comet/models/office_365custom_setting.rb +0 -0
- data/lib/comet/models/office_365object_info.rb +0 -0
- data/lib/comet/models/organization.rb +0 -0
- data/lib/comet/models/organization_response.rb +0 -0
- data/lib/comet/models/osinfo.rb +0 -0
- data/lib/comet/models/partition.rb +0 -0
- data/lib/comet/models/private_branding_properties.rb +0 -0
- data/lib/comet/models/protected_item_engine_type_policy.rb +0 -0
- data/lib/comet/models/public_branding_properties.rb +0 -0
- data/lib/comet/models/register_office_application_begin_response.rb +0 -0
- data/lib/comet/models/register_office_application_check_response.rb +0 -0
- data/lib/comet/models/remote_server_address.rb +0 -0
- data/lib/comet/models/remote_storage_option.rb +0 -0
- data/lib/comet/models/replicator_state_apiresponse.rb +0 -0
- data/lib/comet/models/request_storage_vault_response_message.rb +0 -0
- data/lib/comet/models/restore_job_advanced_options.rb +0 -0
- data/lib/comet/models/retention_policy.rb +0 -0
- data/lib/comet/models/retention_range.rb +0 -0
- data/lib/comet/models/s3destination_location.rb +0 -0
- data/lib/comet/models/schedule_config.rb +0 -0
- data/lib/comet/models/search_clause.rb +0 -0
- data/lib/comet/models/self_backup_statistics.rb +0 -0
- data/lib/comet/models/server_config_options_branding_fragment.rb +0 -0
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +0 -0
- data/lib/comet/models/server_meta_branding_properties.rb +0 -0
- data/lib/comet/models/server_meta_version_info.rb +0 -0
- data/lib/comet/models/session_key_regenerated_response.rb +0 -0
- data/lib/comet/models/sftpdestination_location.rb +0 -0
- data/lib/comet/models/size_measurement.rb +0 -0
- data/lib/comet/models/software_build_role_options.rb +0 -0
- data/lib/comet/models/software_update_news_response.rb +0 -0
- data/lib/comet/models/source_basic_info.rb +0 -0
- data/lib/comet/models/source_config.rb +0 -0
- data/lib/comet/models/source_include_pattern.rb +0 -0
- data/lib/comet/models/source_statistics.rb +0 -0
- data/lib/comet/models/spanned_destination_location.rb +0 -0
- data/lib/comet/models/spanned_storage_extra_info.rb +0 -0
- data/lib/comet/models/sshconnection.rb +0 -0
- data/lib/comet/models/stat_result.rb +0 -0
- data/lib/comet/models/storage_free_space_info.rb +0 -0
- data/lib/comet/models/storage_vault_provider_policy.rb +0 -0
- data/lib/comet/models/stored_object.rb +0 -0
- data/lib/comet/models/streamable_event.rb +0 -0
- data/lib/comet/models/swift_destination_location.rb +0 -0
- data/lib/comet/models/test_response.rb +0 -0
- data/lib/comet/models/totp_regenerated_response.rb +0 -0
- data/lib/comet/models/u2fregister_request.rb +0 -0
- data/lib/comet/models/u2fregistered_key.rb +0 -0
- data/lib/comet/models/u2fregistration_challenge_response.rb +0 -0
- data/lib/comet/models/u2fsign_request.rb +0 -0
- data/lib/comet/models/u2fsign_response.rb +0 -0
- data/lib/comet/models/uninstall_config.rb +0 -0
- data/lib/comet/models/update_campaign_device_status.rb +0 -0
- data/lib/comet/models/update_campaign_options.rb +0 -0
- data/lib/comet/models/update_campaign_properties.rb +0 -0
- data/lib/comet/models/update_campaign_status.rb +0 -0
- data/lib/comet/models/update_campaign_status_device_entry.rb +0 -0
- data/lib/comet/models/user_custom_email_settings.rb +0 -0
- data/lib/comet/models/user_on_server.rb +0 -0
- data/lib/comet/models/user_policy.rb +0 -0
- data/lib/comet/models/user_profile_config.rb +0 -0
- data/lib/comet/models/user_profile_fragment.rb +0 -0
- data/lib/comet/models/vault_snapshot.rb +0 -0
- data/lib/comet/models/vsscomponent.rb +0 -0
- data/lib/comet/models/vsswriter_info.rb +0 -0
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +0 -0
- data/lib/comet/models/web_interface_branding_properties.rb +0 -0
- data/lib/comet/models/webhook_option.rb +0 -0
- data/lib/comet/models/win_smbauth.rb +0 -0
- data/lib/comet/models/windows_code_sign_properties.rb +0 -0
- data/lib/comet_backup_ruby_sdk.rb +0 -0
- 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: bcf25f477167c1899508aee3c92beaba73a3832634a7b377915c26c11f5c0dec
|
4
|
+
data.tar.gz: 3a5a94ec4b0cddfd10ed3f819921cd1df9cf192aa76936562eaecd0f61b603b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 435a8de3e5dc71585979cfc43549a1871fbf47d9b4a6b7575e559dd5b9cc1fd4fd3dd0a5aa2c036424b10e2f626cce5d3f18020ea3c884240c94190cbec08354
|
7
|
+
data.tar.gz: 3e876fa42cdfad439f0cf3db82f4536a915ec4e4033721c111d1e9435f15fe01167e79320532fff0a9cb5f9cd41f9195a71e00d26849b1eb3ac88a64f0b7918c
|
data/.rubocop.yml
CHANGED
File without changes
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2021-10-21 1.9.0
|
4
|
+
- Based on 21.9.7
|
5
|
+
- Add Support for `HideFiles` parameter in B2 Destination Locations
|
6
|
+
- Add support for `RegistrationTime` to `DeviceConfig`
|
7
|
+
- Upgrade MYSQL to support new TLS connection options
|
8
|
+
- Add support for new API: `AdminMetaReadAllLogsRequest` and `AdminDispatcherRequestWindiskSnapshot`
|
9
|
+
|
3
10
|
## 2021-09-14 1.8.0
|
4
11
|
- Based on Comet 21.9.2
|
5
12
|
- Support new `custom_headers` field on the `WebhookOption` class for specifying custom HTTP headers
|
data/Gemfile
CHANGED
File without changes
|
data/Gemfile.lock
CHANGED
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
data/RELEASING.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Procedure for releasing gem package updates
|
2
2
|
|
3
|
+
0. As a cygwin user, with docker installed; `docker run -it -v "c://cygwin64/$PWD":/app -w /app ruby:2.7 bash` will get you with a suitable ruby environment for testing/building and releasing this package9.
|
3
4
|
1. All tests passing
|
4
5
|
2. Update changelog in `CHANGELOG.md`
|
5
6
|
3. Update version number in `comet_backup_ruby_sdk.gemspec`
|
data/Rakefile
CHANGED
File without changes
|
Binary file
|
@@ -12,7 +12,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
12
12
|
|
13
13
|
Gem::Specification.new do |spec|
|
14
14
|
spec.name = 'comet_backup_ruby_sdk'
|
15
|
-
spec.version = '1.
|
15
|
+
spec.version = '1.9.0'
|
16
16
|
spec.authors = ['Comet Licensing Ltd.']
|
17
17
|
spec.email = ['hello@cometbackup.com']
|
18
18
|
|
File without changes
|
data/lib/comet/comet_server.rb
CHANGED
@@ -1563,6 +1563,37 @@ module Comet
|
|
1563
1563
|
ret
|
1564
1564
|
end
|
1565
1565
|
|
1566
|
+
# AdminDispatcherRequestWindiskSnapshot
|
1567
|
+
#
|
1568
|
+
# Request a Disk Image snapshot with the windiskbrowse-style from a live connected device.
|
1569
|
+
#
|
1570
|
+
# You must supply administrator authentication credentials to use this API.
|
1571
|
+
# This API requires the Auth Role to be enabled.
|
1572
|
+
#
|
1573
|
+
# @param [String] target_id The live connection GUID
|
1574
|
+
# @param [String] destination The Storage Vault ID
|
1575
|
+
# @param [String] snapshot_id The Snapshot ID
|
1576
|
+
# @return [Comet::DispatcherWindiskSnapshotResponse]
|
1577
|
+
def admin_dispatcher_request_windisk_snapshot(target_id, destination, snapshot_id)
|
1578
|
+
submit_params = {}
|
1579
|
+
raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
|
1580
|
+
|
1581
|
+
submit_params['TargetID'] = target_id
|
1582
|
+
raise TypeError, "'destination' expected String, got #{destination.class}" unless destination.is_a? String
|
1583
|
+
|
1584
|
+
submit_params['Destination'] = destination
|
1585
|
+
raise TypeError, "'snapshot_id' expected String, got #{snapshot_id.class}" unless snapshot_id.is_a? String
|
1586
|
+
|
1587
|
+
submit_params['SnapshotID'] = snapshot_id
|
1588
|
+
|
1589
|
+
body = perform_request('api/v1/admin/dispatcher/request-windisk-snapshot', submit_params)
|
1590
|
+
json_body = JSON.parse body
|
1591
|
+
check_status json_body
|
1592
|
+
ret = Comet::DispatcherWindiskSnapshotResponse.new
|
1593
|
+
ret.from_hash(json_body)
|
1594
|
+
ret
|
1595
|
+
end
|
1596
|
+
|
1566
1597
|
# AdminDispatcherRunBackup
|
1567
1598
|
#
|
1568
1599
|
# Instruct a live connected device to run a scheduled backup.
|
@@ -2139,6 +2170,7 @@ module Comet
|
|
2139
2170
|
# Cancel a running job.
|
2140
2171
|
# A request is sent to the live-connected device, asking it to cancel the operation. This may fail if there is no live-connection.
|
2141
2172
|
# Only jobs from Comet 18.3.5 or newer can be cancelled. A job can only be cancelled if it has a non-empty CancellationID field in its properties.
|
2173
|
+
# If the device is running Comet 21.9.5 or later, this API will wait up to ten seconds for a confirmation from the client.
|
2142
2174
|
#
|
2143
2175
|
# You must supply administrator authentication credentials to use this API.
|
2144
2176
|
# This API requires the Auth Role to be enabled.
|
@@ -2318,6 +2350,20 @@ module Comet
|
|
2318
2350
|
ret
|
2319
2351
|
end
|
2320
2352
|
|
2353
|
+
# AdminMetaReadAllLogs
|
2354
|
+
#
|
2355
|
+
# Get a ZIP file of all of the server's log files.
|
2356
|
+
# On non-Windows platforms, log content uses LF line endings. On Windows, Comet changed from LF to CRLF line endings in 18.3.2.
|
2357
|
+
# This API does not automatically convert line endings; around the 18.3.2 timeframe, log content may even contain mixed line-endings.
|
2358
|
+
#
|
2359
|
+
# You must supply administrator authentication credentials to use this API.
|
2360
|
+
# This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
|
2361
|
+
#
|
2362
|
+
# @return [String]
|
2363
|
+
def admin_meta_read_all_logs
|
2364
|
+
perform_request('api/v1/admin/meta/read-all-logs')
|
2365
|
+
end
|
2366
|
+
|
2321
2367
|
# AdminMetaReadLogs
|
2322
2368
|
#
|
2323
2369
|
# Get log file content.
|
data/lib/comet/definitions.rb
CHANGED
@@ -412,13 +412,13 @@ module Comet
|
|
412
412
|
|
413
413
|
DEFAULT_TIMEZONE = 'UTC'
|
414
414
|
|
415
|
-
APPLICATION_VERSION = '21.9.
|
415
|
+
APPLICATION_VERSION = '21.9.7'
|
416
416
|
|
417
417
|
APPLICATION_VERSION_MAJOR = 21
|
418
418
|
|
419
419
|
APPLICATION_VERSION_MINOR = 9
|
420
420
|
|
421
|
-
APPLICATION_VERSION_REVISION =
|
421
|
+
APPLICATION_VERSION_REVISION = 7
|
422
422
|
|
423
423
|
RELEASE_CODENAME = 'Voyager'
|
424
424
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -29,6 +29,9 @@ module Comet
|
|
29
29
|
# @type [Number] max_connections
|
30
30
|
attr_accessor :max_connections
|
31
31
|
|
32
|
+
# @type [Boolean] hide_deleted_files
|
33
|
+
attr_accessor :hide_deleted_files
|
34
|
+
|
32
35
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
33
36
|
attr_accessor :unknown_json_fields
|
34
37
|
|
@@ -78,6 +81,8 @@ module Comet
|
|
78
81
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
79
82
|
|
80
83
|
@max_connections = v
|
84
|
+
when 'HideDeletedFiles'
|
85
|
+
@hide_deleted_files = v
|
81
86
|
else
|
82
87
|
@unknown_json_fields[k] = v
|
83
88
|
end
|
@@ -102,6 +107,9 @@ module Comet
|
|
102
107
|
unless @max_connections.nil?
|
103
108
|
ret['MaxConnections'] = @max_connections
|
104
109
|
end
|
110
|
+
unless @hide_deleted_files.nil?
|
111
|
+
ret['HideDeletedFiles'] = @hide_deleted_files
|
112
|
+
end
|
105
113
|
@unknown_json_fields.each do |k, v|
|
106
114
|
ret[k] = v
|
107
115
|
end
|
File without changes
|
File without changes
|
@@ -23,6 +23,9 @@ module Comet
|
|
23
23
|
# @type [String] app_key
|
24
24
|
attr_accessor :app_key
|
25
25
|
|
26
|
+
# @type [Boolean] hide_deleted_files
|
27
|
+
attr_accessor :hide_deleted_files
|
28
|
+
|
26
29
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
27
30
|
attr_accessor :unknown_json_fields
|
28
31
|
|
@@ -62,6 +65,8 @@ module Comet
|
|
62
65
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
63
66
|
|
64
67
|
@app_key = v
|
68
|
+
when 'HideDeletedFiles'
|
69
|
+
@hide_deleted_files = v
|
65
70
|
else
|
66
71
|
@unknown_json_fields[k] = v
|
67
72
|
end
|
@@ -74,6 +79,7 @@ module Comet
|
|
74
79
|
ret['MasterBucket'] = @master_bucket
|
75
80
|
ret['KeyID'] = @key_id
|
76
81
|
ret['AppKey'] = @app_key
|
82
|
+
ret['HideDeletedFiles'] = @hide_deleted_files
|
77
83
|
@unknown_json_fields.each do |k, v|
|
78
84
|
ret[k] = v
|
79
85
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -17,6 +17,9 @@ module Comet
|
|
17
17
|
# @type [String] friendly_name
|
18
18
|
attr_accessor :friendly_name
|
19
19
|
|
20
|
+
# @type [Number] registration_time
|
21
|
+
attr_accessor :registration_time
|
22
|
+
|
20
23
|
# @type [Comet::OSInfo] platform_version
|
21
24
|
attr_accessor :platform_version
|
22
25
|
|
@@ -35,6 +38,7 @@ module Comet
|
|
35
38
|
|
36
39
|
def clear
|
37
40
|
@friendly_name = ''
|
41
|
+
@registration_time = 0
|
38
42
|
@platform_version = Comet::OSInfo.new
|
39
43
|
@sources = {}
|
40
44
|
@device_timezone = ''
|
@@ -58,6 +62,10 @@ module Comet
|
|
58
62
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
59
63
|
|
60
64
|
@friendly_name = v
|
65
|
+
when 'RegistrationTime'
|
66
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
67
|
+
|
68
|
+
@registration_time = v
|
61
69
|
when 'PlatformVersion'
|
62
70
|
@platform_version = Comet::OSInfo.new
|
63
71
|
@platform_version.from_hash(v)
|
@@ -85,6 +93,9 @@ module Comet
|
|
85
93
|
def to_hash
|
86
94
|
ret = {}
|
87
95
|
ret['FriendlyName'] = @friendly_name
|
96
|
+
unless @registration_time.nil?
|
97
|
+
ret['RegistrationTime'] = @registration_time
|
98
|
+
end
|
88
99
|
unless @platform_version.nil?
|
89
100
|
ret['PlatformVersion'] = @platform_version
|
90
101
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,99 @@
|
|
1
|
+
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
|
+
#
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
|
+
# Please see the LICENSE file for usage information.
|
5
|
+
#
|
6
|
+
# SPDX-License-Identifier: MIT
|
7
|
+
#
|
8
|
+
# frozen_string_literal: true
|
9
|
+
|
10
|
+
require 'json'
|
11
|
+
|
12
|
+
module Comet
|
13
|
+
|
14
|
+
# DispatcherWindiskSnapshotResponse is a typed class wrapper around the underlying Comet Server API data structure.
|
15
|
+
class DispatcherWindiskSnapshotResponse
|
16
|
+
|
17
|
+
# @type [Number] status
|
18
|
+
attr_accessor :status
|
19
|
+
|
20
|
+
# @type [String] message
|
21
|
+
attr_accessor :message
|
22
|
+
|
23
|
+
# @type [Array<Comet::DiskDrive>] windisk_snapshot
|
24
|
+
attr_accessor :windisk_snapshot
|
25
|
+
|
26
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
27
|
+
attr_accessor :unknown_json_fields
|
28
|
+
|
29
|
+
def initialize
|
30
|
+
clear
|
31
|
+
end
|
32
|
+
|
33
|
+
def clear
|
34
|
+
@status = 0
|
35
|
+
@message = ''
|
36
|
+
@windisk_snapshot = []
|
37
|
+
@unknown_json_fields = {}
|
38
|
+
end
|
39
|
+
|
40
|
+
# @param [String] json_string The complete object in JSON format
|
41
|
+
def from_json(json_string)
|
42
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
43
|
+
|
44
|
+
from_hash(JSON.parse(json_string))
|
45
|
+
end
|
46
|
+
|
47
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
48
|
+
def from_hash(obj)
|
49
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
50
|
+
|
51
|
+
obj.each do |k, v|
|
52
|
+
case k
|
53
|
+
when 'Status'
|
54
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
55
|
+
|
56
|
+
@status = v
|
57
|
+
when 'Message'
|
58
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
59
|
+
|
60
|
+
@message = v
|
61
|
+
when 'WindiskSnapshot'
|
62
|
+
if v.nil?
|
63
|
+
@windisk_snapshot = []
|
64
|
+
else
|
65
|
+
@windisk_snapshot = Array.new(v.length)
|
66
|
+
v.each_with_index do |v1, i1|
|
67
|
+
@windisk_snapshot[i1] = Comet::DiskDrive.new
|
68
|
+
@windisk_snapshot[i1].from_hash(v1)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
else
|
72
|
+
@unknown_json_fields[k] = v
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# @return [Hash] The complete object as a Ruby hash
|
78
|
+
def to_hash
|
79
|
+
ret = {}
|
80
|
+
ret['Status'] = @status
|
81
|
+
ret['Message'] = @message
|
82
|
+
ret['WindiskSnapshot'] = @windisk_snapshot
|
83
|
+
@unknown_json_fields.each do |k, v|
|
84
|
+
ret[k] = v
|
85
|
+
end
|
86
|
+
ret
|
87
|
+
end
|
88
|
+
|
89
|
+
# @return [Hash] The complete object as a Ruby hash
|
90
|
+
def to_h
|
91
|
+
to_hash
|
92
|
+
end
|
93
|
+
|
94
|
+
# @return [String] The complete object as a JSON string
|
95
|
+
def to_json(options = {})
|
96
|
+
to_hash.to_json(options)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -26,6 +26,21 @@ module Comet
|
|
26
26
|
# @type [String] password
|
27
27
|
attr_accessor :password
|
28
28
|
|
29
|
+
# @type [Boolean] use_tls
|
30
|
+
attr_accessor :use_tls
|
31
|
+
|
32
|
+
# @type [Boolean] tlsskip_verify
|
33
|
+
attr_accessor :tlsskip_verify
|
34
|
+
|
35
|
+
# @type [String] tlscustom_server_capath
|
36
|
+
attr_accessor :tlscustom_server_capath
|
37
|
+
|
38
|
+
# @type [String] tlscustom_client_crt_path
|
39
|
+
attr_accessor :tlscustom_client_crt_path
|
40
|
+
|
41
|
+
# @type [String] tlscustom_client_key_path
|
42
|
+
attr_accessor :tlscustom_client_key_path
|
43
|
+
|
29
44
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
30
45
|
attr_accessor :unknown_json_fields
|
31
46
|
|
@@ -38,6 +53,9 @@ module Comet
|
|
38
53
|
@port = ''
|
39
54
|
@username = ''
|
40
55
|
@password = ''
|
56
|
+
@tlscustom_server_capath = ''
|
57
|
+
@tlscustom_client_crt_path = ''
|
58
|
+
@tlscustom_client_key_path = ''
|
41
59
|
@unknown_json_fields = {}
|
42
60
|
end
|
43
61
|
|
@@ -70,6 +88,22 @@ module Comet
|
|
70
88
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
71
89
|
|
72
90
|
@password = v
|
91
|
+
when 'UseTLS'
|
92
|
+
@use_tls = v
|
93
|
+
when 'TLSSkipVerify'
|
94
|
+
@tlsskip_verify = v
|
95
|
+
when 'TLSCustomServerCAPath'
|
96
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
97
|
+
|
98
|
+
@tlscustom_server_capath = v
|
99
|
+
when 'TLSCustomClientCrtPath'
|
100
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
101
|
+
|
102
|
+
@tlscustom_client_crt_path = v
|
103
|
+
when 'TLSCustomClientKeyPath'
|
104
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
105
|
+
|
106
|
+
@tlscustom_client_key_path = v
|
73
107
|
else
|
74
108
|
@unknown_json_fields[k] = v
|
75
109
|
end
|
@@ -83,6 +117,11 @@ module Comet
|
|
83
117
|
ret['Port'] = @port
|
84
118
|
ret['Username'] = @username
|
85
119
|
ret['Password'] = @password
|
120
|
+
ret['UseTLS'] = @use_tls
|
121
|
+
ret['TLSSkipVerify'] = @tlsskip_verify
|
122
|
+
ret['TLSCustomServerCAPath'] = @tlscustom_server_capath
|
123
|
+
ret['TLSCustomClientCrtPath'] = @tlscustom_client_crt_path
|
124
|
+
ret['TLSCustomClientKeyPath'] = @tlscustom_client_key_path
|
86
125
|
@unknown_json_fields.each do |k, v|
|
87
126
|
ret[k] = v
|
88
127
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/comet/models/osinfo.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comet_backup_ruby_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Comet Licensing Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- README.md
|
82
82
|
- RELEASING.md
|
83
83
|
- Rakefile
|
84
|
+
- comet_backup_ruby_sdk-1.8.0.gem
|
84
85
|
- comet_backup_ruby_sdk.gemspec
|
85
86
|
- lib/comet/api_response_error.rb
|
86
87
|
- lib/comet/comet_server.rb
|
@@ -132,6 +133,7 @@ files:
|
|
132
133
|
- lib/comet/models/dispatcher_admin_sources_response.rb
|
133
134
|
- lib/comet/models/dispatcher_stored_objects_response.rb
|
134
135
|
- lib/comet/models/dispatcher_vault_snapshots_response.rb
|
136
|
+
- lib/comet/models/dispatcher_windisk_snapshot_response.rb
|
135
137
|
- lib/comet/models/edbfile_info.rb
|
136
138
|
- lib/comet/models/email_options.rb
|
137
139
|
- lib/comet/models/email_report_config.rb
|