comet_backup_ruby_sdk 1.1.0 → 1.6.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.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/Gemfile.lock +2 -2
  4. data/LICENSE +1 -1
  5. data/RELEASING.md +5 -3
  6. data/comet_backup_ruby_sdk.gemspec +1 -1
  7. data/lib/comet/api_response_error.rb +1 -1
  8. data/lib/comet/comet_server.rb +445 -169
  9. data/lib/comet/definitions.rb +42 -4
  10. data/lib/comet/models/add_bucket_response_message.rb +7 -7
  11. data/lib/comet/models/admin_account_properties_response.rb +4 -4
  12. data/lib/comet/models/admin_email_options.rb +5 -5
  13. data/lib/comet/models/admin_resource_response.rb +6 -6
  14. data/lib/comet/models/admin_security_options.rb +8 -8
  15. data/lib/comet/models/admin_u2fregistration.rb +5 -5
  16. data/lib/comet/models/admin_user_permissions.rb +3 -3
  17. data/lib/comet/models/available_download.rb +5 -5
  18. data/lib/comet/models/azure_destination_location.rb +8 -8
  19. data/lib/comet/models/b2destination_location.rb +8 -8
  20. data/lib/comet/models/b2storage_extra_info.rb +3 -3
  21. data/lib/comet/models/b2transaction_totals.rb +6 -6
  22. data/lib/comet/models/b2virtual_storage_role_settings.rb +6 -6
  23. data/lib/comet/models/backup_job_advanced_options.rb +5 -5
  24. data/lib/comet/models/backup_job_detail.rb +54 -21
  25. data/lib/comet/models/backup_job_progress.rb +8 -8
  26. data/lib/comet/models/backup_rule_config.rb +28 -12
  27. data/lib/comet/models/backup_rule_event_triggers.rb +3 -3
  28. data/lib/comet/models/branding_options.rb +37 -28
  29. data/lib/comet/models/branding_properties.rb +33 -24
  30. data/lib/comet/models/browse_disk_drives_response.rb +5 -5
  31. data/lib/comet/models/browse_edbresponse.rb +5 -5
  32. data/lib/comet/models/browse_hvresponse.rb +5 -5
  33. data/lib/comet/models/browse_office_365objects_response.rb +99 -0
  34. data/lib/comet/models/browse_sqlserver_response.rb +100 -0
  35. data/lib/comet/models/browse_vssresponse.rb +5 -5
  36. data/lib/comet/models/bucket_properties.rb +7 -7
  37. data/lib/comet/models/bucket_usage_info.rb +4 -4
  38. data/lib/comet/models/comet_apiresponse_message.rb +5 -5
  39. data/lib/comet/models/comet_destination_location.rb +6 -6
  40. data/lib/comet/models/constellation_check_report.rb +5 -5
  41. data/lib/comet/models/constellation_stats.rb +7 -7
  42. data/lib/comet/models/constellation_status_apiresponse.rb +5 -5
  43. data/lib/comet/models/content_measurement.rb +5 -5
  44. data/lib/comet/models/content_measurement_component.rb +5 -5
  45. data/lib/comet/models/create_group_policy_response.rb +6 -6
  46. data/lib/comet/models/custom_remote_bucket_settings.rb +75 -0
  47. data/lib/comet/models/default_email_report_policy.rb +3 -3
  48. data/lib/comet/models/default_source_with_osrestriction.rb +83 -0
  49. data/lib/comet/models/destination_config.rb +66 -44
  50. data/lib/comet/models/destination_location.rb +41 -35
  51. data/lib/comet/models/destination_statistics.rb +6 -6
  52. data/lib/comet/models/device_config.rb +4 -4
  53. data/lib/comet/models/disk_drive.rb +14 -14
  54. data/lib/comet/models/dispatcher_admin_sources_response.rb +6 -6
  55. data/lib/comet/models/dispatcher_stored_objects_response.rb +5 -5
  56. data/lib/comet/models/dispatcher_vault_snapshots_response.rb +5 -5
  57. data/lib/comet/models/edbfile_info.rb +6 -6
  58. data/lib/comet/models/email_options.rb +10 -10
  59. data/lib/comet/models/email_report_config.rb +4 -4
  60. data/lib/comet/models/email_report_generated_preview.rb +8 -8
  61. data/lib/comet/models/external_ldapauthentication_source_settings.rb +40 -7
  62. data/lib/comet/models/extra_file_exclusion.rb +5 -5
  63. data/lib/comet/models/ftpdestination_location.rb +10 -10
  64. data/lib/comet/models/get_group_policy_response.rb +6 -6
  65. data/lib/comet/models/get_profile_and_hash_response_message.rb +6 -6
  66. data/lib/comet/models/get_profile_hash_response_message.rb +6 -6
  67. data/lib/comet/models/group_policy.rb +5 -5
  68. data/lib/comet/models/hyper_vmachine_info.rb +5 -5
  69. data/lib/comet/models/install_creds.rb +6 -6
  70. data/lib/comet/models/install_token.rb +8 -8
  71. data/lib/comet/models/install_token_response.rb +5 -5
  72. data/lib/comet/models/job_entry.rb +6 -6
  73. data/lib/comet/models/live_user_connection.rb +9 -9
  74. data/lib/comet/models/local_destination_location.rb +7 -7
  75. data/lib/comet/models/mac_oscode_sign_properties.rb +9 -9
  76. data/lib/comet/models/mongo_dbconnection.rb +16 -16
  77. data/lib/comet/models/mssqlconnection.rb +120 -0
  78. data/lib/comet/models/my_sqlconnection.rb +102 -0
  79. data/lib/comet/models/new_bucket_detail.rb +5 -5
  80. data/lib/comet/models/news_entry.rb +6 -6
  81. data/lib/comet/models/office_365connection.rb +123 -0
  82. data/lib/comet/models/office_365credential.rb +111 -0
  83. data/lib/comet/models/office_365custom_setting.rb +132 -0
  84. data/lib/comet/models/office_365object_info.rb +118 -0
  85. data/lib/comet/models/organization.rb +11 -5
  86. data/lib/comet/models/organization_response.rb +6 -6
  87. data/lib/comet/models/osinfo.rb +6 -6
  88. data/lib/comet/models/partition.rb +14 -14
  89. data/lib/comet/models/private_branding_properties.rb +27 -18
  90. data/lib/comet/models/protected_item_engine_type_policy.rb +4 -4
  91. data/lib/comet/models/public_branding_properties.rb +9 -9
  92. data/lib/comet/models/register_office_application_begin_response.rb +93 -0
  93. data/lib/comet/models/register_office_application_check_response.rb +100 -0
  94. data/lib/comet/models/remote_server_address.rb +18 -8
  95. data/lib/comet/models/remote_storage_option.rb +19 -9
  96. data/lib/comet/models/replicator_state_apiresponse.rb +15 -15
  97. data/lib/comet/models/request_storage_vault_response_message.rb +6 -6
  98. data/lib/comet/models/restore_job_advanced_options.rb +23 -7
  99. data/lib/comet/models/retention_policy.rb +4 -4
  100. data/lib/comet/models/retention_range.rb +11 -11
  101. data/lib/comet/models/s3destination_location.rb +8 -8
  102. data/lib/comet/models/schedule_config.rb +6 -6
  103. data/lib/comet/models/search_clause.rb +7 -7
  104. data/lib/comet/models/self_backup_statistics.rb +108 -0
  105. data/lib/comet/models/server_config_options_branding_fragment.rb +3 -3
  106. data/lib/comet/models/server_config_options_software_build_role_fragment.rb +3 -3
  107. data/lib/comet/models/server_meta_branding_properties.rb +135 -0
  108. data/lib/comet/models/server_meta_version_info.rb +33 -18
  109. data/lib/comet/models/session_key_regenerated_response.rb +7 -7
  110. data/lib/comet/models/sftpdestination_location.rb +10 -10
  111. data/lib/comet/models/size_measurement.rb +6 -6
  112. data/lib/comet/models/software_build_role_options.rb +3 -3
  113. data/lib/comet/models/software_update_news_response.rb +7 -7
  114. data/lib/comet/models/source_basic_info.rb +5 -5
  115. data/lib/comet/models/source_config.rb +27 -11
  116. data/lib/comet/models/source_include_pattern.rb +84 -0
  117. data/lib/comet/models/source_statistics.rb +11 -3
  118. data/lib/comet/models/spanned_destination_location.rb +9 -3
  119. data/lib/comet/models/spanned_storage_extra_info.rb +3 -3
  120. data/lib/comet/models/sshconnection.rb +9 -9
  121. data/lib/comet/models/stat_result.rb +7 -7
  122. data/lib/comet/models/storage_free_space_info.rb +5 -5
  123. data/lib/comet/models/storage_vault_provider_policy.rb +4 -4
  124. data/lib/comet/models/stored_object.rb +96 -11
  125. data/lib/comet/models/streamable_event.rb +8 -6
  126. data/lib/comet/models/swift_destination_location.rb +16 -16
  127. data/lib/comet/models/test_response.rb +5 -5
  128. data/lib/comet/models/totp_regenerated_response.rb +8 -8
  129. data/lib/comet/models/u2fregister_request.rb +5 -5
  130. data/lib/comet/models/u2fregistered_key.rb +6 -6
  131. data/lib/comet/models/u2fregistration_challenge_response.rb +7 -7
  132. data/lib/comet/models/u2fsign_request.rb +6 -6
  133. data/lib/comet/models/u2fsign_response.rb +7 -7
  134. data/lib/comet/models/uninstall_config.rb +3 -3
  135. data/lib/comet/models/update_campaign_device_status.rb +4 -4
  136. data/lib/comet/models/update_campaign_options.rb +3 -3
  137. data/lib/comet/models/update_campaign_properties.rb +5 -5
  138. data/lib/comet/models/update_campaign_status.rb +5 -5
  139. data/lib/comet/models/update_campaign_status_device_entry.rb +6 -6
  140. data/lib/comet/models/user_custom_email_settings.rb +3 -3
  141. data/lib/comet/models/user_on_server.rb +5 -5
  142. data/lib/comet/models/user_policy.rb +22 -7
  143. data/lib/comet/models/user_profile_config.rb +19 -19
  144. data/lib/comet/models/user_profile_fragment.rb +4 -4
  145. data/lib/comet/models/vault_snapshot.rb +12 -6
  146. data/lib/comet/models/vsscomponent.rb +6 -6
  147. data/lib/comet/models/vsswriter_info.rb +4 -4
  148. data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +6 -6
  149. data/lib/comet/models/web_interface_branding_properties.rb +7 -7
  150. data/lib/comet/models/webhook_option.rb +5 -5
  151. data/lib/comet/models/win_smbauth.rb +7 -7
  152. data/lib/comet/models/windows_code_sign_properties.rb +12 -12
  153. data/lib/comet_backup_ruby_sdk.rb +16 -1
  154. metadata +20 -5
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2020 Comet Licensing Ltd.
3
+ # Copyright (c) 2020-2021 Comet Licensing Ltd.
4
4
  # Please see the LICENSE file for usage information.
