spinnaker_gate_ruby_client 1.0.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 (155) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/Gemfile.lock +85 -0
  4. data/LICENSE +201 -0
  5. data/README.md +240 -0
  6. data/Rakefile +8 -0
  7. data/docs/Account.md +14 -0
  8. data/docs/AccountDetails.md +19 -0
  9. data/docs/AmazonInfrastructureControllerApi.md +128 -0
  10. data/docs/ApplicationControllerApi.md +754 -0
  11. data/docs/ArtifactControllerApi.md +111 -0
  12. data/docs/AuthControllerApi.md +212 -0
  13. data/docs/BakeControllerApi.md +143 -0
  14. data/docs/BuildControllerApi.md +493 -0
  15. data/docs/ClusterControllerApi.md +475 -0
  16. data/docs/ConcourseControllerApi.md +161 -0
  17. data/docs/CredentialsControllerApi.md +129 -0
  18. data/docs/EcsServerGroupEventsControllerApi.md +66 -0
  19. data/docs/ExecutionsControllerApi.md +133 -0
  20. data/docs/FirewallControllerApi.md +171 -0
  21. data/docs/GrantedAuthority.md +8 -0
  22. data/docs/HashMapstringobject.md +7 -0
  23. data/docs/HttpEntity.md +8 -0
  24. data/docs/ImageControllerApi.md +178 -0
  25. data/docs/InstanceControllerApi.md +122 -0
  26. data/docs/JobControllerApi.md +69 -0
  27. data/docs/LoadBalancerControllerApi.md +217 -0
  28. data/docs/Mapstringstring.md +7 -0
  29. data/docs/NetworkControllerApi.md +105 -0
  30. data/docs/PipelineConfigControllerApi.md +144 -0
  31. data/docs/PipelineControllerApi.md +1074 -0
  32. data/docs/PipelineTemplateDependent.md +10 -0
  33. data/docs/PipelineTemplatesControllerApi.md +350 -0
  34. data/docs/ProjectControllerApi.md +196 -0
  35. data/docs/PubsubSubscriptionControllerApi.md +48 -0
  36. data/docs/ReorderPipelinesCommand.md +9 -0
  37. data/docs/ReorderPipelinesControllerApi.md +54 -0
  38. data/docs/ResponseEntity.md +10 -0
  39. data/docs/SearchControllerApi.md +68 -0
  40. data/docs/SecurityGroupControllerApi.md +171 -0
  41. data/docs/ServerGroupControllerApi.md +125 -0
  42. data/docs/ServerGroupManagerControllerApi.md +54 -0
  43. data/docs/SnapshotControllerApi.md +110 -0
  44. data/docs/SubnetControllerApi.md +58 -0
  45. data/docs/TaskControllerApi.md +291 -0
  46. data/docs/User.md +18 -0
  47. data/docs/V2CanaryConfigControllerApi.md +259 -0
  48. data/docs/V2CanaryControllerApi.md +356 -0
  49. data/docs/V2PipelineTemplatesControllerApi.md +356 -0
  50. data/docs/Version.md +8 -0
  51. data/docs/VersionControllerApi.md +48 -0
  52. data/docs/WebhookControllerApi.md +105 -0
  53. data/git_push.sh +55 -0
  54. data/lib/swagger_client.rb +85 -0
  55. data/lib/swagger_client/api/amazon_infrastructure_controller_api.rb +161 -0
  56. data/lib/swagger_client/api/application_controller_api.rb +868 -0
  57. data/lib/swagger_client/api/artifact_controller_api.rb +141 -0
  58. data/lib/swagger_client/api/auth_controller_api.rb +258 -0
  59. data/lib/swagger_client/api/bake_controller_api.rb +179 -0
  60. data/lib/swagger_client/api/build_controller_api.rb +588 -0
  61. data/lib/swagger_client/api/cluster_controller_api.rb +591 -0
  62. data/lib/swagger_client/api/concourse_controller_api.rb +209 -0
  63. data/lib/swagger_client/api/credentials_controller_api.rb +163 -0
  64. data/lib/swagger_client/api/ecs_server_group_events_controller_api.rb +101 -0
  65. data/lib/swagger_client/api/executions_controller_api.rb +169 -0
  66. data/lib/swagger_client/api/firewall_controller_api.rb +209 -0
  67. data/lib/swagger_client/api/image_controller_api.rb +222 -0
  68. data/lib/swagger_client/api/instance_controller_api.rb +160 -0
  69. data/lib/swagger_client/api/job_controller_api.rb +99 -0
  70. data/lib/swagger_client/api/load_balancer_controller_api.rb +258 -0
  71. data/lib/swagger_client/api/network_controller_api.rb +127 -0
  72. data/lib/swagger_client/api/pipeline_config_controller_api.rb +176 -0
  73. data/lib/swagger_client/api/pipeline_controller_api.rb +1268 -0
  74. data/lib/swagger_client/api/pipeline_templates_controller_api.rb +404 -0
  75. data/lib/swagger_client/api/project_controller_api.rb +234 -0
  76. data/lib/swagger_client/api/pubsub_subscription_controller_api.rb +69 -0
  77. data/lib/swagger_client/api/reorder_pipelines_controller_api.rb +75 -0
  78. data/lib/swagger_client/api/search_controller_api.rb +94 -0
  79. data/lib/swagger_client/api/security_group_controller_api.rb +209 -0
  80. data/lib/swagger_client/api/server_group_controller_api.rb +163 -0
  81. data/lib/swagger_client/api/server_group_manager_controller_api.rb +75 -0
  82. data/lib/swagger_client/api/snapshot_controller_api.rb +142 -0
  83. data/lib/swagger_client/api/subnet_controller_api.rb +78 -0
  84. data/lib/swagger_client/api/task_controller_api.rb +345 -0
  85. data/lib/swagger_client/api/v2_canary_config_controller_api.rb +300 -0
  86. data/lib/swagger_client/api/v2_canary_controller_api.rb +421 -0
  87. data/lib/swagger_client/api/v2_pipeline_templates_controller_api.rb +412 -0
  88. data/lib/swagger_client/api/version_controller_api.rb +69 -0
  89. data/lib/swagger_client/api/webhook_controller_api.rb +135 -0
  90. data/lib/swagger_client/api_client.rb +388 -0
  91. data/lib/swagger_client/api_error.rb +38 -0
  92. data/lib/swagger_client/configuration.rb +202 -0
  93. data/lib/swagger_client/models/account.rb +241 -0
  94. data/lib/swagger_client/models/account_details.rb +286 -0
  95. data/lib/swagger_client/models/granted_authority.rb +183 -0
  96. data/lib/swagger_client/models/hash_mapstringobject.rb +174 -0
  97. data/lib/swagger_client/models/http_entity.rb +183 -0
  98. data/lib/swagger_client/models/mapstringstring.rb +174 -0
  99. data/lib/swagger_client/models/pipeline_template_dependent.rb +201 -0
  100. data/lib/swagger_client/models/reorder_pipelines_command.rb +194 -0
  101. data/lib/swagger_client/models/response_entity.rb +235 -0
  102. data/lib/swagger_client/models/user.rb +279 -0
  103. data/lib/swagger_client/models/version.rb +183 -0
  104. data/lib/swagger_client/version.rb +15 -0
  105. data/spec/api/amazon_infrastructure_controller_api_spec.rb +65 -0
  106. data/spec/api/application_controller_api_spec.rb +218 -0
  107. data/spec/api/artifact_controller_api_spec.rb +60 -0
  108. data/spec/api/auth_controller_api_spec.rb +86 -0
  109. data/spec/api/bake_controller_api_spec.rb +68 -0
  110. data/spec/api/build_controller_api_spec.rb +155 -0
  111. data/spec/api/cluster_controller_api_spec.rb +155 -0
  112. data/spec/api/concourse_controller_api_spec.rb +73 -0
  113. data/spec/api/credentials_controller_api_spec.rb +70 -0
  114. data/spec/api/ecs_server_group_events_controller_api_spec.rb +50 -0
  115. data/spec/api/executions_controller_api_spec.rb +72 -0
  116. data/spec/api/firewall_controller_api_spec.rb +77 -0
  117. data/spec/api/image_controller_api_spec.rb +80 -0
  118. data/spec/api/instance_controller_api_spec.rb +64 -0
  119. data/spec/api/job_controller_api_spec.rb +51 -0
  120. data/spec/api/load_balancer_controller_api_spec.rb +87 -0
  121. data/spec/api/network_controller_api_spec.rb +58 -0
  122. data/spec/api/pipeline_config_controller_api_spec.rb +68 -0
  123. data/spec/api/pipeline_controller_api_spec.rb +296 -0
  124. data/spec/api/pipeline_templates_controller_api_spec.rb +118 -0
  125. data/spec/api/project_controller_api_spec.rb +81 -0
  126. data/spec/api/pubsub_subscription_controller_api_spec.rb +45 -0
  127. data/spec/api/reorder_pipelines_controller_api_spec.rb +46 -0
  128. data/spec/api/search_controller_api_spec.rb +52 -0
  129. data/spec/api/security_group_controller_api_spec.rb +77 -0
  130. data/spec/api/server_group_controller_api_spec.rb +66 -0
  131. data/spec/api/server_group_manager_controller_api_spec.rb +46 -0
  132. data/spec/api/snapshot_controller_api_spec.rb +60 -0
  133. data/spec/api/subnet_controller_api_spec.rb +47 -0
  134. data/spec/api/task_controller_api_spec.rb +103 -0
  135. data/spec/api/v2_canary_config_controller_api_spec.rb +96 -0
  136. data/spec/api/v2_canary_controller_api_spec.rb +123 -0
  137. data/spec/api/v2_pipeline_templates_controller_api_spec.rb +121 -0
  138. data/spec/api/version_controller_api_spec.rb +45 -0
  139. data/spec/api/webhook_controller_api_spec.rb +60 -0
  140. data/spec/api_client_spec.rb +226 -0
  141. data/spec/configuration_spec.rb +42 -0
  142. data/spec/models/account_details_spec.rb +107 -0
  143. data/spec/models/account_spec.rb +77 -0
  144. data/spec/models/granted_authority_spec.rb +41 -0
  145. data/spec/models/hash_mapstringobject_spec.rb +35 -0
  146. data/spec/models/http_entity_spec.rb +41 -0
  147. data/spec/models/mapstringstring_spec.rb +35 -0
  148. data/spec/models/pipeline_template_dependent_spec.rb +53 -0
  149. data/spec/models/reorder_pipelines_command_spec.rb +47 -0
  150. data/spec/models/response_entity_spec.rb +57 -0
  151. data/spec/models/user_spec.rb +101 -0
  152. data/spec/models/version_spec.rb +41 -0
  153. data/spec/spec_helper.rb +111 -0
  154. data/spinnaker_gate_ruby_client.gemspec +45 -0
  155. metadata +426 -0
