swaggy_jenkins 0.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
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 +27 -0
  8. data/bin/coderay +27 -0
  9. data/bin/htmldiff +27 -0
  10. data/bin/ldiff +27 -0
  11. data/bin/pry +27 -0
  12. data/bin/rake +27 -0
  13. data/bin/rspec +27 -0
  14. data/bin/rubocop +27 -0
  15. data/bin/ruby-parse +27 -0
  16. data/bin/ruby-rewrite +27 -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 +98 -95
  105. data/lib/swaggy_jenkins/api_error.rb +22 -3
  106. data/lib/swaggy_jenkins/configuration.rb +93 -16
  107. data/lib/swaggy_jenkins/models/all_view.rb +60 -29
  108. data/lib/swaggy_jenkins/models/branch_impl.rb +77 -46
  109. data/lib/swaggy_jenkins/models/branch_impllinks.rb +63 -32
  110. data/lib/swaggy_jenkins/models/branch_implpermissions.rb +66 -35
  111. data/lib/swaggy_jenkins/models/cause_action.rb +59 -28
  112. data/lib/swaggy_jenkins/models/cause_user_id_cause.rb +64 -33
  113. data/lib/swaggy_jenkins/models/classes_by_class.rb +59 -28
  114. data/lib/swaggy_jenkins/models/clock_difference.rb +59 -28
  115. data/lib/swaggy_jenkins/models/computer_set.rb +65 -34
  116. data/lib/swaggy_jenkins/models/default_crumb_issuer.rb +61 -30
  117. data/lib/swaggy_jenkins/models/disk_space_monitor_descriptor_disk_space.rb +61 -30
  118. data/lib/swaggy_jenkins/models/empty_change_log_set.rb +59 -28
  119. data/lib/swaggy_jenkins/models/extension_class_container_impl1.rb +60 -29
  120. data/lib/swaggy_jenkins/models/extension_class_container_impl1links.rb +60 -29
  121. data/lib/swaggy_jenkins/models/extension_class_container_impl1map.rb +62 -31
  122. data/lib/swaggy_jenkins/models/extension_class_impl.rb +60 -29
  123. data/lib/swaggy_jenkins/models/extension_class_impllinks.rb +60 -29
  124. data/lib/swaggy_jenkins/models/favorite_impl.rb +60 -29
  125. data/lib/swaggy_jenkins/models/favorite_impllinks.rb +60 -29
  126. data/lib/swaggy_jenkins/models/free_style_build.rb +84 -53
  127. data/lib/swaggy_jenkins/models/free_style_project.rb +106 -75
  128. data/lib/swaggy_jenkins/models/free_style_projectactions.rb +58 -27
  129. data/lib/swaggy_jenkins/models/free_style_projecthealth_report.rb +64 -33
  130. data/lib/swaggy_jenkins/models/generic_resource.rb +66 -35
  131. data/lib/swaggy_jenkins/models/github_content.rb +66 -35
  132. data/lib/swaggy_jenkins/models/github_file.rb +59 -28
  133. data/lib/swaggy_jenkins/models/github_organization.rb +63 -32
  134. data/lib/swaggy_jenkins/models/github_organizationlinks.rb +61 -30
  135. data/lib/swaggy_jenkins/models/github_repositories.rb +66 -35
  136. data/lib/swaggy_jenkins/models/github_repositorieslinks.rb +60 -29
  137. data/lib/swaggy_jenkins/models/github_repository.rb +68 -37
  138. data/lib/swaggy_jenkins/models/github_repositorylinks.rb +60 -29
  139. data/lib/swaggy_jenkins/models/github_repositorypermissions.rb +64 -33
  140. data/lib/swaggy_jenkins/models/github_respository_container.rb +60 -29
  141. data/lib/swaggy_jenkins/models/github_respository_containerlinks.rb +60 -29
  142. data/lib/swaggy_jenkins/models/github_scm.rb +63 -32
  143. data/lib/swaggy_jenkins/models/github_scmlinks.rb +60 -29
  144. data/lib/swaggy_jenkins/models/hudson.rb +85 -54
  145. data/lib/swaggy_jenkins/models/hudson_master_computer.rb +90 -59
  146. data/lib/swaggy_jenkins/models/hudson_master_computerexecutors.rb +67 -36
  147. data/lib/swaggy_jenkins/models/hudson_master_computermonitor_data.rb +70 -39
  148. data/lib/swaggy_jenkins/models/hudsonassigned_labels.rb +58 -27
  149. data/lib/swaggy_jenkins/models/input_step_impl.rb +64 -33
  150. data/lib/swaggy_jenkins/models/input_step_impllinks.rb +60 -29
  151. data/lib/swaggy_jenkins/models/label1.rb +58 -27
  152. data/lib/swaggy_jenkins/models/link.rb +59 -28
  153. data/lib/swaggy_jenkins/models/list_view.rb +62 -31
  154. data/lib/swaggy_jenkins/models/multibranch_pipeline.rb +82 -51
  155. data/lib/swaggy_jenkins/models/null_scm.rb +58 -27
  156. data/lib/swaggy_jenkins/models/organisation.rb +59 -28
  157. data/lib/swaggy_jenkins/models/pipeline.rb +70 -39
  158. data/lib/swaggy_jenkins/models/pipeline_activity.rb +79 -48
  159. data/lib/swaggy_jenkins/models/pipeline_activityartifacts.rb +61 -30
  160. data/lib/swaggy_jenkins/models/pipeline_branchesitem.rb +72 -41
  161. data/lib/swaggy_jenkins/models/pipeline_branchesitemlatest_run.rb +78 -47
  162. data/lib/swaggy_jenkins/models/pipeline_branchesitempull_request.rb +63 -32
  163. data/lib/swaggy_jenkins/models/pipeline_branchesitempull_requestlinks.rb +60 -29
  164. data/lib/swaggy_jenkins/models/pipeline_folder_impl.rb +68 -37
  165. data/lib/swaggy_jenkins/models/pipeline_impl.rb +71 -40
  166. data/lib/swaggy_jenkins/models/pipeline_impllinks.rb +63 -32
  167. data/lib/swaggy_jenkins/models/pipeline_run.rb +79 -48
  168. data/lib/swaggy_jenkins/models/pipeline_run_impl.rb +79 -48
  169. data/lib/swaggy_jenkins/models/pipeline_run_impllinks.rb +64 -33
  170. data/lib/swaggy_jenkins/models/pipeline_run_node.rb +68 -37
  171. data/lib/swaggy_jenkins/models/pipeline_run_nodeedges.rb +59 -28
  172. data/lib/swaggy_jenkins/models/pipeline_runartifacts.rb +61 -30
  173. data/lib/swaggy_jenkins/models/pipeline_step_impl.rb +69 -38
  174. data/lib/swaggy_jenkins/models/pipeline_step_impllinks.rb +61 -30
  175. data/lib/swaggy_jenkins/models/pipelinelatest_run.rb +79 -48
  176. data/lib/swaggy_jenkins/models/pipelinelatest_runartifacts.rb +61 -30
  177. data/lib/swaggy_jenkins/models/queue.rb +59 -28
  178. data/lib/swaggy_jenkins/models/queue_blocked_item.rb +74 -43
  179. data/lib/swaggy_jenkins/models/queue_item_impl.rb +64 -33
  180. data/lib/swaggy_jenkins/models/queue_left_item.rb +75 -44
  181. data/lib/swaggy_jenkins/models/response_time_monitor_data.rb +60 -29
  182. data/lib/swaggy_jenkins/models/string_parameter_definition.rb +63 -32
  183. data/lib/swaggy_jenkins/models/string_parameter_value.rb +60 -29
  184. data/lib/swaggy_jenkins/models/swap_space_monitor_memory_usage2.rb +66 -35
  185. data/lib/swaggy_jenkins/models/unlabeled_load_statistics.rb +58 -27
  186. data/lib/swaggy_jenkins/models/user.rb +63 -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 +96 -274
  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,17 +3,17 @@
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: 2.0.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: 6.0.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module SwaggyJenkinsClient
16
-
17
17
  class PipelinelatestRun