5
5
  #
6
6
  # SPDX-License-Identifier: MIT
@@ -33,14 +33,14 @@ module Comet
33
33
 
34
34
  # @param [String] json_string The complete object in JSON format
35
35
  def from_json(json_string)
36
- raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
36
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
37
37
 
38
38
  from_hash(JSON.parse(json_string))
39
39
  end
40
40
 
41
41
  # @param [Hash] obj The complete object as a Ruby hash
42
42
  def from_hash(obj)
43
- raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
43
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
44
44
 
45
45
  obj.each do |k, v|
46
46
  case k
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2020 Comet Licensing Ltd.
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
@@ -59,6 +59,9 @@ module Comet
59
59
  # @type [String] path_icns_file
60
60
  attr_accessor :path_icns_file
61
61
 
62
+ # @type [String] path_menu_bar_icns_file
63
+ attr_accessor :path_menu_bar_icns_file
64
+
62
65
  # @type [String] path_eula_rtf
63
66
  attr_accessor :path_eula_rtf
64
67
 
@@ -121,6 +124,7 @@ module Comet
121
124
  @account_register_url = ''
122
125
  @path_ico_file = ''
123
126
  @path_icns_file = ''
127
+ @path_menu_bar_icns_file = ''
124
128
  @path_eula_rtf = ''
