swaggy_jenkins 0.0.1 → 1.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 (315) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +51 -50
  4. data/README.md +25 -33
  5. data/Rakefile +2 -0
  6. data/bin/bundle +114 -0
  7. data/bin/byebug +29 -0
  8. data/bin/coderay +29 -0
  9. data/bin/htmldiff +29 -0
  10. data/bin/ldiff +29 -0
  11. data/bin/pry +29 -0
  12. data/bin/rake +29 -0
  13. data/bin/rspec +29 -0
  14. data/bin/rubocop +29 -0
  15. data/bin/ruby-parse +29 -0
  16. data/bin/ruby-rewrite +29 -0
  17. data/docs/AllView.md +17 -5
  18. data/docs/BaseApi.md +75 -0
  19. data/docs/BlueOceanApi.md +1347 -631
  20. data/docs/BranchImpl.md +37 -15
  21. data/docs/BranchImpllinks.md +21 -7
  22. data/docs/BranchImplpermissions.md +21 -7
  23. data/docs/CauseAction.md +15 -4
  24. data/docs/CauseUserIdCause.md +19 -6
  25. data/docs/ClassesByClass.md +15 -4
  26. data/docs/ClockDifference.md +15 -4
  27. data/docs/ComputerSet.md +21 -7
  28. data/docs/DefaultCrumbIssuer.md +17 -5
  29. data/docs/DiskSpaceMonitorDescriptorDiskSpace.md +19 -6
  30. data/docs/EmptyChangeLogSet.md +15 -4
  31. data/docs/ExtensionClassContainerImpl1.md +17 -5
  32. data/docs/ExtensionClassContainerImpl1links.md +15 -4
  33. data/docs/ExtensionClassContainerImpl1map.md +17 -5
  34. data/docs/ExtensionClassImpl.md +17 -5
  35. data/docs/ExtensionClassImpllinks.md +15 -4
  36. data/docs/FavoriteImpl.md +17 -5
  37. data/docs/FavoriteImpllinks.md +15 -4
  38. data/docs/FreeStyleBuild.md +47 -20
  39. data/docs/FreeStyleProject.md +65 -29
  40. data/docs/FreeStyleProjectactions.md +13 -3
  41. data/docs/FreeStyleProjecthealthReport.md +21 -7
  42. data/docs/GenericResource.md +23 -8
  43. data/docs/GithubContent.md +27 -10
  44. data/docs/GithubFile.md +15 -4
  45. data/docs/GithubOrganization.md +19 -6
  46. data/docs/GithubOrganizationlinks.md +17 -5
  47. data/docs/GithubRepositories.md +23 -8
  48. data/docs/GithubRepositorieslinks.md +15 -4
  49. data/docs/GithubRepository.md +27 -10
  50. data/docs/GithubRepositorylinks.md +15 -4
  51. data/docs/GithubRepositorypermissions.md +19 -6
  52. data/docs/GithubRespositoryContainer.md +17 -5
  53. data/docs/GithubRespositoryContainerlinks.md +15 -4
  54. data/docs/GithubScm.md +21 -7
  55. data/docs/GithubScmlinks.md +15 -4
  56. data/docs/Hudson.md +41 -17
  57. data/docs/HudsonMasterComputer.md +43 -18
  58. data/docs/HudsonMasterComputerexecutors.md +23 -8
  59. data/docs/HudsonMasterComputermonitorData.md +25 -9
  60. data/docs/HudsonassignedLabels.md +13 -3
  61. data/docs/InputStepImpl.md +25 -9
  62. data/docs/InputStepImpllinks.md +15 -4
  63. data/docs/Label1.md +13 -3
  64. data/docs/Link.md +15 -4
  65. data/docs/ListView.md +21 -7
  66. data/docs/MultibranchPipeline.md +39 -16
  67. data/docs/NullSCM.md +13 -3
  68. data/docs/Organisation.md +15 -4
  69. data/docs/Pipeline.md +27 -10
  70. data/docs/PipelineActivity.md +41 -17
  71. data/docs/PipelineActivityartifacts.md +19 -6
  72. data/docs/PipelineBranchesitem.md +29 -11
  73. data/docs/PipelineBranchesitemlatestRun.md +39 -16
  74. data/docs/PipelineBranchesitempullRequest.md +23 -8
  75. data/docs/PipelineBranchesitempullRequestlinks.md +15 -4
  76. data/docs/PipelineFolderImpl.md +25 -9
  77. data/docs/PipelineImpl.md +29 -11
  78. data/docs/PipelineImpllinks.md +21 -7
  79. data/docs/PipelineRun.md +41 -17
  80. data/docs/PipelineRunImpl.md +41 -17
  81. data/docs/PipelineRunImpllinks.md +23 -8
  82. data/docs/PipelineRunNode.md +27 -10
  83. data/docs/PipelineRunNodeedges.md +15 -4
  84. data/docs/PipelineRunartifacts.md +19 -6
  85. data/docs/PipelineStepImpl.md +29 -11
  86. data/docs/PipelineStepImpllinks.md +17 -5
  87. data/docs/PipelinelatestRun.md +41 -17
  88. data/docs/PipelinelatestRunartifacts.md +19 -6
  89. data/docs/Queue.md +15 -4
  90. data/docs/QueueBlockedItem.md +35 -14
  91. data/docs/QueueItemImpl.md +21 -7
  92. data/docs/QueueLeftItem.md +37 -15
  93. data/docs/RemoteAccessApi.md +666 -350
  94. data/docs/ResponseTimeMonitorData.md +17 -5
  95. data/docs/StringParameterDefinition.md +21 -7
  96. data/docs/StringParameterValue.md +17 -5
  97. data/docs/SwapSpaceMonitorMemoryUsage2.md +21 -7
  98. data/docs/UnlabeledLoadStatistics.md +13 -3
  99. data/docs/User.md +21 -7
  100. data/git_push.sh +12 -10
  101. data/lib/swaggy_jenkins/api/base_api.rb +77 -0
  102. data/lib/swaggy_jenkins/api/blue_ocean_api.rb +1048 -643
  103. data/lib/swaggy_jenkins/api/remote_access_api.rb +506 -361
  104. data/lib/swaggy_jenkins/api_client.rb +95 -94
  105. data/lib/swaggy_jenkins/api_error.rb +22 -3
  106. data/lib/swaggy_jenkins/configuration.rb +91 -15
  107. data/lib/swaggy_jenkins/models/all_view.rb +59 -29
  108. data/lib/swaggy_jenkins/models/branch_impl.rb +76 -46
  109. data/lib/swaggy_jenkins/models/branch_impllinks.rb +62 -32
  110. data/lib/swaggy_jenkins/models/branch_implpermissions.rb +65 -35
  111. data/lib/swaggy_jenkins/models/cause_action.rb +58 -28
  112. data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +63 -33
  113. data/lib/swaggy_jenkins/models/classes_by_class.rb +58 -28
  114. data/lib/swaggy_jenkins/models/clock_difference.rb +58 -28
  115. data/lib/swaggy_jenkins/models/computer_set.rb +64 -34
  116. data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +60 -30
  117. data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +60 -30
  118. data/lib/swaggy_jenkins/models/empty_change_log_set.rb +58 -28
  119. data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +59 -29
  120. data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +59 -29
  121. data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +61 -31
  122. data/lib/swaggy_jenkins/models/extension_class_impl.rb +59 -29
  123. data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +59 -29
  124. data/lib/swaggy_jenkins/models/favorite_impl.rb +59 -29
  125. data/lib/swaggy_jenkins/models/favorite_impllinks.rb +59 -29
  126. data/lib/swaggy_jenkins/models/free_style_build.rb +83 -53
  127. data/lib/swaggy_jenkins/models/free_style_project.rb +105 -75
  128. data/lib/swaggy_jenkins/models/free_style_projectactions.rb +57 -27
  129. data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +63 -33
  130. data/lib/swaggy_jenkins/models/generic_resource.rb +65 -35
  131. data/lib/swaggy_jenkins/models/github_content.rb +65 -35
  132. data/lib/swaggy_jenkins/models/github_file.rb +58 -28
  133. data/lib/swaggy_jenkins/models/github_organization.rb +62 -32
  134. data/lib/swaggy_jenkins/models/github_organizationlinks.rb +60 -30
  135. data/lib/swaggy_jenkins/models/github_repositories.rb +65 -35
  136. data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +59 -29
  137. data/lib/swaggy_jenkins/models/github_repository.rb +67 -37
  138. data/lib/swaggy_jenkins/models/github_repositorylinks.rb +59 -29
  139. data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +63 -33
  140. data/lib/swaggy_jenkins/models/github_respository_container.rb +59 -29
  141. data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +59 -29
  142. data/lib/swaggy_jenkins/models/github_scm.rb +62 -32
  143. data/lib/swaggy_jenkins/models/github_scmlinks.rb +59 -29
  144. data/lib/swaggy_jenkins/models/hudson.rb +84 -54
  145. data/lib/swaggy_jenkins/models/hudson_master_computer.rb +89 -59
  146. data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +66 -36
  147. data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +69 -39
  148. data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +57 -27
  149. data/lib/swaggy_jenkins/models/input_step_impl.rb +63 -33
  150. data/lib/swaggy_jenkins/models/input_step_impllinks.rb +59 -29
  151. data/lib/swaggy_jenkins/models/label1.rb +57 -27
  152. data/lib/swaggy_jenkins/models/link.rb +58 -28
  153. data/lib/swaggy_jenkins/models/list_view.rb +61 -31
  154. data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +81 -51
  155. data/lib/swaggy_jenkins/models/null_scm.rb +57 -27
  156. data/lib/swaggy_jenkins/models/organisation.rb +58 -28
  157. data/lib/swaggy_jenkins/models/pipeline.rb +69 -39
  158. data/lib/swaggy_jenkins/models/pipeline_activity.rb +78 -48
  159. data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +60 -30
  160. data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +71 -41
  161. data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +77 -47
  162. data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +62 -32
  163. data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +59 -29
  164. data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +67 -37
  165. data/lib/swaggy_jenkins/models/pipeline_impl.rb +70 -40
  166. data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +62 -32
  167. data/lib/swaggy_jenkins/models/pipeline_run.rb +78 -48
  168. data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +78 -48
  169. data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +63 -33
  170. data/lib/swaggy_jenkins/models/pipeline_run_node.rb +67 -37
  171. data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +58 -28
  172. data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +60 -30
  173. data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +68 -38
  174. data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +60 -30
  175. data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +78 -48
  176. data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +60 -30
  177. data/lib/swaggy_jenkins/models/queue.rb +58 -28
  178. data/lib/swaggy_jenkins/models/queue_blocked_item.rb +73 -43
  179. data/lib/swaggy_jenkins/models/queue_item_impl.rb +63 -33
  180. data/lib/swaggy_jenkins/models/queue_left_item.rb +74 -44
  181. data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +59 -29
  182. data/lib/swaggy_jenkins/models/string_parameter_definition.rb +62 -32
  183. data/lib/swaggy_jenkins/models/string_parameter_value.rb +59 -29
  184. data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +65 -35
  185. data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +57 -27
  186. data/lib/swaggy_jenkins/models/user.rb +62 -32
  187. data/lib/swaggy_jenkins/version.rb +4 -4
  188. data/lib/swaggy_jenkins.rb +4 -16
  189. data/spec/api/base_api_spec.rb +45 -0
  190. data/spec/api/blue_ocean_api_spec.rb +76 -88
  191. data/spec/api/remote_access_api_spec.rb +28 -59
  192. data/spec/api_client_spec.rb +40 -40
  193. data/spec/configuration_spec.rb +11 -11
  194. data/spec/models/all_view_spec.rb +10 -18
  195. data/spec/models/branch_impl_spec.rb +20 -28
  196. data/spec/models/branch_impllinks_spec.rb +12 -20
  197. data/spec/models/branch_implpermissions_spec.rb +12 -20
  198. data/spec/models/cause_action_spec.rb +9 -17
  199. data/spec/models/cause_user_id_cause_spec.rb +11 -19
  200. data/spec/models/classes_by_class_spec.rb +9 -17
  201. data/spec/models/clock_difference_spec.rb +9 -17
  202. data/spec/models/computer_set_spec.rb +12 -20
  203. data/spec/models/default_crumb_issuer_spec.rb +10 -18
  204. data/spec/models/disk_space_monitor_descriptor_disk_space_spec.rb +11 -19
  205. data/spec/models/empty_change_log_set_spec.rb +9 -17
  206. data/spec/models/extension_class_container_impl1_spec.rb +10 -18
  207. data/spec/models/extension_class_container_impl1links_spec.rb +9 -17
  208. data/spec/models/extension_class_container_impl1map_spec.rb +10 -18
  209. data/spec/models/extension_class_impl_spec.rb +10 -18
  210. data/spec/models/extension_class_impllinks_spec.rb +9 -17
  211. data/spec/models/favorite_impl_spec.rb +10 -18
  212. data/spec/models/favorite_impllinks_spec.rb +9 -17
  213. data/spec/models/free_style_build_spec.rb +25 -33
  214. data/spec/models/free_style_project_spec.rb +34 -42
  215. data/spec/models/free_style_projectactions_spec.rb +8 -16
  216. data/spec/models/free_style_projecthealth_report_spec.rb +12 -20
  217. data/spec/models/generic_resource_spec.rb +13 -21
  218. data/spec/models/github_content_spec.rb +15 -23
  219. data/spec/models/github_file_spec.rb +9 -17
  220. data/spec/models/github_organization_spec.rb +11 -19
  221. data/spec/models/github_organizationlinks_spec.rb +10 -18
  222. data/spec/models/github_repositories_spec.rb +13 -21
  223. data/spec/models/github_repositorieslinks_spec.rb +9 -17
  224. data/spec/models/github_repository_spec.rb +15 -23
  225. data/spec/models/github_repositorylinks_spec.rb +9 -17
  226. data/spec/models/github_repositorypermissions_spec.rb +11 -19
  227. data/spec/models/github_respository_container_spec.rb +10 -18
  228. data/spec/models/github_respository_containerlinks_spec.rb +9 -17
  229. data/spec/models/github_scm_spec.rb +12 -20
  230. data/spec/models/github_scmlinks_spec.rb +9 -17
  231. data/spec/models/hudson_master_computer_spec.rb +23 -31
  232. data/spec/models/hudson_master_computerexecutors_spec.rb +13 -21
  233. data/spec/models/hudson_master_computermonitor_data_spec.rb +14 -22
  234. data/spec/models/hudson_spec.rb +22 -30
  235. data/spec/models/hudsonassigned_labels_spec.rb +8 -16
  236. data/spec/models/input_step_impl_spec.rb +14 -22
  237. data/spec/models/input_step_impllinks_spec.rb +9 -17
  238. data/spec/models/label1_spec.rb +8 -16
  239. data/spec/models/link_spec.rb +9 -17
  240. data/spec/models/list_view_spec.rb +12 -20
  241. data/spec/models/multibranch_pipeline_spec.rb +21 -29
  242. data/spec/models/null_scm_spec.rb +8 -16
  243. data/spec/models/organisation_spec.rb +9 -17
  244. data/spec/models/pipeline_activity_spec.rb +22 -30
  245. data/spec/models/pipeline_activityartifacts_spec.rb +11 -19
  246. data/spec/models/pipeline_branchesitem_spec.rb +16 -24
  247. data/spec/models/pipeline_branchesitemlatest_run_spec.rb +21 -29
  248. data/spec/models/pipeline_branchesitempull_request_spec.rb +13 -21
  249. data/spec/models/pipeline_branchesitempull_requestlinks_spec.rb +9 -17
  250. data/spec/models/pipeline_folder_impl_spec.rb +14 -22
  251. data/spec/models/pipeline_impl_spec.rb +16 -24
  252. data/spec/models/pipeline_impllinks_spec.rb +12 -20
  253. data/spec/models/pipeline_run_impl_spec.rb +22 -30
  254. data/spec/models/pipeline_run_impllinks_spec.rb +13 -21
  255. data/spec/models/pipeline_run_node_spec.rb +15 -23
  256. data/spec/models/pipeline_run_nodeedges_spec.rb +9 -17
  257. data/spec/models/pipeline_run_spec.rb +22 -30
  258. data/spec/models/pipeline_runartifacts_spec.rb +11 -19
  259. data/spec/models/pipeline_spec.rb +15 -23
  260. data/spec/models/pipeline_step_impl_spec.rb +16 -24
  261. data/spec/models/pipeline_step_impllinks_spec.rb +10 -18
  262. data/spec/models/pipelinelatest_run_spec.rb +22 -30
  263. data/spec/models/pipelinelatest_runartifacts_spec.rb +11 -19
  264. data/spec/models/queue_blocked_item_spec.rb +19 -27
  265. data/spec/models/queue_item_impl_spec.rb +12 -20
  266. data/spec/models/queue_left_item_spec.rb +20 -28
  267. data/spec/models/queue_spec.rb +9 -17
  268. data/spec/models/response_time_monitor_data_spec.rb +10 -18
  269. data/spec/models/string_parameter_definition_spec.rb +12 -20
  270. data/spec/models/string_parameter_value_spec.rb +10 -18
  271. data/spec/models/swap_space_monitor_memory_usage2_spec.rb +12 -20
  272. data/spec/models/unlabeled_load_statistics_spec.rb +8 -16
  273. data/spec/models/user_spec.rb +12 -20
  274. data/spec/spec_helper.rb +3 -3
  275. data/swaggy_jenkins.gemspec +6 -13
  276. metadata +97 -275
  277. data/docs/Body.md +0 -8
  278. data/docs/Organisations.md +0 -7
  279. data/docs/PipelineActivities.md +0 -7
  280. data/docs/PipelineBranches.md +0 -7
  281. data/docs/PipelineQueue.md +0 -7
  282. data/docs/PipelineRunNodeSteps.md +0 -7
  283. data/docs/PipelineRunNodes.md +0 -7
  284. data/docs/PipelineRunSteps.md +0 -7
  285. data/docs/PipelineRuns.md +0 -7
  286. data/docs/Pipelines.md +0 -7
  287. data/docs/ScmOrganisations.md +0 -7
  288. data/docs/UserFavorites.md +0 -7
  289. data/docs/Users.md +0 -7
  290. data/lib/swaggy_jenkins/models/body.rb +0 -193
  291. data/lib/swaggy_jenkins/models/organisations.rb +0 -179
  292. data/lib/swaggy_jenkins/models/pipeline_activities.rb +0 -179
  293. data/lib/swaggy_jenkins/models/pipeline_branches.rb +0 -179
  294. data/lib/swaggy_jenkins/models/pipeline_queue.rb +0 -179
  295. data/lib/swaggy_jenkins/models/pipeline_run_node_steps.rb +0 -179
  296. data/lib/swaggy_jenkins/models/pipeline_run_nodes.rb +0 -179
  297. data/lib/swaggy_jenkins/models/pipeline_run_steps.rb +0 -179
  298. data/lib/swaggy_jenkins/models/pipeline_runs.rb +0 -179
  299. data/lib/swaggy_jenkins/models/pipelines.rb +0 -179
  300. data/lib/swaggy_jenkins/models/scm_organisations.rb +0 -179
  301. data/lib/swaggy_jenkins/models/user_favorites.rb +0 -179
  302. data/lib/swaggy_jenkins/models/users.rb +0 -179
  303. data/spec/models/body_spec.rb +0 -42
  304. data/spec/models/organisations_spec.rb +0 -36
  305. data/spec/models/pipeline_activities_spec.rb +0 -36
  306. data/spec/models/pipeline_branches_spec.rb +0 -36
  307. data/spec/models/pipeline_queue_spec.rb +0 -36
  308. data/spec/models/pipeline_run_node_steps_spec.rb +0 -36
  309. data/spec/models/pipeline_run_nodes_spec.rb +0 -36
  310. data/spec/models/pipeline_run_steps_spec.rb +0 -36
  311. data/spec/models/pipeline_runs_spec.rb +0 -36
  312. data/spec/models/pipelines_spec.rb +0 -36
  313. data/spec/models/scm_organisations_spec.rb +0 -36
  314. data/spec/models/user_favorites_spec.rb +0 -36
  315. data/spec/models/users_spec.rb +0 -36
