comet_backup_ruby_sdk 0.2.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +47 -0
  3. data/Gemfile.lock +43 -0
  4. data/README.md +20 -4
  5. data/RELEASING.md +10 -0
  6. data/comet_backup_ruby_sdk.gemspec +1 -1
  7. data/lib/comet/comet_server.rb +562 -254
  8. data/lib/comet/definitions.rb +19 -4
  9. data/lib/comet/models/add_bucket_response_message.rb +15 -5
  10. data/lib/comet/models/admin_account_properties_response.rb +17 -2
  11. data/lib/comet/models/admin_email_options.rb +84 -0
  12. data/lib/comet/models/admin_resource_response.rb +13 -4
  13. data/lib/comet/models/admin_security_options.rb +18 -5
  14. data/lib/comet/models/admin_u2fregistration.rb +11 -3
  15. data/lib/comet/models/admin_user_permissions.rb +6 -2
  16. data/lib/comet/models/available_download.rb +10 -4
  17. data/lib/comet/models/azure_destination_location.rb +16 -7
  18. data/lib/comet/models/b2destination_location.rb +17 -6
  19. data/lib/comet/models/b2storage_extra_info.rb +6 -2
  20. data/lib/comet/models/b2transaction_totals.rb +15 -2
  21. data/lib/comet/models/b2virtual_storage_role_settings.rb +93 -0
  22. data/lib/comet/models/backup_job_advanced_options.rb +12 -2
  23. data/lib/comet/models/backup_job_detail.rb +53 -10
  24. data/lib/comet/models/backup_job_progress.rb +21 -2
  25. data/lib/comet/models/backup_rule_config.rb +43 -7
  26. data/lib/comet/models/backup_rule_event_triggers.rb +6 -2
  27. data/lib/comet/models/branding_options.rb +59 -25
  28. data/lib/comet/models/branding_properties.rb +51 -21
  29. data/lib/comet/models/browse_disk_drives_response.rb +11 -3
  30. data/lib/comet/models/browse_edbresponse.rb +11 -3
  31. data/lib/comet/models/browse_hvresponse.rb +11 -3
  32. data/lib/comet/models/browse_vssresponse.rb +11 -3
  33. data/lib/comet/models/bucket_properties.rb +24 -3
  34. data/lib/comet/models/bucket_usage_info.rb +8 -2
  35. data/lib/comet/models/comet_apiresponse_message.rb +11 -3
  36. data/lib/comet/models/comet_destination_location.rb +12 -5
  37. data/lib/comet/models/constellation_check_report.rb +12 -2
  38. data/lib/comet/models/constellation_stats.rb +18 -2
  39. data/lib/comet/models/constellation_status_apiresponse.rb +9 -4
  40. data/lib/comet/models/content_measurement.rb +12 -2
  41. data/lib/comet/models/content_measurement_component.rb +10 -3
  42. data/lib/comet/models/create_group_policy_response.rb +13 -4
  43. data/lib/comet/models/default_email_report_policy.rb +6 -2
  44. data/lib/comet/models/destination_config.rb +123 -32
  45. data/lib/comet/models/destination_location.rb +78 -28
  46. data/lib/comet/models/destination_statistics.rb +16 -3
  47. data/lib/comet/models/device_config.rb +9 -3
  48. data/lib/comet/models/disk_drive.rb +34 -7
  49. data/lib/comet/models/dispatcher_admin_sources_response.rb +12 -4
  50. data/lib/comet/models/dispatcher_stored_objects_response.rb +11 -3
  51. data/lib/comet/models/dispatcher_vault_snapshots_response.rb +11 -3
  52. data/lib/comet/models/edbfile_info.rb +12 -5
  53. data/lib/comet/models/email_options.rb +21 -8
  54. data/lib/comet/models/email_report_config.rb +10 -2
  55. data/lib/comet/models/email_report_generated_preview.rb +17 -6
  56. data/lib/comet/models/external_ldapauthentication_source_settings.rb +102 -0
  57. data/lib/comet/models/extra_file_exclusion.rb +11 -3
  58. data/lib/comet/models/ftpdestination_location.rb +23 -6
  59. data/lib/comet/models/get_group_policy_response.rb +14 -4
  60. data/lib/comet/models/get_profile_and_hash_response_message.rb +14 -4
  61. data/lib/comet/models/get_profile_hash_response_message.rb +13 -4
  62. data/lib/comet/models/group_policy.rb +18 -3
  63. data/lib/comet/models/hyper_vmachine_info.rb +10 -4
  64. data/lib/comet/models/install_creds.rb +99 -0
  65. data/lib/comet/models/install_token.rb +117 -0
  66. data/lib/comet/models/install_token_response.rb +92 -0
  67. data/lib/comet/models/job_entry.rb +93 -0
  68. data/lib/comet/models/live_user_connection.rb +20 -7
  69. data/lib/comet/models/local_destination_location.rb +15 -5
  70. data/lib/comet/models/mac_oscode_sign_properties.rb +21 -6
  71. data/lib/comet/models/mongo_dbconnection.rb +33 -14
  72. data/lib/comet/models/new_bucket_detail.rb +10 -4
  73. data/lib/comet/models/news_entry.rb +20 -3
  74. data/lib/comet/models/organization.rb +145 -0
  75. data/lib/comet/models/organization_response.rb +101 -0
  76. data/lib/comet/models/osinfo.rb +12 -5
  77. data/lib/comet/models/partition.rb +32 -8
  78. data/lib/comet/models/private_branding_properties.rb +39 -15
  79. data/lib/comet/models/protected_item_engine_type_policy.rb +7 -3
  80. data/lib/comet/models/public_branding_properties.rb +18 -8
  81. data/lib/comet/models/remote_server_address.rb +19 -7
  82. data/lib/comet/models/remote_storage_option.rb +28 -7
  83. data/lib/comet/models/replicator_state_apiresponse.rb +40 -4
  84. data/lib/comet/models/request_storage_vault_response_message.rb +13 -4
  85. data/lib/comet/models/restore_job_advanced_options.rb +15 -4
  86. data/lib/comet/models/retention_policy.rb +9 -2
  87. data/lib/comet/models/retention_range.rb +30 -2
  88. data/lib/comet/models/s3destination_location.rb +16 -7
  89. data/lib/comet/models/schedule_config.rb +15 -2
  90. data/lib/comet/models/search_clause.rb +14 -6
  91. data/lib/comet/models/server_config_options_branding_fragment.rb +7 -2
  92. data/lib/comet/models/server_config_options_software_build_role_fragment.rb +7 -2
  93. data/lib/comet/models/server_meta_version_info.rb +45 -7
  94. data/lib/comet/models/session_key_regenerated_response.rb +15 -5
  95. data/lib/comet/models/sftpdestination_location.rb +21 -8
  96. data/lib/comet/models/size_measurement.rb +15 -2
  97. data/lib/comet/models/software_build_role_options.rb +6 -2
  98. data/lib/comet/models/software_update_news_response.rb +13 -6
  99. data/lib/comet/models/source_basic_info.rb +11 -3
  100. data/lib/comet/models/source_config.rb +38 -8
  101. data/lib/comet/models/source_statistics.rb +7 -2
  102. data/lib/comet/models/spanned_destination_location.rb +6 -2
  103. data/lib/comet/models/spanned_storage_extra_info.rb +6 -2
  104. data/lib/comet/models/sshconnection.rb +19 -7
  105. data/lib/comet/models/stat_result.rb +18 -2
  106. data/lib/comet/models/storage_free_space_info.rb +14 -2
  107. data/lib/comet/models/storage_vault_provider_policy.rb +8 -2
  108. data/lib/comet/models/stored_object.rb +27 -5
  109. data/lib/comet/models/streamable_event.rb +18 -2
  110. data/lib/comet/models/swift_destination_location.rb +32 -15
  111. data/lib/comet/models/test_response.rb +11 -3
  112. data/lib/comet/models/totp_regenerated_response.rb +17 -6
  113. data/lib/comet/models/u2fregister_request.rb +10 -4
  114. data/lib/comet/models/u2fregistered_key.rb +12 -5
  115. data/lib/comet/models/u2fregistration_challenge_response.rb +15 -5
  116. data/lib/comet/models/u2fsign_request.rb +12 -5
  117. data/lib/comet/models/u2fsign_response.rb +14 -6
  118. data/lib/comet/models/uninstall_config.rb +6 -2
  119. data/lib/comet/models/update_campaign_device_status.rb +9 -2
  120. data/lib/comet/models/update_campaign_options.rb +6 -2
  121. data/lib/comet/models/update_campaign_properties.rb +11 -3
  122. data/lib/comet/models/update_campaign_status.rb +11 -3
  123. data/lib/comet/models/update_campaign_status_device_entry.rb +13 -4
  124. data/lib/comet/models/user_custom_email_settings.rb +6 -2
  125. data/lib/comet/models/user_on_server.rb +11 -3
  126. data/lib/comet/models/user_policy.rb +22 -2
  127. data/lib/comet/models/user_profile_config.rb +52 -12
  128. data/lib/comet/models/user_profile_fragment.rb +8 -3
  129. data/lib/comet/models/vault_snapshot.rb +13 -4
  130. data/lib/comet/models/vsscomponent.rb +12 -5
  131. data/lib/comet/models/vsswriter_info.rb +8 -3
  132. data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +93 -0
  133. data/lib/comet/models/web_interface_branding_properties.rb +14 -6
  134. data/lib/comet/models/webhook_option.rb +10 -3
  135. data/lib/comet/models/win_smbauth.rb +15 -5
  136. data/lib/comet/models/windows_code_sign_properties.rb +26 -9
  137. data/lib/comet_backup_ruby_sdk.rb +10 -0
  138. 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 string' unless json_string.is_a? String
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 hash' unless obj.is_a? Hash
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 string' unless v.is_a? String
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 string' unless v1.is_a? String
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 string' unless v1.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless json_string.is_a? String
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 hash' unless obj.is_a? Hash
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 string' unless json_string.is_a? String
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 hash' unless obj.is_a? Hash
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless json_string.is_a? String
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 hash' unless obj.is_a? Hash
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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 string' unless v.is_a? String
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'