18
18
  attr_accessor :artifacts
19
19
 
@@ -45,7 +45,6 @@ module SwaggyJenkinsClient
45
45
 
46
46
  attr_accessor :_class
47
47
 
48
-
49
48
  # Attribute mapping from ruby-style variable name to JSON key.
50
49
  def self.attribute_map
51
50
  {
@@ -67,8 +66,13 @@ module SwaggyJenkinsClient
67
66
  }
68
67
  end
69
68
 
69
+ # Returns all the JSON keys this model knows about
70
+ def self.acceptable_attributes
71
+ attribute_map.values
72
+ end
73
+
70
74
  # Attribute type mapping.
71
- def self.swagger_types
75
+ def self.openapi_types
72
76
  {
73
77
  :'artifacts' => :'Array<PipelinelatestRunartifacts>',
74
78
  :'duration_in_millis' => :'Integer',
@@ -88,89 +92,101 @@ module SwaggyJenkinsClient
88
92
  }
89
93
  end
90
94
 
95
+ # List of attributes with nullable: true
96
+ def self.openapi_nullable
97
+ Set.new([
98
+ ])
99
+ end
100
+
91
101
  # Initializes the object
92
102
  # @param [Hash] attributes Model attributes in the form of hash
93
103
  def initialize(attributes = {})
