swaggy_jenkins 3.2.0 → 3.3.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 (191) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +80 -13
  3. data/README.md +6 -6
  4. data/bin/byebug +0 -11
  5. data/bin/coderay +0 -11
  6. data/bin/htmldiff +0 -11
  7. data/bin/ldiff +0 -11
  8. data/bin/pry +0 -11
  9. data/bin/racc +0 -11
  10. data/bin/rake +0 -11
  11. data/bin/rspec +0 -11
  12. data/bin/rubocop +0 -11
  13. data/bin/ruby-parse +0 -11
  14. data/bin/ruby-rewrite +0 -11
  15. data/docs/PipelineImpllinks.md +4 -4
  16. data/lib/swaggy_jenkins/api/base_api.rb +2 -2
  17. data/lib/swaggy_jenkins/api/blue_ocean_api.rb +2 -2
  18. data/lib/swaggy_jenkins/api/remote_access_api.rb +2 -2
  19. data/lib/swaggy_jenkins/api_client.rb +8 -4
  20. data/lib/swaggy_jenkins/api_error.rb +2 -2
  21. data/lib/swaggy_jenkins/api_model_base.rb +88 -0
  22. data/lib/swaggy_jenkins/configuration.rb +2 -2
  23. data/lib/swaggy_jenkins/models/all_view.rb +3 -76
  24. data/lib/swaggy_jenkins/models/branch_impl.rb +3 -76
  25. data/lib/swaggy_jenkins/models/branch_impllinks.rb +3 -76
  26. data/lib/swaggy_jenkins/models/branch_implpermissions.rb +3 -76
  27. data/lib/swaggy_jenkins/models/cause_action.rb +3 -76
  28. data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +3 -76
  29. data/lib/swaggy_jenkins/models/classes_by_class.rb +3 -76
  30. data/lib/swaggy_jenkins/models/clock_difference.rb +3 -76
  31. data/lib/swaggy_jenkins/models/computer_set.rb +3 -76
  32. data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +3 -76
  33. data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +3 -76
  34. data/lib/swaggy_jenkins/models/empty_change_log_set.rb +3 -76
  35. data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +3 -76
  36. data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +3 -76
  37. data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +3 -76
  38. data/lib/swaggy_jenkins/models/extension_class_impl.rb +3 -76
  39. data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +3 -76
  40. data/lib/swaggy_jenkins/models/favorite_impl.rb +3 -76
  41. data/lib/swaggy_jenkins/models/favorite_impllinks.rb +3 -76
  42. data/lib/swaggy_jenkins/models/free_style_build.rb +3 -76
  43. data/lib/swaggy_jenkins/models/free_style_project.rb +3 -76
  44. data/lib/swaggy_jenkins/models/free_style_projectactions.rb +3 -76
  45. data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +3 -76
  46. data/lib/swaggy_jenkins/models/generic_resource.rb +3 -76
  47. data/lib/swaggy_jenkins/models/github_content.rb +3 -76
  48. data/lib/swaggy_jenkins/models/github_file.rb +3 -76
  49. data/lib/swaggy_jenkins/models/github_organization.rb +3 -76
  50. data/lib/swaggy_jenkins/models/github_organizationlinks.rb +3 -76
  51. data/lib/swaggy_jenkins/models/github_repositories.rb +3 -76
  52. data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +3 -76
  53. data/lib/swaggy_jenkins/models/github_repository.rb +3 -76
  54. data/lib/swaggy_jenkins/models/github_repositorylinks.rb +3 -76
  55. data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +3 -76
  56. data/lib/swaggy_jenkins/models/github_respository_container.rb +3 -76
  57. data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +3 -76
  58. data/lib/swaggy_jenkins/models/github_scm.rb +3 -76
  59. data/lib/swaggy_jenkins/models/github_scmlinks.rb +3 -76
  60. data/lib/swaggy_jenkins/models/hudson.rb +3 -76
  61. data/lib/swaggy_jenkins/models/hudson_master_computer.rb +3 -76
  62. data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +3 -76
  63. data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +3 -76
  64. data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +3 -76
  65. data/lib/swaggy_jenkins/models/input_step_impl.rb +3 -76
  66. data/lib/swaggy_jenkins/models/input_step_impllinks.rb +3 -76
  67. data/lib/swaggy_jenkins/models/label1.rb +3 -76
  68. data/lib/swaggy_jenkins/models/link.rb +3 -76
  69. data/lib/swaggy_jenkins/models/list_view.rb +3 -76
  70. data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +3 -76
  71. data/lib/swaggy_jenkins/models/null_scm.rb +3 -76
  72. data/lib/swaggy_jenkins/models/organisation.rb +3 -76
  73. data/lib/swaggy_jenkins/models/pipeline.rb +3 -76
  74. data/lib/swaggy_jenkins/models/pipeline_activity.rb +3 -76
  75. data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +3 -76
  76. data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +3 -76
  77. data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +3 -76
  78. data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +3 -76
  79. data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +3 -76
  80. data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +3 -76
  81. data/lib/swaggy_jenkins/models/pipeline_impl.rb +3 -76
  82. data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +22 -95
  83. data/lib/swaggy_jenkins/models/pipeline_run.rb +3 -76
  84. data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +3 -76
  85. data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +3 -76
  86. data/lib/swaggy_jenkins/models/pipeline_run_node.rb +3 -76
  87. data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +3 -76
  88. data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +3 -76
  89. data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +3 -76
  90. data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +3 -76
  91. data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +3 -76
  92. data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +3 -76
  93. data/lib/swaggy_jenkins/models/queue.rb +3 -76
  94. data/lib/swaggy_jenkins/models/queue_blocked_item.rb +3 -76
  95. data/lib/swaggy_jenkins/models/queue_item_impl.rb +3 -76
  96. data/lib/swaggy_jenkins/models/queue_left_item.rb +3 -76
  97. data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +3 -76
  98. data/lib/swaggy_jenkins/models/string_parameter_definition.rb +3 -76
  99. data/lib/swaggy_jenkins/models/string_parameter_value.rb +3 -76
  100. data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +3 -76
  101. data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +3 -76
  102. data/lib/swaggy_jenkins/models/user.rb +3 -76
  103. data/lib/swaggy_jenkins/version.rb +3 -3
  104. data/lib/swaggy_jenkins.rb +3 -2
  105. data/spec/api/base_api_spec.rb +2 -2
  106. data/spec/api/blue_ocean_api_spec.rb +2 -2
  107. data/spec/api/remote_access_api_spec.rb +2 -2
  108. data/spec/models/all_view_spec.rb +3 -3
  109. data/spec/models/branch_impl_spec.rb +3 -3
  110. data/spec/models/branch_impllinks_spec.rb +3 -3
  111. data/spec/models/branch_implpermissions_spec.rb +3 -3
  112. data/spec/models/cause_action_spec.rb +3 -3
  113. data/spec/models/cause_user_id_cause_spec.rb +3 -3
  114. data/spec/models/classes_by_class_spec.rb +3 -3
  115. data/spec/models/clock_difference_spec.rb +3 -3
  116. data/spec/models/computer_set_spec.rb +3 -3
  117. data/spec/models/default_crumb_issuer_spec.rb +3 -3
  118. data/spec/models/disk_space_monitor_descriptor_disk_space_spec.rb +3 -3
  119. data/spec/models/empty_change_log_set_spec.rb +3 -3
  120. data/spec/models/extension_class_container_impl1_spec.rb +3 -3
  121. data/spec/models/extension_class_container_impl1links_spec.rb +3 -3
  122. data/spec/models/extension_class_container_impl1map_spec.rb +3 -3
  123. data/spec/models/extension_class_impl_spec.rb +3 -3
  124. data/spec/models/extension_class_impllinks_spec.rb +3 -3
  125. data/spec/models/favorite_impl_spec.rb +3 -3
  126. data/spec/models/favorite_impllinks_spec.rb +3 -3
  127. data/spec/models/free_style_build_spec.rb +3 -3
  128. data/spec/models/free_style_project_spec.rb +3 -3
  129. data/spec/models/free_style_projectactions_spec.rb +3 -3
  130. data/spec/models/free_style_projecthealth_report_spec.rb +3 -3
  131. data/spec/models/generic_resource_spec.rb +3 -3
  132. data/spec/models/github_content_spec.rb +3 -3
  133. data/spec/models/github_file_spec.rb +3 -3
  134. data/spec/models/github_organization_spec.rb +3 -3
  135. data/spec/models/github_organizationlinks_spec.rb +3 -3
  136. data/spec/models/github_repositories_spec.rb +3 -3
  137. data/spec/models/github_repositorieslinks_spec.rb +3 -3
  138. data/spec/models/github_repository_spec.rb +3 -3
  139. data/spec/models/github_repositorylinks_spec.rb +3 -3
  140. data/spec/models/github_repositorypermissions_spec.rb +3 -3
  141. data/spec/models/github_respository_container_spec.rb +3 -3
  142. data/spec/models/github_respository_containerlinks_spec.rb +3 -3
  143. data/spec/models/github_scm_spec.rb +3 -3
  144. data/spec/models/github_scmlinks_spec.rb +3 -3
  145. data/spec/models/hudson_master_computer_spec.rb +3 -3
  146. data/spec/models/hudson_master_computerexecutors_spec.rb +3 -3
  147. data/spec/models/hudson_master_computermonitor_data_spec.rb +3 -3
  148. data/spec/models/hudson_spec.rb +3 -3
  149. data/spec/models/hudsonassigned_labels_spec.rb +3 -3
  150. data/spec/models/input_step_impl_spec.rb +3 -3
  151. data/spec/models/input_step_impllinks_spec.rb +3 -3
  152. data/spec/models/label1_spec.rb +3 -3
  153. data/spec/models/link_spec.rb +3 -3
  154. data/spec/models/list_view_spec.rb +3 -3
  155. data/spec/models/multibranch_pipeline_spec.rb +3 -3
  156. data/spec/models/null_scm_spec.rb +3 -3
  157. data/spec/models/organisation_spec.rb +3 -3
  158. data/spec/models/pipeline_activity_spec.rb +3 -3
  159. data/spec/models/pipeline_activityartifacts_spec.rb +3 -3
  160. data/spec/models/pipeline_branchesitem_spec.rb +3 -3
  161. data/spec/models/pipeline_branchesitemlatest_run_spec.rb +3 -3
  162. data/spec/models/pipeline_branchesitempull_request_spec.rb +3 -3
  163. data/spec/models/pipeline_branchesitempull_requestlinks_spec.rb +3 -3
  164. data/spec/models/pipeline_folder_impl_spec.rb +3 -3
  165. data/spec/models/pipeline_impl_spec.rb +3 -3
  166. data/spec/models/pipeline_impllinks_spec.rb +7 -7
  167. data/spec/models/pipeline_run_impl_spec.rb +3 -3
  168. data/spec/models/pipeline_run_impllinks_spec.rb +3 -3
  169. data/spec/models/pipeline_run_node_spec.rb +3 -3
  170. data/spec/models/pipeline_run_nodeedges_spec.rb +3 -3
  171. data/spec/models/pipeline_run_spec.rb +3 -3
  172. data/spec/models/pipeline_runartifacts_spec.rb +3 -3
  173. data/spec/models/pipeline_spec.rb +3 -3
  174. data/spec/models/pipeline_step_impl_spec.rb +3 -3
  175. data/spec/models/pipeline_step_impllinks_spec.rb +3 -3
  176. data/spec/models/pipelinelatest_run_spec.rb +3 -3
  177. data/spec/models/pipelinelatest_runartifacts_spec.rb +3 -3
  178. data/spec/models/queue_blocked_item_spec.rb +3 -3
  179. data/spec/models/queue_item_impl_spec.rb +3 -3
  180. data/spec/models/queue_left_item_spec.rb +3 -3
  181. data/spec/models/queue_spec.rb +3 -3
  182. data/spec/models/response_time_monitor_data_spec.rb +3 -3
  183. data/spec/models/string_parameter_definition_spec.rb +3 -3
  184. data/spec/models/string_parameter_value_spec.rb +3 -3
  185. data/spec/models/swap_space_monitor_memory_usage2_spec.rb +3 -3
  186. data/spec/models/unlabeled_load_statistics_spec.rb +3 -3
  187. data/spec/models/user_spec.rb +3 -3
  188. data/spec/spec_helper.rb +2 -2
  189. data/swaggy_jenkins.gemspec +2 -2
  190. metadata +3 -3
  191. data/bin/bundle +0 -109
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Jenkins API clients generated from Swagger / Open API specification
5
5
 