@@ -3,14 +3,14 @@
3
3
 
4
4
  #Jenkins API clients generated from Swagger / Open API specification
5
5
 
6
- OpenAPI spec version: 0.1.0
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: blah@cliffano.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0-SNAPSHOT
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'cgi'
14
14
 
15
15
  module SwaggyJenkinsClient
16
16
  class BlueOceanApi
@@ -19,29 +19,26 @@ module SwaggyJenkinsClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- #
24
22
  # Delete queue item from an organization pipeline queue
25
- # @param organization Name of the organization
26
- # @param pipeline Name of the pipeline
27
- # @param queue Name of the queue item
23
+ # @param organization [String] Name of the organization
24
+ # @param pipeline [String] Name of the pipeline
25
+ # @param queue [String] Name of the queue item
28
26
  # @param [Hash] opts the optional parameters
29
27
  # @return [nil]
30
28
  def delete_pipeline_queue_item(organization, pipeline, queue, opts = {})
31
29
  delete_pipeline_queue_item_with_http_info(organization, pipeline, queue, opts)
32
- return nil
30
+ nil
33
31
  end
34
32
 
35
- #
36
33
  # Delete queue item from an organization pipeline queue
37
- # @param organization Name of the organization
38
- # @param pipeline Name of the pipeline
39
- # @param queue Name of the queue item
34
+ # @param organization [String] Name of the organization
35
+ # @param pipeline [String] Name of the pipeline
36
+ # @param queue [String] Name of the queue item
40
37
  # @param [Hash] opts the optional parameters
41
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
42
39
  def delete_pipeline_queue_item_with_http_info(organization, pipeline, queue, opts = {})
43
40
  if @api_client.config.debugging
44
- @api_client.config.logger.debug "Calling API: BlueOceanApi.delete_pipeline_queue_item ..."
41
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.delete_pipeline_queue_item ...'
45
42
  end
46
43
  # verify the required parameter 'organization' is set
47
44
  if @api_client.config.client_side_validation && organization.nil?
@@ -56,260 +53,421 @@ module SwaggyJenkinsClient
56
53
  fail ArgumentError, "Missing the required parameter 'queue' when calling BlueOceanApi.delete_pipeline_queue_item"
57
54
  end
58
55
  # resource path
59
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/queue/{queue}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'queue' + '}', queue.to_s)
56
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/queue/{queue}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'queue' + '}', CGI.escape(queue.to_s))
60
57
 
61
58
  # query parameters
62
- query_params = {}
59
+ query_params = opts[:query_params] || {}
63
60
 
64
61
  # header parameters
65
- header_params = {}
66
- # HTTP header 'Accept' (if needed)
67
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
62
+ header_params = opts[:header_params] || {}
68
63
 
69
64
  # form parameters
70
- form_params = {}
65
+ form_params = opts[:form_params] || {}
71
66
 
72
67
  # http body (model)
73
- post_body = nil
74
- auth_names = ['jenkins_auth']
75
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
68
+ post_body = opts[:debug_body]
69
+
70
+ # return_type
71
+ return_type = opts[:debug_return_type]
72
+
73
+ # auth_names
74
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
75
+
76
+ new_options = opts.merge(
77
+ :operation => :"BlueOceanApi.delete_pipeline_queue_item",
76
78
  :header_params => header_params,
77
79
  :query_params => query_params,
78
80
  :form_params => form_params,
79
81
  :body => post_body,
80
- :auth_names => auth_names)
82
+ :auth_names => auth_names,
83
+ :return_type => return_type
84
+ )
85
+
86
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
81
87
  if @api_client.config.debugging
82
88
  @api_client.config.logger.debug "API called: BlueOceanApi#delete_pipeline_queue_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
89
  end
84
90
  return data, status_code, headers
85
91
  end
86
92
 
87
- #
88
93
  # Retrieve authenticated user details for an organization
89
- # @param organization Name of the organization
94
+ # @param organization [String] Name of the organization
90
95
  # @param [Hash] opts the optional parameters
91
96
  # @return [User]
92
97
  def get_authenticated_user(organization, opts = {})
93
98
  data, _status_code, _headers = get_authenticated_user_with_http_info(organization, opts)
94
- return data
99
+ data
95
100
  end
96
101
 
97
- #
98
102
  # Retrieve authenticated user details for an organization
99
- # @param organization Name of the organization
103
+ # @param organization [String] Name of the organization
100
104
  # @param [Hash] opts the optional parameters
101
- # @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
105
+ # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
102
106
  def get_authenticated_user_with_http_info(organization, opts = {})
103
107
  if @api_client.config.debugging
104
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_authenticated_user ..."
108
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_authenticated_user ...'
105
109
  end
106
110
  # verify the required parameter 'organization' is set
107
111
  if @api_client.config.client_side_validation && organization.nil?
108
112
  fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_authenticated_user"
109
113
  end
110
114
  # resource path
111
- local_var_path = "/blue/rest/organizations/{organization}/user/".sub('{' + 'organization' + '}', organization.to_s)
115
+ local_var_path = '/blue/rest/organizations/{organization}/user/'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s))
112
116
 
113
117
  # query parameters
114
- query_params = {}
118
+ query_params = opts[:query_params] || {}
115
119
 
116
120
  # header parameters
117
- header_params = {}
121
+ header_params = opts[:header_params] || {}
118
122
  # HTTP header 'Accept' (if needed)
119
123
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
120
124
 
121
125
  # form parameters
122
- form_params = {}
126
+ form_params = opts[:form_params] || {}
123
127
 
124
128
  # http body (model)
125
- post_body = nil
126
- auth_names = ['jenkins_auth']
127
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
129
+ post_body = opts[:debug_body]
130
+
131
+ # return_type
132
+ return_type = opts[:debug_return_type] || 'User'
133
+
134
+ # auth_names
135
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
136
+
137
+ new_options = opts.merge(
138
+ :operation => :"BlueOceanApi.get_authenticated_user",
128
139
  :header_params => header_params,
129
140
  :query_params => query_params,
130
141
  :form_params => form_params,
131
142
  :body => post_body,
132
143
  :auth_names => auth_names,
133
- :return_type => 'User')
144
+ :return_type => return_type
145
+ )
146
+
147
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
134
148
  if @api_client.config.debugging
135
149
  @api_client.config.logger.debug "API called: BlueOceanApi#get_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
136
150
  end
137
151
  return data, status_code, headers
138
152
  end
139
153
 
140
- #
141
154
  # Get a list of class names supported by a given class
142
- # @param _class Name of the class
155
+ # @param _class [String] Name of the class
143
156
  # @param [Hash] opts the optional parameters
144
157
  # @return [String]
145
158
  def get_classes(_class, opts = {})
146
159
  data, _status_code, _headers = get_classes_with_http_info(_class, opts)
147
- return data
160
+ data
148
161
  end
149
162
 
150
- #
151
163
  # Get a list of class names supported by a given class
152
- # @param _class Name of the class
164
+ # @param _class [String] Name of the class
153
165
  # @param [Hash] opts the optional parameters
154
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
166
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
155
167
  def get_classes_with_http_info(_class, opts = {})
156
168
  if @api_client.config.debugging
157
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_classes ..."
169
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_classes ...'
158
170
  end
159
171
  # verify the required parameter '_class' is set
160
172
  if @api_client.config.client_side_validation && _class.nil?
161
173
  fail ArgumentError, "Missing the required parameter '_class' when calling BlueOceanApi.get_classes"
162
174
  end
163
175
  # resource path
164
- local_var_path = "/blue/rest/classes/{class}".sub('{' + 'class' + '}', _class.to_s)
176
+ local_var_path = '/blue/rest/classes/{class}'.sub('{' + 'class' + '}', CGI.escape(_class.to_s))
165
177
 
166
178
  # query parameters
167
- query_params = {}
179
+ query_params = opts[:query_params] || {}
168
180
 
169
181
  # header parameters
170
- header_params = {}
182
+ header_params = opts[:header_params] || {}
171
183
  # HTTP header 'Accept' (if needed)
172
184
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
173
185
 
174
186
  # form parameters
175
- form_params = {}
187
+ form_params = opts[:form_params] || {}
176
188
 
177
189
  # http body (model)
178
- post_body = nil
179
- auth_names = ['jenkins_auth']
180
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
190
+ post_body = opts[:debug_body]
191
+
192
+ # return_type
193
+ return_type = opts[:debug_return_type] || 'String'
194
+
195
+ # auth_names
196
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
197
+
198
+ new_options = opts.merge(
199
+ :operation => :"BlueOceanApi.get_classes",
181
200
  :header_params => header_params,
182
201
  :query_params => query_params,
183
202
  :form_params => form_params,
184
203
  :body => post_body,
185
204
  :auth_names => auth_names,
186
- :return_type => 'String')
205
+ :return_type => return_type
206
+ )
207
+
208
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
187
209
  if @api_client.config.debugging
188
210
  @api_client.config.logger.debug "API called: BlueOceanApi#get_classes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
211
  end
190
212
  return data, status_code, headers
191
213
  end
192
214
 
193
- #
215
+ # Retrieve JSON Web Key
216
+ # @param key [Integer] Key ID received as part of JWT header field kid
217
+ # @param [Hash] opts the optional parameters
218
+ # @return [String]
219
+ def get_json_web_key(key, opts = {})
220
+ data, _status_code, _headers = get_json_web_key_with_http_info(key, opts)
221
+ data
222
+ end
223
+
224
+ # Retrieve JSON Web Key
225
+ # @param key [Integer] Key ID received as part of JWT header field kid
226
+ # @param [Hash] opts the optional parameters
227
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
228
+ def get_json_web_key_with_http_info(key, opts = {})
229
+ if @api_client.config.debugging
230
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_json_web_key ...'
231
+ end
232
+ # verify the required parameter 'key' is set
233
+ if @api_client.config.client_side_validation && key.nil?
234
+ fail ArgumentError, "Missing the required parameter 'key' when calling BlueOceanApi.get_json_web_key"
235
+ end
236
+ # resource path
237
+ local_var_path = '/jwt-auth/jwks/{key}'.sub('{' + 'key' + '}', CGI.escape(key.to_s))
238
+
239
+ # query parameters
240
+ query_params = opts[:query_params] || {}
241
+
242
+ # header parameters
243
+ header_params = opts[:header_params] || {}
244
+ # HTTP header 'Accept' (if needed)
245
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
246
+
247
+ # form parameters
248
+ form_params = opts[:form_params] || {}
249
+
250
+ # http body (model)
251
+ post_body = opts[:debug_body]
252
+
253
+ # return_type
254
+ return_type = opts[:debug_return_type] || 'String'
255
+
256
+ # auth_names
257
+ auth_names = opts[:debug_auth_names] || []
258
+
259
+ new_options = opts.merge(
260
+ :operation => :"BlueOceanApi.get_json_web_key",
261
+ :header_params => header_params,
262
+ :query_params => query_params,
263
+ :form_params => form_params,
264
+ :body => post_body,
265
+ :auth_names => auth_names,
266
+ :return_type => return_type
267
+ )
268
+
269
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
270
+ if @api_client.config.debugging
271
+ @api_client.config.logger.debug "API called: BlueOceanApi#get_json_web_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
+ end
273
+ return data, status_code, headers
274
+ end
275
+
276
+ # Retrieve JSON Web Token
277
+ # @param [Hash] opts the optional parameters
278
+ # @option opts [Integer] :expiry_time_in_mins Token expiry time in minutes, default: 30 minutes
279
+ # @option opts [Integer] :max_expiry_time_in_mins Maximum token expiry time in minutes, default: 480 minutes
280
+ # @return [String]
281
+ def get_json_web_token(opts = {})
282
+ data, _status_code, _headers = get_json_web_token_with_http_info(opts)
283
+ data
284
+ end
285
+
286
+ # Retrieve JSON Web Token
287
+ # @param [Hash] opts the optional parameters
288
+ # @option opts [Integer] :expiry_time_in_mins Token expiry time in minutes, default: 30 minutes
289
+ # @option opts [Integer] :max_expiry_time_in_mins Maximum token expiry time in minutes, default: 480 minutes
290
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
291
+ def get_json_web_token_with_http_info(opts = {})
292
+ if @api_client.config.debugging
293
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_json_web_token ...'
294
+ end
295
+ # resource path
296
+ local_var_path = '/jwt-auth/token'
297
+
298
+ # query parameters
299
+ query_params = opts[:query_params] || {}
300
+ query_params[:'expiryTimeInMins'] = opts[:'expiry_time_in_mins'] if !opts[:'expiry_time_in_mins'].nil?
301
+ query_params[:'maxExpiryTimeInMins'] = opts[:'max_expiry_time_in_mins'] if !opts[:'max_expiry_time_in_mins'].nil?
302
+
303
+ # header parameters
304
+ header_params = opts[:header_params] || {}
305
+ # HTTP header 'Accept' (if needed)
306
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
307
+
308
+ # form parameters
309
+ form_params = opts[:form_params] || {}
310
+
311
+ # http body (model)
312
+ post_body = opts[:debug_body]
313
+
314
+ # return_type
315
+ return_type = opts[:debug_return_type] || 'String'
316
+
317
+ # auth_names
318
+ auth_names = opts[:debug_auth_names] || []
319
+
320
+ new_options = opts.merge(
321
+ :operation => :"BlueOceanApi.get_json_web_token",
322
+ :header_params => header_params,
323
+ :query_params => query_params,
324
+ :form_params => form_params,
325
+ :body => post_body,
326
+ :auth_names => auth_names,
327
+ :return_type => return_type
328
+ )
329
+
330
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug "API called: BlueOceanApi#get_json_web_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ end
334
+ return data, status_code, headers
335
+ end
336
+
194
337
  # Retrieve organization details
195
- # @param organization Name of the organization
338
+ # @param organization [String] Name of the organization
196
339
  # @param [Hash] opts the optional parameters
197
340
  # @return [Organisation]
198
341
  def get_organisation(organization, opts = {})
199
342
  data, _status_code, _headers = get_organisation_with_http_info(organization, opts)
200
- return data
343
+ data
201
344
  end
202
345
 
203
- #
204
346
  # Retrieve organization details
205
- # @param organization Name of the organization
347
+ # @param organization [String] Name of the organization
206
348
  # @param [Hash] opts the optional parameters
207
- # @return [Array<(Organisation, Fixnum, Hash)>] Organisation data, response status code and response headers
349
+ # @return [Array<(Organisation, Integer, Hash)>] Organisation data, response status code and response headers
208
350
  def get_organisation_with_http_info(organization, opts = {})
209
351
  if @api_client.config.debugging
210
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_organisation ..."
352
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_organisation ...'
211
353
  end
212
354
  # verify the required parameter 'organization' is set
213
355
  if @api_client.config.client_side_validation && organization.nil?
214
356
  fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_organisation"
215
357
  end
216
358
  # resource path
217
- local_var_path = "/blue/rest/organizations/{organization}".sub('{' + 'organization' + '}', organization.to_s)
359
+ local_var_path = '/blue/rest/organizations/{organization}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s))
218
360
 
219
361
  # query parameters
220
- query_params = {}
362
+ query_params = opts[:query_params] || {}
221
363
 
222
364
  # header parameters
223
- header_params = {}
365
+ header_params = opts[:header_params] || {}
224
366
  # HTTP header 'Accept' (if needed)
225
367
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
226
368
 
227
369
  # form parameters
228
- form_params = {}
370
+ form_params = opts[:form_params] || {}
229
371
 
230
372
  # http body (model)
231
- post_body = nil
232
- auth_names = ['jenkins_auth']
233
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
373
+ post_body = opts[:debug_body]
374
+
375
+ # return_type
376
+ return_type = opts[:debug_return_type] || 'Organisation'
377
+
378
+ # auth_names
379
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
380
+
381
+ new_options = opts.merge(
382
+ :operation => :"BlueOceanApi.get_organisation",
234
383
  :header_params => header_params,
235
384
  :query_params => query_params,
236
385
  :form_params => form_params,
237
386
  :body => post_body,
238
387
  :auth_names => auth_names,
239
- :return_type => 'Organisation')
388
+ :return_type => return_type
389
+ )
390
+
391
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
240
392
  if @api_client.config.debugging