94
- return unless attributes.is_a?(Hash)
104
+ if (!attributes.is_a?(Hash))
105
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggyJenkinsClient::PipelinelatestRun` initialize method"
106
+ end
95
107
 
96
- # convert string to symbol for hash key
97
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
108
+ # check to see if the attribute exists and convert string to symbol for hash key
109
+ attributes = attributes.each_with_object({}) { |(k, v), h|
110
+ if (!self.class.attribute_map.key?(k.to_sym))
111
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::PipelinelatestRun`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
112
+ end
113
+ h[k.to_sym] = v
114
+ }
98
115
 
99
- if attributes.has_key?(:'artifacts')
116
+ if attributes.key?(:'artifacts')
100
117
  if (value = attributes[:'artifacts']).is_a?(Array)
101
118
  self.artifacts = value
102
119
  end
103
120
  end
104
121
 
105
- if attributes.has_key?(:'durationInMillis')
106
- self.duration_in_millis = attributes[:'durationInMillis']
122
+ if attributes.key?(:'duration_in_millis')
123
+ self.duration_in_millis = attributes[:'duration_in_millis']
107
124
  end
108
125
 
109
- if attributes.has_key?(:'estimatedDurationInMillis')
110
- self.estimated_duration_in_millis = attributes[:'estimatedDurationInMillis']
126
+ if attributes.key?(:'estimated_duration_in_millis')
127
+ self.estimated_duration_in_millis = attributes[:'estimated_duration_in_millis']
111
128
  end
112
129
 
113
- if attributes.has_key?(:'enQueueTime')
114
- self.en_queue_time = attributes[:'enQueueTime']
130
+ if attributes.key?(:'en_queue_time')
131
+ self.en_queue_time = attributes[:'en_queue_time']
115
132
  end
116
133
 
117
- if attributes.has_key?(:'endTime')
118
- self.end_time = attributes[:'endTime']
134
+ if attributes.key?(:'end_time')
135
+ self.end_time = attributes[:'end_time']
119
136
  end
120
137
 
121
- if attributes.has_key?(:'id')
138
+ if attributes.key?(:'id')
122
139
  self.id = attributes[:'id']
123
140
  end
124
141
 
125
- if attributes.has_key?(:'organization')
142
+ if attributes.key?(:'organization')
126
143
  self.organization = attributes[:'organization']
127
144
  end
128
145
 
129
- if attributes.has_key?(:'pipeline')
146
+ if attributes.key?(:'pipeline')
130
147
  self.pipeline = attributes[:'pipeline']
131
148
  end
132
149
 
133
- if attributes.has_key?(:'result')
150
+ if attributes.key?(:'result')
134
151
  self.result = attributes[:'result']
135
152
  end
136
153
 
137
- if attributes.has_key?(:'runSummary')
138
- self.run_summary = attributes[:'runSummary']
154
+ if attributes.key?(:'run_summary')
155
+ self.run_summary = attributes[:'run_summary']
139
156
  end
140
157
 
141
- if attributes.has_key?(:'startTime')
142
- self.start_time = attributes[:'startTime']
158
+ if attributes.key?(:'start_time')
159
+ self.start_time = attributes[:'start_time']
143
160
  end
144
161
 
145
- if attributes.has_key?(:'state')
162
+ if attributes.key?(:'state')
146
163
  self.state = attributes[:'state']