6
- The version of the OpenAPI document: 3.2.0
6
+ The version of the OpenAPI document: 3.3.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
9
+ Generator version: 7.18.0
10
10
 
11
11
  =end
12
12
 
@@ -14,24 +14,24 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SwaggyJenkinsClient
17
- class PipelineImpllinks
18
- attr_accessor :runs
19
-
17
+ class PipelineImpllinks < ApiModelBase
20
18
  attr_accessor :_self
21
19
 
22
- attr_accessor :queue
23
-
24
20
  attr_accessor :actions
25
21
 
22
+ attr_accessor :runs
23
+
24
+ attr_accessor :queue
25
+
26
26
  attr_accessor :_class
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'runs' => :'runs',
32
31
  :'_self' => :'self',
33
- :'queue' => :'queue',
34
32
  :'actions' => :'actions',
33
+ :'runs' => :'runs',
34
+ :'queue' => :'queue',
35
35
  :'_class' => :'_class'
36
36
  }
37
37
  end
@@ -49,10 +49,10 @@ module SwaggyJenkinsClient
49
49
  # Attribute type mapping.
50
50
  def self.openapi_types
51
51
  {
52
- :'runs' => :'Link',
53
52
  :'_self' => :'Link',
54
- :'queue' => :'Link',
55
53
  :'actions' => :'Link',
54
+ :'runs' => :'Link',
55
+ :'queue' => :'Link',
56
56
  :'_class' => :'String'
57
57
  }