241
393
  @api_client.config.logger.debug "API called: BlueOceanApi#get_organisation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
242
394
  end
243
395
  return data, status_code, headers
244
396
  end
245
397
 
246
- #
247
398
  # Retrieve all organizations details
248
399
  # @param [Hash] opts the optional parameters
249
- # @return [Organisations]
400
+ # @return [Array<Organisation>]
250
401
  def get_organisations(opts = {})
251
402
  data, _status_code, _headers = get_organisations_with_http_info(opts)
252
- return data
403
+ data
253
404
  end
254
405
 
255
- #
256
406
  # Retrieve all organizations details
257
407
  # @param [Hash] opts the optional parameters
258
- # @return [Array<(Organisations, Fixnum, Hash)>] Organisations data, response status code and response headers
408
+ # @return [Array<(Array<Organisation>, Integer, Hash)>] Array<Organisation> data, response status code and response headers
259
409
  def get_organisations_with_http_info(opts = {})
260
410
  if @api_client.config.debugging
261
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_organisations ..."
411
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_organisations ...'
262
412
  end
263
413
  # resource path
264
- local_var_path = "/blue/rest/organizations/"
414
+ local_var_path = '/blue/rest/organizations/'
265
415
 
266
416
  # query parameters
267
- query_params = {}
417
+ query_params = opts[:query_params] || {}
268
418
 
269
419
  # header parameters
270
- header_params = {}
420
+ header_params = opts[:header_params] || {}
271
421
  # HTTP header 'Accept' (if needed)
272
422
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
273
423
 
274
424
  # form parameters
275
- form_params = {}
425
+ form_params = opts[:form_params] || {}
276
426
 
277
427
  # http body (model)
278
- post_body = nil
279
- auth_names = ['jenkins_auth']
280
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
428
+ post_body = opts[:debug_body]
429
+
430
+ # return_type
431
+ return_type = opts[:debug_return_type] || 'Array<Organisation>'
432
+
433
+ # auth_names
434
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
435
+
436
+ new_options = opts.merge(
437
+ :operation => :"BlueOceanApi.get_organisations",
281
438
  :header_params => header_params,
282
439
  :query_params => query_params,
283
440
  :form_params => form_params,
284
441
  :body => post_body,
285
442
  :auth_names => auth_names,
286
- :return_type => 'Organisations')
443
+ :return_type => return_type
444
+ )
445
+
446
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
287
447
  if @api_client.config.debugging
288
448
  @api_client.config.logger.debug "API called: BlueOceanApi#get_organisations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
289
449
  end
290
450
  return data, status_code, headers
291
451
  end
292
452
 
293
- #
294
453
  # Retrieve pipeline details for an organization
295
- # @param organization Name of the organization
296
- # @param pipeline Name of the pipeline
454
+ # @param organization [String] Name of the organization
455
+ # @param pipeline [String] Name of the pipeline
297
456
  # @param [Hash] opts the optional parameters
298
457
  # @return [Pipeline]
299
458
  def get_pipeline(organization, pipeline, opts = {})
300
459
  data, _status_code, _headers = get_pipeline_with_http_info(organization, pipeline, opts)
301
- return data
460
+ data
302
461
  end
303
462
 
304
- #
305
463
  # Retrieve pipeline details for an organization
306
- # @param organization Name of the organization
307
- # @param pipeline Name of the pipeline
464
+ # @param organization [String] Name of the organization
465
+ # @param pipeline [String] Name of the pipeline
308
466
  # @param [Hash] opts the optional parameters
309
- # @return [Array<(Pipeline, Fixnum, Hash)>] Pipeline data, response status code and response headers
467
+ # @return [Array<(Pipeline, Integer, Hash)>] Pipeline data, response status code and response headers
310
468
  def get_pipeline_with_http_info(organization, pipeline, opts = {})
311
469
  if @api_client.config.debugging
312
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline ..."
470
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline ...'
313
471
  end
314
472
  # verify the required parameter 'organization' is set
315
473
  if @api_client.config.client_side_validation && organization.nil?
@@ -320,55 +478,63 @@ module SwaggyJenkinsClient
320
478
  fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline"
321
479
  end
322
480
  # resource path
323
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
481
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s))
324
482
 
325
483
  # query parameters
326
- query_params = {}
484
+ query_params = opts[:query_params] || {}
327
485
 
328
486
  # header parameters
329
- header_params = {}
487
+ header_params = opts[:header_params] || {}
330
488
  # HTTP header 'Accept' (if needed)
331
489
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
332
490
 
333
491
  # form parameters
334
- form_params = {}
492
+ form_params = opts[:form_params] || {}
335
493
 
336
494
  # http body (model)
337
- post_body = nil
338
- auth_names = ['jenkins_auth']
339
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
495
+ post_body = opts[:debug_body]
496
+
497
+ # return_type
498
+ return_type = opts[:debug_return_type] || 'Pipeline'
499
+
500
+ # auth_names
501
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
502
+
503
+ new_options = opts.merge(
504
+ :operation => :"BlueOceanApi.get_pipeline",
340
505
  :header_params => header_params,
341
506
  :query_params => query_params,
342
507
  :form_params => form_params,
343
508
  :body => post_body,
344
509
  :auth_names => auth_names,
345
- :return_type => 'Pipeline')
510
+ :return_type => return_type
511
+ )
512
+
513
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
346
514
  if @api_client.config.debugging
347
515
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
348
516
  end
349
517
  return data, status_code, headers
350
518
  end
351
519
 
352
- #
353
520
  # Retrieve all activities details for an organization pipeline
354
- # @param organization Name of the organization
355
- # @param pipeline Name of the pipeline
521
+ # @param organization [String] Name of the organization
522
+ # @param pipeline [String] Name of the pipeline
356
523
  # @param [Hash] opts the optional parameters
357
- # @return [PipelineActivities]
524
+ # @return [Array<PipelineActivity>]
358
525
  def get_pipeline_activities(organization, pipeline, opts = {})
359
526
  data, _status_code, _headers = get_pipeline_activities_with_http_info(organization, pipeline, opts)
360
- return data
527
+ data
361
528
  end
362
529
 
363
- #
364
530
  # Retrieve all activities details for an organization pipeline
365
- # @param organization Name of the organization
366
- # @param pipeline Name of the pipeline
531
+ # @param organization [String] Name of the organization
532
+ # @param pipeline [String] Name of the pipeline
367
533
  # @param [Hash] opts the optional parameters
368
- # @return [Array<(PipelineActivities, Fixnum, Hash)>] PipelineActivities data, response status code and response headers
534
+ # @return [Array<(Array<PipelineActivity>, Integer, Hash)>] Array<PipelineActivity> data, response status code and response headers
369
535
  def get_pipeline_activities_with_http_info(organization, pipeline, opts = {})
370
536
  if @api_client.config.debugging
371
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_activities ..."
537
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_activities ...'
372
538
  end
373
539
  # verify the required parameter 'organization' is set
374
540
  if @api_client.config.client_side_validation && organization.nil?
@@ -379,57 +545,65 @@ module SwaggyJenkinsClient
379
545
  fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_activities"
380
546
  end
381
547
  # resource path
382
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/activities".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
548
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/activities'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s))
383
549
 
384
550
  # query parameters
385
- query_params = {}
551
+ query_params = opts[:query_params] || {}
386
552
 
387
553
  # header parameters
388
- header_params = {}
554
+ header_params = opts[:header_params] || {}
389
555
  # HTTP header 'Accept' (if needed)
390
556
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
391
557
 
392
558
  # form parameters
393
- form_params = {}
559
+ form_params = opts[:form_params] || {}
394
560
 
395
561
  # http body (model)
396
- post_body = nil
397
- auth_names = ['jenkins_auth']
398
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
562
+ post_body = opts[:debug_body]
563
+
564
+ # return_type
565
+ return_type = opts[:debug_return_type] || 'Array<PipelineActivity>'
566
+
567
+ # auth_names
568
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
569
+
570
+ new_options = opts.merge(
571
+ :operation => :"BlueOceanApi.get_pipeline_activities",
399
572
  :header_params => header_params,
400
573
  :query_params => query_params,
401
574
  :form_params => form_params,
402
575
  :body => post_body,
403
576
  :auth_names => auth_names,
404
- :return_type => 'PipelineActivities')
577
+ :return_type => return_type
578
+ )
579
+
580
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
405
581
  if @api_client.config.debugging
406
582
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_activities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
407
583
  end
408
584
  return data, status_code, headers
409
585
  end
410
586
 
411
- #
412
587
  # Retrieve branch details for an organization pipeline
413
- # @param organization Name of the organization
414
- # @param pipeline Name of the pipeline
415
- # @param branch Name of the branch
588
+ # @param organization [String] Name of the organization
589
+ # @param pipeline [String] Name of the pipeline
590
+ # @param branch [String] Name of the branch
416
591
  # @param [Hash] opts the optional parameters
417
592
  # @return [BranchImpl]
418
593
  def get_pipeline_branch(organization, pipeline, branch, opts = {})
419
594
  data, _status_code, _headers = get_pipeline_branch_with_http_info(organization, pipeline, branch, opts)
420
- return data
595
+ data
421
596
  end
422
597
 
423
- #
424
598
  # Retrieve branch details for an organization pipeline
425
- # @param organization Name of the organization
426
- # @param pipeline Name of the pipeline
427
- # @param branch Name of the branch
599
+ # @param organization [String] Name of the organization
600
+ # @param pipeline [String] Name of the pipeline
601
+ # @param branch [String] Name of the branch
428
602
  # @param [Hash] opts the optional parameters
429
- # @return [Array<(BranchImpl, Fixnum, Hash)>] BranchImpl data, response status code and response headers
603
+ # @return [Array<(BranchImpl, Integer, Hash)>] BranchImpl data, response status code and response headers
430
604
  def get_pipeline_branch_with_http_info(organization, pipeline, branch, opts = {})
431
605
  if @api_client.config.debugging
432
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_branch ..."
606
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_branch ...'
433
607
  end
434
608
  # verify the required parameter 'organization' is set
435
609
  if @api_client.config.client_side_validation && organization.nil?
@@ -444,59 +618,67 @@ module SwaggyJenkinsClient
444
618
  fail ArgumentError, "Missing the required parameter 'branch' when calling BlueOceanApi.get_pipeline_branch"
445
619
  end
446
620
  # resource path
447
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/branches/{branch}/".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'branch' + '}', branch.to_s)
621
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/branches/{branch}/'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'branch' + '}', CGI.escape(branch.to_s))
448
622
 
449
623
  # query parameters
450
- query_params = {}
624
+ query_params = opts[:query_params] || {}
451
625
 
452
626
  # header parameters
453
- header_params = {}
627
+ header_params = opts[:header_params] || {}
454
628
  # HTTP header 'Accept' (if needed)
455
629
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
456
630
 
457
631
  # form parameters
458
- form_params = {}
632
+ form_params = opts[:form_params] || {}
459
633
 
460
634
  # http body (model)
461
- post_body = nil
462
- auth_names = ['jenkins_auth']
463
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
635
+ post_body = opts[:debug_body]
636
+
637
+ # return_type
638
+ return_type = opts[:debug_return_type] || 'BranchImpl'
639
+
640
+ # auth_names
641
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
642
+
643
+ new_options = opts.merge(
644
+ :operation => :"BlueOceanApi.get_pipeline_branch",
464
645
  :header_params => header_params,
465
646
  :query_params => query_params,
466
647
  :form_params => form_params,
467
648
  :body => post_body,
468
649
  :auth_names => auth_names,
469
- :return_type => 'BranchImpl')
650
+ :return_type => return_type
651
+ )
652
+
653
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
470
654
  if @api_client.config.debugging
471
655
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_branch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
472
656
  end
473
657
  return data, status_code, headers
474
658
  end
475
659
 
476
- #
477
660
  # Retrieve branch run details for an organization pipeline
478
- # @param organization Name of the organization
479
- # @param pipeline Name of the pipeline
480
- # @param branch Name of the branch
481
- # @param run Name of the run
661
+ # @param organization [String] Name of the organization
662
+ # @param pipeline [String] Name of the pipeline
663
+ # @param branch [String] Name of the branch
664
+ # @param run [String] Name of the run
482
665
  # @param [Hash] opts the optional parameters
483
666
  # @return [PipelineRun]
484
667
  def get_pipeline_branch_run(organization, pipeline, branch, run, opts = {})
485
668
  data, _status_code, _headers = get_pipeline_branch_run_with_http_info(organization, pipeline, branch, run, opts)
486
- return data
669
+ data
487
670
  end
488
671
 
489
- #
490
672
  # Retrieve branch run details for an organization pipeline
491
- # @param organization Name of the organization
492
- # @param pipeline Name of the pipeline
493
- # @param branch Name of the branch
494
- # @param run Name of the run
673
+ # @param organization [String] Name of the organization
674
+ # @param pipeline [String] Name of the pipeline
675
+ # @param branch [String] Name of the branch
676
+ # @param run [String] Name of the run
495
677
  # @param [Hash] opts the optional parameters
496
- # @return [Array<(PipelineRun, Fixnum, Hash)>] PipelineRun data, response status code and response headers
678
+ # @return [Array<(PipelineRun, Integer, Hash)>] PipelineRun data, response status code and response headers
497
679
  def get_pipeline_branch_run_with_http_info(organization, pipeline, branch, run, opts = {})
498
680
  if @api_client.config.debugging
499
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_branch_run ..."
681
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_branch_run ...'
500
682
  end
501
683
  # verify the required parameter 'organization' is set
502
684
  if @api_client.config.client_side_validation && organization.nil?
@@ -515,55 +697,63 @@ module SwaggyJenkinsClient
515
697
  fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_branch_run"
516
698
  end
517
699
  # resource path
518
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/branches/{branch}/runs/{run}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'branch' + '}', branch.to_s).sub('{' + 'run' + '}', run.to_s)
700
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/branches/{branch}/runs/{run}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'branch' + '}', CGI.escape(branch.to_s)).sub('{' + 'run' + '}', CGI.escape(run.to_s))
519
701
 
520
702
  # query parameters
521
- query_params = {}
703
+ query_params = opts[:query_params] || {}
522
704
 
523
705
  # header parameters
524
- header_params = {}
706
+ header_params = opts[:header_params] || {}
525
707
  # HTTP header 'Accept' (if needed)
526
708
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
527
709
 
528
710
  # form parameters
529
- form_params = {}
711
+ form_params = opts[:form_params] || {}
530
712
 
531
713
  # http body (model)
532
- post_body = nil
533
- auth_names = ['jenkins_auth']
534
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
714
+ post_body = opts[:debug_body]
715
+
716
+ # return_type
717
+ return_type = opts[:debug_return_type] || 'PipelineRun'
718
+
719
+ # auth_names
720
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
721
+
722
+ new_options = opts.merge(
723
+ :operation => :"BlueOceanApi.get_pipeline_branch_run",
535
724
  :header_params => header_params,
536
725
  :query_params => query_params,
537
726
  :form_params => form_params,
538
727
  :body => post_body,
539
728
  :auth_names => auth_names,
540
- :return_type => 'PipelineRun')
729
+ :return_type => return_type
730
+ )
731
+
732
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
541
733
  if @api_client.config.debugging
542
734
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_branch_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
543
735
  end
544
736
  return data, status_code, headers
545
737
  end
546
738
 
547
- #
548
739
  # Retrieve all branches details for an organization pipeline
549
- # @param organization Name of the organization
550
- # @param pipeline Name of the pipeline
740
+ # @param organization [String] Name of the organization
741
+ # @param pipeline [String] Name of the pipeline
551
742
  # @param [Hash] opts the optional parameters
552
743
  # @return [MultibranchPipeline]
553
744
  def get_pipeline_branches(organization, pipeline, opts = {})
554
745
  data, _status_code, _headers = get_pipeline_branches_with_http_info(organization, pipeline, opts)
555
- return data
746
+ data
556
747
  end
557
748
 
558
- #
559
749
  # Retrieve all branches details for an organization pipeline
560
- # @param organization Name of the organization
561
- # @param pipeline Name of the pipeline
750
+ # @param organization [String] Name of the organization
751
+ # @param pipeline [String] Name of the pipeline
562
752
  # @param [Hash] opts the optional parameters
563
- # @return [Array<(MultibranchPipeline, Fixnum, Hash)>] MultibranchPipeline data, response status code and response headers
753
+ # @return [Array<(MultibranchPipeline, Integer, Hash)>] MultibranchPipeline data, response status code and response headers
564
754
  def get_pipeline_branches_with_http_info(organization, pipeline, opts = {})
565
755
  if @api_client.config.debugging
566
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_branches ..."
756
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_branches ...'
567
757
  end
568
758
  # verify the required parameter 'organization' is set
569
759
  if @api_client.config.client_side_validation && organization.nil?
@@ -574,55 +764,63 @@ module SwaggyJenkinsClient
574
764
  fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_branches"
575
765
  end
576
766
  # resource path
577
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/branches".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
767
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/branches'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s))
578
768
 
579
769
  # query parameters
580
- query_params = {}
770
+ query_params = opts[:query_params] || {}
581
771
 
582
772
  # header parameters
583
- header_params = {}
773
+ header_params = opts[:header_params] || {}
584
774
  # HTTP header 'Accept' (if needed)
585
775
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
586
776
 
587
777
  # form parameters
588
- form_params = {}
778
+ form_params = opts[:form_params] || {}
589
779
 
590
780
  # http body (model)
591
- post_body = nil
592
- auth_names = ['jenkins_auth']
593
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
781
+ post_body = opts[:debug_body]
782
+
783
+ # return_type
784
+ return_type = opts[:debug_return_type] || 'MultibranchPipeline'
785
+
786
+ # auth_names
787
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
788
+
789
+ new_options = opts.merge(
790
+ :operation => :"BlueOceanApi.get_pipeline_branches",
594
791
  :header_params => header_params,
595
792
  :query_params => query_params,
596
793
  :form_params => form_params,
597
794
  :body => post_body,
598
795
  :auth_names => auth_names,
599
- :return_type => 'MultibranchPipeline')
796
+ :return_type => return_type
797
+ )
798
+
799
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
600
800
  if @api_client.config.debugging
