swaggy_jenkins 3.0.1 → 3.1.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 (189) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +23 -21
  3. data/README.md +6 -6
  4. data/bin/bundle +1 -1
  5. data/bin/byebug +1 -1
  6. data/bin/coderay +1 -1
  7. data/bin/htmldiff +1 -1
  8. data/bin/ldiff +1 -1
  9. data/bin/pry +1 -1
  10. data/bin/racc +1 -1
  11. data/bin/rake +1 -1
  12. data/bin/rspec +1 -1
  13. data/bin/rubocop +1 -1
  14. data/bin/ruby-parse +1 -1
  15. data/bin/ruby-rewrite +1 -1
  16. data/lib/swaggy_jenkins/api/base_api.rb +3 -3
  17. data/lib/swaggy_jenkins/api/blue_ocean_api.rb +38 -38
  18. data/lib/swaggy_jenkins/api/remote_access_api.rb +15 -15
  19. data/lib/swaggy_jenkins/api_client.rb +11 -12
  20. data/lib/swaggy_jenkins/api_error.rb +2 -2
  21. data/lib/swaggy_jenkins/configuration.rb +13 -3
  22. data/lib/swaggy_jenkins/models/all_view.rb +11 -5
  23. data/lib/swaggy_jenkins/models/branch_impl.rb +11 -5
  24. data/lib/swaggy_jenkins/models/branch_impllinks.rb +11 -5
  25. data/lib/swaggy_jenkins/models/branch_implpermissions.rb +11 -5
  26. data/lib/swaggy_jenkins/models/cause_action.rb +11 -5
  27. data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +11 -5
  28. data/lib/swaggy_jenkins/models/classes_by_class.rb +11 -5
  29. data/lib/swaggy_jenkins/models/clock_difference.rb +11 -5
  30. data/lib/swaggy_jenkins/models/computer_set.rb +11 -5
  31. data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +11 -5
  32. data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +11 -5
  33. data/lib/swaggy_jenkins/models/empty_change_log_set.rb +11 -5
  34. data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +11 -5
  35. data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +11 -5
  36. data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +11 -5
  37. data/lib/swaggy_jenkins/models/extension_class_impl.rb +11 -5
  38. data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +11 -5
  39. data/lib/swaggy_jenkins/models/favorite_impl.rb +11 -5
  40. data/lib/swaggy_jenkins/models/favorite_impllinks.rb +11 -5
  41. data/lib/swaggy_jenkins/models/free_style_build.rb +11 -5
  42. data/lib/swaggy_jenkins/models/free_style_project.rb +11 -5
  43. data/lib/swaggy_jenkins/models/free_style_projectactions.rb +11 -5
  44. data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +11 -5
  45. data/lib/swaggy_jenkins/models/generic_resource.rb +11 -5
  46. data/lib/swaggy_jenkins/models/github_content.rb +11 -5
  47. data/lib/swaggy_jenkins/models/github_file.rb +11 -5
  48. data/lib/swaggy_jenkins/models/github_organization.rb +11 -5
  49. data/lib/swaggy_jenkins/models/github_organizationlinks.rb +11 -5
  50. data/lib/swaggy_jenkins/models/github_repositories.rb +11 -5
  51. data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +11 -5
  52. data/lib/swaggy_jenkins/models/github_repository.rb +11 -5
  53. data/lib/swaggy_jenkins/models/github_repositorylinks.rb +11 -5
  54. data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +11 -5
  55. data/lib/swaggy_jenkins/models/github_respository_container.rb +11 -5
  56. data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +11 -5
  57. data/lib/swaggy_jenkins/models/github_scm.rb +11 -5
  58. data/lib/swaggy_jenkins/models/github_scmlinks.rb +11 -5
  59. data/lib/swaggy_jenkins/models/hudson.rb +11 -5
  60. data/lib/swaggy_jenkins/models/hudson_master_computer.rb +11 -5
  61. data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +11 -5
  62. data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +11 -5
  63. data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +11 -5
  64. data/lib/swaggy_jenkins/models/input_step_impl.rb +11 -5
  65. data/lib/swaggy_jenkins/models/input_step_impllinks.rb +11 -5
  66. data/lib/swaggy_jenkins/models/label1.rb +11 -5
  67. data/lib/swaggy_jenkins/models/link.rb +11 -5
  68. data/lib/swaggy_jenkins/models/list_view.rb +11 -5
  69. data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +11 -5
  70. data/lib/swaggy_jenkins/models/null_scm.rb +11 -5
  71. data/lib/swaggy_jenkins/models/organisation.rb +11 -5
  72. data/lib/swaggy_jenkins/models/pipeline.rb +11 -5
  73. data/lib/swaggy_jenkins/models/pipeline_activity.rb +11 -5
  74. data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +11 -5
  75. data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +11 -5
  76. data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +11 -5
  77. data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +11 -5
  78. data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +11 -5
  79. data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +11 -5
  80. data/lib/swaggy_jenkins/models/pipeline_impl.rb +11 -5
  81. data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +11 -5
  82. data/lib/swaggy_jenkins/models/pipeline_run.rb +11 -5
  83. data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +11 -5
  84. data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +11 -5
  85. data/lib/swaggy_jenkins/models/pipeline_run_node.rb +11 -5
  86. data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +11 -5
  87. data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +11 -5
  88. data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +11 -5
  89. data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +11 -5
  90. data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +11 -5
  91. data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +11 -5
  92. data/lib/swaggy_jenkins/models/queue.rb +11 -5
  93. data/lib/swaggy_jenkins/models/queue_blocked_item.rb +11 -5
  94. data/lib/swaggy_jenkins/models/queue_item_impl.rb +11 -5
  95. data/lib/swaggy_jenkins/models/queue_left_item.rb +11 -5
  96. data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +11 -5
  97. data/lib/swaggy_jenkins/models/string_parameter_definition.rb +11 -5
  98. data/lib/swaggy_jenkins/models/string_parameter_value.rb +11 -5
  99. data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +11 -5
  100. data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +11 -5
  101. data/lib/swaggy_jenkins/models/user.rb +11 -5
  102. data/lib/swaggy_jenkins/version.rb +3 -3
  103. data/lib/swaggy_jenkins.rb +2 -2
  104. data/spec/api/base_api_spec.rb +2 -2
  105. data/spec/api/blue_ocean_api_spec.rb +2 -2
  106. data/spec/api/remote_access_api_spec.rb +2 -2
  107. data/spec/models/all_view_spec.rb +2 -2
  108. data/spec/models/branch_impl_spec.rb +2 -2
  109. data/spec/models/branch_impllinks_spec.rb +2 -2
  110. data/spec/models/branch_implpermissions_spec.rb +2 -2
  111. data/spec/models/cause_action_spec.rb +2 -2
  112. data/spec/models/cause_user_id_cause_spec.rb +2 -2
  113. data/spec/models/classes_by_class_spec.rb +2 -2
  114. data/spec/models/clock_difference_spec.rb +2 -2
  115. data/spec/models/computer_set_spec.rb +2 -2
  116. data/spec/models/default_crumb_issuer_spec.rb +2 -2
  117. data/spec/models/disk_space_monitor_descriptor_disk_space_spec.rb +2 -2
  118. data/spec/models/empty_change_log_set_spec.rb +2 -2
  119. data/spec/models/extension_class_container_impl1_spec.rb +2 -2
  120. data/spec/models/extension_class_container_impl1links_spec.rb +2 -2
  121. data/spec/models/extension_class_container_impl1map_spec.rb +2 -2
  122. data/spec/models/extension_class_impl_spec.rb +2 -2
  123. data/spec/models/extension_class_impllinks_spec.rb +2 -2
  124. data/spec/models/favorite_impl_spec.rb +2 -2
  125. data/spec/models/favorite_impllinks_spec.rb +2 -2
  126. data/spec/models/free_style_build_spec.rb +2 -2
  127. data/spec/models/free_style_project_spec.rb +2 -2
  128. data/spec/models/free_style_projectactions_spec.rb +2 -2
  129. data/spec/models/free_style_projecthealth_report_spec.rb +2 -2
  130. data/spec/models/generic_resource_spec.rb +2 -2
  131. data/spec/models/github_content_spec.rb +2 -2
  132. data/spec/models/github_file_spec.rb +2 -2
  133. data/spec/models/github_organization_spec.rb +2 -2
  134. data/spec/models/github_organizationlinks_spec.rb +2 -2
  135. data/spec/models/github_repositories_spec.rb +2 -2
  136. data/spec/models/github_repositorieslinks_spec.rb +2 -2
  137. data/spec/models/github_repository_spec.rb +2 -2
  138. data/spec/models/github_repositorylinks_spec.rb +2 -2
  139. data/spec/models/github_repositorypermissions_spec.rb +2 -2
  140. data/spec/models/github_respository_container_spec.rb +2 -2
  141. data/spec/models/github_respository_containerlinks_spec.rb +2 -2
  142. data/spec/models/github_scm_spec.rb +2 -2
  143. data/spec/models/github_scmlinks_spec.rb +2 -2
  144. data/spec/models/hudson_master_computer_spec.rb +2 -2
  145. data/spec/models/hudson_master_computerexecutors_spec.rb +2 -2
  146. data/spec/models/hudson_master_computermonitor_data_spec.rb +2 -2
  147. data/spec/models/hudson_spec.rb +2 -2
  148. data/spec/models/hudsonassigned_labels_spec.rb +2 -2
  149. data/spec/models/input_step_impl_spec.rb +2 -2
  150. data/spec/models/input_step_impllinks_spec.rb +2 -2
  151. data/spec/models/label1_spec.rb +2 -2
  152. data/spec/models/link_spec.rb +2 -2
  153. data/spec/models/list_view_spec.rb +2 -2
  154. data/spec/models/multibranch_pipeline_spec.rb +2 -2
  155. data/spec/models/null_scm_spec.rb +2 -2
  156. data/spec/models/organisation_spec.rb +2 -2
  157. data/spec/models/pipeline_activity_spec.rb +2 -2
  158. data/spec/models/pipeline_activityartifacts_spec.rb +2 -2
  159. data/spec/models/pipeline_branchesitem_spec.rb +2 -2
  160. data/spec/models/pipeline_branchesitemlatest_run_spec.rb +2 -2
  161. data/spec/models/pipeline_branchesitempull_request_spec.rb +2 -2
  162. data/spec/models/pipeline_branchesitempull_requestlinks_spec.rb +2 -2
  163. data/spec/models/pipeline_folder_impl_spec.rb +2 -2
  164. data/spec/models/pipeline_impl_spec.rb +2 -2
  165. data/spec/models/pipeline_impllinks_spec.rb +2 -2
  166. data/spec/models/pipeline_run_impl_spec.rb +2 -2
  167. data/spec/models/pipeline_run_impllinks_spec.rb +2 -2
  168. data/spec/models/pipeline_run_node_spec.rb +2 -2
  169. data/spec/models/pipeline_run_nodeedges_spec.rb +2 -2
  170. data/spec/models/pipeline_run_spec.rb +2 -2
  171. data/spec/models/pipeline_runartifacts_spec.rb +2 -2
  172. data/spec/models/pipeline_spec.rb +2 -2
  173. data/spec/models/pipeline_step_impl_spec.rb +2 -2
  174. data/spec/models/pipeline_step_impllinks_spec.rb +2 -2
  175. data/spec/models/pipelinelatest_run_spec.rb +2 -2
  176. data/spec/models/pipelinelatest_runartifacts_spec.rb +2 -2
  177. data/spec/models/queue_blocked_item_spec.rb +2 -2
  178. data/spec/models/queue_item_impl_spec.rb +2 -2
  179. data/spec/models/queue_left_item_spec.rb +2 -2
  180. data/spec/models/queue_spec.rb +2 -2
  181. data/spec/models/response_time_monitor_data_spec.rb +2 -2
  182. data/spec/models/string_parameter_definition_spec.rb +2 -2
  183. data/spec/models/string_parameter_value_spec.rb +2 -2
  184. data/spec/models/swap_space_monitor_memory_usage2_spec.rb +2 -2
  185. data/spec/models/unlabeled_load_statistics_spec.rb +2 -2
  186. data/spec/models/user_spec.rb +2 -2
  187. data/spec/spec_helper.rb +2 -2
  188. data/swaggy_jenkins.gemspec +2 -2
  189. metadata +72 -72
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -50,7 +50,7 @@ module SwaggyJenkinsClient
50
50
  # header parameters