58
58
  end
@@ -79,22 +79,22 @@ module SwaggyJenkinsClient
79
79
  h[k.to_sym] = v
80
80
  }
81
81
 
82
- if attributes.key?(:'runs')
83
- self.runs = attributes[:'runs']
84
- end
85
-
86
82
  if attributes.key?(:'_self')
87
83
  self._self = attributes[:'_self']
88
84
  end
89
85
 
90
- if attributes.key?(:'queue')
91
- self.queue = attributes[:'queue']
92
- end
93
-
94
86
  if attributes.key?(:'actions')
95
87
  self.actions = attributes[:'actions']
96
88
  end
97
89
 
90
+ if attributes.key?(:'runs')
91
+ self.runs = attributes[:'runs']
92
+ end
93
+
94
+ if attributes.key?(:'queue')
95
+ self.queue = attributes[:'queue']
96
+ end
97
+
98
98
  if attributes.key?(:'_class')
99
99
  self._class = attributes[:'_class']
100
100
  end
@@ -120,10 +120,10 @@ module SwaggyJenkinsClient
120
120
  def ==(o)
121
121
  return true if self.equal?(o)
122
122
  self.class == o.class &&
123
- runs == o.runs &&
124
123
  _self == o._self &&
125
- queue == o.queue &&
126
124
  actions == o.actions &&