601
801
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_branches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
602
802
  end
603
803
  return data, status_code, headers
604
804
  end
605
805
 
606
- #
607
806
  # Retrieve pipeline folder for an organization
608
- # @param organization Name of the organization
609
- # @param folder Name of the folder
807
+ # @param organization [String] Name of the organization
808
+ # @param folder [String] Name of the folder
610
809
  # @param [Hash] opts the optional parameters
611
810
  # @return [PipelineFolderImpl]
612
811
  def get_pipeline_folder(organization, folder, opts = {})
613
812
  data, _status_code, _headers = get_pipeline_folder_with_http_info(organization, folder, opts)
614
- return data
813
+ data
615
814
  end
616
815
 
617
- #
618
816
  # Retrieve pipeline folder for an organization
619
- # @param organization Name of the organization
620
- # @param folder Name of the folder
817
+ # @param organization [String] Name of the organization
818
+ # @param folder [String] Name of the folder
621
819
  # @param [Hash] opts the optional parameters
622
- # @return [Array<(PipelineFolderImpl, Fixnum, Hash)>] PipelineFolderImpl data, response status code and response headers
820
+ # @return [Array<(PipelineFolderImpl, Integer, Hash)>] PipelineFolderImpl data, response status code and response headers
623
821
  def get_pipeline_folder_with_http_info(organization, folder, opts = {})
624
822
  if @api_client.config.debugging
625
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_folder ..."
823
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_folder ...'
626
824
  end
627
825
  # verify the required parameter 'organization' is set
628
826
  if @api_client.config.client_side_validation && organization.nil?
@@ -633,57 +831,65 @@ module SwaggyJenkinsClient
633
831
  fail ArgumentError, "Missing the required parameter 'folder' when calling BlueOceanApi.get_pipeline_folder"
634
832
  end
635
833
  # resource path
636
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{folder}/".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'folder' + '}', folder.to_s)
834
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{folder}/'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'folder' + '}', CGI.escape(folder.to_s))
637
835
 
638
836
  # query parameters
639
- query_params = {}
837
+ query_params = opts[:query_params] || {}
640
838
 
641
839
  # header parameters
642
- header_params = {}
840
+ header_params = opts[:header_params] || {}
643
841
  # HTTP header 'Accept' (if needed)
644
842
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
645
843
 
646
844
  # form parameters
647
- form_params = {}
845
+ form_params = opts[:form_params] || {}
648
846
 
649
847
  # http body (model)
650
- post_body = nil
651
- auth_names = ['jenkins_auth']
652
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
848
+ post_body = opts[:debug_body]
849
+
850
+ # return_type
851
+ return_type = opts[:debug_return_type] || 'PipelineFolderImpl'
852
+
853
+ # auth_names
854
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
855
+
856
+ new_options = opts.merge(
857
+ :operation => :"BlueOceanApi.get_pipeline_folder",
653
858
  :header_params => header_params,
654
859
  :query_params => query_params,
655
860
  :form_params => form_params,
656
861
  :body => post_body,
657
862
  :auth_names => auth_names,
658
- :return_type => 'PipelineFolderImpl')
863
+ :return_type => return_type
864
+ )
865
+
866
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
659
867
  if @api_client.config.debugging
660
868
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
661
869
  end
662
870
  return data, status_code, headers
663
871
  end
664
872
 
665
- #
666
873
  # Retrieve pipeline details for an organization folder
667
- # @param organization Name of the organization
668
- # @param pipeline Name of the pipeline
669
- # @param folder Name of the folder
874
+ # @param organization [String] Name of the organization
875
+ # @param pipeline [String] Name of the pipeline
876
+ # @param folder [String] Name of the folder
670
877
  # @param [Hash] opts the optional parameters
671
878
  # @return [PipelineImpl]
672
879
  def get_pipeline_folder_pipeline(organization, pipeline, folder, opts = {})
673
880
  data, _status_code, _headers = get_pipeline_folder_pipeline_with_http_info(organization, pipeline, folder, opts)
674
- return data
881
+ data
675
882
  end
676
883
 
677
- #
678
884
  # Retrieve pipeline details for an organization folder
679
- # @param organization Name of the organization
680
- # @param pipeline Name of the pipeline
681
- # @param folder Name of the folder
885
+ # @param organization [String] Name of the organization
886
+ # @param pipeline [String] Name of the pipeline
887
+ # @param folder [String] Name of the folder
682
888
  # @param [Hash] opts the optional parameters
683
- # @return [Array<(PipelineImpl, Fixnum, Hash)>] PipelineImpl data, response status code and response headers
889
+ # @return [Array<(PipelineImpl, Integer, Hash)>] PipelineImpl data, response status code and response headers
684
890
  def get_pipeline_folder_pipeline_with_http_info(organization, pipeline, folder, opts = {})
685
891
  if @api_client.config.debugging
686
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_folder_pipeline ..."
892
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_folder_pipeline ...'
687
893
  end
688
894
  # verify the required parameter 'organization' is set
689
895
  if @api_client.config.client_side_validation && organization.nil?
@@ -698,55 +904,63 @@ module SwaggyJenkinsClient
698
904
  fail ArgumentError, "Missing the required parameter 'folder' when calling BlueOceanApi.get_pipeline_folder_pipeline"
699
905
  end
700
906
  # resource path
701
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{folder}/pipelines/{pipeline}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'folder' + '}', folder.to_s)
907
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{folder}/pipelines/{pipeline}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'folder' + '}', CGI.escape(folder.to_s))
702
908
 
703
909
  # query parameters
704
- query_params = {}
910
+ query_params = opts[:query_params] || {}
705
911
 
706
912
  # header parameters
707
- header_params = {}
913
+ header_params = opts[:header_params] || {}
708
914
  # HTTP header 'Accept' (if needed)
709
915
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
710
916
 
711
917
  # form parameters
712
- form_params = {}
918
+ form_params = opts[:form_params] || {}
713
919
 
714
920
  # http body (model)
715
- post_body = nil
716
- auth_names = ['jenkins_auth']
717
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
921
+ post_body = opts[:debug_body]
922
+
923
+ # return_type
924
+ return_type = opts[:debug_return_type] || 'PipelineImpl'
925
+
926
+ # auth_names
927
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
928
+
929
+ new_options = opts.merge(
930
+ :operation => :"BlueOceanApi.get_pipeline_folder_pipeline",
718
931
  :header_params => header_params,
719
932
  :query_params => query_params,
720
933
  :form_params => form_params,
721
934
  :body => post_body,
722
935
  :auth_names => auth_names,
723
- :return_type => 'PipelineImpl')
936
+ :return_type => return_type
937
+ )
938
+
939
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
724
940
  if @api_client.config.debugging
725
941
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_folder_pipeline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
726
942
  end
727
943
  return data, status_code, headers
728
944
  end
729
945
 
730
- #
731
946
  # Retrieve queue details for an organization pipeline
732
- # @param organization Name of the organization
733
- # @param pipeline Name of the pipeline
947
+ # @param organization [String] Name of the organization
948
+ # @param pipeline [String] Name of the pipeline
734
949
  # @param [Hash] opts the optional parameters
735
- # @return [PipelineQueue]
950
+ # @return [Array<QueueItemImpl>]
736
951
  def get_pipeline_queue(organization, pipeline, opts = {})
737
952
  data, _status_code, _headers = get_pipeline_queue_with_http_info(organization, pipeline, opts)
738
- return data
953
+ data
739
954
  end
740
955
 
741
- #
742
956
  # Retrieve queue details for an organization pipeline
743
- # @param organization Name of the organization
744
- # @param pipeline Name of the pipeline
957
+ # @param organization [String] Name of the organization
958
+ # @param pipeline [String] Name of the pipeline
745
959
  # @param [Hash] opts the optional parameters
746
- # @return [Array<(PipelineQueue, Fixnum, Hash)>] PipelineQueue data, response status code and response headers
960
+ # @return [Array<(Array<QueueItemImpl>, Integer, Hash)>] Array<QueueItemImpl> data, response status code and response headers
747
961
  def get_pipeline_queue_with_http_info(organization, pipeline, opts = {})
748
962
  if @api_client.config.debugging
749
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_queue ..."
963
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_queue ...'
750
964
  end
751
965
  # verify the required parameter 'organization' is set
752
966
  if @api_client.config.client_side_validation && organization.nil?
@@ -757,57 +971,65 @@ module SwaggyJenkinsClient
757
971
  fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_queue"
758
972
  end
759
973
  # resource path
760
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/queue".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
974
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/queue'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s))
761
975
 
762
976
  # query parameters
763
- query_params = {}
977
+ query_params = opts[:query_params] || {}
764
978
 
765
979
  # header parameters
766
- header_params = {}
980
+ header_params = opts[:header_params] || {}
767
981
  # HTTP header 'Accept' (if needed)
768
982
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
769
983
 
770
984
  # form parameters
771
- form_params = {}
985
+ form_params = opts[:form_params] || {}
772
986
 
773
987
  # http body (model)
774
- post_body = nil
775
- auth_names = ['jenkins_auth']
776
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
988
+ post_body = opts[:debug_body]
989
+
990
+ # return_type
991
+ return_type = opts[:debug_return_type] || 'Array<QueueItemImpl>'
992
+
993
+ # auth_names
994
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
995
+
996
+ new_options = opts.merge(
997
+ :operation => :"BlueOceanApi.get_pipeline_queue",
777
998
  :header_params => header_params,
778
999
  :query_params => query_params,
779
1000
  :form_params => form_params,
780
1001
  :body => post_body,
781
1002
  :auth_names => auth_names,
782
- :return_type => 'PipelineQueue')
1003
+ :return_type => return_type
1004
+ )
1005
+
1006
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
783
1007
  if @api_client.config.debugging
784
1008
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
785
1009
  end
786
1010
  return data, status_code, headers
787
1011
  end
788
1012
 
789
- #
790
1013
  # Retrieve run details for an organization pipeline
791
- # @param organization Name of the organization
792
- # @param pipeline Name of the pipeline
793
- # @param run Name of the run
1014
+ # @param organization [String] Name of the organization
1015
+ # @param pipeline [String] Name of the pipeline
1016
+ # @param run [String] Name of the run
794
1017
  # @param [Hash] opts the optional parameters
795
1018
  # @return [PipelineRun]
796
1019
  def get_pipeline_run(organization, pipeline, run, opts = {})
797
1020
  data, _status_code, _headers = get_pipeline_run_with_http_info(organization, pipeline, run, opts)
798
- return data
1021
+ data
799
1022
  end
800
1023
 
801
- #
802
1024
  # Retrieve run details for an organization pipeline
803
- # @param organization Name of the organization
804
- # @param pipeline Name of the pipeline
805
- # @param run Name of the run
1025
+ # @param organization [String] Name of the organization
1026
+ # @param pipeline [String] Name of the pipeline
1027
+ # @param run [String] Name of the run
806
1028
  # @param [Hash] opts the optional parameters
807
- # @return [Array<(PipelineRun, Fixnum, Hash)>] PipelineRun data, response status code and response headers
1029
+ # @return [Array<(PipelineRun, Integer, Hash)>] PipelineRun data, response status code and response headers
808
1030
  def get_pipeline_run_with_http_info(organization, pipeline, run, opts = {})
809
1031
  if @api_client.config.debugging
810
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run ..."
1032
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_run ...'
811
1033
  end
812
1034
  # verify the required parameter 'organization' is set
813
1035
  if @api_client.config.client_side_validation && organization.nil?
@@ -822,61 +1044,69 @@ module SwaggyJenkinsClient
822
1044
  fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_run"
823
1045
  end
824
1046
  # resource path
825
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s)
1047
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'run' + '}', CGI.escape(run.to_s))
826
1048
 
827
1049
  # query parameters
828
- query_params = {}
1050
+ query_params = opts[:query_params] || {}
829
1051
 
830
1052
  # header parameters
831
- header_params = {}
1053
+ header_params = opts[:header_params] || {}
832
1054
  # HTTP header 'Accept' (if needed)
833
1055
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
834
1056
 
835
1057
  # form parameters
836
- form_params = {}
1058
+ form_params = opts[:form_params] || {}
837
1059
 
838
1060
  # http body (model)
839
- post_body = nil
840
- auth_names = ['jenkins_auth']
841
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1061
+ post_body = opts[:debug_body]
1062
+
1063
+ # return_type
1064
+ return_type = opts[:debug_return_type] || 'PipelineRun'
1065
+
1066
+ # auth_names
1067
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1068
+
1069
+ new_options = opts.merge(
1070
+ :operation => :"BlueOceanApi.get_pipeline_run",
842
1071
  :header_params => header_params,
843
1072
  :query_params => query_params,
844
1073
  :form_params => form_params,
845
1074
  :body => post_body,
846
1075
  :auth_names => auth_names,
847
- :return_type => 'PipelineRun')
1076
+ :return_type => return_type
1077
+ )
1078
+
1079
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
848
1080
  if @api_client.config.debugging
849
1081
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
850
1082
  end
851
1083
  return data, status_code, headers
852
1084
  end
853
1085
 
854
- #
855
1086
  # Get log for a pipeline run
856
- # @param organization Name of the organization
857
- # @param pipeline Name of the pipeline
858
- # @param run Name of the run
1087
+ # @param organization [String] Name of the organization
1088
+ # @param pipeline [String] Name of the pipeline
1089
+ # @param run [String] Name of the run
859
1090
  # @param [Hash] opts the optional parameters
860
1091
  # @option opts [Integer] :start Start position of the log
861
- # @option opts [BOOLEAN] :download Set to true in order to download the file, otherwise it&#39;s passed as a response body
1092
+ # @option opts [Boolean] :download Set to true in order to download the file, otherwise it&#39;s passed as a response body
862
1093
  # @return [String]
863
1094
  def get_pipeline_run_log(organization, pipeline, run, opts = {})
864
1095
  data, _status_code, _headers = get_pipeline_run_log_with_http_info(organization, pipeline, run, opts)
865
- return data
1096
+ data
866
1097
  end
867
1098
 
868
- #
869
1099
  # Get log for a pipeline run
870
- # @param organization Name of the organization
871
- # @param pipeline Name of the pipeline
872
- # @param run Name of the run
1100
+ # @param organization [String] Name of the organization
1101
+ # @param pipeline [String] Name of the pipeline
1102
+ # @param run [String] Name of the run
873
1103
  # @param [Hash] opts the optional parameters
874
1104
  # @option opts [Integer] :start Start position of the log
875
- # @option opts [BOOLEAN] :download Set to true in order to download the file, otherwise it&#39;s passed as a response body
876
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1105
+ # @option opts [Boolean] :download Set to true in order to download the file, otherwise it&#39;s passed as a response body
1106
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
877
1107
  def get_pipeline_run_log_with_http_info(organization, pipeline, run, opts = {})
878
1108
  if @api_client.config.debugging
879
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_log ..."
1109
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_run_log ...'
880
1110
  end
881
1111
  # verify the required parameter 'organization' is set
882
1112
  if @api_client.config.client_side_validation && organization.nil?
@@ -891,61 +1121,69 @@ module SwaggyJenkinsClient
891
1121
  fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_run_log"
892
1122
  end
893
1123
  # resource path
894
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/log".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s)
1124
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/log'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'run' + '}', CGI.escape(run.to_s))
895
1125
 
896
1126
  # query parameters
897
- query_params = {}
1127
+ query_params = opts[:query_params] || {}
898
1128
  query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
899
1129
  query_params[:'download'] = opts[:'download'] if !opts[:'download'].nil?
900
1130
 
901
1131
  # header parameters
902
- header_params = {}
1132
+ header_params = opts[:header_params] || {}
903
1133
  # HTTP header 'Accept' (if needed)
904
1134
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
905
1135
 
906
1136
  # form parameters
907
- form_params = {}
1137
+ form_params = opts[:form_params] || {}
908
1138
 
909
1139
  # http body (model)
910
- post_body = nil
911
- auth_names = ['jenkins_auth']
912
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1140
+ post_body = opts[:debug_body]
1141
+
1142
+ # return_type
1143
+ return_type = opts[:debug_return_type] || 'String'
1144
+
1145
+ # auth_names
1146
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1147
+
1148
+ new_options = opts.merge(
1149
+ :operation => :"BlueOceanApi.get_pipeline_run_log",
913
1150
  :header_params => header_params,
914
1151
  :query_params => query_params,
915
1152
  :form_params => form_params,
916
1153
  :body => post_body,
917
1154
  :auth_names => auth_names,
918
- :return_type => 'String')
1155
+ :return_type => return_type
1156
+ )
1157
+
1158
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
919
1159
  if @api_client.config.debugging
920
1160
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
921
1161
  end
922
1162
  return data, status_code, headers
923
1163
  end
924
1164
 
925
- #
926
1165
  # Retrieve run node details for an organization pipeline
927
- # @param organization Name of the organization
928
- # @param pipeline Name of the pipeline
929
- # @param run Name of the run
930
- # @param node Name of the node
1166
+ # @param organization [String] Name of the organization
1167
+ # @param pipeline [String] Name of the pipeline
1168
+ # @param run [String] Name of the run
1169
+ # @param node [String] Name of the node
931
1170
  # @param [Hash] opts the optional parameters
932
1171
  # @return [PipelineRunNode]
933
1172
  def get_pipeline_run_node(organization, pipeline, run, node, opts = {})
934
1173
  data, _status_code, _headers = get_pipeline_run_node_with_http_info(organization, pipeline, run, node, opts)
935
- return data
1174
+ data
936
1175
  end
937
1176
 
938
- #
939
1177
  # Retrieve run node details for an organization pipeline
940
- # @param organization Name of the organization
941
- # @param pipeline Name of the pipeline
942
- # @param run Name of the run
943
- # @param node Name of the node
1178
+ # @param organization [String] Name of the organization
1179
+ # @param pipeline [String] Name of the pipeline
1180
+ # @param run [String] Name of the run
1181
+ # @param node [String] Name of the node
944
1182
  # @param [Hash] opts the optional parameters