51
51
  header_params = opts[:header_params] || {}
52
52
  # HTTP header 'Accept' (if needed)
53
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
54
54
 
55
55
  # form parameters
56
56
  form_params = opts[:form_params] || {}
@@ -105,7 +105,7 @@ module SwaggyJenkinsClient
105
105
  # header parameters
106
106
  header_params = opts[:header_params] || {}
107
107
  # HTTP header 'Accept' (if needed)
108
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
109
109
 
110
110
  # form parameters
111
111
  form_params = opts[:form_params] || {}
@@ -166,7 +166,7 @@ module SwaggyJenkinsClient
166
166
  # header parameters
167
167
  header_params = opts[:header_params] || {}
168
168
  # HTTP header 'Accept' (if needed)
169
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
169
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
170
170
 
171
171
  # form parameters
172
172
  form_params = opts[:form_params] || {}
@@ -227,7 +227,7 @@ module SwaggyJenkinsClient
227
227
  # header parameters
228
228
  header_params = opts[:header_params] || {}
229
229
  # HTTP header 'Accept' (if needed)
230
- header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
230
+ header_params['Accept'] = @api_client.select_header_accept(['text/xml']) unless header_params['Accept']
231
231
 
232
232
  # form parameters
233
233
  form_params = opts[:form_params] || {}