125
+ runs == o.runs &&
126
+ queue == o.queue &&
127
127
  _class == o._class
128
128
  end
129
129
 
@@ -136,7 +136,7 @@ module SwaggyJenkinsClient
136
136
  # Calculates hash code according to all attributes.
137
137
  # @return [Integer] Hash code
138
138
  def hash
139
- [runs, _self, queue, actions, _class].hash
139
+ [_self, actions, runs, queue, _class].hash
140
140
  end
141
141
 
142
142
  # Builds the object from hash
@@ -162,61 +162,6 @@ module SwaggyJenkinsClient
162
162
  new(transformed_hash)
163
163
  end
164
164
 
165
- # Deserializes the data based on type
166
- # @param string type Data type
167
- # @param string value Value to be deserialized
168
- # @return [Object] Deserialized data
169
- def self._deserialize(type, value)
170
- case type.to_sym
171
- when :Time
172
- Time.parse(value)
173
- when :Date
174
- Date.parse(value)
175
- when :String
176
- value.to_s
177
- when :Integer
178
- value.to_i
179
- when :Float
180
- value.to_f
181
- when :Boolean
182
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
183
- true
184
- else
185
- false
186
- end
187
- when :Object
188
- # generic object (usually a Hash), return directly
189
- value
190
- when /\AArray<(?<inner_type>.+)>\z/
191
- inner_type = Regexp.last_match[:inner_type]
192
- value.map { |v| _deserialize(inner_type, v) }
193
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
194
- k_type = Regexp.last_match[:k_type]
195
- v_type = Regexp.last_match[:v_type]
196
- {}.tap do |hash|
197
- value.each do |k, v|
198
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
199
- end
200
- end
201
- else # model
202
- # models (e.g. Pet) or oneOf
203
- klass = SwaggyJenkinsClient.const_get(type)
204
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
205
- end
206
- end
207
-
208
- # Returns the string representation of the object
209
- # @return [String] String presentation of the object
210
- def to_s
211
- to_hash.to_s
212
- end
213
-
214
- # to_body is an alias to to_hash (backward compatibility)
215
- # @return [Hash] Returns the object in the form of hash
216
- def to_body
217
- to_hash
218
- end
219
-
220
165
  # Returns the object in the form of hash