945
- # @return [Array<(PipelineRunNode, Fixnum, Hash)>] PipelineRunNode data, response status code and response headers
1183
+ # @return [Array<(PipelineRunNode, Integer, Hash)>] PipelineRunNode data, response status code and response headers
946
1184
  def get_pipeline_run_node_with_http_info(organization, pipeline, run, node, opts = {})
947
1185
  if @api_client.config.debugging
948
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_node ..."
1186
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_run_node ...'
949
1187
  end
950
1188
  # verify the required parameter 'organization' is set
951
1189
  if @api_client.config.client_side_validation && organization.nil?
@@ -964,61 +1202,69 @@ module SwaggyJenkinsClient
964
1202
  fail ArgumentError, "Missing the required parameter 'node' when calling BlueOceanApi.get_pipeline_run_node"
965
1203
  end
966
1204
  # resource path
967
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s).sub('{' + 'node' + '}', node.to_s)
1205
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'run' + '}', CGI.escape(run.to_s)).sub('{' + 'node' + '}', CGI.escape(node.to_s))
968
1206
 
969
1207
  # query parameters
970
- query_params = {}
1208
+ query_params = opts[:query_params] || {}
971
1209
 
972
1210
  # header parameters
973
- header_params = {}
1211
+ header_params = opts[:header_params] || {}
974
1212
  # HTTP header 'Accept' (if needed)
975
1213
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
976
1214
 
977
1215
  # form parameters
978
- form_params = {}
1216
+ form_params = opts[:form_params] || {}
979
1217
 
980
1218
  # http body (model)
981
- post_body = nil
982
- auth_names = ['jenkins_auth']
983
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1219
+ post_body = opts[:debug_body]
1220
+
1221
+ # return_type
1222
+ return_type = opts[:debug_return_type] || 'PipelineRunNode'
1223
+
1224
+ # auth_names
1225
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1226
+
1227
+ new_options = opts.merge(
1228
+ :operation => :"BlueOceanApi.get_pipeline_run_node",
984
1229
  :header_params => header_params,
985
1230
  :query_params => query_params,
986
1231
  :form_params => form_params,
987
1232
  :body => post_body,
988
1233
  :auth_names => auth_names,
989
- :return_type => 'PipelineRunNode')
1234
+ :return_type => return_type
1235
+ )
1236
+
1237
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
990
1238
  if @api_client.config.debugging
991
1239
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
992
1240
  end
993
1241
  return data, status_code, headers
994
1242
  end
995
1243
 
996
- #
997
1244
  # Retrieve run node details for an organization pipeline
998
- # @param organization Name of the organization
999
- # @param pipeline Name of the pipeline
1000
- # @param run Name of the run
1001
- # @param node Name of the node
1002
- # @param step Name of the step
1245
+ # @param organization [String] Name of the organization
1246
+ # @param pipeline [String] Name of the pipeline
1247
+ # @param run [String] Name of the run
1248
+ # @param node [String] Name of the node
1249
+ # @param step [String] Name of the step
1003
1250
  # @param [Hash] opts the optional parameters
1004
1251
  # @return [PipelineStepImpl]
1005
1252
  def get_pipeline_run_node_step(organization, pipeline, run, node, step, opts = {})
1006
1253
  data, _status_code, _headers = get_pipeline_run_node_step_with_http_info(organization, pipeline, run, node, step, opts)
1007
- return data
1254
+ data
1008
1255
  end
1009
1256
 
1010
- #
1011
1257
  # Retrieve run node details for an organization pipeline
1012
- # @param organization Name of the organization
1013
- # @param pipeline Name of the pipeline
1014
- # @param run Name of the run
1015
- # @param node Name of the node
1016
- # @param step Name of the step
1258
+ # @param organization [String] Name of the organization
1259
+ # @param pipeline [String] Name of the pipeline
1260
+ # @param run [String] Name of the run
1261
+ # @param node [String] Name of the node
1262
+ # @param step [String] Name of the step
1017
1263
  # @param [Hash] opts the optional parameters
1018
- # @return [Array<(PipelineStepImpl, Fixnum, Hash)>] PipelineStepImpl data, response status code and response headers
1264
+ # @return [Array<(PipelineStepImpl, Integer, Hash)>] PipelineStepImpl data, response status code and response headers
1019
1265
  def get_pipeline_run_node_step_with_http_info(organization, pipeline, run, node, step, opts = {})
1020
1266
  if @api_client.config.debugging
1021
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_node_step ..."
1267
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_run_node_step ...'
1022
1268
  end
1023
1269
  # verify the required parameter 'organization' is set
1024
1270
  if @api_client.config.client_side_validation && organization.nil?
@@ -1041,61 +1287,69 @@ module SwaggyJenkinsClient
1041
1287
  fail ArgumentError, "Missing the required parameter 'step' when calling BlueOceanApi.get_pipeline_run_node_step"
1042
1288
  end
1043
1289
  # resource path
1044
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps/{step}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s).sub('{' + 'node' + '}', node.to_s).sub('{' + 'step' + '}', step.to_s)
1290
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps/{step}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'run' + '}', CGI.escape(run.to_s)).sub('{' + 'node' + '}', CGI.escape(node.to_s)).sub('{' + 'step' + '}', CGI.escape(step.to_s))
1045
1291
 
1046
1292
  # query parameters
1047
- query_params = {}
1293
+ query_params = opts[:query_params] || {}
1048
1294
 
1049
1295
  # header parameters
1050
- header_params = {}
1296
+ header_params = opts[:header_params] || {}
1051
1297
  # HTTP header 'Accept' (if needed)
1052
1298
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1053
1299
 
1054
1300
  # form parameters
1055
- form_params = {}
1301
+ form_params = opts[:form_params] || {}
1056
1302
 
1057
1303
  # http body (model)
1058
- post_body = nil
1059
- auth_names = ['jenkins_auth']
1060
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1304
+ post_body = opts[:debug_body]
1305
+
1306
+ # return_type
1307
+ return_type = opts[:debug_return_type] || 'PipelineStepImpl'
1308
+
1309
+ # auth_names
1310
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1311
+
1312
+ new_options = opts.merge(
1313
+ :operation => :"BlueOceanApi.get_pipeline_run_node_step",
1061
1314
  :header_params => header_params,
1062
1315
  :query_params => query_params,
1063
1316
  :form_params => form_params,
1064
1317
  :body => post_body,
1065
1318
  :auth_names => auth_names,
1066
- :return_type => 'PipelineStepImpl')
1319
+ :return_type => return_type
1320
+ )
1321
+
1322
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1067
1323
  if @api_client.config.debugging
1068
1324
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_node_step\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1069
1325
  end
1070
1326
  return data, status_code, headers
1071
1327
  end
1072
1328
 
1073
- #
1074
1329
  # Get log for a pipeline run node step
1075
- # @param organization Name of the organization
1076
- # @param pipeline Name of the pipeline
1077
- # @param run Name of the run
1078
- # @param node Name of the node
1079
- # @param step Name of the step
1330
+ # @param organization [String] Name of the organization
1331
+ # @param pipeline [String] Name of the pipeline
1332
+ # @param run [String] Name of the run
1333
+ # @param node [String] Name of the node
1334
+ # @param step [String] Name of the step
1080
1335
  # @param [Hash] opts the optional parameters
1081
1336
  # @return [String]
1082
1337
  def get_pipeline_run_node_step_log(organization, pipeline, run, node, step, opts = {})
1083
1338
  data, _status_code, _headers = get_pipeline_run_node_step_log_with_http_info(organization, pipeline, run, node, step, opts)
1084
- return data
1339
+ data
1085
1340
  end
1086
1341
 
1087
- #
1088
1342
  # Get log for a pipeline run node step
1089
- # @param organization Name of the organization
1090
- # @param pipeline Name of the pipeline
1091
- # @param run Name of the run
1092
- # @param node Name of the node
1093
- # @param step Name of the step
1343
+ # @param organization [String] Name of the organization
1344
+ # @param pipeline [String] Name of the pipeline
1345
+ # @param run [String] Name of the run
1346
+ # @param node [String] Name of the node
1347
+ # @param step [String] Name of the step
1094
1348
  # @param [Hash] opts the optional parameters
1095
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1349
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
1096
1350
  def get_pipeline_run_node_step_log_with_http_info(organization, pipeline, run, node, step, opts = {})
1097
1351
  if @api_client.config.debugging
1098
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_node_step_log ..."
1352
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_run_node_step_log ...'
1099
1353
  end
1100
1354
  # verify the required parameter 'organization' is set
1101
1355
  if @api_client.config.client_side_validation && organization.nil?
@@ -1118,59 +1372,67 @@ module SwaggyJenkinsClient
1118
1372
  fail ArgumentError, "Missing the required parameter 'step' when calling BlueOceanApi.get_pipeline_run_node_step_log"
1119
1373
  end
1120
1374
  # resource path
1121
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps/{step}/log".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s).sub('{' + 'node' + '}', node.to_s).sub('{' + 'step' + '}', step.to_s)
1375
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps/{step}/log'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'run' + '}', CGI.escape(run.to_s)).sub('{' + 'node' + '}', CGI.escape(node.to_s)).sub('{' + 'step' + '}', CGI.escape(step.to_s))
1122
1376
 
1123
1377
  # query parameters
1124
- query_params = {}
1378
+ query_params = opts[:query_params] || {}
1125
1379
 
1126
1380
  # header parameters
1127
- header_params = {}
1381
+ header_params = opts[:header_params] || {}
1128
1382
  # HTTP header 'Accept' (if needed)
1129
1383
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1130
1384
 
1131
1385
  # form parameters
1132
- form_params = {}
1386
+ form_params = opts[:form_params] || {}
1133
1387
 
1134
1388
  # http body (model)
1135
- post_body = nil
1136
- auth_names = ['jenkins_auth']
1137
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1389
+ post_body = opts[:debug_body]
1390
+
1391
+ # return_type
1392
+ return_type = opts[:debug_return_type] || 'String'
1393
+
1394
+ # auth_names
1395
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1396
+
1397
+ new_options = opts.merge(
1398
+ :operation => :"BlueOceanApi.get_pipeline_run_node_step_log",
1138
1399
  :header_params => header_params,
1139
1400
  :query_params => query_params,
1140
1401
  :form_params => form_params,
1141
1402
  :body => post_body,
1142
1403
  :auth_names => auth_names,
1143
- :return_type => 'String')
1404
+ :return_type => return_type
1405
+ )
1406
+
1407
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1144
1408
  if @api_client.config.debugging
1145
1409
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_node_step_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1146
1410
  end
1147
1411
  return data, status_code, headers
1148
1412
  end
1149
1413
 
1150
- #
1151
1414
  # Retrieve run node steps details for an organization pipeline
1152
- # @param organization Name of the organization
1153
- # @param pipeline Name of the pipeline
1154
- # @param run Name of the run
1155
- # @param node Name of the node
1415
+ # @param organization [String] Name of the organization
1416
+ # @param pipeline [String] Name of the pipeline
1417
+ # @param run [String] Name of the run
1418
+ # @param node [String] Name of the node
1156
1419
  # @param [Hash] opts the optional parameters
1157
- # @return [PipelineRunNodeSteps]
1420
+ # @return [Array<PipelineStepImpl>]
1158
1421
  def get_pipeline_run_node_steps(organization, pipeline, run, node, opts = {})
1159
1422
  data, _status_code, _headers = get_pipeline_run_node_steps_with_http_info(organization, pipeline, run, node, opts)
1160
- return data
1423
+ data
1161
1424
  end
1162
1425
 
1163
- #
1164
1426
  # Retrieve run node steps details for an organization pipeline
1165
- # @param organization Name of the organization
1166
- # @param pipeline Name of the pipeline
1167
- # @param run Name of the run
1168
- # @param node Name of the node
1427
+ # @param organization [String] Name of the organization
1428
+ # @param pipeline [String] Name of the pipeline
1429
+ # @param run [String] Name of the run
1430
+ # @param node [String] Name of the node
1169
1431
  # @param [Hash] opts the optional parameters
1170
- # @return [Array<(PipelineRunNodeSteps, Fixnum, Hash)>] PipelineRunNodeSteps data, response status code and response headers
1432
+ # @return [Array<(Array<PipelineStepImpl>, Integer, Hash)>] Array<PipelineStepImpl> data, response status code and response headers
1171
1433
  def get_pipeline_run_node_steps_with_http_info(organization, pipeline, run, node, opts = {})
1172
1434
  if @api_client.config.debugging
1173
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_node_steps ..."
1435
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_run_node_steps ...'
1174
1436
  end
1175
1437
  # verify the required parameter 'organization' is set
1176
1438
  if @api_client.config.client_side_validation && organization.nil?
@@ -1189,57 +1451,65 @@ module SwaggyJenkinsClient
1189
1451
  fail ArgumentError, "Missing the required parameter 'node' when calling BlueOceanApi.get_pipeline_run_node_steps"
1190
1452
  end
1191
1453
  # resource path
1192
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s).sub('{' + 'node' + '}', node.to_s)
1454
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes/{node}/steps'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'run' + '}', CGI.escape(run.to_s)).sub('{' + 'node' + '}', CGI.escape(node.to_s))
1193
1455
 
1194
1456
  # query parameters
1195
- query_params = {}
1457
+ query_params = opts[:query_params] || {}
1196
1458
 
1197
1459
  # header parameters
1198
- header_params = {}
1460
+ header_params = opts[:header_params] || {}
1199
1461
  # HTTP header 'Accept' (if needed)
1200
1462
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1201
1463
 
1202
1464
  # form parameters
1203
- form_params = {}
1465
+ form_params = opts[:form_params] || {}
1204
1466
 
1205
1467
  # http body (model)
1206
- post_body = nil
1207
- auth_names = ['jenkins_auth']
1208
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1468
+ post_body = opts[:debug_body]
1469
+
1470
+ # return_type
1471
+ return_type = opts[:debug_return_type] || 'Array<PipelineStepImpl>'
1472
+
1473
+ # auth_names
1474
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1475
+
1476
+ new_options = opts.merge(
1477
+ :operation => :"BlueOceanApi.get_pipeline_run_node_steps",
1209
1478
  :header_params => header_params,
1210
1479
  :query_params => query_params,
1211
1480
  :form_params => form_params,
1212
1481
  :body => post_body,
1213
1482
  :auth_names => auth_names,
1214
- :return_type => 'PipelineRunNodeSteps')
1483
+ :return_type => return_type
1484
+ )
1485
+
1486
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1215
1487
  if @api_client.config.debugging
1216
1488
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_node_steps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1217
1489
  end
1218
1490
  return data, status_code, headers
1219
1491
  end
1220
1492
 
1221
- #
1222
1493
  # Retrieve run nodes details for an organization pipeline
1223
- # @param organization Name of the organization
1224
- # @param pipeline Name of the pipeline
1225
- # @param run Name of the run
1494
+ # @param organization [String] Name of the organization
1495
+ # @param pipeline [String] Name of the pipeline
1496
+ # @param run [String] Name of the run
1226
1497
  # @param [Hash] opts the optional parameters
1227
- # @return [PipelineRunNodes]
1498
+ # @return [Array<PipelineRunNode>]
1228
1499
  def get_pipeline_run_nodes(organization, pipeline, run, opts = {})
1229
1500
  data, _status_code, _headers = get_pipeline_run_nodes_with_http_info(organization, pipeline, run, opts)
1230
- return data
1501
+ data
1231
1502
  end
1232
1503
 
1233
- #
1234
1504
  # Retrieve run nodes details for an organization pipeline
1235
- # @param organization Name of the organization
1236
- # @param pipeline Name of the pipeline
1237
- # @param run Name of the run
1505
+ # @param organization [String] Name of the organization
1506
+ # @param pipeline [String] Name of the pipeline
1507
+ # @param run [String] Name of the run
1238
1508
  # @param [Hash] opts the optional parameters
1239
- # @return [Array<(PipelineRunNodes, Fixnum, Hash)>] PipelineRunNodes data, response status code and response headers
1509
+ # @return [Array<(Array<PipelineRunNode>, Integer, Hash)>] Array<PipelineRunNode> data, response status code and response headers
1240
1510
  def get_pipeline_run_nodes_with_http_info(organization, pipeline, run, opts = {})
1241
1511
  if @api_client.config.debugging
1242
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_run_nodes ..."
1512
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_run_nodes ...'
1243
1513
  end
1244
1514
  # verify the required parameter 'organization' is set
1245
1515
  if @api_client.config.client_side_validation && organization.nil?
@@ -1254,55 +1524,63 @@ module SwaggyJenkinsClient
1254
1524
  fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.get_pipeline_run_nodes"
1255
1525
  end
1256
1526
  # resource path
1257
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s)
1527
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'run' + '}', CGI.escape(run.to_s))
1258
1528
 
1259
1529
  # query parameters
1260
- query_params = {}
1530
+ query_params = opts[:query_params] || {}
1261
1531
 
1262
1532
  # header parameters
1263
- header_params = {}
1533
+ header_params = opts[:header_params] || {}
1264
1534
  # HTTP header 'Accept' (if needed)
1265
1535
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1266
1536
 
1267
1537
  # form parameters
1268
- form_params = {}
1538
+ form_params = opts[:form_params] || {}
1269
1539
 
1270
1540
  # http body (model)
1271
- post_body = nil
1272
- auth_names = ['jenkins_auth']
1273
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1541
+ post_body = opts[:debug_body]
1542
+
1543
+ # return_type
1544
+ return_type = opts[:debug_return_type] || 'Array<PipelineRunNode>'
1545
+
1546
+ # auth_names
1547
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1548
+
1549
+ new_options = opts.merge(
1550
+ :operation => :"BlueOceanApi.get_pipeline_run_nodes",
1274
1551
  :header_params => header_params,
1275
1552
  :query_params => query_params,
1276
1553
  :form_params => form_params,
1277
1554
  :body => post_body,
1278
1555
  :auth_names => auth_names,
1279
- :return_type => 'PipelineRunNodes')
1556
+ :return_type => return_type
1557
+ )
1558
+
1559
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1280
1560
  if @api_client.config.debugging