@@ -288,7 +288,7 @@ module SwaggyJenkinsClient
288
288
  # header parameters
289
289
  header_params = opts[:header_params] || {}
290
290
  # HTTP header 'Accept' (if needed)
291
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
291
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
292
292
 
293
293
  # form parameters
294
294
  form_params = opts[:form_params] || {}
@@ -415,7 +415,7 @@ module SwaggyJenkinsClient
415
415
  # header parameters
416
416
  header_params = opts[:header_params] || {}
417
417
  # HTTP header 'Accept' (if needed)
418
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
418
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
419
419
 
420
420
  # form parameters
421
421
  form_params = opts[:form_params] || {}
@@ -476,7 +476,7 @@ module SwaggyJenkinsClient
476
476
  # header parameters
477
477
  header_params = opts[:header_params] || {}
478
478
  # HTTP header 'Accept' (if needed)
479
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
479
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
480
480
 
481
481
  # form parameters
482
482
  form_params = opts[:form_params] || {}
@@ -537,7 +537,7 @@ module SwaggyJenkinsClient
537
537
  # header parameters
538
538
  header_params = opts[:header_params] || {}
539
539
  # HTTP header 'Accept' (if needed)
540
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
540
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
541
541
 
542
542
  # form parameters
543
543
  form_params = opts[:form_params] || {}
