comet_backup_ruby_sdk 0.2.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/Gemfile.lock +43 -0
- data/README.md +20 -4
- data/RELEASING.md +10 -0
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/comet_server.rb +184 -136
- data/lib/comet/definitions.rb +4 -4
- data/lib/comet/models/add_bucket_response_message.rb +15 -5
- data/lib/comet/models/admin_account_properties_response.rb +8 -2
- data/lib/comet/models/admin_resource_response.rb +13 -4
- data/lib/comet/models/admin_security_options.rb +18 -5
- data/lib/comet/models/admin_u2fregistration.rb +11 -3
- data/lib/comet/models/admin_user_permissions.rb +6 -2
- data/lib/comet/models/available_download.rb +10 -4
- data/lib/comet/models/azure_destination_location.rb +16 -7
- data/lib/comet/models/b2destination_location.rb +17 -6
- data/lib/comet/models/b2storage_extra_info.rb +6 -2
- data/lib/comet/models/b2transaction_totals.rb +15 -2
- data/lib/comet/models/backup_job_advanced_options.rb +12 -2
- data/lib/comet/models/backup_job_detail.rb +53 -10
- data/lib/comet/models/backup_job_progress.rb +21 -2
- data/lib/comet/models/backup_rule_config.rb +27 -7
- data/lib/comet/models/backup_rule_event_triggers.rb +6 -2
- data/lib/comet/models/branding_options.rb +59 -25
- data/lib/comet/models/branding_properties.rb +51 -21
- data/lib/comet/models/browse_disk_drives_response.rb +11 -3
- data/lib/comet/models/browse_edbresponse.rb +11 -3
- data/lib/comet/models/browse_hvresponse.rb +11 -3
- data/lib/comet/models/browse_vssresponse.rb +11 -3
- data/lib/comet/models/bucket_properties.rb +15 -3
- data/lib/comet/models/bucket_usage_info.rb +8 -2
- data/lib/comet/models/comet_apiresponse_message.rb +11 -3
- data/lib/comet/models/comet_destination_location.rb +12 -5
- data/lib/comet/models/constellation_check_report.rb +12 -2
- data/lib/comet/models/constellation_stats.rb +18 -2
- data/lib/comet/models/constellation_status_apiresponse.rb +9 -4
- data/lib/comet/models/content_measurement.rb +12 -2
- data/lib/comet/models/content_measurement_component.rb +10 -3
- data/lib/comet/models/create_group_policy_response.rb +13 -4
- data/lib/comet/models/default_email_report_policy.rb +6 -2
- data/lib/comet/models/destination_config.rb +101 -32
- data/lib/comet/models/destination_location.rb +78 -28
- data/lib/comet/models/destination_statistics.rb +16 -3
- data/lib/comet/models/device_config.rb +9 -3
- data/lib/comet/models/disk_drive.rb +34 -7
- data/lib/comet/models/dispatcher_admin_sources_response.rb +12 -4
- data/lib/comet/models/dispatcher_stored_objects_response.rb +11 -3
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +11 -3
- data/lib/comet/models/edbfile_info.rb +12 -5
- data/lib/comet/models/email_options.rb +21 -8
- data/lib/comet/models/email_report_config.rb +10 -2
- data/lib/comet/models/email_report_generated_preview.rb +17 -6
- data/lib/comet/models/extra_file_exclusion.rb +11 -3
- data/lib/comet/models/ftpdestination_location.rb +23 -6
- data/lib/comet/models/get_group_policy_response.rb +14 -4
- data/lib/comet/models/get_profile_and_hash_response_message.rb +14 -4
- data/lib/comet/models/get_profile_hash_response_message.rb +13 -4
- data/lib/comet/models/group_policy.rb +9 -3
- data/lib/comet/models/hyper_vmachine_info.rb +10 -4
- data/lib/comet/models/job_entry.rb +93 -0
- data/lib/comet/models/live_user_connection.rb +20 -7
- data/lib/comet/models/local_destination_location.rb +15 -5
- data/lib/comet/models/mac_oscode_sign_properties.rb +21 -6
- data/lib/comet/models/mongo_dbconnection.rb +33 -14
- data/lib/comet/models/new_bucket_detail.rb +10 -4
- data/lib/comet/models/news_entry.rb +11 -3
- data/lib/comet/models/osinfo.rb +12 -5
- data/lib/comet/models/partition.rb +32 -8
- data/lib/comet/models/private_branding_properties.rb +39 -15
- data/lib/comet/models/protected_item_engine_type_policy.rb +7 -3
- data/lib/comet/models/public_branding_properties.rb +18 -8
- data/lib/comet/models/remote_server_address.rb +19 -7
- data/lib/comet/models/remote_storage_option.rb +22 -7
- data/lib/comet/models/replicator_state_apiresponse.rb +40 -4
- data/lib/comet/models/request_storage_vault_response_message.rb +13 -4
- data/lib/comet/models/restore_job_advanced_options.rb +15 -4
- data/lib/comet/models/retention_policy.rb +9 -2
- data/lib/comet/models/retention_range.rb +30 -2
- data/lib/comet/models/s3destination_location.rb +16 -7
- data/lib/comet/models/schedule_config.rb +15 -2
- data/lib/comet/models/search_clause.rb +14 -6
- data/lib/comet/models/server_config_options_branding_fragment.rb +7 -2
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +7 -2
- data/lib/comet/models/server_meta_version_info.rb +45 -7
- data/lib/comet/models/session_key_regenerated_response.rb +15 -5
- data/lib/comet/models/sftpdestination_location.rb +21 -8
- data/lib/comet/models/size_measurement.rb +15 -2
- data/lib/comet/models/software_build_role_options.rb +6 -2
- data/lib/comet/models/software_update_news_response.rb +13 -6
- data/lib/comet/models/source_basic_info.rb +11 -3
- data/lib/comet/models/source_config.rb +22 -8
- data/lib/comet/models/source_statistics.rb +7 -2
- data/lib/comet/models/spanned_destination_location.rb +6 -2
- data/lib/comet/models/spanned_storage_extra_info.rb +6 -2
- data/lib/comet/models/sshconnection.rb +19 -7
- data/lib/comet/models/stat_result.rb +18 -2
- data/lib/comet/models/storage_free_space_info.rb +14 -2
- data/lib/comet/models/storage_vault_provider_policy.rb +8 -2
- data/lib/comet/models/stored_object.rb +27 -5
- data/lib/comet/models/streamable_event.rb +9 -2
- data/lib/comet/models/swift_destination_location.rb +32 -15
- data/lib/comet/models/test_response.rb +11 -3
- data/lib/comet/models/totp_regenerated_response.rb +17 -6
- data/lib/comet/models/u2fregister_request.rb +10 -4
- data/lib/comet/models/u2fregistered_key.rb +12 -5
- data/lib/comet/models/u2fregistration_challenge_response.rb +15 -5
- data/lib/comet/models/u2fsign_request.rb +12 -5
- data/lib/comet/models/u2fsign_response.rb +14 -6
- data/lib/comet/models/uninstall_config.rb +6 -2
- data/lib/comet/models/update_campaign_device_status.rb +9 -2
- data/lib/comet/models/update_campaign_options.rb +6 -2
- data/lib/comet/models/update_campaign_properties.rb +11 -3
- data/lib/comet/models/update_campaign_status.rb +11 -3
- data/lib/comet/models/update_campaign_status_device_entry.rb +13 -4
- data/lib/comet/models/user_custom_email_settings.rb +6 -2
- data/lib/comet/models/user_on_server.rb +11 -3
- data/lib/comet/models/user_policy.rb +22 -2
- data/lib/comet/models/user_profile_config.rb +41 -12
- data/lib/comet/models/user_profile_fragment.rb +8 -3
- data/lib/comet/models/vault_snapshot.rb +13 -4
- data/lib/comet/models/vsscomponent.rb +12 -5
- data/lib/comet/models/vsswriter_info.rb +8 -3
- data/lib/comet/models/web_interface_branding_properties.rb +14 -6
- data/lib/comet/models/webhook_option.rb +10 -3
- data/lib/comet/models/win_smbauth.rb +15 -5
- data/lib/comet/models/windows_code_sign_properties.rb +26 -9
- data/lib/comet_backup_ruby_sdk.rb +1 -0
- metadata +6 -2
@@ -27,26 +27,36 @@ module Comet
|
|
27
27
|
attr_accessor :unknown_json_fields
|
28
28
|
|
29
29
|
def initialize
|
30
|
+
clear
|
31
|
+
end
|
32
|
+
|
33
|
+
def clear
|
34
|
+
@check_started = 0
|
35
|
+
@check_completed = 0
|
30
36
|
@usage = {}
|
31
37
|
@unknown_json_fields = {}
|
32
38
|
end
|
33
39
|
|
34
40
|
# @param [String] json_string The complete object in JSON format
|
35
41
|
def from_json(json_string)
|
36
|
-
raise TypeError 'expected
|
42
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
37
43
|
|
38
44
|
from_hash(JSON.parse(json_string))
|
39
45
|
end
|
40
46
|
|
41
47
|
# @param [Hash] obj The complete object as a Ruby hash
|
42
48
|
def from_hash(obj)
|
43
|
-
raise TypeError 'expected
|
49
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
44
50
|
|
45
51
|
obj.each do |k, v|
|
46
52
|
case k
|
47
53
|
when 'CheckStarted'
|
54
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
55
|
+
|
48
56
|
@check_started = v
|
49
57
|
when 'CheckCompleted'
|
58
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
59
|
+
|
50
60
|
@check_completed = v
|
51
61
|
when 'Usage'
|
52
62
|
@usage = {}
|
@@ -30,29 +30,45 @@ module Comet
|
|
30
30
|
attr_accessor :unknown_json_fields
|
31
31
|
|
32
32
|
def initialize
|
33
|
+
clear
|
34
|
+
end
|
35
|
+
|
36
|
+
def clear
|
37
|
+
@last_check_start = 0
|
38
|
+
@total_checks_started = 0
|
39
|
+
@total_buckets_deleted = 0
|
40
|
+
@checks_currently_active = 0
|
33
41
|
@unknown_json_fields = {}
|
34
42
|
end
|
35
43
|
|
36
44
|
# @param [String] json_string The complete object in JSON format
|
37
45
|
def from_json(json_string)
|
38
|
-
raise TypeError 'expected
|
46
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
39
47
|
|
40
48
|
from_hash(JSON.parse(json_string))
|
41
49
|
end
|
42
50
|
|
43
51
|
# @param [Hash] obj The complete object as a Ruby hash
|
44
52
|
def from_hash(obj)
|
45
|
-
raise TypeError 'expected
|
53
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
46
54
|
|
47
55
|
obj.each do |k, v|
|
48
56
|
case k
|
49
57
|
when 'LastCheckStart'
|
58
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
59
|
+
|
50
60
|
@last_check_start = v
|
51
61
|
when 'TotalChecksStarted'
|
62
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
63
|
+
|
52
64
|
@total_checks_started = v
|
53
65
|
when 'TotalBucketsDeleted'
|
66
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
67
|
+
|
54
68
|
@total_buckets_deleted = v
|
55
69
|
when 'ChecksCurrentlyActive'
|
70
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
71
|
+
|
56
72
|
@checks_currently_active = v
|
57
73
|
else
|
58
74
|
@unknown_json_fields[k] = v
|
@@ -30,21 +30,26 @@ module Comet
|
|
30
30
|
attr_accessor :unknown_json_fields
|
31
31
|
|
32
32
|
def initialize
|
33
|
+
clear
|
34
|
+
end
|
35
|
+
|
36
|
+
def clear
|
33
37
|
@targets = []
|
34
38
|
@target_names = []
|
39
|
+
@stats = Comet::ConstellationStats.new
|
35
40
|
@unknown_json_fields = {}
|
36
41
|
end
|
37
42
|
|
38
43
|
# @param [String] json_string The complete object in JSON format
|
39
44
|
def from_json(json_string)
|
40
|
-
raise TypeError 'expected
|
45
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
41
46
|
|
42
47
|
from_hash(JSON.parse(json_string))
|
43
48
|
end
|
44
49
|
|
45
50
|
# @param [Hash] obj The complete object as a Ruby hash
|
46
51
|
def from_hash(obj)
|
47
|
-
raise TypeError 'expected
|
52
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
48
53
|
|
49
54
|
obj.each do |k, v|
|
50
55
|
case k
|
@@ -56,7 +61,7 @@ module Comet
|
|
56
61
|
else
|
57
62
|
@targets = Array.new(v.length)
|
58
63
|
v.each_with_index do |v1, i1|
|
59
|
-
raise TypeError 'expected
|
64
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
60
65
|
|
61
66
|
@targets[i1] = v1
|
62
67
|
end
|
@@ -67,7 +72,7 @@ module Comet
|
|
67
72
|
else
|
68
73
|
@target_names = Array.new(v.length)
|
69
74
|
v.each_with_index do |v1, i1|
|
70
|
-
raise TypeError 'expected
|
75
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
71
76
|
|
72
77
|
@target_names[i1] = v1
|
73
78
|
end
|
@@ -27,26 +27,36 @@ module Comet
|
|
27
27
|
attr_accessor :unknown_json_fields
|
28
28
|
|
29
29
|
def initialize
|
30
|
+
clear
|
31
|
+
end
|
32
|
+
|
33
|
+
def clear
|
34
|
+
@measure_started = 0
|
35
|
+
@measure_completed = 0
|
30
36
|
@components = []
|
31
37
|
@unknown_json_fields = {}
|
32
38
|
end
|
33
39
|
|
34
40
|
# @param [String] json_string The complete object in JSON format
|
35
41
|
def from_json(json_string)
|
36
|
-
raise TypeError 'expected
|
42
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
37
43
|
|
38
44
|
from_hash(JSON.parse(json_string))
|
39
45
|
end
|
40
46
|
|
41
47
|
# @param [Hash] obj The complete object as a Ruby hash
|
42
48
|
def from_hash(obj)
|
43
|
-
raise TypeError 'expected
|
49
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
44
50
|
|
45
51
|
obj.each do |k, v|
|
46
52
|
case k
|
47
53
|
when 'MeasureStarted'
|
54
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
55
|
+
|
48
56
|
@measure_started = v
|
49
57
|
when 'MeasureCompleted'
|
58
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
59
|
+
|
50
60
|
@measure_completed = v
|
51
61
|
when 'Components'
|
52
62
|
if v.nil?
|
@@ -24,24 +24,31 @@ module Comet
|
|
24
24
|
attr_accessor :unknown_json_fields
|
25
25
|
|
26
26
|
def initialize
|
27
|
+
clear
|
28
|
+
end
|
29
|
+
|
30
|
+
def clear
|
31
|
+
@bytes = 0
|
27
32
|
@used_by = []
|
28
33
|
@unknown_json_fields = {}
|
29
34
|
end
|
30
35
|
|
31
36
|
# @param [String] json_string The complete object in JSON format
|
32
37
|
def from_json(json_string)
|
33
|
-
raise TypeError 'expected
|
38
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
34
39
|
|
35
40
|
from_hash(JSON.parse(json_string))
|
36
41
|
end
|
37
42
|
|
38
43
|
# @param [Hash] obj The complete object as a Ruby hash
|
39
44
|
def from_hash(obj)
|
40
|
-
raise TypeError 'expected
|
45
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
41
46
|
|
42
47
|
obj.each do |k, v|
|
43
48
|
case k
|
44
49
|
when 'Bytes'
|
50
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
51
|
+
|
45
52
|
@bytes = v
|
46
53
|
when 'UsedBy'
|
47
54
|
if v.nil?
|
@@ -49,7 +56,7 @@ module Comet
|
|
49
56
|
else
|
50
57
|
@used_by = Array.new(v.length)
|
51
58
|
v.each_with_index do |v1, i1|
|
52
|
-
raise TypeError 'expected
|
59
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
53
60
|
|
54
61
|
@used_by[i1] = v1
|
55
62
|
end
|
@@ -27,30 +27,39 @@ module Comet
|
|
27
27
|
attr_accessor :unknown_json_fields
|
28
28
|
|
29
29
|
def initialize
|
30
|
+
clear
|
31
|
+
end
|
32
|
+
|
33
|
+
def clear
|
34
|
+
@status = 0
|
35
|
+
@message = ''
|
36
|
+
@policy_hash = ''
|
30
37
|
@unknown_json_fields = {}
|
31
38
|
end
|
32
39
|
|
33
40
|
# @param [String] json_string The complete object in JSON format
|
34
41
|
def from_json(json_string)
|
35
|
-
raise TypeError 'expected
|
42
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
36
43
|
|
37
44
|
from_hash(JSON.parse(json_string))
|
38
45
|
end
|
39
46
|
|
40
47
|
# @param [Hash] obj The complete object as a Ruby hash
|
41
48
|
def from_hash(obj)
|
42
|
-
raise TypeError 'expected
|
49
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
43
50
|
|
44
51
|
obj.each do |k, v|
|
45
52
|
case k
|
46
53
|
when 'Status'
|
54
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
55
|
+
|
47
56
|
@status = v
|
48
57
|
when 'Message'
|
49
|
-
raise TypeError 'expected
|
58
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
50
59
|
|
51
60
|
@message = v
|
52
61
|
when 'PolicyHash'
|
53
|
-
raise TypeError 'expected
|
62
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
54
63
|
|
55
64
|
@policy_hash = v
|
56
65
|
else
|
@@ -24,20 +24,24 @@ module Comet
|
|
24
24
|
attr_accessor :unknown_json_fields
|
25
25
|
|
26
26
|
def initialize
|
27
|
+
clear
|
28
|
+
end
|
29
|
+
|
30
|
+
def clear
|
27
31
|
@reports = []
|
28
32
|
@unknown_json_fields = {}
|
29
33
|
end
|
30
34
|
|
31
35
|
# @param [String] json_string The complete object in JSON format
|
32
36
|
def from_json(json_string)
|
33
|
-
raise TypeError 'expected
|
37
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
34
38
|
|
35
39
|
from_hash(JSON.parse(json_string))
|
36
40
|
end
|
37
41
|
|
38
42
|
# @param [Hash] obj The complete object as a Ruby hash
|
39
43
|
def from_hash(obj)
|
40
|
-
raise TypeError 'expected
|
44
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
41
45
|
|
42
46
|
obj.each do |k, v|
|
43
47
|
case k
|
@@ -174,32 +174,83 @@ module Comet
|
|
174
174
|
attr_accessor :unknown_json_fields
|
175
175
|
|
176
176
|
def initialize
|
177
|
+
clear
|
178
|
+
end
|
179
|
+
|
180
|
+
def clear
|
181
|
+
@description = ''
|
182
|
+
@create_time = 0
|
183
|
+
@modify_time = 0
|
177
184
|
@pre_exec = []
|
178
185
|
@post_exec = []
|
186
|
+
@destination_type = 0
|
187
|
+
@comet_server = ''
|
188
|
+
@comet_bucket = ''
|
189
|
+
@comet_bucket_key = ''
|
190
|
+
@s3server = ''
|
191
|
+
@s3access_key = ''
|
192
|
+
@s3secret_key = ''
|
193
|
+
@s3bucket_name = ''
|
194
|
+
@s3subdir = ''
|
195
|
+
@sftpserver = ''
|
196
|
+
@sftpusername = ''
|
197
|
+
@sftpremote_path = ''
|
198
|
+
@sftpauth_mode = 0
|
199
|
+
@sftppassword = ''
|
200
|
+
@sftpprivate_key = ''
|
201
|
+
@sftpcustom_auth__known_hosts_file = ''
|
202
|
+
@ftpserver = ''
|
203
|
+
@ftpusername = ''
|
204
|
+
@ftppassword = ''
|
205
|
+
@ftpcustom_base_directory = ''
|
206
|
+
@ftpsmode = 0
|
207
|
+
@ftpport = 0
|
208
|
+
@ftpmax_connections = 0
|
209
|
+
@azbaccount_name = ''
|
210
|
+
@azbaccount_key = ''
|
211
|
+
@azbcontainer = ''
|
212
|
+
@azbrealm = ''
|
213
|
+
@azbprefix = ''
|
214
|
+
@localcopy_path = ''
|
215
|
+
@localcopy_win_smbusername = ''
|
216
|
+
@localcopy_win_smbpassword = ''
|
217
|
+
@localcopy_win_smbpassword_format = 0
|
218
|
+
@swift = Comet::SwiftDestinationLocation.new
|
219
|
+
@b2 = Comet::B2DestinationLocation.new
|
179
220
|
@span_targets = []
|
221
|
+
@encryption_key_encryption_method = 0
|
222
|
+
@encrypted_encryption_key = ''
|
223
|
+
@repo_init_timestamp = 0
|
224
|
+
@storage_limit_bytes = 0
|
225
|
+
@statistics = Comet::DestinationStatistics.new
|
226
|
+
@default_retention = Comet::RetentionPolicy.new
|
180
227
|
@unknown_json_fields = {}
|
181
228
|
end
|
182
229
|
|
183
230
|
# @param [String] json_string The complete object in JSON format
|
184
231
|
def from_json(json_string)
|
185
|
-
raise TypeError 'expected
|
232
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
186
233
|
|
187
234
|
from_hash(JSON.parse(json_string))
|
188
235
|
end
|
189
236
|
|
190
237
|
# @param [Hash] obj The complete object as a Ruby hash
|
191
238
|
def from_hash(obj)
|
192
|
-
raise TypeError 'expected
|
239
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
193
240
|
|
194
241
|
obj.each do |k, v|
|
195
242
|
case k
|
196
243
|
when 'Description'
|
197
|
-
raise TypeError 'expected
|
244
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
198
245
|
|
199
246
|
@description = v
|
200
247
|
when 'CreateTime'
|
248
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
249
|
+
|
201
250
|
@create_time = v
|
202
251
|
when 'ModifyTime'
|
252
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
253
|
+
|
203
254
|
@modify_time = v
|
204
255
|
when 'PreExec'
|
205
256
|
if v.nil?
|
@@ -207,7 +258,7 @@ module Comet
|
|
207
258
|
else
|
208
259
|
@pre_exec = Array.new(v.length)
|
209
260
|
v.each_with_index do |v1, i1|
|
210
|
-
raise TypeError 'expected
|
261
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
211
262
|
|
212
263
|
@pre_exec[i1] = v1
|
213
264
|
end
|
@@ -218,136 +269,148 @@ module Comet
|
|
218
269
|
else
|
219
270
|
@post_exec = Array.new(v.length)
|
220
271
|
v.each_with_index do |v1, i1|
|
221
|
-
raise TypeError 'expected
|
272
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
222
273
|
|
223
274
|
@post_exec[i1] = v1
|
224
275
|
end
|
225
276
|
end
|
226
277
|
when 'DestinationType'
|
278
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
279
|
+
|
227
280
|
@destination_type = v
|
228
281
|
when 'CometServer'
|
229
|
-
raise TypeError 'expected
|
282
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
230
283
|
|
231
284
|
@comet_server = v
|
232
285
|
when 'CometBucket'
|
233
|
-
raise TypeError 'expected
|
286
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
234
287
|
|
235
288
|
@comet_bucket = v
|
236
289
|
when 'CometBucketKey'
|
237
|
-
raise TypeError 'expected
|
290
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
238
291
|
|
239
292
|
@comet_bucket_key = v
|
240
293
|
when 'S3Server'
|
241
|
-
raise TypeError 'expected
|
294
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
242
295
|
|
243
296
|
@s3server = v
|
244
297
|
when 'S3UsesTLS'
|
245
298
|
@s3uses_tls = v
|
246
299
|
when 'S3AccessKey'
|
247
|
-
raise TypeError 'expected
|
300
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
248
301
|
|
249
302
|
@s3access_key = v
|
250
303
|
when 'S3SecretKey'
|
251
|
-
raise TypeError 'expected
|
304
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
252
305
|
|
253
306
|
@s3secret_key = v
|
254
307
|
when 'S3BucketName'
|
255
|
-
raise TypeError 'expected
|
308
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
256
309
|
|
257
310
|
@s3bucket_name = v
|
258
311
|
when 'S3Subdir'
|
259
|
-
raise TypeError 'expected
|
312
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
260
313
|
|
261
314
|
@s3subdir = v
|
262
315
|
when 'S3UsesV2Signing'
|
263
316
|
@s3uses_v2signing = v
|
264
317
|
when 'SFTPServer'
|
265
|
-
raise TypeError 'expected
|
318
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
266
319
|
|
267
320
|
@sftpserver = v
|
268
321
|
when 'SFTPUsername'
|
269
|
-
raise TypeError 'expected
|
322
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
270
323
|
|
271
324
|
@sftpusername = v
|
272
325
|
when 'SFTPRemotePath'
|
273
|
-
raise TypeError 'expected
|
326
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
274
327
|
|
275
328
|
@sftpremote_path = v
|
276
329
|
when 'SFTPAuthMode'
|
330
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
331
|
+
|
277
332
|
@sftpauth_mode = v
|
278
333
|
when 'SFTPPassword'
|
279
|
-
raise TypeError 'expected
|
334
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
280
335
|
|
281
336
|
@sftppassword = v
|
282
337
|
when 'SFTPPrivateKey'
|
283
|
-
raise TypeError 'expected
|
338
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
284
339
|
|
285
340
|
@sftpprivate_key = v
|
286
341
|
when 'SFTPCustomAuth_UseKnownHostsFile'
|
287
342
|
@sftpcustom_auth__use_known_hosts_file = v
|
288
343
|
when 'SFTPCustomAuth_KnownHostsFile'
|
289
|
-
raise TypeError 'expected
|
344
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
290
345
|
|
291
346
|
@sftpcustom_auth__known_hosts_file = v
|
292
347
|
when 'FTPServer'
|
293
|
-
raise TypeError 'expected
|
348
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
294
349
|
|
295
350
|
@ftpserver = v
|
296
351
|
when 'FTPUsername'
|
297
|
-
raise TypeError 'expected
|
352
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
298
353
|
|
299
354
|
@ftpusername = v
|
300
355
|
when 'FTPPassword'
|
301
|
-
raise TypeError 'expected
|
356
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
302
357
|
|
303
358
|
@ftppassword = v
|
304
359
|
when 'FTPBaseUseHomeDirectory'
|
305
360
|
@ftpbase_use_home_directory = v
|
306
361
|
when 'FTPCustomBaseDirectory'
|
307
|
-
raise TypeError 'expected
|
362
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
308
363
|
|
309
364
|
@ftpcustom_base_directory = v
|
310
365
|
when 'FTPSMode'
|
366
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
367
|
+
|
311
368
|
@ftpsmode = v
|
312
369
|
when 'FTPPort'
|
370
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
371
|
+
|
313
372
|
@ftpport = v
|
314
373
|
when 'FTPMaxConnections'
|
374
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
375
|
+
|
315
376
|
@ftpmax_connections = v
|
316
377
|
when 'FTPAcceptInvalidSSL'
|
317
378
|
@ftpaccept_invalid_ssl = v
|
318
379
|
when 'AZBAccountName'
|
319
|
-
raise TypeError 'expected
|
380
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
320
381
|
|
321
382
|
@azbaccount_name = v
|
322
383
|
when 'AZBAccountKey'
|
323
|
-
raise TypeError 'expected
|
384
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
324
385
|
|
325
386
|
@azbaccount_key = v
|
326
387
|
when 'AZBContainer'
|
327
|
-
raise TypeError 'expected
|
388
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
328
389
|
|
329
390
|
@azbcontainer = v
|
330
391
|
when 'AZBRealm'
|
331
|
-
raise TypeError 'expected
|
392
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
332
393
|
|
333
394
|
@azbrealm = v
|
334
395
|
when 'AZBPrefix'
|
335
|
-
raise TypeError 'expected
|
396
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
336
397
|
|
337
398
|
@azbprefix = v
|
338
399
|
when 'LocalcopyPath'
|
339
|
-
raise TypeError 'expected
|
400
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
340
401
|
|
341
402
|
@localcopy_path = v
|
342
403
|
when 'LocalcopyWinSMBUsername'
|
343
|
-
raise TypeError 'expected
|
404
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
344
405
|
|
345
406
|
@localcopy_win_smbusername = v
|
346
407
|
when 'LocalcopyWinSMBPassword'
|
347
|
-
raise TypeError 'expected
|
408
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
348
409
|
|
349
410
|
@localcopy_win_smbpassword = v
|
350
411
|
when 'LocalcopyWinSMBPasswordFormat'
|
412
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
413
|
+
|
351
414
|
@localcopy_win_smbpassword_format = v
|
352
415
|
when 'Swift'
|
353
416
|
@swift = Comet::SwiftDestinationLocation.new
|
@@ -366,16 +429,22 @@ module Comet
|
|
366
429
|
end
|
367
430
|
end
|
368
431
|
when 'EncryptionKeyEncryptionMethod'
|
432
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
433
|
+
|
369
434
|
@encryption_key_encryption_method = v
|
370
435
|
when 'EncryptedEncryptionKey'
|
371
|
-
raise TypeError 'expected
|
436
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
372
437
|
|
373
438
|
@encrypted_encryption_key = v
|
374
439
|
when 'RepoInitTimestamp'
|
440
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
441
|
+
|
375
442
|
@repo_init_timestamp = v
|
376
443
|
when 'StorageLimitEnabled'
|
377
444
|
@storage_limit_enabled = v
|
378
445
|
when 'StorageLimitBytes'
|
446
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
447
|
+
|
379
448
|
@storage_limit_bytes = v
|
380
449
|
when 'Statistics'
|
381
450
|
@statistics = Comet::DestinationStatistics.new
|