221
166
  # @return [Hash] Returns the object in the form of hash
222
167
  def to_hash
@@ -233,24 +178,6 @@ module SwaggyJenkinsClient
233
178
  hash
234
179
  end
235
180
 
236
- # Outputs non-array value in the form of hash
237
- # For object, use to_hash. Otherwise, just return the value
238
- # @param [Object] value Any valid value
239
- # @return [Hash] Returns the value in the form of hash
240
- def _to_hash(value)
241
- if value.is_a?(Array)
242
- value.compact.map { |v| _to_hash(v) }
243
- elsif value.is_a?(Hash)
244
- {}.tap do |hash|
245
- value.each { |k, v| hash[k] = _to_hash(v) }
246
- end
247
- elsif value.respond_to? :to_hash
248
- value.to_hash
249
- else
250
- value
251
- end
252
- end
253
-
254
181
  end
255
182
 
256
183
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Jenkins API clients generated from Swagger / Open API specification
5
5
 
6
- The version of the OpenAPI document: 3.2.0
6
+ The version of the OpenAPI document: 3.3.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
9
+ Generator version: 7.18.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SwaggyJenkinsClient
17
- class PipelineRun
17
+ class PipelineRun < ApiModelBase
18
18
  attr_accessor :_class
19
19
 
20
20
  attr_accessor :artifacts
@@ -254,61 +254,6 @@ module SwaggyJenkinsClient
254
254
  new(transformed_hash)
255
255
  end
256
256
 