@@ -598,7 +598,7 @@ module SwaggyJenkinsClient
598
598
  # header parameters
599
599
  header_params = opts[:header_params] || {}
600
600
  # HTTP header 'Accept' (if needed)
601
- header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
601
+ header_params['Accept'] = @api_client.select_header_accept(['text/xml']) unless header_params['Accept']
602
602
 
603
603
  # form parameters
604
604
  form_params = opts[:form_params] || {}
@@ -725,7 +725,7 @@ module SwaggyJenkinsClient
725
725
  # header parameters
726
726
  header_params = opts[:header_params] || {}
727
727
  # HTTP header 'Accept' (if needed)
728
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
728
+ header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
729
729
  # HTTP header 'Content-Type'
730
730
  content_type = @api_client.select_header_content_type(['application/json'])
731
731
  if !content_type.nil?
@@ -800,7 +800,7 @@ module SwaggyJenkinsClient
800
800
  # header parameters
801
801
  header_params = opts[:header_params] || {}
802
802
  # HTTP header 'Accept' (if needed)
803
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
803
+ header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
804
804
  # HTTP header 'Content-Type'
805
805
  content_type = @api_client.select_header_content_type(['application/json'])
806
806
  if !content_type.nil?
@@ -948,7 +948,7 @@ module SwaggyJenkinsClient
948
948
  # header parameters
