comet_backup_ruby_sdk 1.0.0 → 1.5.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 +37 -0
- data/Gemfile.lock +2 -2
- data/LICENSE +1 -1
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/api_response_error.rb +1 -1
- data/lib/comet/comet_server.rb +602 -291
- data/lib/comet/definitions.rb +48 -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/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 +13 -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_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_statistics.rb +3 -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 +7 -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 +13 -1
- metadata +14 -2
@@ -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,14 +42,14 @@ 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
|
@@ -61,7 +61,7 @@ module Comet
|
|
61
61
|
else
|
62
62
|
@targets = Array.new(v.length)
|
63
63
|
v.each_with_index do |v1, i1|
|
64
|
-
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
64
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
65
65
|
|
66
66
|
@targets[i1] = v1
|
67
67
|
end
|
@@ -72,7 +72,7 @@ module Comet
|
|
72
72
|
else
|
73
73
|
@target_names = Array.new(v.length)
|
74
74
|
v.each_with_index do |v1, i1|
|
75
|
-
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
75
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
76
76
|
|
77
77
|
@target_names[i1] = v1
|
78
78
|
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
|
@@ -39,23 +39,23 @@ 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 'MeasureStarted'
|
54
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
54
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
55
55
|
|
56
56
|
@measure_started = v
|
57
57
|
when 'MeasureCompleted'
|
58
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
58
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
59
59
|
|
60
60
|
@measure_completed = v
|
61
61
|
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
|
@@ -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 'Bytes'
|
50
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
50
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
51
51
|
|
52
52
|
@bytes = v
|
53
53
|
when 'UsedBy'
|
@@ -56,7 +56,7 @@ module Comet
|
|
56
56
|
else
|
57
57
|
@used_by = Array.new(v.length)
|
58
58
|
v.each_with_index do |v1, i1|
|
59
|
-
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
59
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
60
60
|
|
61
61
|
@used_by[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
|
@@ -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 'Status'
|
54
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
54
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
55
55
|
|
56
56
|
@status = v
|
57
57
|
when 'Message'
|
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
|
@message = v
|
61
61
|
when 'PolicyHash'
|
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
|
@policy_hash = v
|
65
65
|
else
|
@@ -0,0 +1,75 @@
|
|
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
|
+
# CustomRemoteBucketSettings is a typed class wrapper around the underlying Comet Server API data structure.
|
15
|
+
class CustomRemoteBucketSettings
|
16
|
+
|
17
|
+
# @type [String] url
|
18
|
+
attr_accessor :url
|
19
|
+
|
20
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
21
|
+
attr_accessor :unknown_json_fields
|
22
|
+
|
23
|
+
def initialize
|
24
|
+
clear
|
25
|
+
end
|
26
|
+
|
27
|
+
def clear
|
28
|
+
@url = ''
|
29
|
+
@unknown_json_fields = {}
|
30
|
+
end
|
31
|
+
|
32
|
+
# @param [String] json_string The complete object in JSON format
|
33
|
+
def from_json(json_string)
|
34
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
35
|
+
|
36
|
+
from_hash(JSON.parse(json_string))
|
37
|
+
end
|
38
|
+
|
39
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
40
|
+
def from_hash(obj)
|
41
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
42
|
+
|
43
|
+
obj.each do |k, v|
|
44
|
+
case k
|
45
|
+
when 'URL'
|
46
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
47
|
+
|
48
|
+
@url = v
|
49
|
+
else
|
50
|
+
@unknown_json_fields[k] = v
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# @return [Hash] The complete object as a Ruby hash
|
56
|
+
def to_hash
|
57
|
+
ret = {}
|
58
|
+
ret['URL'] = @url
|
59
|
+
@unknown_json_fields.each do |k, v|
|
60
|
+
ret[k] = v
|
61
|
+
end
|
62
|
+
ret
|
63
|
+
end
|
64
|
+
|
65
|
+
# @return [Hash] The complete object as a Ruby hash
|
66
|
+
def to_h
|
67
|
+
to_hash
|
68
|
+
end
|
69
|
+
|
70
|
+
# @return [String] The complete object as a JSON string
|
71
|
+
def to_json(options = {})
|
72
|
+
to_hash.to_json(options)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
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
|
@@ -34,14 +34,14 @@ module Comet
|
|
34
34
|
|
35
35
|
# @param [String] json_string The complete object in JSON format
|
36
36
|
def from_json(json_string)
|
37
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
37
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
38
38
|
|
39
39
|
from_hash(JSON.parse(json_string))
|
40
40
|
end
|
41
41
|
|
42
42
|
# @param [Hash] obj The complete object as a Ruby hash
|
43
43
|
def from_hash(obj)
|
44
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
44
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
45
45
|
|
46
46
|
obj.each do |k, v|
|
47
47
|
case k
|
@@ -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
|
@@ -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
|
|
@@ -149,6 +152,9 @@ module Comet
|
|
149
152
|
# @type [Array<Comet::DestinationLocation>] span_targets
|
150
153
|
attr_accessor :span_targets
|
151
154
|
|
155
|
+
# @type [Boolean] span_use_static_slots
|
156
|
+
attr_accessor :span_use_static_slots
|
157
|
+
|
152
158
|
# @type [Number] encryption_key_encryption_method
|
153
159
|
attr_accessor :encryption_key_encryption_method
|
154
160
|
|
@@ -185,6 +191,7 @@ module Comet
|
|
185
191
|
@create_time = 0
|
186
192
|
@modify_time = 0
|
187
193
|
@pre_exec = []
|
194
|
+
@thaw_exec = []
|
188
195
|
@post_exec = []
|
189
196
|
@destination_type = 0
|
190
197
|
@comet_server = ''
|
@@ -232,27 +239,27 @@ module Comet
|
|
232
239
|
|
233
240
|
# @param [String] json_string The complete object in JSON format
|
234
241
|
def from_json(json_string)
|
235
|
-
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
242
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
236
243
|
|
237
244
|
from_hash(JSON.parse(json_string))
|
238
245
|
end
|
239
246
|
|
240
247
|
# @param [Hash] obj The complete object as a Ruby hash
|
241
248
|
def from_hash(obj)
|
242
|
-
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
249
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
243
250
|
|
244
251
|
obj.each do |k, v|
|
245
252
|
case k
|
246
253
|
when 'Description'
|
247
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
254
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
248
255
|
|
249
256
|
@description = v
|
250
257
|
when 'CreateTime'
|
251
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
258
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
252
259
|
|
253
260
|
@create_time = v
|
254
261
|
when 'ModifyTime'
|
255
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
262
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
256
263
|
|
257
264
|
@modify_time = v
|
258
265
|
when 'PreExec'
|
@@ -261,158 +268,169 @@ module Comet
|
|
261
268
|
else
|
262
269
|
@pre_exec = Array.new(v.length)
|
263
270
|
v.each_with_index do |v1, i1|
|
264
|
-
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
271
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
265
272
|
|
266
273
|
@pre_exec[i1] = v1
|
267
274
|
end
|
268
275
|
end
|
276
|
+
when 'ThawExec'
|
277
|
+
if v.nil?
|
278
|
+
@thaw_exec = []
|
279
|
+
else
|
280
|
+
@thaw_exec = Array.new(v.length)
|
281
|
+
v.each_with_index do |v1, i1|
|
282
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
283
|
+
|
284
|
+
@thaw_exec[i1] = v1
|
285
|
+
end
|
286
|
+
end
|
269
287
|
when 'PostExec'
|
270
288
|
if v.nil?
|
271
289
|
@post_exec = []
|
272
290
|
else
|
273
291
|
@post_exec = Array.new(v.length)
|
274
292
|
v.each_with_index do |v1, i1|
|
275
|
-
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
293
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
276
294
|
|
277
295
|
@post_exec[i1] = v1
|
278
296
|
end
|
279
297
|
end
|
280
298
|
when 'DestinationType'
|
281
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
299
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
282
300
|
|
283
301
|
@destination_type = v
|
284
302
|
when 'CometServer'
|
285
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
303
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
286
304
|
|
287
305
|
@comet_server = v
|
288
306
|
when 'CometBucket'
|
289
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
307
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
290
308
|
|
291
309
|
@comet_bucket = v
|
292
310
|
when 'CometBucketKey'
|
293
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
311
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
294
312
|
|
295
313
|
@comet_bucket_key = v
|
296
314
|
when 'S3Server'
|
297
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
315
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
298
316
|
|
299
317
|
@s3server = v
|
300
318
|
when 'S3UsesTLS'
|
301
319
|
@s3uses_tls = v
|
302
320
|
when 'S3AccessKey'
|
303
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
321
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
304
322
|
|
305
323
|
@s3access_key = v
|
306
324
|
when 'S3SecretKey'
|
307
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
325
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
308
326
|
|
309
327
|
@s3secret_key = v
|
310
328
|
when 'S3BucketName'
|
311
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
329
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
312
330
|
|
313
331
|
@s3bucket_name = v
|
314
332
|
when 'S3Subdir'
|
315
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
333
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
316
334
|
|
317
335
|
@s3subdir = v
|
318
336
|
when 'S3UsesV2Signing'
|
319
337
|
@s3uses_v2signing = v
|
320
338
|
when 'SFTPServer'
|
321
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
339
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
322
340
|
|
323
341
|
@sftpserver = v
|
324
342
|
when 'SFTPUsername'
|
325
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
343
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
326
344
|
|
327
345
|
@sftpusername = v
|
328
346
|
when 'SFTPRemotePath'
|
329
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
347
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
330
348
|
|
331
349
|
@sftpremote_path = v
|
332
350
|
when 'SFTPAuthMode'
|
333
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
351
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
334
352
|
|
335
353
|
@sftpauth_mode = v
|
336
354
|
when 'SFTPPassword'
|
337
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
355
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
338
356
|
|
339
357
|
@sftppassword = v
|
340
358
|
when 'SFTPPrivateKey'
|
341
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
359
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
342
360
|
|
343
361
|
@sftpprivate_key = v
|
344
362
|
when 'SFTPCustomAuth_UseKnownHostsFile'
|
345
363
|
@sftpcustom_auth__use_known_hosts_file = v
|
346
364
|
when 'SFTPCustomAuth_KnownHostsFile'
|
347
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
365
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
348
366
|
|
349
367
|
@sftpcustom_auth__known_hosts_file = v
|
350
368
|
when 'FTPServer'
|
351
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
369
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
352
370
|
|
353
371
|
@ftpserver = v
|
354
372
|
when 'FTPUsername'
|
355
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
373
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
356
374
|
|
357
375
|
@ftpusername = v
|
358
376
|
when 'FTPPassword'
|
359
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
377
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
360
378
|
|
361
379
|
@ftppassword = v
|
362
380
|
when 'FTPBaseUseHomeDirectory'
|
363
381
|
@ftpbase_use_home_directory = v
|
364
382
|
when 'FTPCustomBaseDirectory'
|
365
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
383
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
366
384
|
|
367
385
|
@ftpcustom_base_directory = v
|
368
386
|
when 'FTPSMode'
|
369
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
387
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
370
388
|
|
371
389
|
@ftpsmode = v
|
372
390
|
when 'FTPPort'
|
373
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
391
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
374
392
|
|
375
393
|
@ftpport = v
|
376
394
|
when 'FTPMaxConnections'
|
377
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
395
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
378
396
|
|
379
397
|
@ftpmax_connections = v
|
380
398
|
when 'FTPAcceptInvalidSSL'
|
381
399
|
@ftpaccept_invalid_ssl = v
|
382
400
|
when 'AZBAccountName'
|
383
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
401
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
384
402
|
|
385
403
|
@azbaccount_name = v
|
386
404
|
when 'AZBAccountKey'
|
387
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
405
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
388
406
|
|
389
407
|
@azbaccount_key = v
|
390
408
|
when 'AZBContainer'
|
391
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
409
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
392
410
|
|
393
411
|
@azbcontainer = v
|
394
412
|
when 'AZBRealm'
|
395
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
413
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
396
414
|
|
397
415
|
@azbrealm = v
|
398
416
|
when 'AZBPrefix'
|
399
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
417
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
400
418
|
|
401
419
|
@azbprefix = v
|
402
420
|
when 'LocalcopyPath'
|
403
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
421
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
404
422
|
|
405
423
|
@localcopy_path = v
|
406
424
|
when 'LocalcopyWinSMBUsername'
|
407
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
425
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
408
426
|
|
409
427
|
@localcopy_win_smbusername = v
|
410
428
|
when 'LocalcopyWinSMBPassword'
|
411
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
429
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
412
430
|
|
413
431
|
@localcopy_win_smbpassword = v
|
414
432
|
when 'LocalcopyWinSMBPasswordFormat'
|
415
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
433
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
416
434
|
|
417
435
|
@localcopy_win_smbpassword_format = v
|
418
436
|
when 'Swift'
|
@@ -431,22 +449,24 @@ module Comet
|
|
431
449
|
@span_targets[i1].from_hash(v1)
|
432
450
|
end
|
433
451
|
end
|
452
|
+
when 'SpanUseStaticSlots'
|
453
|
+
@span_use_static_slots = v
|
434
454
|
when 'EncryptionKeyEncryptionMethod'
|
435
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
455
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
436
456
|
|
437
457
|
@encryption_key_encryption_method = v
|
438
458
|
when 'EncryptedEncryptionKey'
|
439
|
-
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
459
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
440
460
|
|
441
461
|
@encrypted_encryption_key = v
|
442
462
|
when 'RepoInitTimestamp'
|
443
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
463
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
444
464
|
|
445
465
|
@repo_init_timestamp = v
|
446
466
|
when 'StorageLimitEnabled'
|
447
467
|
@storage_limit_enabled = v
|
448
468
|
when 'StorageLimitBytes'
|
449
|
-
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
469
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
450
470
|
|
451
471
|
@storage_limit_bytes = v
|
452
472
|
when 'Statistics'
|
@@ -470,6 +490,7 @@ module Comet
|
|
470
490
|
ret['CreateTime'] = @create_time
|
471
491
|
ret['ModifyTime'] = @modify_time
|
472
492
|
ret['PreExec'] = @pre_exec
|
493
|
+
ret['ThawExec'] = @thaw_exec
|
473
494
|
ret['PostExec'] = @post_exec
|
474
495
|
ret['DestinationType'] = @destination_type
|
475
496
|
ret['CometServer'] = @comet_server
|
@@ -511,6 +532,7 @@ module Comet
|
|
511
532
|
ret['Swift'] = @swift
|
512
533
|
ret['B2'] = @b2
|
513
534
|
ret['SpanTargets'] = @span_targets
|
535
|
+
ret['SpanUseStaticSlots'] = @span_use_static_slots
|
514
536
|
ret['EncryptionKeyEncryptionMethod'] = @encryption_key_encryption_method
|
515
537
|
ret['EncryptedEncryptionKey'] = @encrypted_encryption_key
|
516
538
|
ret['RepoInitTimestamp'] = @repo_init_timestamp
|