1281
1561
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_run_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1282
1562
  end
1283
1563
  return data, status_code, headers
1284
1564
  end
1285
1565
 
1286
- #
1287
1566
  # Retrieve all runs details for an organization pipeline
1288
- # @param organization Name of the organization
1289
- # @param pipeline Name of the pipeline
1567
+ # @param organization [String] Name of the organization
1568
+ # @param pipeline [String] Name of the pipeline
1290
1569
  # @param [Hash] opts the optional parameters
1291
- # @return [PipelineRuns]
1570
+ # @return [Array<PipelineRun>]
1292
1571
  def get_pipeline_runs(organization, pipeline, opts = {})
1293
1572
  data, _status_code, _headers = get_pipeline_runs_with_http_info(organization, pipeline, opts)
1294
- return data
1573
+ data
1295
1574
  end
1296
1575
 
1297
- #
1298
1576
  # Retrieve all runs details for an organization pipeline
1299
- # @param organization Name of the organization
1300
- # @param pipeline Name of the pipeline
1577
+ # @param organization [String] Name of the organization
1578
+ # @param pipeline [String] Name of the pipeline
1301
1579
  # @param [Hash] opts the optional parameters
1302
- # @return [Array<(PipelineRuns, Fixnum, Hash)>] PipelineRuns data, response status code and response headers
1580
+ # @return [Array<(Array<PipelineRun>, Integer, Hash)>] Array<PipelineRun> data, response status code and response headers
1303
1581
  def get_pipeline_runs_with_http_info(organization, pipeline, opts = {})
1304
1582
  if @api_client.config.debugging
1305
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipeline_runs ..."
1583
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipeline_runs ...'
1306
1584
  end
1307
1585
  # verify the required parameter 'organization' is set
1308
1586
  if @api_client.config.client_side_validation && organization.nil?
@@ -1313,108 +1591,124 @@ module SwaggyJenkinsClient
1313
1591
  fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.get_pipeline_runs"
1314
1592
  end
1315
1593
  # resource path
1316
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
1594
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s))
1317
1595
 
1318
1596
  # query parameters
1319
- query_params = {}
1597
+ query_params = opts[:query_params] || {}
1320
1598
 
1321
1599
  # header parameters
1322
- header_params = {}
1600
+ header_params = opts[:header_params] || {}
1323
1601
  # HTTP header 'Accept' (if needed)
1324
1602
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1325
1603
 
1326
1604
  # form parameters
1327
- form_params = {}
1605
+ form_params = opts[:form_params] || {}
1328
1606
 
1329
1607
  # http body (model)
1330
- post_body = nil
1331
- auth_names = ['jenkins_auth']
1332
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1608
+ post_body = opts[:debug_body]
1609
+
1610
+ # return_type
1611
+ return_type = opts[:debug_return_type] || 'Array<PipelineRun>'
1612
+
1613
+ # auth_names
1614
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1615
+
1616
+ new_options = opts.merge(
1617
+ :operation => :"BlueOceanApi.get_pipeline_runs",
1333
1618
  :header_params => header_params,
1334
1619
  :query_params => query_params,
1335
1620
  :form_params => form_params,
1336
1621
  :body => post_body,
1337
1622
  :auth_names => auth_names,
1338
- :return_type => 'PipelineRuns')
1623
+ :return_type => return_type
1624
+ )
1625
+
1626
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1339
1627
  if @api_client.config.debugging
1340
1628
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipeline_runs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1341
1629
  end
1342
1630
  return data, status_code, headers
1343
1631
  end
1344
1632
 
1345
- #
1346
1633
  # Retrieve all pipelines details for an organization
1347
- # @param organization Name of the organization
1634
+ # @param organization [String] Name of the organization
1348
1635
  # @param [Hash] opts the optional parameters
1349
- # @return [Pipelines]
1636
+ # @return [Array<Pipeline>]
1350
1637
  def get_pipelines(organization, opts = {})
1351
1638
  data, _status_code, _headers = get_pipelines_with_http_info(organization, opts)
1352
- return data
1639
+ data
1353
1640
  end
1354
1641
 
1355
- #
1356
1642
  # Retrieve all pipelines details for an organization
1357
- # @param organization Name of the organization
1643
+ # @param organization [String] Name of the organization
1358
1644
  # @param [Hash] opts the optional parameters
1359
- # @return [Array<(Pipelines, Fixnum, Hash)>] Pipelines data, response status code and response headers
1645
+ # @return [Array<(Array<Pipeline>, Integer, Hash)>] Array<Pipeline> data, response status code and response headers
1360
1646
  def get_pipelines_with_http_info(organization, opts = {})
1361
1647
  if @api_client.config.debugging
1362
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_pipelines ..."
1648
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_pipelines ...'
1363
1649
  end
1364
1650
  # verify the required parameter 'organization' is set
1365
1651
  if @api_client.config.client_side_validation && organization.nil?
1366
1652
  fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_pipelines"
1367
1653
  end
1368
1654
  # resource path
1369
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/".sub('{' + 'organization' + '}', organization.to_s)
1655
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s))
1370
1656
 
1371
1657
  # query parameters
1372
- query_params = {}
1658
+ query_params = opts[:query_params] || {}
1373
1659
 
1374
1660
  # header parameters
1375
- header_params = {}
1661
+ header_params = opts[:header_params] || {}
1376
1662
  # HTTP header 'Accept' (if needed)
1377
1663
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1378
1664
 
1379
1665
  # form parameters
1380
- form_params = {}
1666
+ form_params = opts[:form_params] || {}
1381
1667
 
1382
1668
  # http body (model)
1383
- post_body = nil
1384
- auth_names = ['jenkins_auth']
1385
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1669
+ post_body = opts[:debug_body]
1670
+
1671
+ # return_type
1672
+ return_type = opts[:debug_return_type] || 'Array<Pipeline>'
1673
+
1674
+ # auth_names
1675
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1676
+
1677
+ new_options = opts.merge(
1678
+ :operation => :"BlueOceanApi.get_pipelines",
1386
1679
  :header_params => header_params,
1387
1680
  :query_params => query_params,
1388
1681
  :form_params => form_params,
1389
1682
  :body => post_body,
1390
1683
  :auth_names => auth_names,
1391
- :return_type => 'Pipelines')
1684
+ :return_type => return_type
1685
+ )
1686
+
1687
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1392
1688
  if @api_client.config.debugging
1393
1689
  @api_client.config.logger.debug "API called: BlueOceanApi#get_pipelines\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1394
1690
  end
1395
1691
  return data, status_code, headers
1396
1692
  end
1397
1693
 
1398
- #
1399
1694
  # Retrieve SCM details for an organization
1400
- # @param organization Name of the organization
1401
- # @param scm Name of SCM
1695
+ # @param organization [String] Name of the organization
1696
+ # @param scm [String] Name of SCM
1402
1697
  # @param [Hash] opts the optional parameters
1403
1698
  # @return [GithubScm]
1404
1699
  def get_scm(organization, scm, opts = {})
1405
1700
  data, _status_code, _headers = get_scm_with_http_info(organization, scm, opts)
1406
- return data
1701
+ data
1407
1702
  end
1408
1703
 
1409
- #
1410
1704
  # Retrieve SCM details for an organization
1411
- # @param organization Name of the organization
1412
- # @param scm Name of SCM
1705
+ # @param organization [String] Name of the organization
1706
+ # @param scm [String] Name of SCM
1413
1707
  # @param [Hash] opts the optional parameters
1414
- # @return [Array<(GithubScm, Fixnum, Hash)>] GithubScm data, response status code and response headers
1708
+ # @return [Array<(GithubScm, Integer, Hash)>] GithubScm data, response status code and response headers
1415
1709
  def get_scm_with_http_info(organization, scm, opts = {})
1416
1710
  if @api_client.config.debugging
1417
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_scm ..."
1711
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_scm ...'
1418
1712
  end
1419
1713
  # verify the required parameter 'organization' is set
1420
1714
  if @api_client.config.client_side_validation && organization.nil?
@@ -1425,63 +1719,71 @@ module SwaggyJenkinsClient
1425
1719
  fail ArgumentError, "Missing the required parameter 'scm' when calling BlueOceanApi.get_scm"
1426
1720
  end
1427
1721
  # resource path
1428
- local_var_path = "/blue/rest/organizations/{organization}/scm/{scm}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'scm' + '}', scm.to_s)
1722
+ local_var_path = '/blue/rest/organizations/{organization}/scm/{scm}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'scm' + '}', CGI.escape(scm.to_s))
1429
1723
 
1430
1724
  # query parameters
1431
- query_params = {}
1725
+ query_params = opts[:query_params] || {}
1432
1726
 
1433
1727
  # header parameters
1434
- header_params = {}
1728
+ header_params = opts[:header_params] || {}
1435
1729
  # HTTP header 'Accept' (if needed)
1436
1730
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1437
1731
 
1438
1732
  # form parameters
1439
- form_params = {}
1733
+ form_params = opts[:form_params] || {}
1440
1734
 
1441
1735
  # http body (model)
1442
- post_body = nil
1443
- auth_names = ['jenkins_auth']
1444
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1736
+ post_body = opts[:debug_body]
1737
+
1738
+ # return_type
1739
+ return_type = opts[:debug_return_type] || 'GithubScm'
1740
+
1741
+ # auth_names
1742
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1743
+
1744
+ new_options = opts.merge(
1745
+ :operation => :"BlueOceanApi.get_scm",
1445
1746
  :header_params => header_params,
1446
1747
  :query_params => query_params,
1447
1748
  :form_params => form_params,
1448
1749
  :body => post_body,
1449
1750
  :auth_names => auth_names,
1450
- :return_type => 'GithubScm')
1751
+ :return_type => return_type
1752
+ )
1753
+
1754
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1451
1755
  if @api_client.config.debugging
1452
1756
  @api_client.config.logger.debug "API called: BlueOceanApi#get_scm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1453
1757
  end
1454
1758
  return data, status_code, headers
1455
1759
  end
1456
1760
 
1457
- #
1458
1761
  # Retrieve SCM organization repositories details for an organization
1459
- # @param organization Name of the organization
1460
- # @param scm Name of SCM
1461
- # @param scm_organisation Name of the SCM organization
1762
+ # @param organization [String] Name of the organization
1763
+ # @param scm [String] Name of SCM
1764
+ # @param scm_organisation [String] Name of the SCM organization
1462
1765
  # @param [Hash] opts the optional parameters
1463
1766
  # @option opts [String] :credential_id Credential ID
1464
1767
  # @option opts [Integer] :page_size Number of items in a page
1465
1768
  # @option opts [Integer] :page_number Page number
1466
- # @return [ScmOrganisations]
1769
+ # @return [Array<GithubOrganization>]
1467
1770
  def get_scm_organisation_repositories(organization, scm, scm_organisation, opts = {})
1468
1771
  data, _status_code, _headers = get_scm_organisation_repositories_with_http_info(organization, scm, scm_organisation, opts)
1469
- return data
1772
+ data
1470
1773
  end
1471
1774
 
1472
- #
1473
1775
  # Retrieve SCM organization repositories details for an organization
1474
- # @param organization Name of the organization
1475
- # @param scm Name of SCM
1476
- # @param scm_organisation Name of the SCM organization
1776
+ # @param organization [String] Name of the organization
1777
+ # @param scm [String] Name of SCM
1778
+ # @param scm_organisation [String] Name of the SCM organization
1477
1779
  # @param [Hash] opts the optional parameters
1478
1780
  # @option opts [String] :credential_id Credential ID
1479
1781
  # @option opts [Integer] :page_size Number of items in a page
1480
1782
  # @option opts [Integer] :page_number Page number
1481
- # @return [Array<(ScmOrganisations, Fixnum, Hash)>] ScmOrganisations data, response status code and response headers
1783
+ # @return [Array<(Array<GithubOrganization>, Integer, Hash)>] Array<GithubOrganization> data, response status code and response headers
1482
1784
  def get_scm_organisation_repositories_with_http_info(organization, scm, scm_organisation, opts = {})
1483
1785
  if @api_client.config.debugging
1484
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_scm_organisation_repositories ..."
1786
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_scm_organisation_repositories ...'
1485
1787
  end
1486
1788
  # verify the required parameter 'organization' is set
1487
1789
  if @api_client.config.client_side_validation && organization.nil?
@@ -1496,64 +1798,72 @@ module SwaggyJenkinsClient
1496
1798
  fail ArgumentError, "Missing the required parameter 'scm_organisation' when calling BlueOceanApi.get_scm_organisation_repositories"
1497
1799
  end
1498
1800
  # resource path
1499
- local_var_path = "/blue/rest/organizations/{organization}/scm/{scm}/organizations/{scmOrganisation}/repositories".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'scm' + '}', scm.to_s).sub('{' + 'scmOrganisation' + '}', scm_organisation.to_s)
1801
+ local_var_path = '/blue/rest/organizations/{organization}/scm/{scm}/organizations/{scmOrganisation}/repositories'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'scm' + '}', CGI.escape(scm.to_s)).sub('{' + 'scmOrganisation' + '}', CGI.escape(scm_organisation.to_s))
1500
1802
 
1501
1803
  # query parameters
1502
- query_params = {}
1804
+ query_params = opts[:query_params] || {}
1503
1805
  query_params[:'credentialId'] = opts[:'credential_id'] if !opts[:'credential_id'].nil?
1504
1806
  query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1505
1807
  query_params[:'pageNumber'] = opts[:'page_number'] if !opts[:'page_number'].nil?
1506
1808
 
1507
1809
  # header parameters
1508
- header_params = {}
1810
+ header_params = opts[:header_params] || {}
1509
1811
  # HTTP header 'Accept' (if needed)
1510
1812
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1511
1813
 
1512
1814
  # form parameters
1513
- form_params = {}
1815
+ form_params = opts[:form_params] || {}
1514
1816
 
1515
1817
  # http body (model)
1516
- post_body = nil
1517
- auth_names = ['jenkins_auth']
1518
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1818
+ post_body = opts[:debug_body]
1819
+
1820
+ # return_type
1821
+ return_type = opts[:debug_return_type] || 'Array<GithubOrganization>'
1822
+
1823
+ # auth_names
1824
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1825
+
1826
+ new_options = opts.merge(
1827
+ :operation => :"BlueOceanApi.get_scm_organisation_repositories",
1519
1828
  :header_params => header_params,
1520
1829
  :query_params => query_params,
1521
1830
  :form_params => form_params,
1522
1831
  :body => post_body,
1523
1832
  :auth_names => auth_names,
1524
- :return_type => 'ScmOrganisations')
1833
+ :return_type => return_type
1834
+ )
1835
+
1836
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1525
1837
  if @api_client.config.debugging
1526
1838
  @api_client.config.logger.debug "API called: BlueOceanApi#get_scm_organisation_repositories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1527
1839
  end
1528
1840
  return data, status_code, headers
1529
1841
  end
1530
1842
 
1531
- #
1532
1843
  # Retrieve SCM organization repository details for an organization
1533
- # @param organization Name of the organization
1534
- # @param scm Name of SCM
1535
- # @param scm_organisation Name of the SCM organization
1536
- # @param repository Name of the SCM repository
1844
+ # @param organization [String] Name of the organization
1845
+ # @param scm [String] Name of SCM
1846
+ # @param scm_organisation [String] Name of the SCM organization
1847
+ # @param repository [String] Name of the SCM repository
1537
1848
  # @param [Hash] opts the optional parameters
1538
1849
  # @option opts [String] :credential_id Credential ID
1539
- # @return [ScmOrganisations]
1850
+ # @return [Array<GithubOrganization>]
1540
1851
  def get_scm_organisation_repository(organization, scm, scm_organisation, repository, opts = {})
1541
1852
  data, _status_code, _headers = get_scm_organisation_repository_with_http_info(organization, scm, scm_organisation, repository, opts)
1542
- return data
1853
+ data
1543
1854
  end
1544
1855
 
1545
- #
1546
1856
  # Retrieve SCM organization repository details for an organization
1547
- # @param organization Name of the organization
1548
- # @param scm Name of SCM
1549
- # @param scm_organisation Name of the SCM organization
1550
- # @param repository Name of the SCM repository
1857
+ # @param organization [String] Name of the organization
1858
+ # @param scm [String] Name of SCM
1859
+ # @param scm_organisation [String] Name of the SCM organization
1860
+ # @param repository [String] Name of the SCM repository
1551
1861
  # @param [Hash] opts the optional parameters
1552
1862
  # @option opts [String] :credential_id Credential ID
1553
- # @return [Array<(ScmOrganisations, Fixnum, Hash)>] ScmOrganisations data, response status code and response headers
1863
+ # @return [Array<(Array<GithubOrganization>, Integer, Hash)>] Array<GithubOrganization> data, response status code and response headers
1554
1864
  def get_scm_organisation_repository_with_http_info(organization, scm, scm_organisation, repository, opts = {})
1555
1865
  if @api_client.config.debugging
1556
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_scm_organisation_repository ..."
1866
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_scm_organisation_repository ...'
1557
1867
  end
1558
1868
  # verify the required parameter 'organization' is set
1559
1869
  if @api_client.config.client_side_validation && organization.nil?
@@ -1572,58 +1882,66 @@ module SwaggyJenkinsClient
1572
1882
  fail ArgumentError, "Missing the required parameter 'repository' when calling BlueOceanApi.get_scm_organisation_repository"
1573
1883
  end
1574
1884
  # resource path
1575
- local_var_path = "/blue/rest/organizations/{organization}/scm/{scm}/organizations/{scmOrganisation}/repositories/{repository}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'scm' + '}', scm.to_s).sub('{' + 'scmOrganisation' + '}', scm_organisation.to_s).sub('{' + 'repository' + '}', repository.to_s)
1885
+ local_var_path = '/blue/rest/organizations/{organization}/scm/{scm}/organizations/{scmOrganisation}/repositories/{repository}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'scm' + '}', CGI.escape(scm.to_s)).sub('{' + 'scmOrganisation' + '}', CGI.escape(scm_organisation.to_s)).sub('{' + 'repository' + '}', CGI.escape(repository.to_s))
1576
1886
 
1577
1887
  # query parameters