949
949
  header_params = opts[:header_params] || {}
950
950
  # HTTP header 'Accept' (if needed)
951
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
951
+ header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
952
952
  # HTTP header 'Content-Type'
953
953
  content_type = @api_client.select_header_content_type(['application/json'])
954
954
  if !content_type.nil?
@@ -1271,7 +1271,7 @@ module SwaggyJenkinsClient
1271
1271
  # header parameters
1272
1272
  header_params = opts[:header_params] || {}
1273
1273
  # HTTP header 'Accept' (if needed)
1274
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1274
+ header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept']
1275
1275
  # HTTP header 'Content-Type'
1276
1276
  content_type = @api_client.select_header_content_type(['application/json'])
1277
1277
  if !content_type.nil?
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -49,7 +49,8 @@ module SwaggyJenkinsClient
49
49
  # the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
50
50
  def call_api(http_method, path, opts = {})
51
51
  request = build_request(http_method, path, opts)
52
- tempfile = download_file(request) if opts[:return_type] == 'File'
52
+ tempfile = nil
53
+ (download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File'
53
54
  response = request.run
54
55
 
55
56
  if @config.debugging
@@ -188,19 +189,17 @@ module SwaggyJenkinsClient
188
189
  chunk.force_encoding(encoding)
189
190
  tempfile.write(chunk)
190
191
  end
191
- # run the request to ensure the tempfile is created successfully before returning it
192
- request.run
193
- if tempfile
192
+ request.on_complete do
193
+ if !tempfile
194
+ fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
195
+ end
194
196
  tempfile.close
195
197
  @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
196
198
  "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
197
199
  "will be deleted automatically with GC. It's also recommended to delete the temp file "\
198
200
  "explicitly with `tempfile.delete`"
199
- else
200
- fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
201
+ yield tempfile if block_given?
201
202
  end
202
-
203
- tempfile
204
203
  end
205
204
 
206
205
  # Check if the given MIME is a JSON MIME.
@@ -212,7 +211,7 @@ module SwaggyJenkinsClient
212
211
  # @param [String] mime MIME
213
212
  # @return [Boolean] True if the MIME is application/json
214
213
  def json_mime?(mime)
215
- (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
214
+ (mime == '*/*') || !(mime =~ /^Application\/.*json(?!p)(;.*)?/i).nil?
216
215
  end
217
216
 
218
217
  # Deserialize the response to the given return type.
@@ -291,7 +290,7 @@ module SwaggyJenkinsClient
291
290
  # @param [String] filename the filename to be sanitized
292
291
  # @return [String] the sanitized filename
293
292
  def sanitize_filename(filename)
294
- filename.gsub(/.*[\/\\]/, '')
293
+ filename.split(/[\/\\]/).last
295
294
  end
296
295
 
297
296
  def build_request_url(path, opts = {})
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -79,6 +79,14 @@ module SwaggyJenkinsClient
79
79
  # @return [true, false]
80
80
  attr_accessor :debugging
81
81
 
82
+ # Set this to ignore operation servers for the API client. This is useful when you need to
83
+ # send requests to a different server than the one specified in the OpenAPI document.
84
+ # Will default to the base url defined in the spec but can be overridden by setting
85
+ # `scheme`, `host`, `base_path` directly.
86
+ # Default to false.
87
+ # @return [true, false]
88
+ attr_accessor :ignore_operation_servers
89
+
82
90
  # Defines the logger used for debugging.
83
91
  # Default to `Rails.logger` (when in Rails) or logging to STDOUT.
84
92
  #
@@ -166,6 +174,7 @@ module SwaggyJenkinsClient
166
174
  @timeout = 0
167
175
  @params_encoding = nil
168
176
  @debugging = false
177
+ @ignore_operation_servers = false
169
178
  @inject_format = false
170
179
  @force_ending_format = false
171
180
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
@@ -200,6 +209,7 @@ module SwaggyJenkinsClient
200
209
 
201
210
  # Returns base URL for specified operation based on server settings
202
211
  def base_url(operation = nil)
212
+ return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
203
213
  if operation_server_settings.key?(operation) then
204
214
  index = server_operation_index.fetch(operation, server_index)
205
215
  server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
@@ -246,7 +256,7 @@ module SwaggyJenkinsClient
246
256
  type: 'api_key',
247
257
  in: 'header',
248
258
  key: 'Authorization',
249
- value: api_key_with_prefix('jwt_auth')
259
+ value: api_key_with_prefix('Authorization')
250
260
  },
251
261
  }
