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,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SwaggyJenkinsClient
17
- class InputStepImpl
17
+ class InputStepImpl < ApiModelBase
18
18
  attr_accessor :_class
19
19
 
20
20
  attr_accessor :_links
@@ -182,61 +182,6 @@ module SwaggyJenkinsClient
182
182
  new(transformed_hash)
183
183
  end
184
184
 
185
- # Deserializes the data based on type
186
- # @param string type Data type
187
- # @param string value Value to be deserialized
188
- # @return [Object] Deserialized data
189
- def self._deserialize(type, value)
190
- case type.to_sym
191
- when :Time
192
- Time.parse(value)
193
- when :Date
194
- Date.parse(value)
195
- when :String
196
- value.to_s
197
- when :Integer
198
- value.to_i
199
- when :Float
200
- value.to_f
201
- when :Boolean
202
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
203
- true
204
- else
205
- false
206
- end
207
- when :Object
208
- # generic object (usually a Hash), return directly
209
- value
210
- when /\AArray<(?<inner_type>.+)>\z/
211
- inner_type = Regexp.last_match[:inner_type]
212
- value.map { |v| _deserialize(inner_type, v) }
213
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
214
- k_type = Regexp.last_match[:k_type]
215
- v_type = Regexp.last_match[:v_type]
216
- {}.tap do |hash|
217
- value.each do |k, v|
218
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
219
- end
220
- end
221
- else # model
222
- # models (e.g. Pet) or oneOf
223
- klass = SwaggyJenkinsClient.const_get(type)
224
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
225
- end
226
- end
227
-
228
- # Returns the string representation of the object
229
- # @return [String] String presentation of the object
230
- def to_s
231
- to_hash.to_s
232
- end
233
-
234
- # to_body is an alias to to_hash (backward compatibility)
235
- # @return [Hash] Returns the object in the form of hash
236
- def to_body
237
- to_hash
238
- end
239
-
240
185
  # Returns the object in the form of hash
241
186
  # @return [Hash] Returns the object in the form of hash
242
187
  def to_hash
@@ -253,24 +198,6 @@ module SwaggyJenkinsClient
253
198
  hash
254
199
  end
255
200
 
256
- # Outputs non-array value in the form of hash
257
- # For object, use to_hash. Otherwise, just return the value
258
- # @param [Object] value Any valid value
259
- # @return [Hash] Returns the value in the form of hash
260
- def _to_hash(value)
261
- if value.is_a?(Array)
262
- value.compact.map { |v| _to_hash(v) }
263
- elsif value.is_a?(Hash)
264
- {}.tap do |hash|
265
- value.each { |k, v| hash[k] = _to_hash(v) }
266
- end
267
- elsif value.respond_to? :to_hash
268
- value.to_hash
269
- else
270
- value
271
- end
272
- end
273
-
274
201
  end
275
202
 
276
203
  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 InputStepImpllinks
17
+ class InputStepImpllinks < ApiModelBase
18
18
  attr_accessor :_self
19
19
 
20
20
  attr_accessor :_class
@@ -135,61 +135,6 @@ module SwaggyJenkinsClient
135
135
  new(transformed_hash)
136
136
  end
137
137
 
138
- # Deserializes the data based on type
139
- # @param string type Data type
140
- # @param string value Value to be deserialized
141
- # @return [Object] Deserialized data
142
- def self._deserialize(type, value)
143
- case type.to_sym
144
- when :Time
145
- Time.parse(value)
146
- when :Date
147
- Date.parse(value)
148
- when :String
149
- value.to_s
150
- when :Integer
151
- value.to_i
152
- when :Float
153
- value.to_f
154
- when :Boolean
155
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
- true
157
- else
158
- false
159
- end
160
- when :Object
161
- # generic object (usually a Hash), return directly
162
- value
163
- when /\AArray<(?<inner_type>.+)>\z/
164
- inner_type = Regexp.last_match[:inner_type]
165
- value.map { |v| _deserialize(inner_type, v) }
166
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
- k_type = Regexp.last_match[:k_type]
168
- v_type = Regexp.last_match[:v_type]
169
- {}.tap do |hash|
170
- value.each do |k, v|
171
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
- end
173
- end
174
- else # model
175
- # models (e.g. Pet) or oneOf
176
- klass = SwaggyJenkinsClient.const_get(type)
177
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
- end
179
- end
180
-
181
- # Returns the string representation of the object
182
- # @return [String] String presentation of the object
183
- def to_s
184
- to_hash.to_s
185
- end
186
-
187
- # to_body is an alias to to_hash (backward compatibility)
188
- # @return [Hash] Returns the object in the form of hash
189
- def to_body
190
- to_hash
191
- end
192
-
193
138
  # Returns the object in the form of hash