125
129
  @path_tile_png = ''
126
130
  @path_header_image = ''
@@ -140,121 +144,125 @@ module Comet
140
144
 
141
145
  # @param [String] json_string The complete object in JSON format
142
146
  def from_json(json_string)
143
- raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
147
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
144
148
 
145
149
  from_hash(JSON.parse(json_string))
146
150
  end
147
151
 
148
152
  # @param [Hash] obj The complete object as a Ruby hash
149
153
  def from_hash(obj)
150
- raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
154
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
151
155
 
152
156
  obj.each do |k, v|
153
157
  case k
154
158
  when 'BrandName'
155
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
159
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
156
160
 
157
161
  @brand_name = v
158
162
  when 'LogoImage'
159
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
163
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
160
164
 
161
165
  @logo_image = v
162
166
  when 'TopColor'
163
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
167
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
164
168
 
165
169
  @top_color = v
166
170
  when 'Favicon'
167
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
171
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
168
172
 
169
173
  @favicon = v
170
174
  when 'HideNewsArea'
171
175
  @hide_news_area = v
172
176
  when 'ProductName'
173
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
177
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
174
178
 
175
179
  @product_name = v
176
180
  when 'CompanyName'
177
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
181
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
178
182
 
179
183
  @company_name = v
180
184
  when 'HelpURL'