147
164
  end
148
165
 
149
- if attributes.has_key?(:'type')
166
+ if attributes.key?(:'type')
150
167
  self.type = attributes[:'type']
151
168
  end
152
169
 
153
- if attributes.has_key?(:'commitId')
154
- self.commit_id = attributes[:'commitId']
170
+ if attributes.key?(:'commit_id')
171
+ self.commit_id = attributes[:'commit_id']
155
172
  end
156
173
 
157
- if attributes.has_key?(:'_class')
174
+ if attributes.key?(:'_class')
158
175
  self._class = attributes[:'_class']
159
176
  end
160
-
161
177
  end
162
178
 
163
179
  # Show invalid properties with the reasons. Usually used together with valid?
164
- # @return Array for valid properies with the reasons
180
+ # @return Array for valid properties with the reasons
165
181
  def list_invalid_properties
166
182
  invalid_properties = Array.new
167
- return invalid_properties
183
+ invalid_properties
168
184
  end
169
185
 
170
186
  # Check to see if the all the properties in the model are valid
171
187
  # @return true if the model is valid
172
188
  def valid?
173
- return true
189
+ true
174
190
  end
175
191
 
176
192
  # Checks equality by comparing each attribute.
@@ -202,26 +218,36 @@ module SwaggyJenkinsClient
202
218
  end
203
219
 
204
220
  # Calculates hash code according to all attributes.
205
- # @return [Fixnum] Hash code
221
+ # @return [Integer] Hash code
206
222
  def hash
207
223
  [artifacts, duration_in_millis, estimated_duration_in_millis, en_queue_time, end_time, id, organization, pipeline, result, run_summary, start_time, state, type, commit_id, _class].hash
208
224
  end
209
225
 
226
+ # Builds the object from hash
227
+ # @param [Hash] attributes Model attributes in the form of hash
228
+ # @return [Object] Returns the model itself
229
+ def self.build_from_hash(attributes)
230
+ new.build_from_hash(attributes)
231
+ end
232
+
210
233
  # Builds the object from hash
211
234
  # @param [Hash] attributes Model attributes in the form of hash
212
235
  # @return [Object] Returns the model itself
213
236
  def build_from_hash(attributes)
214
237
  return nil unless attributes.is_a?(Hash)
215
- self.class.swagger_types.each_pair do |key, type|
216
- if type =~ /\AArray<(.*)>/i
217
- # check to ensure the input is an array given that the the attribute
238
+ attributes = attributes.transform_keys(&:to_sym)
239
+ self.class.openapi_types.each_pair do |key, type|
240
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
241
+ self.send("#{key}=", nil)
242
+ elsif type =~ /\AArray<(.*)>/i
243
+ # check to ensure the input is an array given that the attribute
218
244
  # is documented as an array but the input is not
219
245
  if attributes[self.class.attribute_map[key]].is_a?(Array)
220
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
246
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
221
247
  end
222
248
  elsif !attributes[self.class.attribute_map[key]].nil?
223
249
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
224
- end # or else data not found in attributes(hash), not an issue as the data can be optional
250
+ end
225
251
  end
226
252
 
227
253
  self
@@ -233,8 +259,8 @@ module SwaggyJenkinsClient
233
259
  # @return [Object] Deserialized data
234
260
  def _deserialize(type, value)
235
261
  case type.to_sym
236
- when :DateTime
237
- DateTime.parse(value)
262
+ when :Time
263
+ Time.parse(value)
238
264
  when :Date
239
265
  Date.parse(value)
240
266
  when :String
@@ -243,7 +269,7 @@ module SwaggyJenkinsClient
243
269
  value.to_i
244
270
  when :Float
245
271
  value.to_f
246
- when :BOOLEAN
272
+ when :Boolean
247
273
  if value.to_s =~ /\A(true|t|yes|y|1)\z/i
248
274
  true
249
275
  else
@@ -264,8 +290,9 @@ module SwaggyJenkinsClient
264
290
  end
265
291
  end
266
292
  else # model
267
- temp_model = SwaggyJenkinsClient.const_get(type).new
268
- temp_model.build_from_hash(value)
293
+ # models (e.g. Pet) or oneOf
294
+ klass = SwaggyJenkinsClient.const_get(type)
295
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
269
296
  end
