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,404 @@
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 PipelineTemplatesControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a pipeline template.
23
+ # @param pipeline_template pipelineTemplate
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [nil]
26
+ def create_using_post(pipeline_template, opts = {})
27
+ create_using_post_with_http_info(pipeline_template, opts)
28
+ nil
29
+ end
30
+
31
+ # Create a pipeline template.
32
+ # @param pipeline_template pipelineTemplate
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
35
+ def create_using_post_with_http_info(pipeline_template, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: PipelineTemplatesControllerApi.create_using_post ...'
38
+ end
39
+ # verify the required parameter 'pipeline_template' is set
40
+ if @api_client.config.client_side_validation && pipeline_template.nil?
41
+ fail ArgumentError, "Missing the required parameter 'pipeline_template' when calling PipelineTemplatesControllerApi.create_using_post"
42
+ end
43
+ # resource path
44
+ local_var_path = '/pipelineTemplates'
45
+
46
+ # query parameters
47
+ query_params = {}
48
+
49
+ # header parameters
50
+ header_params = {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
53
+ # HTTP header 'Content-Type'
54
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
+
56
+ # form parameters
57
+ form_params = {}
58
+
59
+ # http body (model)
60
+ post_body = @api_client.object_to_http_body(pipeline_template)
61
+ auth_names = []
62
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
63
+ :header_params => header_params,
64
+ :query_params => query_params,
65
+ :form_params => form_params,
66
+ :body => post_body,
67
+ :auth_names => auth_names)
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: PipelineTemplatesControllerApi#create_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+ # Delete a pipeline template.
74
+ # @param id id
75
+ # @param [Hash] opts the optional parameters
76
+ # @option opts [String] :application application
77
+ # @return [Hash<String, Object>]
78
+ def delete_using_delete(id, opts = {})
79
+ data, _status_code, _headers = delete_using_delete_with_http_info(id, opts)
80
+ data
81
+ end
82
+
83
+ # Delete a pipeline template.
84
+ # @param id id
85
+ # @param [Hash] opts the optional parameters
86
+ # @option opts [String] :application application
87
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
88
+ def delete_using_delete_with_http_info(id, opts = {})
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug 'Calling API: PipelineTemplatesControllerApi.delete_using_delete ...'
91
+ end
92
+ # verify the required parameter 'id' is set
93
+ if @api_client.config.client_side_validation && id.nil?
94
+ fail ArgumentError, "Missing the required parameter 'id' when calling PipelineTemplatesControllerApi.delete_using_delete"
95
+ end
96
+ # resource path
97
+ local_var_path = '/pipelineTemplates/{id}'.sub('{' + 'id' + '}', id.to_s)
98
+
99
+ # query parameters
100
+ query_params = {}
101
+ query_params[:'application'] = opts[:'application'] if !opts[:'application'].nil?
102
+
103
+ # header parameters
104
+ header_params = {}
105
+ # HTTP header 'Accept' (if needed)
106
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
107
+ # HTTP header 'Content-Type'
108
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
109
+
110
+ # form parameters
111
+ form_params = {}
112
+
113
+ # http body (model)
114
+ post_body = nil
115
+ auth_names = []
116
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
117
+ :header_params => header_params,
118
+ :query_params => query_params,
119
+ :form_params => form_params,
120
+ :body => post_body,
121
+ :auth_names => auth_names,
122
+ :return_type => 'Hash<String, Object>')
123
+ if @api_client.config.debugging
124
+ @api_client.config.logger.debug "API called: PipelineTemplatesControllerApi#delete_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
125
+ end
126
+ return data, status_code, headers
127
+ end
128
+ # Get a pipeline template.
129
+ # @param id id
130
+ # @param [Hash] opts the optional parameters
131
+ # @return [Hash<String, Object>]
132
+ def get_using_get(id, opts = {})
133
+ data, _status_code, _headers = get_using_get_with_http_info(id, opts)
134
+ data
135
+ end
136
+
137
+ # Get a pipeline template.
138
+ # @param id id
139
+ # @param [Hash] opts the optional parameters
140
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
141
+ def get_using_get_with_http_info(id, opts = {})
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug 'Calling API: PipelineTemplatesControllerApi.get_using_get ...'
144
+ end
145
+ # verify the required parameter 'id' is set
146
+ if @api_client.config.client_side_validation && id.nil?
147
+ fail ArgumentError, "Missing the required parameter 'id' when calling PipelineTemplatesControllerApi.get_using_get"
148
+ end
149
+ # resource path
150
+ local_var_path = '/pipelineTemplates/{id}'.sub('{' + 'id' + '}', id.to_s)
151
+
152
+ # query parameters
153
+ query_params = {}
154
+
155
+ # header parameters
156
+ header_params = {}
157
+ # HTTP header 'Accept' (if needed)
158
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
159
+ # HTTP header 'Content-Type'
160
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
161
+
162
+ # form parameters
163
+ form_params = {}
164
+
165
+ # http body (model)
166
+ post_body = nil
167
+ auth_names = []
168
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
169
+ :header_params => header_params,
170
+ :query_params => query_params,
171
+ :form_params => form_params,
172
+ :body => post_body,
173
+ :auth_names => auth_names,
174
+ :return_type => 'Hash<String, Object>')
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug "API called: PipelineTemplatesControllerApi#get_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
+ end
178
+ return data, status_code, headers
179
+ end
180
+ # List all pipelines that implement a pipeline template
181
+ # @param id id
182
+ # @param [Hash] opts the optional parameters
183
+ # @option opts [BOOLEAN] :recursive recursive
184
+ # @return [Array<Object>]
185
+ def list_pipeline_template_dependents_using_get(id, opts = {})
186
+ data, _status_code, _headers = list_pipeline_template_dependents_using_get_with_http_info(id, opts)
187
+ data
188
+ end
189
+
190
+ # List all pipelines that implement a pipeline template
191
+ # @param id id
192
+ # @param [Hash] opts the optional parameters
193
+ # @option opts [BOOLEAN] :recursive recursive
194
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
195
+ def list_pipeline_template_dependents_using_get_with_http_info(id, opts = {})
196
+ if @api_client.config.debugging
197
+ @api_client.config.logger.debug 'Calling API: PipelineTemplatesControllerApi.list_pipeline_template_dependents_using_get ...'
198
+ end
199
+ # verify the required parameter 'id' is set
200
+ if @api_client.config.client_side_validation && id.nil?
201
+ fail ArgumentError, "Missing the required parameter 'id' when calling PipelineTemplatesControllerApi.list_pipeline_template_dependents_using_get"
202
+ end
203
+ # resource path
204
+ local_var_path = '/pipelineTemplates/{id}/dependents'.sub('{' + 'id' + '}', id.to_s)
205
+
206
+ # query parameters
207
+ query_params = {}
208
+ query_params[:'recursive'] = opts[:'recursive'] if !opts[:'recursive'].nil?
209
+
210
+ # header parameters
211
+ header_params = {}
212
+ # HTTP header 'Accept' (if needed)
213
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
214
+ # HTTP header 'Content-Type'
215
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
216
+
217
+ # form parameters
218
+ form_params = {}
219
+
220
+ # http body (model)
221
+ post_body = nil
222
+ auth_names = []
223
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
224
+ :header_params => header_params,
225
+ :query_params => query_params,
226
+ :form_params => form_params,
227
+ :body => post_body,
228
+ :auth_names => auth_names,
229
+ :return_type => 'Array<Object>')
230
+ if @api_client.config.debugging
231
+ @api_client.config.logger.debug "API called: PipelineTemplatesControllerApi#list_pipeline_template_dependents_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
232
+ end
233
+ return data, status_code, headers
234
+ end
235
+ # List pipeline templates.
236
+ # @param [Hash] opts the optional parameters
237
+ # @option opts [Array<String>] :scopes scopes
238
+ # @return [Array<Object>]
239
+ def list_using_get(opts = {})
240
+ data, _status_code, _headers = list_using_get_with_http_info(opts)
241
+ data
242
+ end
243
+
244
+ # List pipeline templates.
245
+ # @param [Hash] opts the optional parameters
246
+ # @option opts [Array<String>] :scopes scopes
247
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
248
+ def list_using_get_with_http_info(opts = {})
249
+ if @api_client.config.debugging
250
+ @api_client.config.logger.debug 'Calling API: PipelineTemplatesControllerApi.list_using_get ...'
251
+ end
252
+ # resource path
253
+ local_var_path = '/pipelineTemplates'
254
+
255
+ # query parameters
256
+ query_params = {}
257
+ query_params[:'scopes'] = @api_client.build_collection_param(opts[:'scopes'], :multi) if !opts[:'scopes'].nil?
258
+
259
+ # header parameters
260
+ header_params = {}
261
+ # HTTP header 'Accept' (if needed)
262
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
263
+ # HTTP header 'Content-Type'
264
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
265
+
266
+ # form parameters
267
+ form_params = {}
268
+
269
+ # http body (model)
270
+ post_body = nil
271
+ auth_names = []
272
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
273
+ :header_params => header_params,
274
+ :query_params => query_params,
275
+ :form_params => form_params,
276
+ :body => post_body,
277
+ :auth_names => auth_names,
278
+ :return_type => 'Array<Object>')
279
+ if @api_client.config.debugging
280
+ @api_client.config.logger.debug "API called: PipelineTemplatesControllerApi#list_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
281
+ end
282
+ return data, status_code, headers
283
+ end
284
+ # Resolve a pipeline template.
285
+ # @param source source
286
+ # @param [Hash] opts the optional parameters
287
+ # @option opts [String] :execution_id executionId
288
+ # @option opts [String] :pipeline_config_id pipelineConfigId
289
+ # @return [Hash<String, Object>]
290
+ def resolve_templates_using_get(source, opts = {})
291
+ data, _status_code, _headers = resolve_templates_using_get_with_http_info(source, opts)
292
+ data
293
+ end
294
+
295
+ # Resolve a pipeline template.
296
+ # @param source source
297
+ # @param [Hash] opts the optional parameters
298
+ # @option opts [String] :execution_id executionId
299
+ # @option opts [String] :pipeline_config_id pipelineConfigId
300
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
301
+ def resolve_templates_using_get_with_http_info(source, opts = {})
302
+ if @api_client.config.debugging
303
+ @api_client.config.logger.debug 'Calling API: PipelineTemplatesControllerApi.resolve_templates_using_get ...'
304
+ end
305
+ # verify the required parameter 'source' is set
306
+ if @api_client.config.client_side_validation && source.nil?
307
+ fail ArgumentError, "Missing the required parameter 'source' when calling PipelineTemplatesControllerApi.resolve_templates_using_get"
308
+ end
309
+ # resource path
310
+ local_var_path = '/pipelineTemplates/resolve'
311
+
312
+ # query parameters
313
+ query_params = {}
314
+ query_params[:'source'] = source
315
+ query_params[:'executionId'] = opts[:'execution_id'] if !opts[:'execution_id'].nil?
316
+ query_params[:'pipelineConfigId'] = opts[:'pipeline_config_id'] if !opts[:'pipeline_config_id'].nil?
317
+
318
+ # header parameters
319
+ header_params = {}
320
+ # HTTP header 'Accept' (if needed)
321
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
322
+ # HTTP header 'Content-Type'
323
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
324
+
325
+ # form parameters
326
+ form_params = {}
327
+
328
+ # http body (model)
329
+ post_body = nil
330
+ auth_names = []
331
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
332
+ :header_params => header_params,
333
+ :query_params => query_params,
334
+ :form_params => form_params,
335
+ :body => post_body,
336
+ :auth_names => auth_names,
337
+ :return_type => 'Hash<String, Object>')
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug "API called: PipelineTemplatesControllerApi#resolve_templates_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
340
+ end
341
+ return data, status_code, headers
342
+ end
343
+ # Update a pipeline template.
344
+ # @param id id
345
+ # @param pipeline_template pipelineTemplate
346
+ # @param [Hash] opts the optional parameters
347
+ # @option opts [BOOLEAN] :skip_plan_dependents skipPlanDependents (default to false)
348
+ # @return [nil]
349
+ def update_using_post(id, pipeline_template, opts = {})
350
+ update_using_post_with_http_info(id, pipeline_template, opts)
351
+ nil
352
+ end
353
+
354
+ # Update a pipeline template.
355
+ # @param id id
356
+ # @param pipeline_template pipelineTemplate
357
+ # @param [Hash] opts the optional parameters
358
+ # @option opts [BOOLEAN] :skip_plan_dependents skipPlanDependents
359
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
360
+ def update_using_post_with_http_info(id, pipeline_template, opts = {})
361
+ if @api_client.config.debugging
362
+ @api_client.config.logger.debug 'Calling API: PipelineTemplatesControllerApi.update_using_post ...'
363
+ end
364
+ # verify the required parameter 'id' is set
365
+ if @api_client.config.client_side_validation && id.nil?
366
+ fail ArgumentError, "Missing the required parameter 'id' when calling PipelineTemplatesControllerApi.update_using_post"
367
+ end
368
+ # verify the required parameter 'pipeline_template' is set
369
+ if @api_client.config.client_side_validation && pipeline_template.nil?
370
+ fail ArgumentError, "Missing the required parameter 'pipeline_template' when calling PipelineTemplatesControllerApi.update_using_post"
371
+ end
372
+ # resource path
373
+ local_var_path = '/pipelineTemplates/{id}'.sub('{' + 'id' + '}', id.to_s)
374
+
375
+ # query parameters
376
+ query_params = {}
377
+ query_params[:'skipPlanDependents'] = opts[:'skip_plan_dependents'] if !opts[:'skip_plan_dependents'].nil?
378
+
379
+ # header parameters
380
+ header_params = {}
381
+ # HTTP header 'Accept' (if needed)
382
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
383
+ # HTTP header 'Content-Type'
384
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
385
+
386
+ # form parameters
387
+ form_params = {}
388
+
389
+ # http body (model)
390
+ post_body = @api_client.object_to_http_body(pipeline_template)
391
+ auth_names = []
392
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
393
+ :header_params => header_params,
394
+ :query_params => query_params,
395
+ :form_params => form_params,
396
+ :body => post_body,
397
+ :auth_names => auth_names)
398
+ if @api_client.config.debugging
399
+ @api_client.config.logger.debug "API called: PipelineTemplatesControllerApi#update_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
400
+ end
401
+ return data, status_code, headers
402
+ end
403
+ end
404
+ end
@@ -0,0 +1,234 @@
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 ProjectControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get all pipelines for project
23
+ # @param id id
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Integer] :limit limit (default to 5)
26
+ # @option opts [String] :statuses statuses
27
+ # @return [Array<Object>]
28
+ def all_pipelines_for_project_using_get(id, opts = {})
29
+ data, _status_code, _headers = all_pipelines_for_project_using_get_with_http_info(id, opts)
30
+ data
31
+ end
32
+
33
+ # Get all pipelines for project
34
+ # @param id id
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [Integer] :limit limit
37
+ # @option opts [String] :statuses statuses
38
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
39
+ def all_pipelines_for_project_using_get_with_http_info(id, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: ProjectControllerApi.all_pipelines_for_project_using_get ...'
42
+ end
43
+ # verify the required parameter 'id' is set
44
+ if @api_client.config.client_side_validation && id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'id' when calling ProjectControllerApi.all_pipelines_for_project_using_get"
46
+ end
47
+ # resource path
48
+ local_var_path = '/projects/{id}/pipelines'.sub('{' + 'id' + '}', id.to_s)
49
+
50
+ # query parameters
51
+ query_params = {}
52
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
53
+ query_params[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil?
54
+
55
+ # header parameters
56
+ header_params = {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
59
+ # HTTP header 'Content-Type'
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
61
+
62
+ # form parameters
63
+ form_params = {}
64
+
65
+ # http body (model)
66
+ post_body = nil
67
+ auth_names = []
68
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => 'Array<Object>')
75
+ if @api_client.config.debugging
76
+ @api_client.config.logger.debug "API called: ProjectControllerApi#all_pipelines_for_project_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
+ end
78
+ return data, status_code, headers
79
+ end
80
+ # Get all projects
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [Array<Object>]
83
+ def all_using_get3(opts = {})
84
+ data, _status_code, _headers = all_using_get3_with_http_info(opts)
85
+ data
86
+ end
87
+
88
+ # Get all projects
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
91
+ def all_using_get3_with_http_info(opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: ProjectControllerApi.all_using_get3 ...'
94
+ end
95
+ # resource path
96
+ local_var_path = '/projects'
97
+
98
+ # query parameters
99
+ query_params = {}
100
+
101
+ # header parameters
102
+ header_params = {}
103
+ # HTTP header 'Accept' (if needed)
104
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
105
+ # HTTP header 'Content-Type'
106
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
107
+
108
+ # form parameters
109
+ form_params = {}
110
+
111
+ # http body (model)
112
+ post_body = nil
113
+ auth_names = []
114
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
115
+ :header_params => header_params,
116
+ :query_params => query_params,
117
+ :form_params => form_params,
118
+ :body => post_body,
119
+ :auth_names => auth_names,
120
+ :return_type => 'Array<Object>')
121
+ if @api_client.config.debugging
122
+ @api_client.config.logger.debug "API called: ProjectControllerApi#all_using_get3\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
123
+ end
124
+ return data, status_code, headers
125
+ end
126
+ # Get a project's clusters
127
+ # @param id id
128
+ # @param [Hash] opts the optional parameters
129
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
130
+ # @return [Array<Object>]
131
+ def get_clusters_using_get3(id, opts = {})
132
+ data, _status_code, _headers = get_clusters_using_get3_with_http_info(id, opts)
133
+ data
134
+ end
135
+
136
+ # Get a project&#39;s clusters
137
+ # @param id id
138
+ # @param [Hash] opts the optional parameters
139
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
140
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
141
+ def get_clusters_using_get3_with_http_info(id, opts = {})
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug 'Calling API: ProjectControllerApi.get_clusters_using_get3 ...'
144
+ end
145
+ # verify the required parameter 'id' is set
146
+ if @api_client.config.client_side_validation && id.nil?
147
+ fail ArgumentError, "Missing the required parameter 'id' when calling ProjectControllerApi.get_clusters_using_get3"
148
+ end
149
+ # resource path
150
+ local_var_path = '/projects/{id}/clusters'.sub('{' + 'id' + '}', id.to_s)
151
+
152
+ # query parameters
153
+ query_params = {}
154
+
155
+ # header parameters
156
+ header_params = {}
157
+ # HTTP header 'Accept' (if needed)
158
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
159
+ # HTTP header 'Content-Type'
160
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
161
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
162
+
163
+ # form parameters
164
+ form_params = {}
165
+
166
+ # http body (model)
167
+ post_body = nil
168
+ auth_names = []
169
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
170
+ :header_params => header_params,
171
+ :query_params => query_params,
172
+ :form_params => form_params,
173
+ :body => post_body,
174
+ :auth_names => auth_names,
175
+ :return_type => 'Array<Object>')
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug "API called: ProjectControllerApi#get_clusters_using_get3\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
178
+ end
179
+ return data, status_code, headers
180
+ end
181
+ # Get a project
182
+ # @param id id
183
+ # @param [Hash] opts the optional parameters
184
+ # @return [Hash<String, Object>]
185
+ def get_using_get1(id, opts = {})
186
+ data, _status_code, _headers = get_using_get1_with_http_info(id, opts)
187
+ data
188
+ end
189
+
190
+ # Get a project
191
+ # @param id id
192
+ # @param [Hash] opts the optional parameters
193
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
194
+ def get_using_get1_with_http_info(id, opts = {})
195
+ if @api_client.config.debugging
196
+ @api_client.config.logger.debug 'Calling API: ProjectControllerApi.get_using_get1 ...'
197
+ end
198
+ # verify the required parameter 'id' is set
199
+ if @api_client.config.client_side_validation && id.nil?
200
+ fail ArgumentError, "Missing the required parameter 'id' when calling ProjectControllerApi.get_using_get1"
201
+ end
202
+ # resource path
203
+ local_var_path = '/projects/{id}'.sub('{' + 'id' + '}', id.to_s)
204
+
205
+ # query parameters
206
+ query_params = {}
207
+
208
+ # header parameters
209
+ header_params = {}
210
+ # HTTP header 'Accept' (if needed)
211
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
212
+ # HTTP header 'Content-Type'
213
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
214
+
215
+ # form parameters
216
+ form_params = {}
217
+
218
+ # http body (model)
219
+ post_body = nil
220
+ auth_names = []
221
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
222
+ :header_params => header_params,
223
+ :query_params => query_params,
224
+ :form_params => form_params,
225
+ :body => post_body,
226
+ :auth_names => auth_names,
227
+ :return_type => 'Hash<String, Object>')
228
+ if @api_client.config.debugging
229
+ @api_client.config.logger.debug "API called: ProjectControllerApi#get_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
230
+ end
231
+ return data, status_code, headers
232
+ end
233
+ end
234
+ end