181
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
185
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
182
186
 
183
187
  @help_url = v
184
188
  when 'HelpIsPopup'
185
189
  @help_is_popup = v
186
190
  when 'DefaultLoginServerURL'
187
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
191
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
188
192
 
189
193
  @default_login_server_url = v
190
194
  when 'TileBackgroundColor'
191
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
195
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
192
196
 
193
197
  @tile_background_color = v
194
198
  when 'AccountRegisterURL'
195
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
199
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
196
200
 
197
201
  @account_register_url = v
198
202
  when 'HideBackgroundLogo'
199
203
  @hide_background_logo = v
200
204
  when 'PathIcoFile'
201
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
205
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
202
206
 
203
207
  @path_ico_file = v
204
208
  when 'PathIcnsFile'
205
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
209
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
206
210
 
207
211
  @path_icns_file = v
212
+ when 'PathMenuBarIcnsFile'
213
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
214
+
215
+ @path_menu_bar_icns_file = v
208
216
  when 'PathEulaRtf'
209
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
217
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
210
218
 
211
219
  @path_eula_rtf = v
212
220
  when 'PathTilePng'
213
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
221
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
214
222
 
215
223
  @path_tile_png = v
216
224
  when 'PathHeaderImage'
217
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
225
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
218
226
 
219
227
  @path_header_image = v
220
228
  when 'PackageIdentifier'
221
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
229
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
222
230
 
223
231
  @package_identifier = v
224
232
  when 'WindowsCodeSignPKCS12FilePath'
225
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
233
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
226
234
 
227
235
  @windows_code_sign_pkcs12file_path = v
228
236
  when 'WindowsCodeSignPKCS12PasswordFormat'
229
- raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
237
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
230
238
 
231
239
  @windows_code_sign_pkcs12password_format = v
232
240
  when 'WindowsCodeSignPKCS12Password'
233
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
241
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
234
242
 
235
243
  @windows_code_sign_pkcs12password = v
236
244
  when 'WindowsCodeSignPKCS11Engine'
237
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
245
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
238
246
 
239
247
  @windows_code_sign_pkcs11engine = v
240
248
  when 'WindowsCodeSignPKCS11Module'
241
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
249
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
242
250
 
243
251
  @windows_code_sign_pkcs11module = v
244
252
  when 'WindowsCodeSignPKCS11Certfile'
245
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
253
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
246
254
 
247
255
  @windows_code_sign_pkcs11certfile = v
248
256
  when 'WindowsCodeSignPKCS11KeyID'
249
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
257
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
250
258
 
251
259
  @windows_code_sign_pkcs11key_id = v
252
260
  when 'WindowsCodeSignPKCS11PasswordFormat'
253
- raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
261
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
254
262
 
255
263
  @windows_code_sign_pkcs11password_format = v
256
264
  when 'WindowsCodeSignPKCS11Password'
257
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
265
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
258
266
 
259
267
  @windows_code_sign_pkcs11password = v
260
268
  when 'MacOSCodeSign'
@@ -284,6 +292,7 @@ module Comet
284
292
  ret['HideBackgroundLogo'] = @hide_background_logo
285
293
  ret['PathIcoFile'] = @path_ico_file
286
294
  ret['PathIcnsFile'] = @path_icns_file
295
+ ret['PathMenuBarIcnsFile'] = @path_menu_bar_icns_file
287
296
  ret['PathEulaRtf'] = @path_eula_rtf
288
297
  ret['PathTilePng'] = @path_tile_png
289
298
  ret['PathHeaderImage'] = @path_header_image
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2020 Comet Licensing Ltd.
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
@@ -44,6 +44,9 @@ module Comet
44
44
  # @type [String] path_icns_file
45
45
  attr_accessor :path_icns_file
46
46
 
47
+ # @type [String] path_menu_bar_icns_file
48
+ attr_accessor :path_menu_bar_icns_file
49
+
47
50
  # @type [String] path_eula_rtf
48
51
  attr_accessor :path_eula_rtf
49
52
 
@@ -102,6 +105,7 @@ module Comet
102
105
  @account_register_url = ''
103
106
  @path_ico_file = ''
104
107
  @path_icns_file = ''
108
+ @path_menu_bar_icns_file = ''
105
109
  @path_eula_rtf = ''
106
110
  @path_tile_png = ''
107
111
  @path_header_image = ''
@@ -121,103 +125,107 @@ module Comet
121
125
 
122
126
  # @param [String] json_string The complete object in JSON format
