comet_backup_ruby_sdk 1.1.0 → 1.6.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 +39 -0
- data/Gemfile.lock +2 -2
- data/LICENSE +1 -1
- data/RELEASING.md +5 -3
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/api_response_error.rb +1 -1
- data/lib/comet/comet_server.rb +445 -169
- data/lib/comet/definitions.rb +42 -4
- data/lib/comet/models/add_bucket_response_message.rb +7 -7
- data/lib/comet/models/admin_account_properties_response.rb +4 -4
- data/lib/comet/models/admin_email_options.rb +5 -5
- data/lib/comet/models/admin_resource_response.rb +6 -6
- data/lib/comet/models/admin_security_options.rb +8 -8
- data/lib/comet/models/admin_u2fregistration.rb +5 -5
- data/lib/comet/models/admin_user_permissions.rb +3 -3
- data/lib/comet/models/available_download.rb +5 -5
- data/lib/comet/models/azure_destination_location.rb +8 -8
- data/lib/comet/models/b2destination_location.rb +8 -8
- data/lib/comet/models/b2storage_extra_info.rb +3 -3
- data/lib/comet/models/b2transaction_totals.rb +6 -6
- data/lib/comet/models/b2virtual_storage_role_settings.rb +6 -6
- data/lib/comet/models/backup_job_advanced_options.rb +5 -5
- data/lib/comet/models/backup_job_detail.rb +54 -21
- data/lib/comet/models/backup_job_progress.rb +8 -8
- data/lib/comet/models/backup_rule_config.rb +28 -12
- data/lib/comet/models/backup_rule_event_triggers.rb +3 -3
- data/lib/comet/models/branding_options.rb +37 -28
- data/lib/comet/models/branding_properties.rb +33 -24
- data/lib/comet/models/browse_disk_drives_response.rb +5 -5
- data/lib/comet/models/browse_edbresponse.rb +5 -5
- data/lib/comet/models/browse_hvresponse.rb +5 -5
- data/lib/comet/models/browse_office_365objects_response.rb +99 -0
- data/lib/comet/models/browse_sqlserver_response.rb +100 -0
- data/lib/comet/models/browse_vssresponse.rb +5 -5
- data/lib/comet/models/bucket_properties.rb +7 -7
- data/lib/comet/models/bucket_usage_info.rb +4 -4
- data/lib/comet/models/comet_apiresponse_message.rb +5 -5
- data/lib/comet/models/comet_destination_location.rb +6 -6
- data/lib/comet/models/constellation_check_report.rb +5 -5
- data/lib/comet/models/constellation_stats.rb +7 -7
- data/lib/comet/models/constellation_status_apiresponse.rb +5 -5
- data/lib/comet/models/content_measurement.rb +5 -5
- data/lib/comet/models/content_measurement_component.rb +5 -5
- data/lib/comet/models/create_group_policy_response.rb +6 -6
- data/lib/comet/models/custom_remote_bucket_settings.rb +75 -0
- data/lib/comet/models/default_email_report_policy.rb +3 -3
- data/lib/comet/models/default_source_with_osrestriction.rb +83 -0
- data/lib/comet/models/destination_config.rb +66 -44
- data/lib/comet/models/destination_location.rb +41 -35
- data/lib/comet/models/destination_statistics.rb +6 -6
- data/lib/comet/models/device_config.rb +4 -4
- data/lib/comet/models/disk_drive.rb +14 -14
- data/lib/comet/models/dispatcher_admin_sources_response.rb +6 -6
- data/lib/comet/models/dispatcher_stored_objects_response.rb +5 -5
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +5 -5
- data/lib/comet/models/edbfile_info.rb +6 -6
- data/lib/comet/models/email_options.rb +10 -10
- data/lib/comet/models/email_report_config.rb +4 -4
- data/lib/comet/models/email_report_generated_preview.rb +8 -8
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +40 -7
- data/lib/comet/models/extra_file_exclusion.rb +5 -5
- data/lib/comet/models/ftpdestination_location.rb +10 -10
- data/lib/comet/models/get_group_policy_response.rb +6 -6
- data/lib/comet/models/get_profile_and_hash_response_message.rb +6 -6
- data/lib/comet/models/get_profile_hash_response_message.rb +6 -6
- data/lib/comet/models/group_policy.rb +5 -5
- data/lib/comet/models/hyper_vmachine_info.rb +5 -5
- data/lib/comet/models/install_creds.rb +6 -6
- data/lib/comet/models/install_token.rb +8 -8
- data/lib/comet/models/install_token_response.rb +5 -5
- data/lib/comet/models/job_entry.rb +6 -6
- data/lib/comet/models/live_user_connection.rb +9 -9
- data/lib/comet/models/local_destination_location.rb +7 -7
- data/lib/comet/models/mac_oscode_sign_properties.rb +9 -9
- data/lib/comet/models/mongo_dbconnection.rb +16 -16
- data/lib/comet/models/mssqlconnection.rb +120 -0
- data/lib/comet/models/my_sqlconnection.rb +102 -0
- data/lib/comet/models/new_bucket_detail.rb +5 -5
- data/lib/comet/models/news_entry.rb +6 -6
- data/lib/comet/models/office_365connection.rb +123 -0
- data/lib/comet/models/office_365credential.rb +111 -0
- data/lib/comet/models/office_365custom_setting.rb +132 -0
- data/lib/comet/models/office_365object_info.rb +118 -0
- data/lib/comet/models/organization.rb +11 -5
- data/lib/comet/models/organization_response.rb +6 -6
- data/lib/comet/models/osinfo.rb +6 -6
- data/lib/comet/models/partition.rb +14 -14
- data/lib/comet/models/private_branding_properties.rb +27 -18
- data/lib/comet/models/protected_item_engine_type_policy.rb +4 -4
- data/lib/comet/models/public_branding_properties.rb +9 -9
- data/lib/comet/models/register_office_application_begin_response.rb +93 -0
- data/lib/comet/models/register_office_application_check_response.rb +100 -0
- data/lib/comet/models/remote_server_address.rb +18 -8
- data/lib/comet/models/remote_storage_option.rb +19 -9
- data/lib/comet/models/replicator_state_apiresponse.rb +15 -15
- data/lib/comet/models/request_storage_vault_response_message.rb +6 -6
- data/lib/comet/models/restore_job_advanced_options.rb +23 -7
- data/lib/comet/models/retention_policy.rb +4 -4
- data/lib/comet/models/retention_range.rb +11 -11
- data/lib/comet/models/s3destination_location.rb +8 -8
- data/lib/comet/models/schedule_config.rb +6 -6
- data/lib/comet/models/search_clause.rb +7 -7
- data/lib/comet/models/self_backup_statistics.rb +108 -0
- data/lib/comet/models/server_config_options_branding_fragment.rb +3 -3
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +3 -3
- data/lib/comet/models/server_meta_branding_properties.rb +135 -0
- data/lib/comet/models/server_meta_version_info.rb +33 -18
- data/lib/comet/models/session_key_regenerated_response.rb +7 -7
- data/lib/comet/models/sftpdestination_location.rb +10 -10
- data/lib/comet/models/size_measurement.rb +6 -6
- data/lib/comet/models/software_build_role_options.rb +3 -3
- data/lib/comet/models/software_update_news_response.rb +7 -7
- data/lib/comet/models/source_basic_info.rb +5 -5
- data/lib/comet/models/source_config.rb +27 -11
- data/lib/comet/models/source_include_pattern.rb +84 -0
- data/lib/comet/models/source_statistics.rb +11 -3
- data/lib/comet/models/spanned_destination_location.rb +9 -3
- data/lib/comet/models/spanned_storage_extra_info.rb +3 -3
- data/lib/comet/models/sshconnection.rb +9 -9
- data/lib/comet/models/stat_result.rb +7 -7
- data/lib/comet/models/storage_free_space_info.rb +5 -5
- data/lib/comet/models/storage_vault_provider_policy.rb +4 -4
- data/lib/comet/models/stored_object.rb +96 -11
- data/lib/comet/models/streamable_event.rb +8 -6
- data/lib/comet/models/swift_destination_location.rb +16 -16
- data/lib/comet/models/test_response.rb +5 -5
- data/lib/comet/models/totp_regenerated_response.rb +8 -8
- data/lib/comet/models/u2fregister_request.rb +5 -5
- data/lib/comet/models/u2fregistered_key.rb +6 -6
- data/lib/comet/models/u2fregistration_challenge_response.rb +7 -7
- data/lib/comet/models/u2fsign_request.rb +6 -6
- data/lib/comet/models/u2fsign_response.rb +7 -7
- data/lib/comet/models/uninstall_config.rb +3 -3
- data/lib/comet/models/update_campaign_device_status.rb +4 -4
- data/lib/comet/models/update_campaign_options.rb +3 -3
- data/lib/comet/models/update_campaign_properties.rb +5 -5
- data/lib/comet/models/update_campaign_status.rb +5 -5
- data/lib/comet/models/update_campaign_status_device_entry.rb +6 -6
- data/lib/comet/models/user_custom_email_settings.rb +3 -3
- data/lib/comet/models/user_on_server.rb +5 -5
- data/lib/comet/models/user_policy.rb +22 -7
- data/lib/comet/models/user_profile_config.rb +19 -19
- data/lib/comet/models/user_profile_fragment.rb +4 -4
- data/lib/comet/models/vault_snapshot.rb +12 -6
- data/lib/comet/models/vsscomponent.rb +6 -6
- data/lib/comet/models/vsswriter_info.rb +4 -4
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +6 -6
- data/lib/comet/models/web_interface_branding_properties.rb +7 -7
- data/lib/comet/models/webhook_option.rb +5 -5
- data/lib/comet/models/win_smbauth.rb +7 -7
- data/lib/comet/models/windows_code_sign_properties.rb +12 -12
- data/lib/comet_backup_ruby_sdk.rb +16 -1
- metadata +20 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -31,19 +31,19 @@ module Comet
|
|
31
31
|
|
32
32
|
# @param [String] json_string The complete object in JSON format
|
33
33
|
def from_json(json_string)
|
34
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
34
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
35
35
|
|
36
36
|
from_hash(JSON.parse(json_string))
|
37
37
|
end
|
38
38
|
|
39
39
|
# @param [Hash] obj The complete object as a Ruby hash
|
40
40
|
def from_hash(obj)
|
41
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
41
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
42
42
|
|
43
43
|
obj.each do |k, v|
|
44
44
|
case k
|
45
45
|
when 'Username'
|
46
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
46
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
47
47
|
|
48
48
|
@username = v
|
49
49
|
else
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -23,6 +23,9 @@ module Comet
|
|
23
23
|
# @type [Number] create_time
|
24
24
|
attr_accessor :create_time
|
25
25
|
|
26
|
+
# @type [Boolean] has_original_path_info
|
27
|
+
attr_accessor :has_original_path_info
|
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
|
|
@@ -39,29 +42,31 @@ module Comet
|
|
39
42
|
|
40
43
|
# @param [String] json_string The complete object in JSON format
|
41
44
|
def from_json(json_string)
|
42
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
45
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
43
46
|
|
44
47
|
from_hash(JSON.parse(json_string))
|
45
48
|
end
|
46
49
|
|
47
50
|
# @param [Hash] obj The complete object as a Ruby hash
|
48
51
|
def from_hash(obj)
|
49
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
52
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
50
53
|
|
51
54
|
obj.each do |k, v|
|
52
55
|
case k
|
53
56
|
when 'Snapshot'
|
54
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
57
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
55
58
|
|
56
59
|
@snapshot = v
|
57
60
|
when 'Source'
|
58
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
61
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
59
62
|
|
60
63
|
@source = v
|
61
64
|
when 'CreateTime'
|
62
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
65
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
63
66
|
|
64
67
|
@create_time = v
|
68
|
+
when 'HasOriginalPathInfo'
|
69
|
+
@has_original_path_info = v
|
65
70
|
else
|
66
71
|
@unknown_json_fields[k] = v
|
67
72
|
end
|
@@ -74,6 +79,7 @@ module Comet
|
|
74
79
|
ret['Snapshot'] = @snapshot
|
75
80
|
ret['Source'] = @source
|
76
81
|
ret['CreateTime'] = @create_time
|
82
|
+
ret['HasOriginalPathInfo'] = @has_original_path_info
|
77
83
|
@unknown_json_fields.each do |k, v|
|
78
84
|
ret[k] = v
|
79
85
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -42,27 +42,27 @@ module Comet
|
|
42
42
|
|
43
43
|
# @param [String] json_string The complete object in JSON format
|
44
44
|
def from_json(json_string)
|
45
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
45
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
46
46
|
|
47
47
|
from_hash(JSON.parse(json_string))
|
48
48
|
end
|
49
49
|
|
50
50
|
# @param [Hash] obj The complete object as a Ruby hash
|
51
51
|
def from_hash(obj)
|
52
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
52
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
53
53
|
|
54
54
|
obj.each do |k, v|
|
55
55
|
case k
|
56
56
|
when 'Path'
|
57
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
57
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
58
58
|
|
59
59
|
@path = v
|
60
60
|
when 'Name'
|
61
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
61
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
62
62
|
|
63
63
|
@name = v
|
64
64
|
when 'CType'
|
65
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
65
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
66
66
|
|
67
67
|
@ctype = v
|
68
68
|
when 'Selectable'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -35,19 +35,19 @@ module Comet
|
|
35
35
|
|
36
36
|
# @param [String] json_string The complete object in JSON format
|
37
37
|
def from_json(json_string)
|
38
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
38
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
39
39
|
|
40
40
|
from_hash(JSON.parse(json_string))
|
41
41
|
end
|
42
42
|
|
43
43
|
# @param [Hash] obj The complete object as a Ruby hash
|
44
44
|
def from_hash(obj)
|
45
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
45
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
46
46
|
|
47
47
|
obj.each do |k, v|
|
48
48
|
case k
|
49
49
|
when 'DisplayName'
|
50
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
50
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
51
51
|
|
52
52
|
@display_name = v
|
53
53
|
when 'Components'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -39,27 +39,27 @@ module Comet
|
|
39
39
|
|
40
40
|
# @param [String] json_string The complete object in JSON format
|
41
41
|
def from_json(json_string)
|
42
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
42
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
43
43
|
|
44
44
|
from_hash(JSON.parse(json_string))
|
45
45
|
end
|
46
46
|
|
47
47
|
# @param [Hash] obj The complete object as a Ruby hash
|
48
48
|
def from_hash(obj)
|
49
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
49
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
50
50
|
|
51
51
|
obj.each do |k, v|
|
52
52
|
case k
|
53
53
|
when 'MasterBucket'
|
54
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
54
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
55
55
|
|
56
56
|
@master_bucket = v
|
57
57
|
when 'AccessKey'
|
58
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
58
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
59
59
|
|
60
60
|
@access_key = v
|
61
61
|
when 'SecretKey'
|
62
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
62
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
63
63
|
|
64
64
|
@secret_key = v
|
65
65
|
else
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -46,31 +46,31 @@ module Comet
|
|
46
46
|
|
47
47
|
# @param [String] json_string The complete object in JSON format
|
48
48
|
def from_json(json_string)
|
49
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
49
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
50
50
|
|
51
51
|
from_hash(JSON.parse(json_string))
|
52
52
|
end
|
53
53
|
|
54
54
|
# @param [Hash] obj The complete object as a Ruby hash
|
55
55
|
def from_hash(obj)
|
56
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
56
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
57
57
|
|
58
58
|
obj.each do |k, v|
|
59
59
|
case k
|
60
60
|
when 'BrandName'
|
61
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
61
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
62
62
|
|
63
63
|
@brand_name = v
|
64
64
|
when 'LogoImage'
|
65
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
65
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
66
66
|
|
67
67
|
@logo_image = v
|
68
68
|
when 'TopColor'
|
69
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
69
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
70
70
|
|
71
71
|
@top_color = v
|
72
72
|
when 'Favicon'
|
73
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
73
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
74
74
|
|
75
75
|
@favicon = v
|
76
76
|
when 'HideNewsArea'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -35,19 +35,19 @@ module Comet
|
|
35
35
|
|
36
36
|
# @param [String] json_string The complete object in JSON format
|
37
37
|
def from_json(json_string)
|
38
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
38
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
39
39
|
|
40
40
|
from_hash(JSON.parse(json_string))
|
41
41
|
end
|
42
42
|
|
43
43
|
# @param [Hash] obj The complete object as a Ruby hash
|
44
44
|
def from_hash(obj)
|
45
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
45
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
46
46
|
|
47
47
|
obj.each do |k, v|
|
48
48
|
case k
|
49
49
|
when 'URL'
|
50
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
50
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
51
51
|
|
52
52
|
@url = v
|
53
53
|
when 'WhiteListedEventTypes'
|
@@ -56,7 +56,7 @@ module Comet
|
|
56
56
|
else
|
57
57
|
@white_listed_event_types = Array.new(v.length)
|
58
58
|
v.each_with_index do |v1, i1|
|
59
|
-
raise TypeError "'v1' expected Numeric, got #{v1.class}" unless v1.is_a? Numeric
|
59
|
+
raise TypeError, "'v1' expected Numeric, got #{v1.class}" unless v1.is_a? Numeric
|
60
60
|
|
61
61
|
@white_listed_event_types[i1] = v1
|
62
62
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -43,31 +43,31 @@ module Comet
|
|
43
43
|
|
44
44
|
# @param [String] json_string The complete object in JSON format
|
45
45
|
def from_json(json_string)
|
46
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
46
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
47
47
|
|
48
48
|
from_hash(JSON.parse(json_string))
|
49
49
|
end
|
50
50
|
|
51
51
|
# @param [Hash] obj The complete object as a Ruby hash
|
52
52
|
def from_hash(obj)
|
53
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
53
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
54
54
|
|
55
55
|
obj.each do |k, v|
|
56
56
|
case k
|
57
57
|
when 'SharePath'
|
58
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
58
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
59
59
|
|
60
60
|
@share_path = v
|
61
61
|
when 'Username'
|
62
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
62
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
63
63
|
|
64
64
|
@username = v
|
65
65
|
when 'Password'
|
66
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
66
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
67
67
|
|
68
68
|
@password = v
|
69
69
|
when 'PasswordFormat'
|
70
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
70
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
71
71
|
|
72
72
|
@password_format = v
|
73
73
|
else
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -63,51 +63,51 @@ module Comet
|
|
63
63
|
|
64
64
|
# @param [String] json_string The complete object in JSON format
|
65
65
|
def from_json(json_string)
|
66
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
66
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
67
67
|
|
68
68
|
from_hash(JSON.parse(json_string))
|
69
69
|
end
|
70
70
|
|
71
71
|
# @param [Hash] obj The complete object as a Ruby hash
|
72
72
|
def from_hash(obj)
|
73
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
73
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
74
74
|
|
75
75
|
obj.each do |k, v|
|
76
76
|
case k
|
77
77
|
when 'WindowsCodeSignPKCS12FilePath'
|
78
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
78
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
79
79
|
|
80
80
|
@windows_code_sign_pkcs12file_path = v
|
81
81
|
when 'WindowsCodeSignPKCS12PasswordFormat'
|
82
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
82
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
83
83
|
|
84
84
|
@windows_code_sign_pkcs12password_format = v
|
85
85
|
when 'WindowsCodeSignPKCS12Password'
|
86
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
86
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
87
87
|
|
88
88
|
@windows_code_sign_pkcs12password = v
|
89
89
|
when 'WindowsCodeSignPKCS11Engine'
|
90
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
90
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
91
91
|
|
92
92
|
@windows_code_sign_pkcs11engine = v
|
93
93
|
when 'WindowsCodeSignPKCS11Module'
|
94
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
94
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
95
95
|
|
96
96
|
@windows_code_sign_pkcs11module = v
|
97
97
|
when 'WindowsCodeSignPKCS11Certfile'
|
98
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
98
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
99
99
|
|
100
100
|
@windows_code_sign_pkcs11certfile = v
|
101
101
|
when 'WindowsCodeSignPKCS11KeyID'
|
102
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
102
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
103
103
|
|
104
104
|
@windows_code_sign_pkcs11key_id = v
|
105
105
|
when 'WindowsCodeSignPKCS11PasswordFormat'
|
106
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
106
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
107
107
|
|
108
108
|
@windows_code_sign_pkcs11password_format = v
|
109
109
|
when 'WindowsCodeSignPKCS11Password'
|
110
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
110
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
111
111
|
|
112
112
|
@windows_code_sign_pkcs11password = v
|
113
113
|
else
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
2
|
#
|
3
|
-
# Copyright (c) 2020-
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
4
|
# Please see the LICENSE file for usage information.
|
5
5
|
#
|
6
6
|
# SPDX-License-Identifier: MIT
|
@@ -33,6 +33,8 @@ require_relative 'comet/models/branding_properties'
|
|
33
33
|
require_relative 'comet/models/browse_disk_drives_response'
|
34
34
|
require_relative 'comet/models/browse_edbresponse'
|
35
35
|
require_relative 'comet/models/browse_hvresponse'
|
36
|
+
require_relative 'comet/models/browse_office_365objects_response'
|
37
|
+
require_relative 'comet/models/browse_sqlserver_response'
|
36
38
|
require_relative 'comet/models/browse_vssresponse'
|
37
39
|
require_relative 'comet/models/bucket_properties'
|
38
40
|
require_relative 'comet/models/bucket_usage_info'
|
@@ -44,7 +46,9 @@ require_relative 'comet/models/constellation_status_apiresponse'
|
|
44
46
|
require_relative 'comet/models/content_measurement'
|
45
47
|
require_relative 'comet/models/content_measurement_component'
|
46
48
|
require_relative 'comet/models/create_group_policy_response'
|
49
|
+
require_relative 'comet/models/custom_remote_bucket_settings'
|
47
50
|
require_relative 'comet/models/default_email_report_policy'
|
51
|
+
require_relative 'comet/models/default_source_with_osrestriction'
|
48
52
|
require_relative 'comet/models/destination_config'
|
49
53
|
require_relative 'comet/models/destination_location'
|
50
54
|
require_relative 'comet/models/destination_statistics'
|
@@ -73,8 +77,14 @@ require_relative 'comet/models/live_user_connection'
|
|
73
77
|
require_relative 'comet/models/local_destination_location'
|
74
78
|
require_relative 'comet/models/mac_oscode_sign_properties'
|
75
79
|
require_relative 'comet/models/mongo_dbconnection'
|
80
|
+
require_relative 'comet/models/mssqlconnection'
|
81
|
+
require_relative 'comet/models/my_sqlconnection'
|
76
82
|
require_relative 'comet/models/new_bucket_detail'
|
77
83
|
require_relative 'comet/models/news_entry'
|
84
|
+
require_relative 'comet/models/office_365connection'
|
85
|
+
require_relative 'comet/models/office_365credential'
|
86
|
+
require_relative 'comet/models/office_365custom_setting'
|
87
|
+
require_relative 'comet/models/office_365object_info'
|
78
88
|
require_relative 'comet/models/organization'
|
79
89
|
require_relative 'comet/models/organization_response'
|
80
90
|
require_relative 'comet/models/osinfo'
|
@@ -82,6 +92,8 @@ require_relative 'comet/models/partition'
|
|
82
92
|
require_relative 'comet/models/private_branding_properties'
|
83
93
|
require_relative 'comet/models/protected_item_engine_type_policy'
|
84
94
|
require_relative 'comet/models/public_branding_properties'
|
95
|
+
require_relative 'comet/models/register_office_application_begin_response'
|
96
|
+
require_relative 'comet/models/register_office_application_check_response'
|
85
97
|
require_relative 'comet/models/remote_server_address'
|
86
98
|
require_relative 'comet/models/remote_storage_option'
|
87
99
|
require_relative 'comet/models/replicator_state_apiresponse'
|
@@ -92,8 +104,10 @@ require_relative 'comet/models/retention_range'
|
|
92
104
|
require_relative 'comet/models/s3destination_location'
|
93
105
|
require_relative 'comet/models/schedule_config'
|
94
106
|
require_relative 'comet/models/search_clause'
|
107
|
+
require_relative 'comet/models/self_backup_statistics'
|
95
108
|
require_relative 'comet/models/server_config_options_branding_fragment'
|
96
109
|
require_relative 'comet/models/server_config_options_software_build_role_fragment'
|
110
|
+
require_relative 'comet/models/server_meta_branding_properties'
|
97
111
|
require_relative 'comet/models/server_meta_version_info'
|
98
112
|
require_relative 'comet/models/session_key_regenerated_response'
|
99
113
|
require_relative 'comet/models/sftpdestination_location'
|
@@ -102,6 +116,7 @@ require_relative 'comet/models/software_build_role_options'
|
|
102
116
|
require_relative 'comet/models/software_update_news_response'
|
103
117
|
require_relative 'comet/models/source_basic_info'
|
104
118
|
require_relative 'comet/models/source_config'
|
119
|
+
require_relative 'comet/models/source_include_pattern'
|
105
120
|
require_relative 'comet/models/source_statistics'
|
106
121
|
require_relative 'comet/models/spanned_destination_location'
|
107
122
|
require_relative 'comet/models/spanned_storage_extra_info'
|