270
297
  end
271
298
 
@@ -287,7 +314,11 @@ module SwaggyJenkinsClient
287
314
  hash = {}
288
315
  self.class.attribute_map.each_pair do |attr, param|
289
316
  value = self.send(attr)
290
- next if value.nil?
317
+ if value.nil?
318
+ is_nullable = self.class.openapi_nullable.include?(attr)
319
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
320
+ end
321
+
291
322
  hash[param] = _to_hash(value)
292
323
  end
293
324
  hash
@@ -299,7 +330,7 @@ module SwaggyJenkinsClient
299
330
  # @return [Hash] Returns the value in the form of hash
300
331
  def _to_hash(value)
301
332
  if value.is_a?(Array)
302
- value.compact.map{ |v| _to_hash(v) }
333
+ value.compact.map { |v| _to_hash(v) }
303
334
  elsif value.is_a?(Hash)
304
335
  {}.tap do |hash|
305
336
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -3,17 +3,17 @@
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: 2.0.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: 6.0.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module SwaggyJenkinsClient
16
-
17
17
  class PipelinelatestRunartifacts
18
18
  attr_accessor :name
19
19
 
@@ -23,7 +23,6 @@ module SwaggyJenkinsClient
23
23
 
24
24
  attr_accessor :_class
25
25
 
26
-
27
26
  # Attribute mapping from ruby-style variable name to JSON key.
28
27
  def self.attribute_map
29
28
  {
@@ -34,8 +33,13 @@ module SwaggyJenkinsClient
34
33
  }
35
34
  end
36
35
 
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
37
41
  # Attribute type mapping.
38
- def self.swagger_types
42
+ def self.openapi_types
39
43
  {
40
44
  :'name' => :'String',
41
45
  :'size' => :'Integer',
@@ -44,43 +48,55 @@ module SwaggyJenkinsClient
44
48
  }
45
49
  end
46
50
 
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ ])
55
+ end
56
+
47
57
  # Initializes the object
48
58
  # @param [Hash] attributes Model attributes in the form of hash
49
59
  def initialize(attributes = {})
50
- return unless attributes.is_a?(Hash)
60
+ if (!attributes.is_a?(Hash))
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggyJenkinsClient::PipelinelatestRunartifacts` initialize method"
62
+ end
51
63
 
52
- # convert string to symbol for hash key
53
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::PipelinelatestRunartifacts`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
54
71
 
55
- if attributes.has_key?(:'name')
72
+ if attributes.key?(:'name')
56
73
  self.name = attributes[:'name']
57
74
  end
58
75
 
59
- if attributes.has_key?(:'size')
76
+ if attributes.key?(:'size')
60
77
  self.size = attributes[:'size']
61
78
  end
62
79
 
63
- if attributes.has_key?(:'url')
80
+ if attributes.key?(:'url')
64
81
  self.url = attributes[:'url']
65
82
  end
66
83
 
67
- if attributes.has_key?(:'_class')
84
+ if attributes.key?(:'_class')
68
85
  self._class = attributes[:'_class']
69
86
  end
70
-
71
87
  end
72
88
 
73
89
  # Show invalid properties with the reasons. Usually used together with valid?
74
- # @return Array for valid properies with the reasons
90
+ # @return Array for valid properties with the reasons
75
91
  def list_invalid_properties
76
92
  invalid_properties = Array.new
77
- return invalid_properties
93
+ invalid_properties
78
94
  end
79
95
 
80
96
  # Check to see if the all the properties in the model are valid
81
97
  # @return true if the model is valid
82
98
  def valid?
83
- return true
99
+ true
84
100
  end
85
101
 
86
102
  # Checks equality by comparing each attribute.
@@ -101,26 +117,36 @@ module SwaggyJenkinsClient
101
117
  end
102
118
 
103
119
  # Calculates hash code according to all attributes.
104
- # @return [Fixnum] Hash code
120
+ # @return [Integer] Hash code
105
121
  def hash
106
122
  [name, size, url, _class].hash
107
123
  end
108
124
 
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def self.build_from_hash(attributes)
129
+ new.build_from_hash(attributes)
130
+ end
131
+
109
132
  # Builds the object from hash
110
133
  # @param [Hash] attributes Model attributes in the form of hash