@@ -0,0 +1,588 @@
1
+ =begin
2
+ #Spinnaker API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.7
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module SwaggerClient
16
+ class BuildControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get build masters
23
+ # Deprecated, use the v3 endpoint instead
24
+ # @param type type
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [Array<Object>]
27
+ def get_build_masters_using_get(type, opts = {})
28
+ data, _status_code, _headers = get_build_masters_using_get_with_http_info(type, opts)
29
+ data
30
+ end
31
+
32
+ # Get build masters
33
+ # Deprecated, use the v3 endpoint instead
34
+ # @param type type
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
37
+ def get_build_masters_using_get_with_http_info(type, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: BuildControllerApi.get_build_masters_using_get ...'
40
+ end
41
+ # verify the required parameter 'type' is set
42
+ if @api_client.config.client_side_validation && type.nil?
43
+ fail ArgumentError, "Missing the required parameter 'type' when calling BuildControllerApi.get_build_masters_using_get"
44
+ end
45
+ # resource path
46
+ local_var_path = '/v2/builds'
47
+
48
+ # query parameters
49
+ query_params = {}
50
+ query_params[:'type'] = type
51
+
52
+ # header parameters
53
+ header_params = {}
54
+ # HTTP header 'Accept' (if needed)
55
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
56
+ # HTTP header 'Content-Type'
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
58
+
59
+ # form parameters
60
+ form_params = {}
61
+
62
+ # http body (model)
63
+ post_body = nil
64
+ auth_names = []
65
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
66
+ :header_params => header_params,
67
+ :query_params => query_params,
68
+ :form_params => form_params,
69
+ :body => post_body,
70
+ :auth_names => auth_names,
71
+ :return_type => 'Array<Object>')
72
+ if @api_client.config.debugging
73
+ @api_client.config.logger.debug "API called: BuildControllerApi#get_build_masters_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
+ end
75
+ return data, status_code, headers
76
+ end
77
+ # Get build for build master
78
+ # Deprecated, use the v3 endpoint instead
79
+ # @param build_master buildMaster
80
+ # @param number number
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [Hash<String, Object>]
83
+ def get_build_using_get(build_master, number, opts = {})
84
+ data, _status_code, _headers = get_build_using_get_with_http_info(build_master, number, opts)
85
+ data
86
+ end
87
+
88
+ # Get build for build master
89
+ # Deprecated, use the v3 endpoint instead
90
+ # @param build_master buildMaster
91
+ # @param number number
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
94
+ def get_build_using_get_with_http_info(build_master, number, opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug 'Calling API: BuildControllerApi.get_build_using_get ...'
97
+ end
98
+ # verify the required parameter 'build_master' is set
99
+ if @api_client.config.client_side_validation && build_master.nil?
100
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling BuildControllerApi.get_build_using_get"
101
+ end
102
+ # verify the required parameter 'number' is set
103
+ if @api_client.config.client_side_validation && number.nil?
104
+ fail ArgumentError, "Missing the required parameter 'number' when calling BuildControllerApi.get_build_using_get"
105
+ end
106
+ # resource path
107
+ local_var_path = '/v2/builds/{buildMaster}/build/{number}/**'.sub('{' + 'buildMaster' + '}', build_master.to_s).sub('{' + 'number' + '}', number.to_s)
108
+
109
+ # query parameters
110
+ query_params = {}
111
+
112
+ # header parameters
113
+ header_params = {}
114
+ # HTTP header 'Accept' (if needed)
115
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
116
+ # HTTP header 'Content-Type'
117
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
118
+
119
+ # form parameters
120
+ form_params = {}
121
+
122
+ # http body (model)
123
+ post_body = nil
124
+ auth_names = []
125
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
126
+ :header_params => header_params,
127
+ :query_params => query_params,
128
+ :form_params => form_params,
129
+ :body => post_body,
130
+ :auth_names => auth_names,
131
+ :return_type => 'Hash<String, Object>')
132
+ if @api_client.config.debugging
133
+ @api_client.config.logger.debug "API called: BuildControllerApi#get_build_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
134
+ end
135
+ return data, status_code, headers
136
+ end
137
+ # Get builds for build master
138
+ # Deprecated, use the v3 endpoint instead
139
+ # @param build_master buildMaster
140
+ # @param [Hash] opts the optional parameters
141
+ # @return [Array<Object>]
142
+ def get_builds_using_get(build_master, opts = {})
143
+ data, _status_code, _headers = get_builds_using_get_with_http_info(build_master, opts)
144
+ data
145
+ end
146
+
147
+ # Get builds for build master
148
+ # Deprecated, use the v3 endpoint instead
149
+ # @param build_master buildMaster
150
+ # @param [Hash] opts the optional parameters
151
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
152
+ def get_builds_using_get_with_http_info(build_master, opts = {})
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug 'Calling API: BuildControllerApi.get_builds_using_get ...'
155
+ end
156
+ # verify the required parameter 'build_master' is set
157
+ if @api_client.config.client_side_validation && build_master.nil?
158
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling BuildControllerApi.get_builds_using_get"
159
+ end
160
+ # resource path
161
+ local_var_path = '/v2/builds/{buildMaster}/builds/**'.sub('{' + 'buildMaster' + '}', build_master.to_s)
162
+
163
+ # query parameters
164
+ query_params = {}
165
+
166
+ # header parameters
167
+ header_params = {}
168
+ # HTTP header 'Accept' (if needed)
169
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
170
+ # HTTP header 'Content-Type'
171
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
172
+
173
+ # form parameters
174
+ form_params = {}
175
+
176
+ # http body (model)
177
+ post_body = nil
178
+ auth_names = []
179
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
180
+ :header_params => header_params,
181
+ :query_params => query_params,
182
+ :form_params => form_params,
183
+ :body => post_body,
184
+ :auth_names => auth_names,
185
+ :return_type => 'Array<Object>')
186
+ if @api_client.config.debugging
187
+ @api_client.config.logger.debug "API called: BuildControllerApi#get_builds_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
188
+ end
189
+ return data, status_code, headers
190
+ end
191
+ # Get job config
192
+ # Deprecated, use the v3 endpoint instead
193
+ # @param build_master buildMaster
194
+ # @param [Hash] opts the optional parameters
195
+ # @return [Hash<String, Object>]
196
+ def get_job_config_using_get(build_master, opts = {})
197
+ data, _status_code, _headers = get_job_config_using_get_with_http_info(build_master, opts)
198
+ data
199
+ end
200
+
201
+ # Get job config
202
+ # Deprecated, use the v3 endpoint instead
203
+ # @param build_master buildMaster
204
+ # @param [Hash] opts the optional parameters
205
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
206
+ def get_job_config_using_get_with_http_info(build_master, opts = {})
207
+ if @api_client.config.debugging
208
+ @api_client.config.logger.debug 'Calling API: BuildControllerApi.get_job_config_using_get ...'
209
+ end
210
+ # verify the required parameter 'build_master' is set
211
+ if @api_client.config.client_side_validation && build_master.nil?
212
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling BuildControllerApi.get_job_config_using_get"
213
+ end
214
+ # resource path
215
+ local_var_path = '/v2/builds/{buildMaster}/jobs/**'.sub('{' + 'buildMaster' + '}', build_master.to_s)
216
+
217
+ # query parameters
218
+ query_params = {}
219
+
220
+ # header parameters
221
+ header_params = {}
222
+ # HTTP header 'Accept' (if needed)
223
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
224
+ # HTTP header 'Content-Type'
225
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
226
+
227
+ # form parameters
228
+ form_params = {}
229
+
230
+ # http body (model)
231
+ post_body = nil
232
+ auth_names = []
233
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
234
+ :header_params => header_params,
235
+ :query_params => query_params,
236
+ :form_params => form_params,
237
+ :body => post_body,
238
+ :auth_names => auth_names,
239
+ :return_type => 'Hash<String, Object>')
240
+ if @api_client.config.debugging
241
+ @api_client.config.logger.debug "API called: BuildControllerApi#get_job_config_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
242
+ end
243
+ return data, status_code, headers
244
+ end
245
+ # Get jobs for build master
246
+ # Deprecated, use the v3 endpoint instead
247
+ # @param build_master buildMaster
248
+ # @param [Hash] opts the optional parameters
249
+ # @return [Array<Object>]
250
+ def get_jobs_for_build_master_using_get(build_master, opts = {})
251
+ data, _status_code, _headers = get_jobs_for_build_master_using_get_with_http_info(build_master, opts)
252
+ data
253
+ end
254
+
255
+ # Get jobs for build master
256
+ # Deprecated, use the v3 endpoint instead
257
+ # @param build_master buildMaster
258
+ # @param [Hash] opts the optional parameters
259
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
260
+ def get_jobs_for_build_master_using_get_with_http_info(build_master, opts = {})
261
+ if @api_client.config.debugging
262
+ @api_client.config.logger.debug 'Calling API: BuildControllerApi.get_jobs_for_build_master_using_get ...'
263
+ end
264
+ # verify the required parameter 'build_master' is set
265
+ if @api_client.config.client_side_validation && build_master.nil?
266
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling BuildControllerApi.get_jobs_for_build_master_using_get"
267
+ end
268
+ # resource path
269
+ local_var_path = '/v2/builds/{buildMaster}/jobs'.sub('{' + 'buildMaster' + '}', build_master.to_s)
270
+
271
+ # query parameters
272
+ query_params = {}
273
+
274
+ # header parameters
275
+ header_params = {}
276
+ # HTTP header 'Accept' (if needed)
277
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
278
+ # HTTP header 'Content-Type'
279
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
280
+
281
+ # form parameters
282
+ form_params = {}
283
+
284
+ # http body (model)
285
+ post_body = nil
286
+ auth_names = []
287
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
288
+ :header_params => header_params,
289
+ :query_params => query_params,
290
+ :form_params => form_params,
291
+ :body => post_body,
292
+ :auth_names => auth_names,
293
+ :return_type => 'Array<Object>')
294
+ if @api_client.config.debugging
295
+ @api_client.config.logger.debug "API called: BuildControllerApi#get_jobs_for_build_master_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
296
+ end
297
+ return data, status_code, headers
298
+ end
299
+ # Get build masters
300
+ # @param type type
301
+ # @param [Hash] opts the optional parameters
302
+ # @return [Array<Object>]
303
+ def v3_get_build_masters_using_get(type, opts = {})
304
+ data, _status_code, _headers = v3_get_build_masters_using_get_with_http_info(type, opts)
305
+ data
306
+ end
307
+
308
+ # Get build masters
309
+ # @param type type
310
+ # @param [Hash] opts the optional parameters
311
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
312
+ def v3_get_build_masters_using_get_with_http_info(type, opts = {})
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug 'Calling API: BuildControllerApi.v3_get_build_masters_using_get ...'
315
+ end
316
+ # verify the required parameter 'type' is set
317
+ if @api_client.config.client_side_validation && type.nil?
318
+ fail ArgumentError, "Missing the required parameter 'type' when calling BuildControllerApi.v3_get_build_masters_using_get"
319
+ end
320
+ # resource path
321
+ local_var_path = '/v3/builds'
322
+
323
+ # query parameters
324
+ query_params = {}
325
+ query_params[:'type'] = type
326
+
327
+ # header parameters
328
+ header_params = {}
329
+ # HTTP header 'Accept' (if needed)
330
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
331
+ # HTTP header 'Content-Type'
332
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
333
+
334
+ # form parameters
335
+ form_params = {}
336
+
337
+ # http body (model)
338
+ post_body = nil
339
+ auth_names = []
340
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
341
+ :header_params => header_params,
342
+ :query_params => query_params,
343
+ :form_params => form_params,
344
+ :body => post_body,
345
+ :auth_names => auth_names,
346
+ :return_type => 'Array<Object>')
347
+ if @api_client.config.debugging
348
+ @api_client.config.logger.debug "API called: BuildControllerApi#v3_get_build_masters_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
349
+ end
350
+ return data, status_code, headers
351
+ end
352
+ # Get build for build master
353
+ # @param build_master buildMaster
354
+ # @param number number
355
+ # @param job job
356
+ # @param [Hash] opts the optional parameters
357
+ # @return [Hash<String, Object>]
358
+ def v3_get_build_using_get(build_master, number, job, opts = {})
359
+ data, _status_code, _headers = v3_get_build_using_get_with_http_info(build_master, number, job, opts)
360
+ data
361
+ end
362
+
363
+ # Get build for build master
364
+ # @param build_master buildMaster
365
+ # @param number number
366
+ # @param job job
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
369
+ def v3_get_build_using_get_with_http_info(build_master, number, job, opts = {})
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug 'Calling API: BuildControllerApi.v3_get_build_using_get ...'
372
+ end
373
+ # verify the required parameter 'build_master' is set
374
+ if @api_client.config.client_side_validation && build_master.nil?
375
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling BuildControllerApi.v3_get_build_using_get"
376
+ end
377
+ # verify the required parameter 'number' is set
378
+ if @api_client.config.client_side_validation && number.nil?
379
+ fail ArgumentError, "Missing the required parameter 'number' when calling BuildControllerApi.v3_get_build_using_get"
380
+ end
381
+ # verify the required parameter 'job' is set
382
+ if @api_client.config.client_side_validation && job.nil?
383
+ fail ArgumentError, "Missing the required parameter 'job' when calling BuildControllerApi.v3_get_build_using_get"
384
+ end
385
+ # resource path
386
+ local_var_path = '/v3/builds/{buildMaster}/build/{number}'.sub('{' + 'buildMaster' + '}', build_master.to_s).sub('{' + 'number' + '}', number.to_s)
387
+
388
+ # query parameters
389
+ query_params = {}
390
+ query_params[:'job'] = job
391
+
392
+ # header parameters
393
+ header_params = {}
394
+ # HTTP header 'Accept' (if needed)
395
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
396
+ # HTTP header 'Content-Type'
397
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
398
+
399
+ # form parameters
400
+ form_params = {}
401
+
402
+ # http body (model)
403
+ post_body = nil
404
+ auth_names = []
405
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
406
+ :header_params => header_params,
407
+ :query_params => query_params,
408
+ :form_params => form_params,
409
+ :body => post_body,
410
+ :auth_names => auth_names,
411
+ :return_type => 'Hash<String, Object>')
412
+ if @api_client.config.debugging
413
+ @api_client.config.logger.debug "API called: BuildControllerApi#v3_get_build_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
414
+ end
415
+ return data, status_code, headers
416
+ end
417
+ # Get builds for build master
418
+ # @param build_master buildMaster
419
+ # @param job job
420
+ # @param [Hash] opts the optional parameters
421
+ # @return [Array<Object>]
422
+ def v3_get_builds_using_get(build_master, job, opts = {})
423
+ data, _status_code, _headers = v3_get_builds_using_get_with_http_info(build_master, job, opts)
424
+ data
425
+ end
426
+
427
+ # Get builds for build master
428
+ # @param build_master buildMaster
429
+ # @param job job
430
+ # @param [Hash] opts the optional parameters
431
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
432
+ def v3_get_builds_using_get_with_http_info(build_master, job, opts = {})
433
+ if @api_client.config.debugging
434
+ @api_client.config.logger.debug 'Calling API: BuildControllerApi.v3_get_builds_using_get ...'
435
+ end
436
+ # verify the required parameter 'build_master' is set
437
+ if @api_client.config.client_side_validation && build_master.nil?
438
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling BuildControllerApi.v3_get_builds_using_get"
439
+ end
440
+ # verify the required parameter 'job' is set
441
+ if @api_client.config.client_side_validation && job.nil?
442
+ fail ArgumentError, "Missing the required parameter 'job' when calling BuildControllerApi.v3_get_builds_using_get"
443
+ end
444
+ # resource path
445
+ local_var_path = '/v3/builds/{buildMaster}/builds'.sub('{' + 'buildMaster' + '}', build_master.to_s)
446
+
447
+ # query parameters
448
+ query_params = {}
449
+ query_params[:'job'] = job
450
+
451
+ # header parameters
452
+ header_params = {}
453
+ # HTTP header 'Accept' (if needed)
454
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
455
+ # HTTP header 'Content-Type'
456
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
457
+
458
+ # form parameters
459
+ form_params = {}
460
+
461
+ # http body (model)
462
+ post_body = nil
463
+ auth_names = []
464
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
465
+ :header_params => header_params,
466
+ :query_params => query_params,
467
+ :form_params => form_params,
468
+ :body => post_body,
469
+ :auth_names => auth_names,
470
+ :return_type => 'Array<Object>')
471
+ if @api_client.config.debugging
472
+ @api_client.config.logger.debug "API called: BuildControllerApi#v3_get_builds_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
473
+ end
474
+ return data, status_code, headers
475
+ end
476
+ # Get job config
477
+ # @param build_master buildMaster
478
+ # @param job job
479
+ # @param [Hash] opts the optional parameters
480
+ # @return [Hash<String, Object>]
481
+ def v3_get_job_config_using_get(build_master, job, opts = {})
482
+ data, _status_code, _headers = v3_get_job_config_using_get_with_http_info(build_master, job, opts)
483
+ data
484
+ end
485
+
486
+ # Get job config
487
+ # @param build_master buildMaster
488
+ # @param job job
489
+ # @param [Hash] opts the optional parameters
490
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
491
+ def v3_get_job_config_using_get_with_http_info(build_master, job, opts = {})
492
+ if @api_client.config.debugging
493
+ @api_client.config.logger.debug 'Calling API: BuildControllerApi.v3_get_job_config_using_get ...'
494
+ end
495
+ # verify the required parameter 'build_master' is set
496
+ if @api_client.config.client_side_validation && build_master.nil?
497
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling BuildControllerApi.v3_get_job_config_using_get"
498
+ end
499
+ # verify the required parameter 'job' is set
500
+ if @api_client.config.client_side_validation && job.nil?
501
+ fail ArgumentError, "Missing the required parameter 'job' when calling BuildControllerApi.v3_get_job_config_using_get"
502
+ end
503
+ # resource path
504
+ local_var_path = '/v3/builds/{buildMaster}/job'.sub('{' + 'buildMaster' + '}', build_master.to_s)
505
+
506
+ # query parameters
507
+ query_params = {}
508
+ query_params[:'job'] = job
509
+
510
+ # header parameters
511
+ header_params = {}
512
+ # HTTP header 'Accept' (if needed)
513
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
514
+ # HTTP header 'Content-Type'
515
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
516
+
517
+ # form parameters
518
+ form_params = {}
519
+
520
+ # http body (model)
521
+ post_body = nil
522
+ auth_names = []
523
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
524
+ :header_params => header_params,
525
+ :query_params => query_params,
526
+ :form_params => form_params,
527
+ :body => post_body,
528
+ :auth_names => auth_names,
529
+ :return_type => 'Hash<String, Object>')
530
+ if @api_client.config.debugging
531
+ @api_client.config.logger.debug "API called: BuildControllerApi#v3_get_job_config_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
532
+ end
533
+ return data, status_code, headers
534
+ end
535
+ # Get jobs for build master
536
+ # @param build_master buildMaster
537
+ # @param [Hash] opts the optional parameters
538
+ # @return [Array<Object>]
539
+ def v3_get_jobs_for_build_master_using_get(build_master, opts = {})
540
+ data, _status_code, _headers = v3_get_jobs_for_build_master_using_get_with_http_info(build_master, opts)
541
+ data
542
+ end
543
+
544
+ # Get jobs for build master
545
+ # @param build_master buildMaster
546
+ # @param [Hash] opts the optional parameters
547
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
548
+ def v3_get_jobs_for_build_master_using_get_with_http_info(build_master, opts = {})
549
+ if @api_client.config.debugging
550
+ @api_client.config.logger.debug 'Calling API: BuildControllerApi.v3_get_jobs_for_build_master_using_get ...'
551
+ end
552
+ # verify the required parameter 'build_master' is set
553
+ if @api_client.config.client_side_validation && build_master.nil?
554
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling BuildControllerApi.v3_get_jobs_for_build_master_using_get"
555
+ end
556
+ # resource path
557
+ local_var_path = '/v3/builds/{buildMaster}/jobs'.sub('{' + 'buildMaster' + '}', build_master.to_s)
558
+
559
+ # query parameters
560
+ query_params = {}
561
+
562
+ # header parameters
563
+ header_params = {}
564
+ # HTTP header 'Accept' (if needed)
565
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
566
+ # HTTP header 'Content-Type'
567
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
568
+
569
+ # form parameters
570
+ form_params = {}
571
+
572
+ # http body (model)
573
+ post_body = nil
574
+ auth_names = []
575
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
576
+ :header_params => header_params,
577
+ :query_params => query_params,
578
+ :form_params => form_params,
579
+ :body => post_body,
580
+ :auth_names => auth_names,
581
+ :return_type => 'Array<Object>')
582
+ if @api_client.config.debugging
583
+ @api_client.config.logger.debug "API called: BuildControllerApi#v3_get_jobs_for_build_master_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
584
+ end
585
+ return data, status_code, headers
586
+ end
587
+ end
588
+ end