257
- # Deserializes the data based on type
258
- # @param string type Data type
259
- # @param string value Value to be deserialized
260
- # @return [Object] Deserialized data
261
- def self._deserialize(type, value)
262
- case type.to_sym
263
- when :Time
264
- Time.parse(value)
265
- when :Date
266
- Date.parse(value)
267
- when :String
268
- value.to_s
269
- when :Integer
270
- value.to_i
271
- when :Float
272
- value.to_f
273
- when :Boolean
274
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
275
- true
276
- else
277
- false
278
- end
279
- when :Object
280
- # generic object (usually a Hash), return directly
281
- value
282
- when /\AArray<(?<inner_type>.+)>\z/
283
- inner_type = Regexp.last_match[:inner_type]
284
- value.map { |v| _deserialize(inner_type, v) }
285
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
286
- k_type = Regexp.last_match[:k_type]
287
- v_type = Regexp.last_match[:v_type]
288
- {}.tap do |hash|
289
- value.each do |k, v|
290
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
291
- end
292
- end
293
- else # model
294
- # models (e.g. Pet) or oneOf
295
- klass = SwaggyJenkinsClient.const_get(type)
296
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
297
- end
298
- end
299
-
300
- # Returns the string representation of the object
301
- # @return [String] String presentation of the object
302
- def to_s
303
- to_hash.to_s
304
- end
305
-
306
- # to_body is an alias to to_hash (backward compatibility)
307
- # @return [Hash] Returns the object in the form of hash
308
- def to_body
309
- to_hash
310
- end
311
-
312
257
  # Returns the object in the form of hash
313
258
  # @return [Hash] Returns the object in the form of hash
314
259
  def to_hash
@@ -325,24 +270,6 @@ module SwaggyJenkinsClient
325
270
  hash
326
271
  end
327
272
 
328
- # Outputs non-array value in the form of hash
329
- # For object, use to_hash. Otherwise, just return the value
330
- # @param [Object] value Any valid value
331
- # @return [Hash] Returns the value in the form of hash
332
- def _to_hash(value)
333
- if value.is_a?(Array)
334
- value.compact.map { |v| _to_hash(v) }
335
- elsif value.is_a?(Hash)
336
- {}.tap do |hash|
337
- value.each { |k, v| hash[k] = _to_hash(v) }
338
- end
339
- elsif value.respond_to? :to_hash
340
- value.to_hash
341
- else
342
- value
343
- end
344
- end
345
-
346
273
  end
347
274
 
348
275
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Jenkins API clients generated from Swagger / Open API specification
5
5
 
6
- The version of the OpenAPI document: 3.2.0
6
+ The version of the OpenAPI document: 3.3.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
9
+ Generator version: 7.18.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SwaggyJenkinsClient
17
- class PipelineRunImpl
17
+ class PipelineRunImpl < ApiModelBase
18
18
  attr_accessor :_class
19
19
 
20
20
  attr_accessor :_links
@@ -252,61 +252,6 @@ module SwaggyJenkinsClient
252
252
  new(transformed_hash)
253
253
  end
254
254
 
255
- # Deserializes the data based on type
256
- # @param string type Data type
257
- # @param string value Value to be deserialized
258
- # @return [Object] Deserialized data
259
- def self._deserialize(type, value)
260
- case type.to_sym
261
- when :Time
262
- Time.parse(value)
263
- when :Date
264
- Date.parse(value)
265
- when :String
266
- value.to_s
267
- when :Integer
268
- value.to_i
269
- when :Float
270
- value.to_f
271
- when :Boolean
272
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
273
- true
274
- else
275
- false
276
- end
277
- when :Object
278
- # generic object (usually a Hash), return directly
279
- value
280
- when /\AArray<(?<inner_type>.+)>\z/
281
- inner_type = Regexp.last_match[:inner_type]
282
- value.map { |v| _deserialize(inner_type, v) }
283
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
284
- k_type = Regexp.last_match[:k_type]
285
- v_type = Regexp.last_match[:v_type]
286
- {}.tap do |hash|
287
- value.each do |k, v|
288
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
289
- end
290
- end
291
- else # model
292
- # models (e.g. Pet) or oneOf
293
- klass = SwaggyJenkinsClient.const_get(type)
294
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
295
- end
296
- end
297
-
298
- # Returns the string representation of the object
299
- # @return [String] String presentation of the object
300
- def to_s
301
- to_hash.to_s
302
- end
303
-
304
- # to_body is an alias to to_hash (backward compatibility)
305
- # @return [Hash] Returns the object in the form of hash
306
- def to_body
307
- to_hash
308
- end
309
-
310
255
  # Returns the object in the form of hash