111
134
  # @return [Object] Returns the model itself
112
135
  def build_from_hash(attributes)
113
136
  return nil unless attributes.is_a?(Hash)
114
- self.class.swagger_types.each_pair do |key, type|
115
- if type =~ /\AArray<(.*)>/i
116
- # check to ensure the input is an array given that the the attribute
137
+ attributes = attributes.transform_keys(&:to_sym)
138
+ self.class.openapi_types.each_pair do |key, type|
139
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
140
+ self.send("#{key}=", nil)
141
+ elsif type =~ /\AArray<(.*)>/i
142
+ # check to ensure the input is an array given that the attribute
117
143
  # is documented as an array but the input is not
118
144
  if attributes[self.class.attribute_map[key]].is_a?(Array)
119
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
145
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
146
  end
121
147
  elsif !attributes[self.class.attribute_map[key]].nil?
122
148
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
- end # or else data not found in attributes(hash), not an issue as the data can be optional
149
+ end
124
150
  end
125
151
 
126
152
  self
@@ -132,8 +158,8 @@ module SwaggyJenkinsClient
132
158
  # @return [Object] Deserialized data
133
159
  def _deserialize(type, value)
134
160
  case type.to_sym
135
- when :DateTime
136
- DateTime.parse(value)
161
+ when :Time
162
+ Time.parse(value)
137
163
  when :Date
138
164
  Date.parse(value)
139
165
  when :String
@@ -142,7 +168,7 @@ module SwaggyJenkinsClient
142
168
  value.to_i
143
169
  when :Float
144
170
  value.to_f
145
- when :BOOLEAN
171
+ when :Boolean
146
172
  if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
173
  true
148
174
  else
@@ -163,8 +189,9 @@ module SwaggyJenkinsClient
163
189
  end
164
190
  end
165
191
  else # model
166
- temp_model = SwaggyJenkinsClient.const_get(type).new
167
- temp_model.build_from_hash(value)
192
+ # models (e.g. Pet) or oneOf
193
+ klass = SwaggyJenkinsClient.const_get(type)
194
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
195
  end
169
196
  end
170
197
 
@@ -186,7 +213,11 @@ module SwaggyJenkinsClient
186
213
  hash = {}
187
214
  self.class.attribute_map.each_pair do |attr, param|
188
215
  value = self.send(attr)
189
- next if value.nil?
216
+ if value.nil?
217
+ is_nullable = self.class.openapi_nullable.include?(attr)
218
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
219
+ end
220
+
190
221
  hash[param] = _to_hash(value)
191
222
  end
192
223
  hash
@@ -198,7 +229,7 @@ module SwaggyJenkinsClient
198
229
  # @return [Hash] Returns the value in the form of hash
199
230
  def _to_hash(value)
200
231
  if value.is_a?(Array)
201
- value.compact.map{ |v| _to_hash(v) }
232
+ value.compact.map { |v| _to_hash(v) }
202
233
  elsif value.is_a?(Hash)
203
234
  {}.tap do |hash|
204
235
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -3,23 +3,22 @@
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: 2.0.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: 6.0.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module SwaggyJenkinsClient
16
-
17
17
  class Queue
18
18
  attr_accessor :_class
19
19
 
20
20
  attr_accessor :items
21
21
 
22
-
23
22
  # Attribute mapping from ruby-style variable name to JSON key.
24
23
  def self.attribute_map
25
24
  {
@@ -28,45 +27,62 @@ module SwaggyJenkinsClient
28
27
  }
29
28
  end
30
29
 
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
31
35
  # Attribute type mapping.
32
- def self.swagger_types
36
+ def self.openapi_types
33
37
  {
34
38
  :'_class' => :'String',
35
39
  :'items' => :'Array<QueueBlockedItem>'
36
40
  }
37
41
  end
38
42
 
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
39
49
  # Initializes the object
40
50
  # @param [Hash] attributes Model attributes in the form of hash
41
51
  def initialize(attributes = {})