123
127
  def from_json(json_string)
124
- raise TypeError "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
128
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
125
129
 
126
130
  from_hash(JSON.parse(json_string))
127
131
  end
128
132
 
129
133
  # @param [Hash] obj The complete object as a Ruby hash
130
134
  def from_hash(obj)
131
- raise TypeError "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
135
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
132
136
 
133
137
  obj.each do |k, v|
134
138
  case k
135
139
  when 'ProductName'
136
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
140
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
137
141
 
138
142
  @product_name = v
139
143
  when 'CompanyName'
140
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
144
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
141
145
 
142
146
  @company_name = v
143
147
  when 'HelpURL'
144
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
148
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
145
149
 
146
150
  @help_url = v
147
151
  when 'HelpIsPopup'
148
152
  @help_is_popup = v
149
153
  when 'DefaultLoginServerURL'
150
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
154
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
151
155
 
152
156
  @default_login_server_url = v
153
157
  when 'TileBackgroundColor'
154
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
158
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
155
159
 
156
160
  @tile_background_color = v
157
161
  when 'AccountRegisterURL'
158
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
162
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
159
163
 
160
164
  @account_register_url = v
161
165
  when 'HideBackgroundLogo'
162
166
  @hide_background_logo = v
163
167
  when 'PathIcoFile'
164
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
168
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
165
169
 
166
170
  @path_ico_file = v
167
171
  when 'PathIcnsFile'
168
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
172
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
169
173
 
170
174
  @path_icns_file = v
175
+ when 'PathMenuBarIcnsFile'
176
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
177
+
178
+ @path_menu_bar_icns_file = v
171
179
  when 'PathEulaRtf'
172
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
180
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
173
181
 
174
182
  @path_eula_rtf = v
175
183
  when 'PathTilePng'
176
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
184
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
177
185
 
178
186
  @path_tile_png = v
179
187
  when 'PathHeaderImage'
180
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
188
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
181
189
 
182
190
  @path_header_image = v
183
191
  when 'PackageIdentifier'
184
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
192
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
185
193
 
186
194
  @package_identifier = v
187
195
  when 'WindowsCodeSignPKCS12FilePath'
188
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
196
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
189
197
 
190
198
  @windows_code_sign_pkcs12file_path = v
191
199
  when 'WindowsCodeSignPKCS12PasswordFormat'
192
- raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
200
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
193
201
 
194
202
  @windows_code_sign_pkcs12password_format = v
195
203
  when 'WindowsCodeSignPKCS12Password'
196
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
204
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
197
205
 
198
206
  @windows_code_sign_pkcs12password = v
199
207
  when 'WindowsCodeSignPKCS11Engine'
200
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
208
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
201
209
 
202
210
  @windows_code_sign_pkcs11engine = v
203
211
  when 'WindowsCodeSignPKCS11Module'
204
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
212
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
205
213
 
206
214
  @windows_code_sign_pkcs11module = v
207
215
  when 'WindowsCodeSignPKCS11Certfile'
208
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
216
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
209
217
 
210
218
  @windows_code_sign_pkcs11certfile = v
211
219
  when 'WindowsCodeSignPKCS11KeyID'
212
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
220
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
213
221
 
214
222
  @windows_code_sign_pkcs11key_id = v
215
223
  when 'WindowsCodeSignPKCS11PasswordFormat'
216
- raise TypeError "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
224
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
217
225
 
218
226
  @windows_code_sign_pkcs11password_format = v
219
227
  when 'WindowsCodeSignPKCS11Password'
220
- raise TypeError "'v' expected String, got #{v.class}" unless v.is_a? String
228
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
221
229
 
222
230
  @windows_code_sign_pkcs11password = v
223
231
  when 'MacOSCodeSign'
@@ -242,6 +250,7 @@ module Comet
242
250
  ret['HideBackgroundLogo'] = @hide_background_logo
243
251
  ret['PathIcoFile'] = @path_ico_file
244
252
  ret['PathIcnsFile'] = @path_icns_file
253
+ ret['PathMenuBarIcnsFile'] = @path_menu_bar_icns_file
245
254
  ret['PathEulaRtf'] = @path_eula_rtf
246
255
  ret['PathTilePng'] = @path_tile_png
247
256
  ret['PathHeaderImage'] = @path_header_image
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2020 Comet Licensing Ltd.
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 '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 'Disks'
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2020 Comet Licensing Ltd.
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 '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 'Databases'
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby --enable-frozen-string-literal
2
2
  #
3
- # Copyright (c) 2020-2020 Comet Licensing Ltd.
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 '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 'VirtualMachines'