252
262
  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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -30,9 +30,14 @@ module SwaggyJenkinsClient
30
30
  }
31
31
  end
32
32
 
33
+ # Returns attribute mapping this model knows about
34
+ def self.acceptable_attribute_map
35
+ attribute_map
36
+ end
37
+
33
38
  # Returns all the JSON keys this model knows about
34
39
  def self.acceptable_attributes
35
- attribute_map.values
40
+ acceptable_attribute_map.values
36
41
  end
37
42
 
38
43
  # Attribute type mapping.
@@ -58,9 +63,10 @@ module SwaggyJenkinsClient
58
63
  end
59
64
 
60
65
  # check to see if the attribute exists and convert string to symbol for hash key
66
+ acceptable_attribute_map = self.class.acceptable_attribute_map
61
67
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
- if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::AllView`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ if (!acceptable_attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::AllView`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
64
70
  end
65
71
  h[k.to_sym] = v
66
72
  }
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -60,9 +60,14 @@ module SwaggyJenkinsClient
60
60
  }
61
61
  end
62
62
 
63
+ # Returns attribute mapping this model knows about
64
+ def self.acceptable_attribute_map
65
+ attribute_map
66
+ end
67
+
63
68
  # Returns all the JSON keys this model knows about
64
69
  def self.acceptable_attributes
65
- attribute_map.values
70
+ acceptable_attribute_map.values
66
71
  end
67
72
 
68
73
  # Attribute type mapping.
@@ -98,9 +103,10 @@ module SwaggyJenkinsClient
98
103
  end
99
104
 
100
105
  # check to see if the attribute exists and convert string to symbol for hash key
106
+ acceptable_attribute_map = self.class.acceptable_attribute_map
101
107
  attributes = attributes.each_with_object({}) { |(k, v), h|
102
- if (!self.class.attribute_map.key?(k.to_sym))
103
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImpl`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
108
+ if (!acceptable_attribute_map.key?(k.to_sym))
109
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImpl`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
104
110
  end
105
111
  h[k.to_sym] = v
106
112
  }
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -36,9 +36,14 @@ module SwaggyJenkinsClient
36
36
  }
37
37
  end
38
38
 
39
+ # Returns attribute mapping this model knows about
40
+ def self.acceptable_attribute_map
41
+ attribute_map
42
+ end
43
+
39
44
  # Returns all the JSON keys this model knows about
40
45
  def self.acceptable_attributes
41
- attribute_map.values
46
+ acceptable_attribute_map.values
42
47
  end
43
48
 
44
49
  # Attribute type mapping.
@@ -66,9 +71,10 @@ module SwaggyJenkinsClient
66
71
  end
67
72
 
68
73
  # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