194
139
  # @return [Hash] Returns the object in the form of hash
195
140
  def to_hash
@@ -206,24 +151,6 @@ module SwaggyJenkinsClient
206
151
  hash
207
152
  end
208
153
 
209
- # Outputs non-array value in the form of hash
210
- # For object, use to_hash. Otherwise, just return the value
211
- # @param [Object] value Any valid value
212
- # @return [Hash] Returns the value in the form of hash
213
- def _to_hash(value)
214
- if value.is_a?(Array)
215
- value.compact.map { |v| _to_hash(v) }
216
- elsif value.is_a?(Hash)
217
- {}.tap do |hash|
218
- value.each { |k, v| hash[k] = _to_hash(v) }
219
- end
220
- elsif value.respond_to? :to_hash
221
- value.to_hash
222
- else
223
- value
224
- end
225
- end
226
-
227
154
  end
228
155
 
229
156
  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 Label1
17
+ class Label1 < ApiModelBase
18
18
  attr_accessor :_class
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -126,61 +126,6 @@ module SwaggyJenkinsClient
126
126
  new(transformed_hash)
127
127
  end
128
128
 
129
- # Deserializes the data based on type
130
- # @param string type Data type
131
- # @param string value Value to be deserialized
132
- # @return [Object] Deserialized data
133
- def self._deserialize(type, value)
134
- case type.to_sym
135
- when :Time
136
- Time.parse(value)
137
- when :Date
138
- Date.parse(value)
139
- when :String
140
- value.to_s
141
- when :Integer
142
- value.to_i
143
- when :Float
144
- value.to_f
145
- when :Boolean
146
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
- true
148
- else
149
- false
150
- end
151
- when :Object
152
- # generic object (usually a Hash), return directly
153
- value
154
- when /\AArray<(?<inner_type>.+)>\z/
155
- inner_type = Regexp.last_match[:inner_type]
156
- value.map { |v| _deserialize(inner_type, v) }
157
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
- k_type = Regexp.last_match[:k_type]
159
- v_type = Regexp.last_match[:v_type]
160
- {}.tap do |hash|
161
- value.each do |k, v|
162
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
- end
164
- end
165
- else # model
166
- # models (e.g. Pet) or oneOf
167
- klass = SwaggyJenkinsClient.const_get(type)
168
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
169
- end
170
- end
171
-
172
- # Returns the string representation of the object
173
- # @return [String] String presentation of the object
174
- def to_s
175
- to_hash.to_s
176
- end
177
-
178
- # to_body is an alias to to_hash (backward compatibility)
179
- # @return [Hash] Returns the object in the form of hash
180
- def to_body
181
- to_hash
182
- end
183
-
184
129
  # Returns the object in the form of hash
185
130
  # @return [Hash] Returns the object in the form of hash
186
131
  def to_hash
@@ -197,24 +142,6 @@ module SwaggyJenkinsClient
197
142
  hash
198
143
  end
199
144
 
200
- # Outputs non-array value in the form of hash
201
- # For object, use to_hash. Otherwise, just return the value
202
- # @param [Object] value Any valid value
203
- # @return [Hash] Returns the value in the form of hash
204
- def _to_hash(value)
205
- if value.is_a?(Array)
206
- value.compact.map { |v| _to_hash(v) }
207
- elsif value.is_a?(Hash)
208
- {}.tap do |hash|
209
- value.each { |k, v| hash[k] = _to_hash(v) }
210
- end
211
- elsif value.respond_to? :to_hash
212
- value.to_hash
213
- else
214
- value
215
- end
216
- end
217
-
218
145
  end
219
146
 
220
147
  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 Link
