comet_backup_ruby_sdk 0.2.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +47 -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 +562 -254
- data/lib/comet/definitions.rb +19 -4
- data/lib/comet/models/add_bucket_response_message.rb +15 -5
- data/lib/comet/models/admin_account_properties_response.rb +17 -2
- data/lib/comet/models/admin_email_options.rb +84 -0
- 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/b2virtual_storage_role_settings.rb +93 -0
- 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 +43 -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 +24 -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 +123 -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/external_ldapauthentication_source_settings.rb +102 -0
- 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 +18 -3
- data/lib/comet/models/hyper_vmachine_info.rb +10 -4
- data/lib/comet/models/install_creds.rb +99 -0
- data/lib/comet/models/install_token.rb +117 -0
- data/lib/comet/models/install_token_response.rb +92 -0
- 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 +20 -3
- data/lib/comet/models/organization.rb +145 -0
- data/lib/comet/models/organization_response.rb +101 -0
- 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 +28 -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 +38 -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 +18 -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 +52 -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/wasabi_virtual_storage_role_settings.rb +93 -0
- 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 +10 -0
- metadata +15 -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
|
+
@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
|
|
@@ -26,6 +26,9 @@ module Comet
|
|
|
26
26
|
# @type [Array<String>] pre_exec
|
|
27
27
|
attr_accessor :pre_exec
|
|
28
28
|
|
|
29
|
+
# @type [Array<String>] thaw_exec
|
|
30
|
+
attr_accessor :thaw_exec
|
|
31
|
+
|
|
29
32
|
# @type [Array<String>] post_exec
|
|
30
33
|
attr_accessor :post_exec
|
|
31
34
|
|
|
@@ -170,36 +173,91 @@ module Comet
|
|
|
170
173
|
# @type [Comet::RetentionPolicy] default_retention
|
|
171
174
|
attr_accessor :default_retention
|
|
172
175
|
|
|
176
|
+
# @type [Boolean] rebrand_storage
|
|
177
|
+
attr_accessor :rebrand_storage
|
|
178
|
+
|
|
173
179
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
174
180
|
attr_accessor :unknown_json_fields
|
|
175
181
|
|
|
176
182
|
def initialize
|
|
183
|
+
clear
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
def clear
|
|
187
|
+
@description = ''
|
|
188
|
+
@create_time = 0
|
|
189
|
+
@modify_time = 0
|
|
177
190
|
@pre_exec = []
|
|
191
|
+
@thaw_exec = []
|
|
178
192
|
@post_exec = []
|
|
193
|
+
@destination_type = 0
|
|
194
|
+
@comet_server = ''
|
|
195
|
+
@comet_bucket = ''
|
|
196
|
+
@comet_bucket_key = ''
|
|
197
|
+
@s3server = ''
|
|
198
|
+
@s3access_key = ''
|
|
199
|
+
@s3secret_key = ''
|
|
200
|
+
@s3bucket_name = ''
|
|
201
|
+
@s3subdir = ''
|
|
202
|
+
@sftpserver = ''
|
|
203
|
+
@sftpusername = ''
|
|
204
|
+
@sftpremote_path = ''
|
|
205
|
+
@sftpauth_mode = 0
|
|
206
|
+
@sftppassword = ''
|
|
207
|
+
@sftpprivate_key = ''
|
|
208
|
+
@sftpcustom_auth__known_hosts_file = ''
|
|
209
|
+
@ftpserver = ''
|
|
210
|
+
@ftpusername = ''
|
|
211
|
+
@ftppassword = ''
|
|
212
|
+
@ftpcustom_base_directory = ''
|
|
213
|
+
@ftpsmode = 0
|
|
214
|
+
@ftpport = 0
|
|
215
|
+
@ftpmax_connections = 0
|
|
216
|
+
@azbaccount_name = ''
|
|
217
|
+
@azbaccount_key = ''
|
|
218
|
+
@azbcontainer = ''
|
|
219
|
+
@azbrealm = ''
|
|
220
|
+
@azbprefix = ''
|
|
221
|
+
@localcopy_path = ''
|
|
222
|
+
@localcopy_win_smbusername = ''
|
|
223
|
+
@localcopy_win_smbpassword = ''
|
|
224
|
+
@localcopy_win_smbpassword_format = 0
|
|
225
|
+
@swift = Comet::SwiftDestinationLocation.new
|
|
226
|
+
@b2 = Comet::B2DestinationLocation.new
|
|
179
227
|
@span_targets = []
|
|
228
|
+
@encryption_key_encryption_method = 0
|
|
229
|
+
@encrypted_encryption_key = ''
|
|
230
|
+
@repo_init_timestamp = 0
|
|
231
|
+
@storage_limit_bytes = 0
|
|
232
|
+
@statistics = Comet::DestinationStatistics.new
|
|
233
|
+
@default_retention = Comet::RetentionPolicy.new
|
|
180
234
|
@unknown_json_fields = {}
|
|
181
235
|
end
|
|
182
236
|
|
|
183
237
|
# @param [String] json_string The complete object in JSON format
|
|
184
238
|
def from_json(json_string)
|
|
185
|
-
raise TypeError 'expected
|
|
239
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
186
240
|
|
|
187
241
|
from_hash(JSON.parse(json_string))
|
|
188
242
|
end
|
|
189
243
|
|
|
190
244
|
# @param [Hash] obj The complete object as a Ruby hash
|
|
191
245
|
def from_hash(obj)
|
|
192
|
-
raise TypeError 'expected
|
|
246
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
193
247
|
|
|
194
248
|
obj.each do |k, v|
|
|
195
249
|
case k
|
|
196
250
|
when 'Description'
|
|
197
|
-
raise TypeError 'expected
|
|
251
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
198
252
|
|
|
199
253
|
@description = v
|
|
200
254
|
when 'CreateTime'
|
|
255
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
256
|
+
|
|
201
257
|
@create_time = v
|
|
202
258
|
when 'ModifyTime'
|
|
259
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
260
|
+
|
|
203
261
|
@modify_time = v
|
|
204
262
|
when 'PreExec'
|
|
205
263
|
if v.nil?
|
|
@@ -207,147 +265,170 @@ module Comet
|
|
|
207
265
|
else
|
|
208
266
|
@pre_exec = Array.new(v.length)
|
|
209
267
|
v.each_with_index do |v1, i1|
|
|
210
|
-
raise TypeError 'expected
|
|
268
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
|
211
269
|
|
|
212
270
|
@pre_exec[i1] = v1
|
|
213
271
|
end
|
|
214
272
|
end
|
|
273
|
+
when 'ThawExec'
|
|
274
|
+
if v.nil?
|
|
275
|
+
@thaw_exec = []
|
|
276
|
+
else
|
|
277
|
+
@thaw_exec = Array.new(v.length)
|
|
278
|
+
v.each_with_index do |v1, i1|
|
|
279
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
|
280
|
+
|
|
281
|
+
@thaw_exec[i1] = v1
|
|
282
|
+
end
|
|
283
|
+
end
|
|
215
284
|
when 'PostExec'
|
|
216
285
|
if v.nil?
|
|
217
286
|
@post_exec = []
|
|
218
287
|
else
|
|
219
288
|
@post_exec = Array.new(v.length)
|
|
220
289
|
v.each_with_index do |v1, i1|
|
|
221
|
-
raise TypeError 'expected
|
|
290
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
|
222
291
|
|
|
223
292
|
@post_exec[i1] = v1
|
|
224
293
|
end
|
|
225
294
|
end
|
|
226
295
|
when 'DestinationType'
|
|
296
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
297
|
+
|
|
227
298
|
@destination_type = v
|
|
228
299
|
when 'CometServer'
|
|
229
|
-
raise TypeError 'expected
|
|
300
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
230
301
|
|
|
231
302
|
@comet_server = v
|
|
232
303
|
when 'CometBucket'
|
|
233
|
-
raise TypeError 'expected
|
|
304
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
234
305
|
|
|
235
306
|
@comet_bucket = v
|
|
236
307
|
when 'CometBucketKey'
|
|
237
|
-
raise TypeError 'expected
|
|
308
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
238
309
|
|
|
239
310
|
@comet_bucket_key = v
|
|
240
311
|
when 'S3Server'
|
|
241
|
-
raise TypeError 'expected
|
|
312
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
242
313
|
|
|
243
314
|
@s3server = v
|
|
244
315
|
when 'S3UsesTLS'
|
|
245
316
|
@s3uses_tls = v
|
|
246
317
|
when 'S3AccessKey'
|
|
247
|
-
raise TypeError 'expected
|
|
318
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
248
319
|
|
|
249
320
|
@s3access_key = v
|
|
250
321
|
when 'S3SecretKey'
|
|
251
|
-
raise TypeError 'expected
|
|
322
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
252
323
|
|
|
253
324
|
@s3secret_key = v
|
|
254
325
|
when 'S3BucketName'
|
|
255
|
-
raise TypeError 'expected
|
|
326
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
256
327
|
|
|
257
328
|
@s3bucket_name = v
|
|
258
329
|
when 'S3Subdir'
|
|
259
|
-
raise TypeError 'expected
|
|
330
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
260
331
|
|
|
261
332
|
@s3subdir = v
|
|
262
333
|
when 'S3UsesV2Signing'
|
|
263
334
|
@s3uses_v2signing = v
|
|
264
335
|
when 'SFTPServer'
|
|
265
|
-
raise TypeError 'expected
|
|
336
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
266
337
|
|
|
267
338
|
@sftpserver = v
|
|
268
339
|
when 'SFTPUsername'
|
|
269
|
-
raise TypeError 'expected
|
|
340
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
270
341
|
|
|
271
342
|
@sftpusername = v
|
|
272
343
|
when 'SFTPRemotePath'
|
|
273
|
-
raise TypeError 'expected
|
|
344
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
274
345
|
|
|
275
346
|
@sftpremote_path = v
|
|
276
347
|
when 'SFTPAuthMode'
|
|
348
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
349
|
+
|
|
277
350
|
@sftpauth_mode = v
|
|
278
351
|
when 'SFTPPassword'
|
|
279
|
-
raise TypeError 'expected
|
|
352
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
280
353
|
|
|
281
354
|
@sftppassword = v
|
|
282
355
|
when 'SFTPPrivateKey'
|
|
283
|
-
raise TypeError 'expected
|
|
356
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
284
357
|
|
|
285
358
|
@sftpprivate_key = v
|
|
286
359
|
when 'SFTPCustomAuth_UseKnownHostsFile'
|
|
287
360
|
@sftpcustom_auth__use_known_hosts_file = v
|
|
288
361
|
when 'SFTPCustomAuth_KnownHostsFile'
|
|
289
|
-
raise TypeError 'expected
|
|
362
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
290
363
|
|
|
291
364
|
@sftpcustom_auth__known_hosts_file = v
|
|
292
365
|
when 'FTPServer'
|
|
293
|
-
raise TypeError 'expected
|
|
366
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
294
367
|
|
|
295
368
|
@ftpserver = v
|
|
296
369
|
when 'FTPUsername'
|
|
297
|
-
raise TypeError 'expected
|
|
370
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
298
371
|
|
|
299
372
|
@ftpusername = v
|
|
300
373
|
when 'FTPPassword'
|
|
301
|
-
raise TypeError 'expected
|
|
374
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
302
375
|
|
|
303
376
|
@ftppassword = v
|
|
304
377
|
when 'FTPBaseUseHomeDirectory'
|
|
305
378
|
@ftpbase_use_home_directory = v
|
|
306
379
|
when 'FTPCustomBaseDirectory'
|
|
307
|
-
raise TypeError 'expected
|
|
380
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
308
381
|
|
|
309
382
|
@ftpcustom_base_directory = v
|
|
310
383
|
when 'FTPSMode'
|
|
384
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
385
|
+
|
|
311
386
|
@ftpsmode = v
|
|
312
387
|
when 'FTPPort'
|
|
388
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
389
|
+
|
|
313
390
|
@ftpport = v
|
|
314
391
|
when 'FTPMaxConnections'
|
|
392
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
393
|
+
|
|
315
394
|
@ftpmax_connections = v
|
|
316
395
|
when 'FTPAcceptInvalidSSL'
|
|
317
396
|
@ftpaccept_invalid_ssl = v
|
|
318
397
|
when 'AZBAccountName'
|
|
319
|
-
raise TypeError 'expected
|
|
398
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
320
399
|
|
|
321
400
|
@azbaccount_name = v
|
|
322
401
|
when 'AZBAccountKey'
|
|
323
|
-
raise TypeError 'expected
|
|
402
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
324
403
|
|
|
325
404
|
@azbaccount_key = v
|
|
326
405
|
when 'AZBContainer'
|
|
327
|
-
raise TypeError 'expected
|
|
406
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
328
407
|
|
|
329
408
|
@azbcontainer = v
|
|
330
409
|
when 'AZBRealm'
|
|
331
|
-
raise TypeError 'expected
|
|
410
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
332
411
|
|
|
333
412
|
@azbrealm = v
|
|
334
413
|
when 'AZBPrefix'
|
|
335
|
-
raise TypeError 'expected
|
|
414
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
336
415
|
|
|
337
416
|
@azbprefix = v
|
|
338
417
|
when 'LocalcopyPath'
|
|
339
|
-
raise TypeError 'expected
|
|
418
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
340
419
|
|
|
341
420
|
@localcopy_path = v
|
|
342
421
|
when 'LocalcopyWinSMBUsername'
|
|
343
|
-
raise TypeError 'expected
|
|
422
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
344
423
|
|
|
345
424
|
@localcopy_win_smbusername = v
|
|
346
425
|
when 'LocalcopyWinSMBPassword'
|
|
347
|
-
raise TypeError 'expected
|
|
426
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
348
427
|
|
|
349
428
|
@localcopy_win_smbpassword = v
|
|
350
429
|
when 'LocalcopyWinSMBPasswordFormat'
|
|
430
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
431
|
+
|
|
351
432
|
@localcopy_win_smbpassword_format = v
|
|
352
433
|
when 'Swift'
|
|
353
434
|
@swift = Comet::SwiftDestinationLocation.new
|
|
@@ -366,16 +447,22 @@ module Comet
|
|
|
366
447
|
end
|
|
367
448
|
end
|
|
368
449
|
when 'EncryptionKeyEncryptionMethod'
|
|
450
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
451
|
+
|
|
369
452
|
@encryption_key_encryption_method = v
|
|
370
453
|
when 'EncryptedEncryptionKey'
|
|
371
|
-
raise TypeError 'expected
|
|
454
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
372
455
|
|
|
373
456
|
@encrypted_encryption_key = v
|
|
374
457
|
when 'RepoInitTimestamp'
|
|
458
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
459
|
+
|
|
375
460
|
@repo_init_timestamp = v
|
|
376
461
|
when 'StorageLimitEnabled'
|
|
377
462
|
@storage_limit_enabled = v
|
|
378
463
|
when 'StorageLimitBytes'
|
|
464
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
465
|
+
|
|
379
466
|
@storage_limit_bytes = v
|
|
380
467
|
when 'Statistics'
|
|
381
468
|
@statistics = Comet::DestinationStatistics.new
|
|
@@ -383,6 +470,8 @@ module Comet
|
|
|
383
470
|
when 'DefaultRetention'
|
|
384
471
|
@default_retention = Comet::RetentionPolicy.new
|
|
385
472
|
@default_retention.from_hash(v)
|
|
473
|
+
when 'RebrandStorage'
|
|
474
|
+
@rebrand_storage = v
|
|
386
475
|
else
|
|
387
476
|
@unknown_json_fields[k] = v
|
|
388
477
|
end
|
|
@@ -396,6 +485,7 @@ module Comet
|
|
|
396
485
|
ret['CreateTime'] = @create_time
|
|
397
486
|
ret['ModifyTime'] = @modify_time
|
|
398
487
|
ret['PreExec'] = @pre_exec
|
|
488
|
+
ret['ThawExec'] = @thaw_exec
|
|
399
489
|
ret['PostExec'] = @post_exec
|
|
400
490
|
ret['DestinationType'] = @destination_type
|
|
401
491
|
ret['CometServer'] = @comet_server
|
|
@@ -446,6 +536,7 @@ module Comet
|
|
|
446
536
|
ret['Statistics'] = @statistics
|
|
447
537
|
end
|
|
448
538
|
ret['DefaultRetention'] = @default_retention
|
|
539
|
+
ret['RebrandStorage'] = @rebrand_storage
|
|
449
540
|
@unknown_json_fields.each do |k, v|
|
|
450
541
|
ret[k] = v
|
|
451
542
|
end
|