1578
- query_params = {}
1888
+ query_params = opts[:query_params] || {}
1579
1889
  query_params[:'credentialId'] = opts[:'credential_id'] if !opts[:'credential_id'].nil?
1580
1890
 
1581
1891
  # header parameters
1582
- header_params = {}
1892
+ header_params = opts[:header_params] || {}
1583
1893
  # HTTP header 'Accept' (if needed)
1584
1894
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1585
1895
 
1586
1896
  # form parameters
1587
- form_params = {}
1897
+ form_params = opts[:form_params] || {}
1588
1898
 
1589
1899
  # http body (model)
1590
- post_body = nil
1591
- auth_names = ['jenkins_auth']
1592
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1900
+ post_body = opts[:debug_body]
1901
+
1902
+ # return_type
1903
+ return_type = opts[:debug_return_type] || 'Array<GithubOrganization>'
1904
+
1905
+ # auth_names
1906
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1907
+
1908
+ new_options = opts.merge(
1909
+ :operation => :"BlueOceanApi.get_scm_organisation_repository",
1593
1910
  :header_params => header_params,
1594
1911
  :query_params => query_params,
1595
1912
  :form_params => form_params,
1596
1913
  :body => post_body,
1597
1914
  :auth_names => auth_names,
1598
- :return_type => 'ScmOrganisations')
1915
+ :return_type => return_type
1916
+ )
1917
+
1918
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1599
1919
  if @api_client.config.debugging
1600
1920
  @api_client.config.logger.debug "API called: BlueOceanApi#get_scm_organisation_repository\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1601
1921
  end
1602
1922
  return data, status_code, headers
1603
1923
  end
1604
1924
 
1605
- #
1606
1925
  # Retrieve SCM organizations details for an organization
1607
- # @param organization Name of the organization
1608
- # @param scm Name of SCM
1926
+ # @param organization [String] Name of the organization
1927
+ # @param scm [String] Name of SCM
1609
1928
  # @param [Hash] opts the optional parameters
1610
1929
  # @option opts [String] :credential_id Credential ID
1611
- # @return [ScmOrganisations]
1930
+ # @return [Array<GithubOrganization>]
1612
1931
  def get_scm_organisations(organization, scm, opts = {})
1613
1932
  data, _status_code, _headers = get_scm_organisations_with_http_info(organization, scm, opts)
1614
- return data
1933
+ data
1615
1934
  end
1616
1935
 
1617
- #
1618
1936
  # Retrieve SCM organizations details for an organization
1619
- # @param organization Name of the organization
1620
- # @param scm Name of SCM
1937
+ # @param organization [String] Name of the organization
1938
+ # @param scm [String] Name of SCM
1621
1939
  # @param [Hash] opts the optional parameters
1622
1940
  # @option opts [String] :credential_id Credential ID
1623
- # @return [Array<(ScmOrganisations, Fixnum, Hash)>] ScmOrganisations data, response status code and response headers
1941
+ # @return [Array<(Array<GithubOrganization>, Integer, Hash)>] Array<GithubOrganization> data, response status code and response headers
1624
1942
  def get_scm_organisations_with_http_info(organization, scm, opts = {})
1625
1943
  if @api_client.config.debugging
1626
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_scm_organisations ..."
1944
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_scm_organisations ...'
1627
1945
  end
1628
1946
  # verify the required parameter 'organization' is set
1629
1947
  if @api_client.config.client_side_validation && organization.nil?
@@ -1634,56 +1952,64 @@ module SwaggyJenkinsClient
1634
1952
  fail ArgumentError, "Missing the required parameter 'scm' when calling BlueOceanApi.get_scm_organisations"
1635
1953
  end
1636
1954
  # resource path
1637
- local_var_path = "/blue/rest/organizations/{organization}/scm/{scm}/organizations".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'scm' + '}', scm.to_s)
1955
+ local_var_path = '/blue/rest/organizations/{organization}/scm/{scm}/organizations'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'scm' + '}', CGI.escape(scm.to_s))
1638
1956
 
1639
1957
  # query parameters
1640
- query_params = {}
1958
+ query_params = opts[:query_params] || {}
1641
1959
  query_params[:'credentialId'] = opts[:'credential_id'] if !opts[:'credential_id'].nil?
1642
1960
 
1643
1961
  # header parameters
1644
- header_params = {}
1962
+ header_params = opts[:header_params] || {}
1645
1963
  # HTTP header 'Accept' (if needed)
1646
1964
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1647
1965
 
1648
1966
  # form parameters
1649
- form_params = {}
1967
+ form_params = opts[:form_params] || {}
1650
1968
 
1651
1969
  # http body (model)
1652
- post_body = nil
1653
- auth_names = ['jenkins_auth']
1654
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1970
+ post_body = opts[:debug_body]
1971
+
1972
+ # return_type
1973
+ return_type = opts[:debug_return_type] || 'Array<GithubOrganization>'
1974
+
1975
+ # auth_names
1976
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
1977
+
1978
+ new_options = opts.merge(
1979
+ :operation => :"BlueOceanApi.get_scm_organisations",
1655
1980
  :header_params => header_params,
1656
1981
  :query_params => query_params,
1657
1982
  :form_params => form_params,
1658
1983
  :body => post_body,
1659
1984
  :auth_names => auth_names,
1660
- :return_type => 'ScmOrganisations')
1985
+ :return_type => return_type
1986
+ )
1987
+
1988
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1661
1989
  if @api_client.config.debugging
1662
1990
  @api_client.config.logger.debug "API called: BlueOceanApi#get_scm_organisations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1663
1991
  end
1664
1992
  return data, status_code, headers
1665
1993
  end
1666
1994
 
1667
- #
1668
1995
  # Retrieve user details for an organization
1669
- # @param organization Name of the organization
1670
- # @param user Name of the user
1996
+ # @param organization [String] Name of the organization
1997
+ # @param user [String] Name of the user
1671
1998
  # @param [Hash] opts the optional parameters
1672
1999
  # @return [User]
1673
2000
  def get_user(organization, user, opts = {})
1674
2001
  data, _status_code, _headers = get_user_with_http_info(organization, user, opts)
1675
- return data
2002
+ data
1676
2003
  end
1677
2004
 
1678
- #
1679
2005
  # Retrieve user details for an organization
1680
- # @param organization Name of the organization
1681
- # @param user Name of the user
2006
+ # @param organization [String] Name of the organization
2007
+ # @param user [String] Name of the user
1682
2008
  # @param [Hash] opts the optional parameters
1683
- # @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
2009
+ # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
1684
2010
  def get_user_with_http_info(organization, user, opts = {})
1685
2011
  if @api_client.config.debugging
1686
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_user ..."
2012
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_user ...'
1687
2013
  end
1688
2014
  # verify the required parameter 'organization' is set
1689
2015
  if @api_client.config.client_side_validation && organization.nil?
@@ -1694,163 +2020,187 @@ module SwaggyJenkinsClient
1694
2020
  fail ArgumentError, "Missing the required parameter 'user' when calling BlueOceanApi.get_user"
1695
2021
  end
1696
2022
  # resource path
1697
- local_var_path = "/blue/rest/organizations/{organization}/users/{user}".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'user' + '}', user.to_s)
2023
+ local_var_path = '/blue/rest/organizations/{organization}/users/{user}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'user' + '}', CGI.escape(user.to_s))
1698
2024
 
1699
2025
  # query parameters
1700
- query_params = {}
2026
+ query_params = opts[:query_params] || {}
1701
2027
 
1702
2028
  # header parameters
1703
- header_params = {}
2029
+ header_params = opts[:header_params] || {}
1704
2030
  # HTTP header 'Accept' (if needed)
1705
2031
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1706
2032
 
1707
2033
  # form parameters
1708
- form_params = {}
2034
+ form_params = opts[:form_params] || {}
1709
2035
 
1710
2036
  # http body (model)
1711
- post_body = nil
1712
- auth_names = ['jenkins_auth']
1713
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2037
+ post_body = opts[:debug_body]
2038
+
2039
+ # return_type
2040
+ return_type = opts[:debug_return_type] || 'User'
2041
+
2042
+ # auth_names
2043
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
2044
+
2045
+ new_options = opts.merge(
2046
+ :operation => :"BlueOceanApi.get_user",
1714
2047
  :header_params => header_params,
1715
2048
  :query_params => query_params,
1716
2049
  :form_params => form_params,
1717
2050
  :body => post_body,
1718
2051
  :auth_names => auth_names,
1719
- :return_type => 'User')
2052
+ :return_type => return_type
2053
+ )
2054
+
2055
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1720
2056
  if @api_client.config.debugging
1721
2057
  @api_client.config.logger.debug "API called: BlueOceanApi#get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1722
2058
  end
1723
2059
  return data, status_code, headers
1724
2060
  end
1725
2061
 
1726
- #
1727
2062
  # Retrieve user favorites details for an organization
1728
- # @param user Name of the user
2063
+ # @param user [String] Name of the user
1729
2064
  # @param [Hash] opts the optional parameters
1730
- # @return [UserFavorites]
2065
+ # @return [Array<FavoriteImpl>]
1731
2066
  def get_user_favorites(user, opts = {})
1732
2067
  data, _status_code, _headers = get_user_favorites_with_http_info(user, opts)
1733
- return data
2068
+ data
1734
2069
  end
1735
2070
 
1736
- #
1737
2071
  # Retrieve user favorites details for an organization
1738
- # @param user Name of the user
2072
+ # @param user [String] Name of the user
1739
2073
  # @param [Hash] opts the optional parameters
1740
- # @return [Array<(UserFavorites, Fixnum, Hash)>] UserFavorites data, response status code and response headers
2074
+ # @return [Array<(Array<FavoriteImpl>, Integer, Hash)>] Array<FavoriteImpl> data, response status code and response headers
1741
2075
  def get_user_favorites_with_http_info(user, opts = {})
1742
2076
  if @api_client.config.debugging
1743
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_user_favorites ..."
2077
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_user_favorites ...'
1744
2078
  end
1745
2079
  # verify the required parameter 'user' is set
1746
2080
  if @api_client.config.client_side_validation && user.nil?
1747
2081
  fail ArgumentError, "Missing the required parameter 'user' when calling BlueOceanApi.get_user_favorites"
1748
2082
  end
1749
2083
  # resource path
1750
- local_var_path = "/blue/rest/users/{user}/favorites".sub('{' + 'user' + '}', user.to_s)
2084
+ local_var_path = '/blue/rest/users/{user}/favorites'.sub('{' + 'user' + '}', CGI.escape(user.to_s))
1751
2085
 
1752
2086
  # query parameters
1753
- query_params = {}
2087
+ query_params = opts[:query_params] || {}
1754
2088
 
1755
2089
  # header parameters
1756
- header_params = {}
2090
+ header_params = opts[:header_params] || {}
1757
2091
  # HTTP header 'Accept' (if needed)
1758
2092
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1759
2093
 
1760
2094
  # form parameters
1761
- form_params = {}
2095
+ form_params = opts[:form_params] || {}
1762
2096
 
1763
2097
  # http body (model)
1764
- post_body = nil
1765
- auth_names = ['jenkins_auth']
1766
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2098
+ post_body = opts[:debug_body]
2099
+
2100
+ # return_type
2101
+ return_type = opts[:debug_return_type] || 'Array<FavoriteImpl>'
2102
+
2103
+ # auth_names
2104
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
2105
+
2106
+ new_options = opts.merge(
2107
+ :operation => :"BlueOceanApi.get_user_favorites",
1767
2108
  :header_params => header_params,
1768
2109
  :query_params => query_params,
1769
2110
  :form_params => form_params,
1770
2111
  :body => post_body,
1771
2112
  :auth_names => auth_names,
1772
- :return_type => 'UserFavorites')
2113
+ :return_type => return_type
2114
+ )
2115
+
2116
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1773
2117
  if @api_client.config.debugging
1774
2118
  @api_client.config.logger.debug "API called: BlueOceanApi#get_user_favorites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1775
2119
  end
1776
2120
  return data, status_code, headers
1777
2121
  end
1778
2122
 
1779
- #
1780
2123
  # Retrieve users details for an organization
1781
- # @param organization Name of the organization
2124
+ # @param organization [String] Name of the organization
1782
2125
  # @param [Hash] opts the optional parameters
1783
2126
  # @return [User]
1784
2127
  def get_users(organization, opts = {})
1785
2128
  data, _status_code, _headers = get_users_with_http_info(organization, opts)
1786
- return data
2129
+ data
1787
2130
  end
1788
2131
 
1789
- #
1790
2132
  # Retrieve users details for an organization
1791
- # @param organization Name of the organization
2133
+ # @param organization [String] Name of the organization
1792
2134
  # @param [Hash] opts the optional parameters
1793
- # @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
2135
+ # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
1794
2136
  def get_users_with_http_info(organization, opts = {})
1795
2137
  if @api_client.config.debugging
1796
- @api_client.config.logger.debug "Calling API: BlueOceanApi.get_users ..."
2138
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.get_users ...'
1797
2139
  end
1798
2140
  # verify the required parameter 'organization' is set
1799
2141
  if @api_client.config.client_side_validation && organization.nil?
1800
2142
  fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.get_users"
1801
2143
  end
1802
2144
  # resource path
1803
- local_var_path = "/blue/rest/organizations/{organization}/users/".sub('{' + 'organization' + '}', organization.to_s)
2145
+ local_var_path = '/blue/rest/organizations/{organization}/users/'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s))
1804
2146
 
1805
2147
  # query parameters
1806
- query_params = {}
2148
+ query_params = opts[:query_params] || {}
1807
2149
 
1808
2150
  # header parameters
1809
- header_params = {}
2151
+ header_params = opts[:header_params] || {}
1810
2152
  # HTTP header 'Accept' (if needed)
1811
2153
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1812
2154
 
1813
2155
  # form parameters
1814
- form_params = {}
2156
+ form_params = opts[:form_params] || {}
1815
2157
 
1816
2158
  # http body (model)
1817
- post_body = nil
1818
- auth_names = ['jenkins_auth']
1819
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2159
+ post_body = opts[:debug_body]
2160
+
2161
+ # return_type
2162
+ return_type = opts[:debug_return_type] || 'User'
2163
+
2164
+ # auth_names
2165
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
2166
+
2167
+ new_options = opts.merge(
2168
+ :operation => :"BlueOceanApi.get_users",
1820
2169
  :header_params => header_params,
1821
2170
  :query_params => query_params,
1822
2171
  :form_params => form_params,
1823
2172
  :body => post_body,
1824
2173
  :auth_names => auth_names,
1825
- :return_type => 'User')
2174
+ :return_type => return_type
2175
+ )
2176
+
2177
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1826
2178
  if @api_client.config.debugging
1827
2179
  @api_client.config.logger.debug "API called: BlueOceanApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1828
2180
  end
1829
2181
  return data, status_code, headers
1830
2182
  end
1831
2183
 
1832
- #
1833
2184
  # Replay an organization pipeline run
1834
- # @param organization Name of the organization
1835
- # @param pipeline Name of the pipeline
1836
- # @param run Name of the run
2185
+ # @param organization [String] Name of the organization
2186
+ # @param pipeline [String] Name of the pipeline
2187
+ # @param run [String] Name of the run
1837
2188
  # @param [Hash] opts the optional parameters
1838
2189
  # @return [QueueItemImpl]
1839
2190
  def post_pipeline_run(organization, pipeline, run, opts = {})
1840
2191
  data, _status_code, _headers = post_pipeline_run_with_http_info(organization, pipeline, run, opts)
1841
- return data
2192
+ data
1842
2193
  end
1843
2194
 
1844
- #
1845
2195
  # Replay an organization pipeline run
1846
- # @param organization Name of the organization
1847
- # @param pipeline Name of the pipeline
1848
- # @param run Name of the run
2196
+ # @param organization [String] Name of the organization
2197
+ # @param pipeline [String] Name of the pipeline
2198
+ # @param run [String] Name of the run
1849
2199
  # @param [Hash] opts the optional parameters
1850
- # @return [Array<(QueueItemImpl, Fixnum, Hash)>] QueueItemImpl data, response status code and response headers
2200
+ # @return [Array<(QueueItemImpl, Integer, Hash)>] QueueItemImpl data, response status code and response headers
1851
2201
  def post_pipeline_run_with_http_info(organization, pipeline, run, opts = {})
1852
2202
  if @api_client.config.debugging
1853
- @api_client.config.logger.debug "Calling API: BlueOceanApi.post_pipeline_run ..."
2203
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.post_pipeline_run ...'
1854
2204
  end
1855
2205
  # verify the required parameter 'organization' is set
1856
2206
  if @api_client.config.client_side_validation && organization.nil?
@@ -1865,55 +2215,63 @@ module SwaggyJenkinsClient
1865
2215
  fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.post_pipeline_run"
1866
2216
  end
1867
2217
  # resource path
1868
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/replay".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s)
2218
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/replay'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'run' + '}', CGI.escape(run.to_s))
1869
2219
 
1870
2220
  # query parameters
1871
- query_params = {}
2221
+ query_params = opts[:query_params] || {}
1872
2222
 
1873
2223
  # header parameters
1874
- header_params = {}
2224
+ header_params = opts[:header_params] || {}
1875
2225
  # HTTP header 'Accept' (if needed)
1876
2226
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1877
2227
 
1878
2228
  # form parameters
1879
- form_params = {}
2229
+ form_params = opts[:form_params] || {}
1880
2230
 
1881
2231
  # http body (model)
1882
- post_body = nil
1883
- auth_names = ['jenkins_auth']
1884
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2232
+ post_body = opts[:debug_body]
2233
+
2234
+ # return_type
2235
+ return_type = opts[:debug_return_type] || 'QueueItemImpl'
2236
+
2237
+ # auth_names
2238
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
2239
+
2240
+ new_options = opts.merge(
2241
+ :operation => :"BlueOceanApi.post_pipeline_run",
1885
2242
  :header_params => header_params,
1886
2243
  :query_params => query_params,
1887
2244
  :form_params => form_params,
1888
2245
  :body => post_body,
1889
2246
  :auth_names => auth_names,
1890
- :return_type => 'QueueItemImpl')
2247
+ :return_type => return_type
2248
+ )
2249
+
2250
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1891
2251
  if @api_client.config.debugging