17
+ class Link < ApiModelBase
18
18
  attr_accessor :_class
19
19
 
20
20
  attr_accessor :href
@@ -135,61 +135,6 @@ module SwaggyJenkinsClient
135
135
  new(transformed_hash)
136
136
  end
137
137
 
138
- # Deserializes the data based on type
139
- # @param string type Data type
140
- # @param string value Value to be deserialized
141
- # @return [Object] Deserialized data
142
- def self._deserialize(type, value)
143
- case type.to_sym
144
- when :Time
145
- Time.parse(value)
146
- when :Date
147
- Date.parse(value)
148
- when :String
149
- value.to_s
150
- when :Integer
151
- value.to_i
152
- when :Float
153
- value.to_f
154
- when :Boolean
155
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
- true
157
- else
158
- false
159
- end
160
- when :Object
161
- # generic object (usually a Hash), return directly
162
- value
163
- when /\AArray<(?<inner_type>.+)>\z/
164
- inner_type = Regexp.last_match[:inner_type]
165
- value.map { |v| _deserialize(inner_type, v) }
166
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
- k_type = Regexp.last_match[:k_type]
168
- v_type = Regexp.last_match[:v_type]
169
- {}.tap do |hash|
170
- value.each do |k, v|
171
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
- end
173
- end
174
- else # model
175
- # models (e.g. Pet) or oneOf
176
- klass = SwaggyJenkinsClient.const_get(type)
177
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
- end
179
- end
180
-
181
- # Returns the string representation of the object
182
- # @return [String] String presentation of the object
183
- def to_s
184
- to_hash.to_s
185
- end
186
-
187
- # to_body is an alias to to_hash (backward compatibility)
188
- # @return [Hash] Returns the object in the form of hash
189
- def to_body
190
- to_hash
191
- end
192
-
193
138
  # Returns the object in the form of hash
194
139
  # @return [Hash] Returns the object in the form of hash
195
140
  def to_hash
@@ -206,24 +151,6 @@ module SwaggyJenkinsClient
206
151
  hash
207
152
  end
208
153
 
209
- # Outputs non-array value in the form of hash
210
- # For object, use to_hash. Otherwise, just return the value
211
- # @param [Object] value Any valid value
212
- # @return [Hash] Returns the value in the form of hash
213
- def _to_hash(value)
214
- if value.is_a?(Array)
215
- value.compact.map { |v| _to_hash(v) }
216
- elsif value.is_a?(Hash)
217
- {}.tap do |hash|
218
- value.each { |k, v| hash[k] = _to_hash(v) }
219
- end
220
- elsif value.respond_to? :to_hash
221
- value.to_hash
222
- else
223
- value
224
- end
225
- end
226
-
227
154
  end
228
155
 
229
156
  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 ListView
17
+ class ListView < ApiModelBase
18
18
  attr_accessor :_class
19
19
 
20
20
  attr_accessor :description
@@ -164,61 +164,6 @@ module SwaggyJenkinsClient
164
164
  new(transformed_hash)
165
165
  end
166
166
 
167
- # Deserializes the data based on type
168
- # @param string type Data type
169
- # @param string value Value to be deserialized
170
- # @return [Object] Deserialized data
171
- def self._deserialize(type, value)
172
- case type.to_sym
173
- when :Time
174
- Time.parse(value)
175
- when :Date
176
- Date.parse(value)
177
- when :String
178
- value.to_s
179
- when :Integer
180
- value.to_i
181
- when :Float
182
- value.to_f
183
- when :Boolean
184
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
185
- true
186
- else
187
- false
188
- end
189
- when :Object
190
- # generic object (usually a Hash), return directly
191
- value
192
- when /\AArray<(?<inner_type>.+)>\z/
193
- inner_type = Regexp.last_match[:inner_type]
194
- value.map { |v| _deserialize(inner_type, v) }
195
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
196
- k_type = Regexp.last_match[:k_type]
197
- v_type = Regexp.last_match[:v_type]
198
- {}.tap do |hash|
199
- value.each do |k, v|
200
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
201
- end
202
- end
203
- else # model
204
- # models (e.g. Pet) or oneOf
205
- klass = SwaggyJenkinsClient.const_get(type)
206
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
207
- end
208
- end
209
-
210
- # Returns the string representation of the object
211
- # @return [String] String presentation of the object
212
- def to_s
213
- to_hash.to_s
214
- end
215
-
216
- # to_body is an alias to to_hash (backward compatibility)
217
- # @return [Hash] Returns the object in the form of hash
218
- def to_body
219
- to_hash
220
- end
221
-
222
167
  # Returns the object in the form of hash