311
256
  # @return [Hash] Returns the object in the form of hash
312
257
  def to_hash
@@ -323,24 +268,6 @@ module SwaggyJenkinsClient
323
268
  hash
324
269
  end
325
270
 
326
- # Outputs non-array value in the form of hash
327
- # For object, use to_hash. Otherwise, just return the value
328
- # @param [Object] value Any valid value
329
- # @return [Hash] Returns the value in the form of hash
330
- def _to_hash(value)
331
- if value.is_a?(Array)
332
- value.compact.map { |v| _to_hash(v) }
333
- elsif value.is_a?(Hash)
334
- {}.tap do |hash|
335
- value.each { |k, v| hash[k] = _to_hash(v) }
336
- end
337
- elsif value.respond_to? :to_hash
338
- value.to_hash
339
- else
340
- value
341
- end
342
- end
343
-
344
271
  end
345
272
 
346
273
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Jenkins API clients generated from Swagger / Open API specification
5
5
 
6
- The version of the OpenAPI document: 3.2.0
6
+ The version of the OpenAPI document: 3.3.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
9
+ Generator version: 7.18.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SwaggyJenkinsClient
17
- class PipelineRunImpllinks
17
+ class PipelineRunImpllinks < ApiModelBase
18
18
  attr_accessor :nodes
19
19
 
20
20
  attr_accessor :log
@@ -171,61 +171,6 @@ module SwaggyJenkinsClient
171
171
  new(transformed_hash)
172
172
  end
173
173
 
174
- # Deserializes the data based on type
175
- # @param string type Data type
176
- # @param string value Value to be deserialized
177
- # @return [Object] Deserialized data
178
- def self._deserialize(type, value)
179
- case type.to_sym
180
- when :Time
181
- Time.parse(value)
182
- when :Date
183
- Date.parse(value)
184
- when :String
185
- value.to_s
186
- when :Integer
187
- value.to_i
188
- when :Float
189
- value.to_f
190
- when :Boolean
191
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
- true
193
- else
194
- false
195
- end
196
- when :Object
197
- # generic object (usually a Hash), return directly
198
- value
199
- when /\AArray<(?<inner_type>.+)>\z/
200
- inner_type = Regexp.last_match[:inner_type]
201
- value.map { |v| _deserialize(inner_type, v) }
202
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
- k_type = Regexp.last_match[:k_type]
204
- v_type = Regexp.last_match[:v_type]
205
- {}.tap do |hash|
206
- value.each do |k, v|
207
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
- end
209
- end
210
- else # model
211
- # models (e.g. Pet) or oneOf
212
- klass = SwaggyJenkinsClient.const_get(type)
213
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
214
- end
215
- end
216
-
217
- # Returns the string representation of the object
218
- # @return [String] String presentation of the object
219
- def to_s
220
- to_hash.to_s
221
- end
222
-
223
- # to_body is an alias to to_hash (backward compatibility)
224
- # @return [Hash] Returns the object in the form of hash
225
- def to_body
226
- to_hash
227
- end
228
-
229
174
  # Returns the object in the form of hash
230
175
  # @return [Hash] Returns the object in the form of hash
231
176
  def to_hash