42
- return unless attributes.is_a?(Hash)
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggyJenkinsClient::Queue` initialize method"
54
+ end
43
55
 
44
- # convert string to symbol for hash key
45
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggyJenkinsClient::Queue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
46
63
 
47
- if attributes.has_key?(:'_class')
64
+ if attributes.key?(:'_class')
48
65
  self._class = attributes[:'_class']
49
66
  end
50
67
 
51
- if attributes.has_key?(:'items')
68
+ if attributes.key?(:'items')
52
69
  if (value = attributes[:'items']).is_a?(Array)
53
70
  self.items = value
54
71
  end
55
72
  end
56
-
57
73
  end
58
74
 
59
75
  # Show invalid properties with the reasons. Usually used together with valid?
60
- # @return Array for valid properies with the reasons
76
+ # @return Array for valid properties with the reasons
61
77
  def list_invalid_properties
62
78
  invalid_properties = Array.new
63
- return invalid_properties
79
+ invalid_properties
64
80
  end
65
81
 
66
82
  # Check to see if the all the properties in the model are valid
67
83
  # @return true if the model is valid
68
84
  def valid?
69
- return true
85
+ true
70
86
  end
71
87
 
72
88
  # Checks equality by comparing each attribute.
@@ -85,26 +101,36 @@ module SwaggyJenkinsClient
85
101
  end
86
102
 
87
103
  # Calculates hash code according to all attributes.
88
- # @return [Fixnum] Hash code
104
+ # @return [Integer] Hash code
89
105
  def hash
90
106
  [_class, items].hash
91
107
  end
92
108
 
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ new.build_from_hash(attributes)
114
+ end
115
+
93
116
  # Builds the object from hash
94
117
  # @param [Hash] attributes Model attributes in the form of hash
95
118
  # @return [Object] Returns the model itself
96
119
  def build_from_hash(attributes)
97
120
  return nil unless attributes.is_a?(Hash)
98
- self.class.swagger_types.each_pair do |key, type|
99
- if type =~ /\AArray<(.*)>/i
100
- # check to ensure the input is an array given that the the attribute
121
+ attributes = attributes.transform_keys(&:to_sym)
122
+ self.class.openapi_types.each_pair do |key, type|
123
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
124
+ self.send("#{key}=", nil)
125
+ elsif type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
101
127
  # is documented as an array but the input is not
102
128
  if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
130
  end
105
131
  elsif !attributes[self.class.attribute_map[key]].nil?
106
132
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
107
- end # or else data not found in attributes(hash), not an issue as the data can be optional
133
+ end
108
134
  end
109
135
 
110
136
  self
@@ -116,8 +142,8 @@ module SwaggyJenkinsClient
116
142
  # @return [Object] Deserialized data
117
143
  def _deserialize(type, value)
118
144
  case type.to_sym
119
- when :DateTime
120
- DateTime.parse(value)
145
+ when :Time
146
+ Time.parse(value)
121
147
  when :Date
122
148
  Date.parse(value)
123
149
  when :String
@@ -126,7 +152,7 @@ module SwaggyJenkinsClient
126
152
  value.to_i
127
153
  when :Float
128
154
  value.to_f
129
- when :BOOLEAN
155
+ when :Boolean
130
156
  if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131
157
  true
132
158
  else
@@ -147,8 +173,9 @@ module SwaggyJenkinsClient
147
173
  end
148
174
  end
149
175
  else # model
150
- temp_model = SwaggyJenkinsClient.const_get(type).new
151
- temp_model.build_from_hash(value)
176
+ # models (e.g. Pet) or oneOf
177
+ klass = SwaggyJenkinsClient.const_get(type)
178
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
152
179
  end
153
180
  end
154
181
 
@@ -170,7 +197,11 @@ module SwaggyJenkinsClient
170
197
  hash = {}
171
198
  self.class.attribute_map.each_pair do |attr, param|
172
199
  value = self.send(attr)
173
- next if value.nil?
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
174
205
  hash[param] = _to_hash(value)
175
206
  end
176
207
  hash
@@ -182,7 +213,7 @@ module SwaggyJenkinsClient
182
213
  # @return [Hash] Returns the value in the form of hash
183
214
  def _to_hash(value)
184
215
  if value.is_a?(Array)
185
- value.compact.map{ |v| _to_hash(v) }
216
+ value.compact.map { |v| _to_hash(v) }
186
217
  elsif value.is_a?(Hash)
187
218
  {}.tap do |hash|
188
219
  value.each { |k, v| hash[k] = _to_hash(v) }