223
168
  # @return [Hash] Returns the object in the form of hash
224
169
  def to_hash
@@ -235,24 +180,6 @@ module SwaggyJenkinsClient
235
180
  hash
236
181
  end
237
182
 
238
- # Outputs non-array value in the form of hash
239
- # For object, use to_hash. Otherwise, just return the value
240
- # @param [Object] value Any valid value
241
- # @return [Hash] Returns the value in the form of hash
242
- def _to_hash(value)
243
- if value.is_a?(Array)
244
- value.compact.map { |v| _to_hash(v) }
245
- elsif value.is_a?(Hash)
246
- {}.tap do |hash|
247
- value.each { |k, v| hash[k] = _to_hash(v) }
248
- end
249
- elsif value.respond_to? :to_hash
250
- value.to_hash
251
- else
252
- value
253
- end
254
- end
255
-
256
183
  end
257
184
 
258
185
  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 MultibranchPipeline
17
+ class MultibranchPipeline < ApiModelBase
18
18
  attr_accessor :display_name
19
19
 
20
20
  attr_accessor :estimated_duration_in_millis
@@ -245,61 +245,6 @@ module SwaggyJenkinsClient
245
245
  new(transformed_hash)
246
246
  end
247
247
 
248
- # Deserializes the data based on type
249
- # @param string type Data type
250
- # @param string value Value to be deserialized
251
- # @return [Object] Deserialized data
252
- def self._deserialize(type, value)
253
- case type.to_sym
254
- when :Time
255
- Time.parse(value)
256
- when :Date
257
- Date.parse(value)
258
- when :String
259
- value.to_s
260
- when :Integer
261
- value.to_i
262
- when :Float
263
- value.to_f
264
- when :Boolean
265
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
266
- true
267
- else
268
- false
269
- end
270
- when :Object
271
- # generic object (usually a Hash), return directly
272
- value
273
- when /\AArray<(?<inner_type>.+)>\z/
274
- inner_type = Regexp.last_match[:inner_type]
275
- value.map { |v| _deserialize(inner_type, v) }
276
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
277
- k_type = Regexp.last_match[:k_type]
278
- v_type = Regexp.last_match[:v_type]
279
- {}.tap do |hash|
280
- value.each do |k, v|
281
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
282
- end
283
- end
284
- else # model
285
- # models (e.g. Pet) or oneOf
286
- klass = SwaggyJenkinsClient.const_get(type)
287
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
288
- end
289
- end
290
-
291
- # Returns the string representation of the object
292
- # @return [String] String presentation of the object
293
- def to_s
294
- to_hash.to_s
295
- end
296
-
297
- # to_body is an alias to to_hash (backward compatibility)
298
- # @return [Hash] Returns the object in the form of hash
299
- def to_body
300
- to_hash
301
- end
302
-
303
248
  # Returns the object in the form of hash
304
249
  # @return [Hash] Returns the object in the form of hash
305
250
  def to_hash
@@ -316,24 +261,6 @@ module SwaggyJenkinsClient
316
261
  hash
317
262
  end
318
263
 
319
- # Outputs non-array value in the form of hash
320
- # For object, use to_hash. Otherwise, just return the value
321
- # @param [Object] value Any valid value
322
- # @return [Hash] Returns the value in the form of hash
323
- def _to_hash(value)
324
- if value.is_a?(Array)
325
- value.compact.map { |v| _to_hash(v) }
326
- elsif value.is_a?(Hash)
327
- {}.tap do |hash|
328
- value.each { |k, v| hash[k] = _to_hash(v) }
329
- end
330
- elsif value.respond_to? :to_hash
331
- value.to_hash
332
- else
333
- value
334
- end
335
- end
336
-
337
264
  end
338
265
 
339
266
  end