@@ -242,24 +187,6 @@ module SwaggyJenkinsClient
242
187
  hash
243
188
  end
244
189
 
245
- # Outputs non-array value in the form of hash
246
- # For object, use to_hash. Otherwise, just return the value
247
- # @param [Object] value Any valid value
248
- # @return [Hash] Returns the value in the form of hash
249
- def _to_hash(value)
250
- if value.is_a?(Array)
251
- value.compact.map { |v| _to_hash(v) }
252
- elsif value.is_a?(Hash)
253
- {}.tap do |hash|
254
- value.each { |k, v| hash[k] = _to_hash(v) }
255
- end
256
- elsif value.respond_to? :to_hash
257
- value.to_hash
258
- else
259
- value
260
- end
261
- end
262
-
263
190
  end
264
191
 
265
192
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Jenkins API clients generated from Swagger / Open API specification
5
5
 
6
- The version of the OpenAPI document: 3.2.0
6
+ The version of the OpenAPI document: 3.3.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
9
+ Generator version: 7.18.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SwaggyJenkinsClient
17
- class PipelineRunNode
17
+ class PipelineRunNode < ApiModelBase
18
18
  attr_accessor :_class
19
19
 
20
20
  attr_accessor :display_name
@@ -191,61 +191,6 @@ module SwaggyJenkinsClient
191
191
  new(transformed_hash)
192
192
  end
193
193
 
194
- # Deserializes the data based on type
195
- # @param string type Data type
196
- # @param string value Value to be deserialized
197
- # @return [Object] Deserialized data
198
- def self._deserialize(type, value)
199
- case type.to_sym
200
- when :Time
201
- Time.parse(value)
202
- when :Date
203
- Date.parse(value)
204
- when :String
205
- value.to_s
206
- when :Integer
207
- value.to_i
208
- when :Float
209
- value.to_f
210
- when :Boolean
211
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
212
- true
213
- else
214
- false
215
- end
216
- when :Object
217
- # generic object (usually a Hash), return directly
218
- value
219
- when /\AArray<(?<inner_type>.+)>\z/
220
- inner_type = Regexp.last_match[:inner_type]
221
- value.map { |v| _deserialize(inner_type, v) }
222
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
223
- k_type = Regexp.last_match[:k_type]
224
- v_type = Regexp.last_match[:v_type]
225
- {}.tap do |hash|
226
- value.each do |k, v|
227
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
228
- end
229
- end
230
- else # model
231
- # models (e.g. Pet) or oneOf
232
- klass = SwaggyJenkinsClient.const_get(type)
233
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
234
- end
235
- end
236
-
237
- # Returns the string representation of the object
238
- # @return [String] String presentation of the object
239
- def to_s
240
- to_hash.to_s
241
- end
242
-
243
- # to_body is an alias to to_hash (backward compatibility)
244
- # @return [Hash] Returns the object in the form of hash
245
- def to_body
246
- to_hash
247
- end
248
-
249
194
  # Returns the object in the form of hash
250
195
  # @return [Hash] Returns the object in the form of hash
251
196
  def to_hash
@@ -262,24 +207,6 @@ module SwaggyJenkinsClient
262
207
  hash
263
208
  end
264
209
 
265
- # Outputs non-array value in the form of hash
266
- # For object, use to_hash. Otherwise, just return the value
267
- # @param [Object] value Any valid value
268
- # @return [Hash] Returns the value in the form of hash
269
- def _to_hash(value)
270
- if value.is_a?(Array)
271
- value.compact.map { |v| _to_hash(v) }
272
- elsif value.is_a?(Hash)
273
- {}.tap do |hash|
274
- value.each { |k, v| hash[k] = _to_hash(v) }
275
- end
276
- elsif value.respond_to? :to_hash
277
- value.to_hash
278
- else
279
- value
280
- end
281
- end
282
-
283
210
  end
284
211
 
285
212
  end