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
|
@@ -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
|
|
|
@@ -63,32 +66,49 @@ module Comet
|
|
|
63
66
|
attr_accessor :unknown_json_fields
|
|
64
67
|
|
|
65
68
|
def initialize
|
|
69
|
+
clear
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def clear
|
|
73
|
+
@description = ''
|
|
74
|
+
@create_time = 0
|
|
75
|
+
@modify_time = 0
|
|
66
76
|
@pre_exec = []
|
|
77
|
+
@thaw_exec = []
|
|
67
78
|
@post_exec = []
|
|
79
|
+
@source = ''
|
|
80
|
+
@destination = ''
|
|
81
|
+
@stop_after = 0
|
|
82
|
+
@limit_vault_speed_bps = 0
|
|
68
83
|
@schedules = []
|
|
84
|
+
@event_triggers = Comet::BackupRuleEventTriggers.new
|
|
69
85
|
@unknown_json_fields = {}
|
|
70
86
|
end
|
|
71
87
|
|
|
72
88
|
# @param [String] json_string The complete object in JSON format
|
|
73
89
|
def from_json(json_string)
|
|
74
|
-
raise TypeError 'expected
|
|
90
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
75
91
|
|
|
76
92
|
from_hash(JSON.parse(json_string))
|
|
77
93
|
end
|
|
78
94
|
|
|
79
95
|
# @param [Hash] obj The complete object as a Ruby hash
|
|
80
96
|
def from_hash(obj)
|
|
81
|
-
raise TypeError 'expected
|
|
97
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
82
98
|
|
|
83
99
|
obj.each do |k, v|
|
|
84
100
|
case k
|
|
85
101
|
when 'Description'
|
|
86
|
-
raise TypeError 'expected
|
|
102
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
87
103
|
|
|
88
104
|
@description = v
|
|
89
105
|
when 'CreateTime'
|
|
106
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
107
|
+
|
|
90
108
|
@create_time = v
|
|
91
109
|
when 'ModifyTime'
|
|
110
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
111
|
+
|
|
92
112
|
@modify_time = v
|
|
93
113
|
when 'PreExec'
|
|
94
114
|
if v.nil?
|
|
@@ -96,35 +116,50 @@ module Comet
|
|
|
96
116
|
else
|
|
97
117
|
@pre_exec = Array.new(v.length)
|
|
98
118
|
v.each_with_index do |v1, i1|
|
|
99
|
-
raise TypeError 'expected
|
|
119
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
|
100
120
|
|
|
101
121
|
@pre_exec[i1] = v1
|
|
102
122
|
end
|
|
103
123
|
end
|
|
124
|
+
when 'ThawExec'
|
|
125
|
+
if v.nil?
|
|
126
|
+
@thaw_exec = []
|
|
127
|
+
else
|
|
128
|
+
@thaw_exec = Array.new(v.length)
|
|
129
|
+
v.each_with_index do |v1, i1|
|
|
130
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
|
131
|
+
|
|
132
|
+
@thaw_exec[i1] = v1
|
|
133
|
+
end
|
|
134
|
+
end
|
|
104
135
|
when 'PostExec'
|
|
105
136
|
if v.nil?
|
|
106
137
|
@post_exec = []
|
|
107
138
|
else
|
|
108
139
|
@post_exec = Array.new(v.length)
|
|
109
140
|
v.each_with_index do |v1, i1|
|
|
110
|
-
raise TypeError 'expected
|
|
141
|
+
raise TypeError "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
|
111
142
|
|
|
112
143
|
@post_exec[i1] = v1
|
|
113
144
|
end
|
|
114
145
|
end
|
|
115
146
|
when 'Source'
|
|
116
|
-
raise TypeError 'expected
|
|
147
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
117
148
|
|
|
118
149
|
@source = v
|
|
119
150
|
when 'Destination'
|
|
120
|
-
raise TypeError 'expected
|
|
151
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
121
152
|
|
|
122
153
|
@destination = v
|
|
123
154
|
when 'SkipAlreadyRunning'
|
|
124
155
|
@skip_already_running = v
|
|
125
156
|
when 'StopAfter'
|
|
157
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
158
|
+
|
|
126
159
|
@stop_after = v
|
|
127
160
|
when 'LimitVaultSpeedBps'
|
|
161
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
162
|
+
|
|
128
163
|
@limit_vault_speed_bps = v
|
|
129
164
|
when 'ReduceDiskConcurrency'
|
|
130
165
|
@reduce_disk_concurrency = v
|
|
@@ -158,6 +193,7 @@ module Comet
|
|
|
158
193
|
ret['CreateTime'] = @create_time
|
|
159
194
|
ret['ModifyTime'] = @modify_time
|
|
160
195
|
ret['PreExec'] = @pre_exec
|
|
196
|
+
ret['ThawExec'] = @thaw_exec
|
|
161
197
|
ret['PostExec'] = @post_exec
|
|
162
198
|
ret['Source'] = @source
|
|
163
199
|
ret['Destination'] = @destination
|
|
@@ -24,19 +24,23 @@ 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
|
@unknown_json_fields = {}
|
|
28
32
|
end
|
|
29
33
|
|
|
30
34
|
# @param [String] json_string The complete object in JSON format
|
|
31
35
|
def from_json(json_string)
|
|
32
|
-
raise TypeError 'expected
|
|
36
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
33
37
|
|
|
34
38
|
from_hash(JSON.parse(json_string))
|
|
35
39
|
end
|
|
36
40
|
|
|
37
41
|
# @param [Hash] obj The complete object as a Ruby hash
|
|
38
42
|
def from_hash(obj)
|
|
39
|
-
raise TypeError 'expected
|
|
43
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
40
44
|
|
|
41
45
|
obj.each do |k, v|
|
|
42
46
|
case k
|
|
@@ -105,122 +105,156 @@ module Comet
|
|
|
105
105
|
attr_accessor :unknown_json_fields
|
|
106
106
|
|
|
107
107
|
def initialize
|
|
108
|
+
clear
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def clear
|
|
112
|
+
@brand_name = ''
|
|
113
|
+
@logo_image = ''
|
|
114
|
+
@top_color = ''
|
|
115
|
+
@favicon = ''
|
|
116
|
+
@product_name = ''
|
|
117
|
+
@company_name = ''
|
|
118
|
+
@help_url = ''
|
|
119
|
+
@default_login_server_url = ''
|
|
120
|
+
@tile_background_color = ''
|
|
121
|
+
@account_register_url = ''
|
|
122
|
+
@path_ico_file = ''
|
|
123
|
+
@path_icns_file = ''
|
|
124
|
+
@path_eula_rtf = ''
|
|
125
|
+
@path_tile_png = ''
|
|
126
|
+
@path_header_image = ''
|
|
127
|
+
@package_identifier = ''
|
|
128
|
+
@windows_code_sign_pkcs12file_path = ''
|
|
129
|
+
@windows_code_sign_pkcs12password_format = 0
|
|
130
|
+
@windows_code_sign_pkcs12password = ''
|
|
131
|
+
@windows_code_sign_pkcs11engine = ''
|
|
132
|
+
@windows_code_sign_pkcs11module = ''
|
|
133
|
+
@windows_code_sign_pkcs11certfile = ''
|
|
134
|
+
@windows_code_sign_pkcs11key_id = ''
|
|
135
|
+
@windows_code_sign_pkcs11password_format = 0
|
|
136
|
+
@windows_code_sign_pkcs11password = ''
|
|
137
|
+
@mac_oscode_sign = Comet::MacOSCodeSignProperties.new
|
|
108
138
|
@unknown_json_fields = {}
|
|
109
139
|
end
|
|
110
140
|
|
|
111
141
|
# @param [String] json_string The complete object in JSON format
|
|
112
142
|
def from_json(json_string)
|
|
113
|
-
raise TypeError 'expected
|
|
143
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
114
144
|
|
|
115
145
|
from_hash(JSON.parse(json_string))
|
|
116
146
|
end
|
|
117
147
|
|
|
118
148
|
# @param [Hash] obj The complete object as a Ruby hash
|
|
119
149
|
def from_hash(obj)
|
|
120
|
-
raise TypeError 'expected
|
|
150
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
121
151
|
|
|
122
152
|
obj.each do |k, v|
|
|
123
153
|
case k
|
|
124
154
|
when 'BrandName'
|
|
125
|
-
raise TypeError 'expected
|
|
155
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
126
156
|
|
|
127
157
|
@brand_name = v
|
|
128
158
|
when 'LogoImage'
|
|
129
|
-
raise TypeError 'expected
|
|
159
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
130
160
|
|
|
131
161
|
@logo_image = v
|
|
132
162
|
when 'TopColor'
|
|
133
|
-
raise TypeError 'expected
|
|
163
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
134
164
|
|
|
135
165
|
@top_color = v
|
|
136
166
|
when 'Favicon'
|
|
137
|
-
raise TypeError 'expected
|
|
167
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
138
168
|
|
|
139
169
|
@favicon = v
|
|
140
170
|
when 'HideNewsArea'
|
|
141
171
|
@hide_news_area = v
|
|
142
172
|
when 'ProductName'
|
|
143
|
-
raise TypeError 'expected
|
|
173
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
144
174
|
|
|
145
175
|
@product_name = v
|
|
146
176
|
when 'CompanyName'
|
|
147
|
-
raise TypeError 'expected
|
|
177
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
148
178
|
|
|
149
179
|
@company_name = v
|
|
150
180
|
when 'HelpURL'
|
|
151
|
-
raise TypeError 'expected
|
|
181
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
152
182
|
|
|
153
183
|
@help_url = v
|
|
154
184
|
when 'HelpIsPopup'
|
|
155
185
|
@help_is_popup = v
|
|
156
186
|
when 'DefaultLoginServerURL'
|
|
157
|
-
raise TypeError 'expected
|
|
187
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
158
188
|
|
|
159
189
|
@default_login_server_url = v
|
|
160
190
|
when 'TileBackgroundColor'
|
|
161
|
-
raise TypeError 'expected
|
|
191
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
162
192
|
|
|
163
193
|
@tile_background_color = v
|
|
164
194
|
when 'AccountRegisterURL'
|
|
165
|
-
raise TypeError 'expected
|
|
195
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
166
196
|
|
|
167
197
|
@account_register_url = v
|
|
168
198
|
when 'HideBackgroundLogo'
|
|
169
199
|
@hide_background_logo = v
|
|
170
200
|
when 'PathIcoFile'
|
|
171
|
-
raise TypeError 'expected
|
|
201
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
172
202
|
|
|
173
203
|
@path_ico_file = v
|
|
174
204
|
when 'PathIcnsFile'
|
|
175
|
-
raise TypeError 'expected
|
|
205
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
176
206
|
|
|
177
207
|
@path_icns_file = v
|
|
178
208
|
when 'PathEulaRtf'
|
|
179
|
-
raise TypeError 'expected
|
|
209
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
180
210
|
|
|
181
211
|
@path_eula_rtf = v
|
|
182
212
|
when 'PathTilePng'
|
|
183
|
-
raise TypeError 'expected
|
|
213
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
184
214
|
|
|
185
215
|
@path_tile_png = v
|
|
186
216
|
when 'PathHeaderImage'
|
|
187
|
-
raise TypeError 'expected
|
|
217
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
188
218
|
|
|
189
219
|
@path_header_image = v
|
|
190
220
|
when 'PackageIdentifier'
|
|
191
|
-
raise TypeError 'expected
|
|
221
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
192
222
|
|
|
193
223
|
@package_identifier = v
|
|
194
224
|
when 'WindowsCodeSignPKCS12FilePath'
|
|
195
|
-
raise TypeError 'expected
|
|
225
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
196
226
|
|
|
197
227
|
@windows_code_sign_pkcs12file_path = v
|
|
198
228
|
when 'WindowsCodeSignPKCS12PasswordFormat'
|
|
229
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
230
|
+
|
|
199
231
|
@windows_code_sign_pkcs12password_format = v
|
|
200
232
|
when 'WindowsCodeSignPKCS12Password'
|
|
201
|
-
raise TypeError 'expected
|
|
233
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
202
234
|
|
|
203
235
|
@windows_code_sign_pkcs12password = v
|
|
204
236
|
when 'WindowsCodeSignPKCS11Engine'
|
|
205
|
-
raise TypeError 'expected
|
|
237
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
206
238
|
|
|
207
239
|
@windows_code_sign_pkcs11engine = v
|
|
208
240
|
when 'WindowsCodeSignPKCS11Module'
|
|
209
|
-
raise TypeError 'expected
|
|
241
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
210
242
|
|
|
211
243
|
@windows_code_sign_pkcs11module = v
|
|
212
244
|
when 'WindowsCodeSignPKCS11Certfile'
|
|
213
|
-
raise TypeError 'expected
|
|
245
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
214
246
|
|
|
215
247
|
@windows_code_sign_pkcs11certfile = v
|
|
216
248
|
when 'WindowsCodeSignPKCS11KeyID'
|
|
217
|
-
raise TypeError 'expected
|
|
249
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
218
250
|
|
|
219
251
|
@windows_code_sign_pkcs11key_id = v
|
|
220
252
|
when 'WindowsCodeSignPKCS11PasswordFormat'
|
|
253
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
254
|
+
|
|
221
255
|
@windows_code_sign_pkcs11password_format = v
|
|
222
256
|
when 'WindowsCodeSignPKCS11Password'
|
|
223
|
-
raise TypeError 'expected
|
|
257
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
224
258
|
|
|
225
259
|
@windows_code_sign_pkcs11password = v
|
|
226
260
|
when 'MacOSCodeSign'
|
|
@@ -90,104 +90,134 @@ module Comet
|
|
|
90
90
|
attr_accessor :unknown_json_fields
|
|
91
91
|
|
|
92
92
|
def initialize
|
|
93
|
+
clear
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def clear
|
|
97
|
+
@product_name = ''
|
|
98
|
+
@company_name = ''
|
|
99
|
+
@help_url = ''
|
|
100
|
+
@default_login_server_url = ''
|
|
101
|
+
@tile_background_color = ''
|
|
102
|
+
@account_register_url = ''
|
|
103
|
+
@path_ico_file = ''
|
|
104
|
+
@path_icns_file = ''
|
|
105
|
+
@path_eula_rtf = ''
|
|
106
|
+
@path_tile_png = ''
|
|
107
|
+
@path_header_image = ''
|
|
108
|
+
@package_identifier = ''
|
|
109
|
+
@windows_code_sign_pkcs12file_path = ''
|
|
110
|
+
@windows_code_sign_pkcs12password_format = 0
|
|
111
|
+
@windows_code_sign_pkcs12password = ''
|
|
112
|
+
@windows_code_sign_pkcs11engine = ''
|
|
113
|
+
@windows_code_sign_pkcs11module = ''
|
|
114
|
+
@windows_code_sign_pkcs11certfile = ''
|
|
115
|
+
@windows_code_sign_pkcs11key_id = ''
|
|
116
|
+
@windows_code_sign_pkcs11password_format = 0
|
|
117
|
+
@windows_code_sign_pkcs11password = ''
|
|
118
|
+
@mac_oscode_sign = Comet::MacOSCodeSignProperties.new
|
|
93
119
|
@unknown_json_fields = {}
|
|
94
120
|
end
|
|
95
121
|
|
|
96
122
|
# @param [String] json_string The complete object in JSON format
|
|
97
123
|
def from_json(json_string)
|
|
98
|
-
raise TypeError 'expected
|
|
124
|
+
raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
99
125
|
|
|
100
126
|
from_hash(JSON.parse(json_string))
|
|
101
127
|
end
|
|
102
128
|
|
|
103
129
|
# @param [Hash] obj The complete object as a Ruby hash
|
|
104
130
|
def from_hash(obj)
|
|
105
|
-
raise TypeError 'expected
|
|
131
|
+
raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
106
132
|
|
|
107
133
|
obj.each do |k, v|
|
|
108
134
|
case k
|
|
109
135
|
when 'ProductName'
|
|
110
|
-
raise TypeError 'expected
|
|
136
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
111
137
|
|
|
112
138
|
@product_name = v
|
|
113
139
|
when 'CompanyName'
|
|
114
|
-
raise TypeError 'expected
|
|
140
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
115
141
|
|
|
116
142
|
@company_name = v
|
|
117
143
|
when 'HelpURL'
|
|
118
|
-
raise TypeError 'expected
|
|
144
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
119
145
|
|
|
120
146
|
@help_url = v
|
|
121
147
|
when 'HelpIsPopup'
|
|
122
148
|
@help_is_popup = v
|
|
123
149
|
when 'DefaultLoginServerURL'
|
|
124
|
-
raise TypeError 'expected
|
|
150
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
125
151
|
|
|
126
152
|
@default_login_server_url = v
|
|
127
153
|
when 'TileBackgroundColor'
|
|
128
|
-
raise TypeError 'expected
|
|
154
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
129
155
|
|
|
130
156
|
@tile_background_color = v
|
|
131
157
|
when 'AccountRegisterURL'
|
|
132
|
-
raise TypeError 'expected
|
|
158
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
133
159
|
|
|
134
160
|
@account_register_url = v
|
|
135
161
|
when 'HideBackgroundLogo'
|
|
136
162
|
@hide_background_logo = v
|
|
137
163
|
when 'PathIcoFile'
|
|
138
|
-
raise TypeError 'expected
|
|
164
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
139
165
|
|
|
140
166
|
@path_ico_file = v
|
|
141
167
|
when 'PathIcnsFile'
|
|
142
|
-
raise TypeError 'expected
|
|
168
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
143
169
|
|
|
144
170
|
@path_icns_file = v
|
|
145
171
|
when 'PathEulaRtf'
|
|
146
|
-
raise TypeError 'expected
|
|
172
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
147
173
|
|
|
148
174
|
@path_eula_rtf = v
|
|
149
175
|
when 'PathTilePng'
|
|
150
|
-
raise TypeError 'expected
|
|
176
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
151
177
|
|
|
152
178
|
@path_tile_png = v
|
|
153
179
|
when 'PathHeaderImage'
|
|
154
|
-
raise TypeError 'expected
|
|
180
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
155
181
|
|
|
156
182
|
@path_header_image = v
|
|
157
183
|
when 'PackageIdentifier'
|
|
158
|
-
raise TypeError 'expected
|
|
184
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
159
185
|
|
|
160
186
|
@package_identifier = v
|
|
161
187
|
when 'WindowsCodeSignPKCS12FilePath'
|
|
162
|
-
raise TypeError 'expected
|
|
188
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
163
189
|
|
|
164
190
|
@windows_code_sign_pkcs12file_path = v
|
|
165
191
|
when 'WindowsCodeSignPKCS12PasswordFormat'
|
|
192
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
193
|
+
|
|
166
194
|
@windows_code_sign_pkcs12password_format = v
|
|
167
195
|
when 'WindowsCodeSignPKCS12Password'
|
|
168
|
-
raise TypeError 'expected
|
|
196
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
169
197
|
|
|
170
198
|
@windows_code_sign_pkcs12password = v
|
|
171
199
|
when 'WindowsCodeSignPKCS11Engine'
|
|
172
|
-
raise TypeError 'expected
|
|
200
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
173
201
|
|
|
174
202
|
@windows_code_sign_pkcs11engine = v
|
|
175
203
|
when 'WindowsCodeSignPKCS11Module'
|
|
176
|
-
raise TypeError 'expected
|
|
204
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
177
205
|
|
|
178
206
|
@windows_code_sign_pkcs11module = v
|
|
179
207
|
when 'WindowsCodeSignPKCS11Certfile'
|
|
180
|
-
raise TypeError 'expected
|
|
208
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
181
209
|
|
|
182
210
|
@windows_code_sign_pkcs11certfile = v
|
|
183
211
|
when 'WindowsCodeSignPKCS11KeyID'
|
|
184
|
-
raise TypeError 'expected
|
|
212
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
185
213
|
|
|
186
214
|
@windows_code_sign_pkcs11key_id = v
|
|
187
215
|
when 'WindowsCodeSignPKCS11PasswordFormat'
|
|
216
|
+
raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
217
|
+
|
|
188
218
|
@windows_code_sign_pkcs11password_format = v
|
|
189
219
|
when 'WindowsCodeSignPKCS11Password'
|
|
190
|
-
raise TypeError 'expected
|
|
220
|
+
raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
191
221
|
|
|
192
222
|
@windows_code_sign_pkcs11password = v
|
|
193
223
|
when 'MacOSCodeSign'
|