69
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImpllinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImpllinks`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
78
  end
73
79
  h[k.to_sym] = v
74
80
  }
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -36,9 +36,14 @@ module SwaggyJenkinsClient
36
36
  }
37
37
  end
38
38
 
39
+ # Returns attribute mapping this model knows about
40
+ def self.acceptable_attribute_map
41
+ attribute_map
42
+ end
43
+
39
44
  # Returns all the JSON keys this model knows about
40
45
  def self.acceptable_attributes
41
- attribute_map.values
46
+ acceptable_attribute_map.values
42
47
  end
43
48
 
44
49
  # Attribute type mapping.
@@ -66,9 +71,10 @@ module SwaggyJenkinsClient
66
71
  end
67
72
 
68
73
  # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
69
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImplpermissions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::BranchImplpermissions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
78
  end
73
79
  h[k.to_sym] = v
74
80
  }
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -27,9 +27,14 @@ module SwaggyJenkinsClient
27
27
  }
28
28
  end
29
29
 
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
30
35
  # Returns all the JSON keys this model knows about
31
36
  def self.acceptable_attributes
32
- attribute_map.values
37
+ acceptable_attribute_map.values
33
38
  end
34
39
 
35
40
  # Attribute type mapping.
@@ -54,9 +59,10 @@ module SwaggyJenkinsClient
54
59
  end
55
60
 
56
61
  # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
57
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
58
- if (!self.class.attribute_map.key?(k.to_sym))
59
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::CauseAction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::CauseAction`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
60
66
  end
61
67
  h[k.to_sym] = v
62
68
  }
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -33,9 +33,14 @@ module SwaggyJenkinsClient
33
33
  }
34
34
  end
35
35
 
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
36
41
  # Returns all the JSON keys this model knows about
37
42
  def self.acceptable_attributes
38
- attribute_map.values
43
+ acceptable_attribute_map.values
39
44
  end
40
45
 
41
46
  # Attribute type mapping.
@@ -62,9 +67,10 @@ module SwaggyJenkinsClient
62
67
  end
63
68
 
64
69
  # check to see if the attribute exists and convert string to symbol for hash key
70
+ acceptable_attribute_map = self.class.acceptable_attribute_map
65
71
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
- if (!self.class.attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::CauseUserIdCause`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ if (!acceptable_attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::CauseUserIdCause`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
74
  end
69
75
  h[k.to_sym] = v
70
76
  }
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -27,9 +27,14 @@ module SwaggyJenkinsClient
27
27
  }
28
28
  end
29
29
 
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
30
35
  # Returns all the JSON keys this model knows about
31
36
  def self.acceptable_attributes
32
- attribute_map.values
37
+ acceptable_attribute_map.values
33
38
  end
34
39
 
35
40
  # Attribute type mapping.
@@ -54,9 +59,10 @@ module SwaggyJenkinsClient
54
59
  end
55
60
 
56
61
  # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
57
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
58
- if (!self.class.attribute_map.key?(k.to_sym))
59
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ClassesByClass`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ClassesByClass`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
60
66
  end
61
67
  h[k.to_sym] = v
62
68
  }
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -27,9 +27,14 @@ module SwaggyJenkinsClient
27
27
  }
28
28
  end
29
29
 
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
30
35
  # Returns all the JSON keys this model knows about
31
36
  def self.acceptable_attributes
32
- attribute_map.values
37
+ acceptable_attribute_map.values
33
38
  end
34
39
 
35
40
  # Attribute type mapping.
@@ -54,9 +59,10 @@ module SwaggyJenkinsClient
54
59
  end
55
60
 
56
61
  # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
57
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
58
- if (!self.class.attribute_map.key?(k.to_sym))
59
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ClockDifference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ClockDifference`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
60
66
  end
61
67
  h[k.to_sym] = v
62
68
  }
@@ -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.0.1
6
+ The version of the OpenAPI document: 3.1.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.4.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -36,9 +36,14 @@ module SwaggyJenkinsClient
36
36
  }
37
37
  end
38
38
 
39
+ # Returns attribute mapping this model knows about
40
+ def self.acceptable_attribute_map
41
+ attribute_map
42
+ end
43
+
39
44
  # Returns all the JSON keys this model knows about
40
45
  def self.acceptable_attributes
41
- attribute_map.values
46
+ acceptable_attribute_map.values
42
47
  end
43
48
 
44
49
  # Attribute type mapping.
@@ -66,9 +71,10 @@ module SwaggyJenkinsClient
66
71
  end
67
72
 
68
73
  # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
69
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ComputerSet`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::ComputerSet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
78
  end
73
79
  h[k.to_sym] = v
74
80
  }