1892
2252
  @api_client.config.logger.debug "API called: BlueOceanApi#post_pipeline_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1893
2253
  end
1894
2254
  return data, status_code, headers
1895
2255
  end
1896
2256
 
1897
- #
1898
2257
  # Start a build for an organization pipeline
1899
- # @param organization Name of the organization
1900
- # @param pipeline Name of the pipeline
2258
+ # @param organization [String] Name of the organization
2259
+ # @param pipeline [String] Name of the pipeline
1901
2260
  # @param [Hash] opts the optional parameters
1902
2261
  # @return [QueueItemImpl]
1903
2262
  def post_pipeline_runs(organization, pipeline, opts = {})
1904
2263
  data, _status_code, _headers = post_pipeline_runs_with_http_info(organization, pipeline, opts)
1905
- return data
2264
+ data
1906
2265
  end
1907
2266
 
1908
- #
1909
2267
  # Start a build for an organization pipeline
1910
- # @param organization Name of the organization
1911
- # @param pipeline Name of the pipeline
2268
+ # @param organization [String] Name of the organization
2269
+ # @param pipeline [String] Name of the pipeline
1912
2270
  # @param [Hash] opts the optional parameters
1913
- # @return [Array<(QueueItemImpl, Fixnum, Hash)>] QueueItemImpl data, response status code and response headers
2271
+ # @return [Array<(QueueItemImpl, Integer, Hash)>] QueueItemImpl data, response status code and response headers
1914
2272
  def post_pipeline_runs_with_http_info(organization, pipeline, opts = {})
1915
2273
  if @api_client.config.debugging
1916
- @api_client.config.logger.debug "Calling API: BlueOceanApi.post_pipeline_runs ..."
2274
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.post_pipeline_runs ...'
1917
2275
  end
1918
2276
  # verify the required parameter 'organization' is set
1919
2277
  if @api_client.config.client_side_validation && organization.nil?
@@ -1924,57 +2282,65 @@ module SwaggyJenkinsClient
1924
2282
  fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.post_pipeline_runs"
1925
2283
  end
1926
2284
  # resource path
1927
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
2285
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s))
1928
2286
 
1929
2287
  # query parameters
1930
- query_params = {}
2288
+ query_params = opts[:query_params] || {}
1931
2289
 
1932
2290
  # header parameters
1933
- header_params = {}
2291
+ header_params = opts[:header_params] || {}
1934
2292
  # HTTP header 'Accept' (if needed)
1935
2293
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1936
2294
 
1937
2295
  # form parameters
1938
- form_params = {}
2296
+ form_params = opts[:form_params] || {}
1939
2297
 
1940
2298
  # http body (model)
1941
- post_body = nil
1942
- auth_names = ['jenkins_auth']
1943
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2299
+ post_body = opts[:debug_body]
2300
+
2301
+ # return_type
2302
+ return_type = opts[:debug_return_type] || 'QueueItemImpl'
2303
+
2304
+ # auth_names
2305
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
2306
+
2307
+ new_options = opts.merge(
2308
+ :operation => :"BlueOceanApi.post_pipeline_runs",
1944
2309
  :header_params => header_params,
1945
2310
  :query_params => query_params,
1946
2311
  :form_params => form_params,
1947
2312
  :body => post_body,
1948
2313
  :auth_names => auth_names,
1949
- :return_type => 'QueueItemImpl')
2314
+ :return_type => return_type
2315
+ )
2316
+
2317
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1950
2318
  if @api_client.config.debugging
1951
2319
  @api_client.config.logger.debug "API called: BlueOceanApi#post_pipeline_runs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1952
2320
  end
1953
2321
  return data, status_code, headers
1954
2322
  end
1955
2323
 
1956
- #
1957
2324
  # Favorite/unfavorite a pipeline
1958
- # @param organization Name of the organization
1959
- # @param pipeline Name of the pipeline
1960
- # @param body Set JSON string body to {\&quot;favorite\&quot;: true} to favorite, set value to false to unfavorite
2325
+ # @param organization [String] Name of the organization
2326
+ # @param pipeline [String] Name of the pipeline
2327
+ # @param body [Boolean] Set JSON string body to {\&quot;favorite\&quot;: true} to favorite, set value to false to unfavorite
1961
2328
  # @param [Hash] opts the optional parameters
1962
2329
  # @return [FavoriteImpl]
1963
2330
  def put_pipeline_favorite(organization, pipeline, body, opts = {})
1964
2331
  data, _status_code, _headers = put_pipeline_favorite_with_http_info(organization, pipeline, body, opts)
1965
- return data
2332
+ data
1966
2333
  end
1967
2334
 
1968
- #
1969
2335
  # Favorite/unfavorite a pipeline
1970
- # @param organization Name of the organization
1971
- # @param pipeline Name of the pipeline
1972
- # @param body Set JSON string body to {\&quot;favorite\&quot;: true} to favorite, set value to false to unfavorite
2336
+ # @param organization [String] Name of the organization
2337
+ # @param pipeline [String] Name of the pipeline
2338
+ # @param body [Boolean] Set JSON string body to {\&quot;favorite\&quot;: true} to favorite, set value to false to unfavorite
1973
2339
  # @param [Hash] opts the optional parameters
1974
- # @return [Array<(FavoriteImpl, Fixnum, Hash)>] FavoriteImpl data, response status code and response headers
2340
+ # @return [Array<(FavoriteImpl, Integer, Hash)>] FavoriteImpl data, response status code and response headers
1975
2341
  def put_pipeline_favorite_with_http_info(organization, pipeline, body, opts = {})
1976
2342
  if @api_client.config.debugging
1977
- @api_client.config.logger.debug "Calling API: BlueOceanApi.put_pipeline_favorite ..."
2343
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.put_pipeline_favorite ...'
1978
2344
  end
1979
2345
  # verify the required parameter 'organization' is set
1980
2346
  if @api_client.config.client_side_validation && organization.nil?
@@ -1989,61 +2355,74 @@ module SwaggyJenkinsClient
1989
2355
  fail ArgumentError, "Missing the required parameter 'body' when calling BlueOceanApi.put_pipeline_favorite"
1990
2356
  end
1991
2357
  # resource path
1992
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/favorite".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
2358
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/favorite'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s))
1993
2359
 
1994
2360
  # query parameters
1995
- query_params = {}
2361
+ query_params = opts[:query_params] || {}
1996
2362
 
1997
2363
  # header parameters
1998
- header_params = {}
2364
+ header_params = opts[:header_params] || {}
1999
2365
  # HTTP header 'Accept' (if needed)
2000
2366
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2367
+ # HTTP header 'Content-Type'
2368
+ content_type = @api_client.select_header_content_type(['application/json'])
2369
+ if !content_type.nil?
2370
+ header_params['Content-Type'] = content_type
2371
+ end
2001
2372
 
2002
2373
  # form parameters
2003
- form_params = {}
2374
+ form_params = opts[:form_params] || {}
2004
2375
 
2005
2376
  # http body (model)
2006
- post_body = @api_client.object_to_http_body(body)
2007
- auth_names = ['jenkins_auth']
2008
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2377
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2378
+
2379
+ # return_type
2380
+ return_type = opts[:debug_return_type] || 'FavoriteImpl'
2381
+
2382
+ # auth_names
2383
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
2384
+
2385
+ new_options = opts.merge(
2386
+ :operation => :"BlueOceanApi.put_pipeline_favorite",
2009
2387
  :header_params => header_params,
2010
2388
  :query_params => query_params,
2011
2389
  :form_params => form_params,
2012
2390
  :body => post_body,
2013
2391
  :auth_names => auth_names,
2014
- :return_type => 'FavoriteImpl')
2392
+ :return_type => return_type
2393
+ )
2394
+
2395
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2015
2396
  if @api_client.config.debugging
2016
2397
  @api_client.config.logger.debug "API called: BlueOceanApi#put_pipeline_favorite\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2017
2398
  end
2018
2399
  return data, status_code, headers
2019
2400
  end
2020
2401
 
2021
- #
2022
2402
  # Stop a build of an organization pipeline
2023
- # @param organization Name of the organization
2024
- # @param pipeline Name of the pipeline
2025
- # @param run Name of the run
2403
+ # @param organization [String] Name of the organization
2404
+ # @param pipeline [String] Name of the pipeline
2405
+ # @param run [String] Name of the run
2026
2406
  # @param [Hash] opts the optional parameters
2027
2407
  # @option opts [String] :blocking Set to true to make blocking stop, default: false
2028
2408
  # @option opts [Integer] :time_out_in_secs Timeout in seconds, default: 10 seconds
2029
2409
  # @return [PipelineRun]
2030
2410
  def put_pipeline_run(organization, pipeline, run, opts = {})
2031
2411
  data, _status_code, _headers = put_pipeline_run_with_http_info(organization, pipeline, run, opts)
2032
- return data
2412
+ data
2033
2413
  end
2034
2414
 
2035
- #
2036
2415
  # Stop a build of an organization pipeline
2037
- # @param organization Name of the organization
2038
- # @param pipeline Name of the pipeline
2039
- # @param run Name of the run
2416
+ # @param organization [String] Name of the organization
2417
+ # @param pipeline [String] Name of the pipeline
2418
+ # @param run [String] Name of the run
2040
2419
  # @param [Hash] opts the optional parameters
2041
2420
  # @option opts [String] :blocking Set to true to make blocking stop, default: false
2042
2421
  # @option opts [Integer] :time_out_in_secs Timeout in seconds, default: 10 seconds
2043
- # @return [Array<(PipelineRun, Fixnum, Hash)>] PipelineRun data, response status code and response headers
2422
+ # @return [Array<(PipelineRun, Integer, Hash)>] PipelineRun data, response status code and response headers
2044
2423
  def put_pipeline_run_with_http_info(organization, pipeline, run, opts = {})
2045
2424
  if @api_client.config.debugging
2046
- @api_client.config.logger.debug "Calling API: BlueOceanApi.put_pipeline_run ..."
2425
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.put_pipeline_run ...'
2047
2426
  end
2048
2427
  # verify the required parameter 'organization' is set
2049
2428
  if @api_client.config.client_side_validation && organization.nil?
@@ -2058,139 +2437,165 @@ module SwaggyJenkinsClient
2058
2437
  fail ArgumentError, "Missing the required parameter 'run' when calling BlueOceanApi.put_pipeline_run"
2059
2438
  end
2060
2439
  # resource path
2061
- local_var_path = "/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/stop".sub('{' + 'organization' + '}', organization.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s).sub('{' + 'run' + '}', run.to_s)
2440
+ local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/stop'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'run' + '}', CGI.escape(run.to_s))
2062
2441
 
2063
2442
  # query parameters
2064
- query_params = {}
2443
+ query_params = opts[:query_params] || {}
2065
2444
  query_params[:'blocking'] = opts[:'blocking'] if !opts[:'blocking'].nil?
2066
2445
  query_params[:'timeOutInSecs'] = opts[:'time_out_in_secs'] if !opts[:'time_out_in_secs'].nil?
2067
2446
 
2068
2447
  # header parameters
2069
- header_params = {}
2448
+ header_params = opts[:header_params] || {}
2070
2449
  # HTTP header 'Accept' (if needed)
2071
2450
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2072
2451
 
2073
2452
  # form parameters
2074
- form_params = {}
2453
+ form_params = opts[:form_params] || {}
2075
2454
 
2076
2455
  # http body (model)
2077
- post_body = nil
2078
- auth_names = ['jenkins_auth']
2079
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2456
+ post_body = opts[:debug_body]
2457
+
2458
+ # return_type
2459
+ return_type = opts[:debug_return_type] || 'PipelineRun'
2460
+
2461
+ # auth_names
2462
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
2463
+
2464
+ new_options = opts.merge(
2465
+ :operation => :"BlueOceanApi.put_pipeline_run",
2080
2466
  :header_params => header_params,
2081
2467
  :query_params => query_params,
2082
2468
  :form_params => form_params,
2083
2469
  :body => post_body,
2084
2470
  :auth_names => auth_names,
2085
- :return_type => 'PipelineRun')
2471
+ :return_type => return_type
2472
+ )
2473
+
2474
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2086
2475
  if @api_client.config.debugging
2087
2476
  @api_client.config.logger.debug "API called: BlueOceanApi#put_pipeline_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2088
2477
  end
2089
2478
  return data, status_code, headers
2090
2479
  end
2091
2480
 
2092
- #
2093
2481
  # Search for any resource details
2094
- # @param q Query string
2482
+ # @param q [String] Query string
2095
2483
  # @param [Hash] opts the optional parameters
2096
2484
  # @return [String]
2097
2485
  def search(q, opts = {})
2098
2486
  data, _status_code, _headers = search_with_http_info(q, opts)
2099
- return data
2487
+ data
2100
2488
  end
2101
2489
 
2102
- #
2103
2490
  # Search for any resource details
2104
- # @param q Query string
2491
+ # @param q [String] Query string
2105
2492
  # @param [Hash] opts the optional parameters
2106
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2493
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
2107
2494
  def search_with_http_info(q, opts = {})
2108
2495
  if @api_client.config.debugging
2109
- @api_client.config.logger.debug "Calling API: BlueOceanApi.search ..."
2496
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.search ...'
2110
2497
  end
2111
2498
  # verify the required parameter 'q' is set
2112
2499
  if @api_client.config.client_side_validation && q.nil?
2113
2500
  fail ArgumentError, "Missing the required parameter 'q' when calling BlueOceanApi.search"
2114
2501
  end
2115
2502
  # resource path
2116
- local_var_path = "/blue/rest/search/"
2503
+ local_var_path = '/blue/rest/search/'
2117
2504
 
2118
2505
  # query parameters
2119
- query_params = {}
2506
+ query_params = opts[:query_params] || {}
2120
2507
  query_params[:'q'] = q
2121
2508
 
2122
2509
  # header parameters
2123
- header_params = {}
2510
+ header_params = opts[:header_params] || {}
2124
2511
  # HTTP header 'Accept' (if needed)
2125
2512
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2126
2513
 
2127
2514
  # form parameters
2128
- form_params = {}
2515
+ form_params = opts[:form_params] || {}
2129
2516
 
2130
2517
  # http body (model)
2131
- post_body = nil
2132
- auth_names = ['jenkins_auth']
2133
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2518
+ post_body = opts[:debug_body]
2519
+
2520
+ # return_type
2521
+ return_type = opts[:debug_return_type] || 'String'
2522
+
2523
+ # auth_names
2524
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
2525
+
2526
+ new_options = opts.merge(
2527
+ :operation => :"BlueOceanApi.search",
2134
2528
  :header_params => header_params,
2135
2529
  :query_params => query_params,
2136
2530
  :form_params => form_params,
2137
2531
  :body => post_body,
2138
2532
  :auth_names => auth_names,
2139
- :return_type => 'String')
2533
+ :return_type => return_type
2534
+ )
2535
+
2536
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2140
2537
  if @api_client.config.debugging
2141
2538
  @api_client.config.logger.debug "API called: BlueOceanApi#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2142
2539
  end
2143
2540
  return data, status_code, headers
2144
2541
  end
2145
2542
 
2146
- #
2147
2543
  # Get classes details
2148
- # @param q Query string containing an array of class names
2544
+ # @param q [String] Query string containing an array of class names
2149
2545
  # @param [Hash] opts the optional parameters
2150
2546
  # @return [String]
2151
2547
  def search_classes(q, opts = {})
2152
2548
  data, _status_code, _headers = search_classes_with_http_info(q, opts)
2153
- return data
2549
+ data
2154
2550
  end
2155
2551
 
2156
- #
2157
2552
  # Get classes details
2158
- # @param q Query string containing an array of class names
2553
+ # @param q [String] Query string containing an array of class names
2159
2554
  # @param [Hash] opts the optional parameters
2160
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2555
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
2161
2556
  def search_classes_with_http_info(q, opts = {})
2162
2557
  if @api_client.config.debugging
2163
- @api_client.config.logger.debug "Calling API: BlueOceanApi.search_classes ..."
2558
+ @api_client.config.logger.debug 'Calling API: BlueOceanApi.search_classes ...'
2164
2559
  end
2165
2560
  # verify the required parameter 'q' is set
2166
2561
  if @api_client.config.client_side_validation && q.nil?
2167
2562
  fail ArgumentError, "Missing the required parameter 'q' when calling BlueOceanApi.search_classes"
2168
2563
  end
2169
2564
  # resource path
2170
- local_var_path = "/blue/rest/classes/"
2565
+ local_var_path = '/blue/rest/classes/'
2171
2566
 
2172
2567
  # query parameters
2173
- query_params = {}
2568
+ query_params = opts[:query_params] || {}
2174
2569
  query_params[:'q'] = q
2175
2570
 
2176
2571
  # header parameters
2177
- header_params = {}
2572
+ header_params = opts[:header_params] || {}
2178
2573
  # HTTP header 'Accept' (if needed)
2179
2574
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2180
2575
 
2181
2576
  # form parameters
2182
- form_params = {}
2577
+ form_params = opts[:form_params] || {}
2183
2578
 
2184
2579
  # http body (model)
2185
- post_body = nil
2186
- auth_names = ['jenkins_auth']
2187
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2580
+ post_body = opts[:debug_body]
2581
+
2582
+ # return_type
2583
+ return_type = opts[:debug_return_type] || 'String'
2584
+
2585
+ # auth_names
2586
+ auth_names = opts[:debug_auth_names] || ['jenkins_auth']
2587
+
2588
+ new_options = opts.merge(
2589
+ :operation => :"BlueOceanApi.search_classes",
2188
2590
  :header_params => header_params,
2189
2591
  :query_params => query_params,
2190
2592
  :form_params => form_params,
2191
2593
  :body => post_body,
2192
2594
  :auth_names => auth_names,
2193
- :return_type => 'String')
2595
+ :return_type => return_type
2596
+ )
2597
+
2598
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2194
2599
  if @api_client.config.debugging
2195
2600
  @api_client.config.logger.debug "API called: BlueOceanApi#search_classes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2196
2601
  end