spinnaker-gate-ruby-client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) 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-1.0.0.gem +0 -0
  155. data/spinnaker_gate_ruby_client.gemspec +45 -0
  156. metadata +427 -0
@@ -0,0 +1,591 @@
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 ClusterControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Retrieve a cluster's loadbalancers
23
+ # @param application_name applicationName
24
+ # @param account account
25
+ # @param cluster_name clusterName
26
+ # @param type type
27
+ # @param [Hash] opts the optional parameters
28
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
29
+ # @return [Array<Object>]
30
+ def get_cluster_load_balancers_using_get(application_name, account, cluster_name, type, opts = {})
31
+ data, _status_code, _headers = get_cluster_load_balancers_using_get_with_http_info(application_name, account, cluster_name, type, opts)
32
+ data
33
+ end
34
+
35
+ # Retrieve a cluster&#39;s loadbalancers
36
+ # @param application_name applicationName
37
+ # @param account account
38
+ # @param cluster_name clusterName
39
+ # @param type type
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
42
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
43
+ def get_cluster_load_balancers_using_get_with_http_info(application_name, account, cluster_name, type, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: ClusterControllerApi.get_cluster_load_balancers_using_get ...'
46
+ end
47
+ # verify the required parameter 'application_name' is set
48
+ if @api_client.config.client_side_validation && application_name.nil?
49
+ fail ArgumentError, "Missing the required parameter 'application_name' when calling ClusterControllerApi.get_cluster_load_balancers_using_get"
50
+ end
51
+ # verify the required parameter 'account' is set
52
+ if @api_client.config.client_side_validation && account.nil?
53
+ fail ArgumentError, "Missing the required parameter 'account' when calling ClusterControllerApi.get_cluster_load_balancers_using_get"
54
+ end
55
+ # verify the required parameter 'cluster_name' is set
56
+ if @api_client.config.client_side_validation && cluster_name.nil?
57
+ fail ArgumentError, "Missing the required parameter 'cluster_name' when calling ClusterControllerApi.get_cluster_load_balancers_using_get"
58
+ end
59
+ # verify the required parameter 'type' is set
60
+ if @api_client.config.client_side_validation && type.nil?
61
+ fail ArgumentError, "Missing the required parameter 'type' when calling ClusterControllerApi.get_cluster_load_balancers_using_get"
62
+ end
63
+ # resource path
64
+ local_var_path = '/applications/{application}/clusters/{account}/{clusterName}/{type}/loadBalancers'.sub('{' + 'applicationName' + '}', application_name.to_s).sub('{' + 'account' + '}', account.to_s).sub('{' + 'clusterName' + '}', cluster_name.to_s).sub('{' + 'type' + '}', type.to_s)
65
+
66
+ # query parameters
67
+ query_params = {}
68
+
69
+ # header parameters
70
+ header_params = {}
71
+ # HTTP header 'Accept' (if needed)
72
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
73
+ # HTTP header 'Content-Type'
74
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
75
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
76
+
77
+ # form parameters
78
+ form_params = {}
79
+
80
+ # http body (model)
81
+ post_body = nil
82
+ auth_names = []
83
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
84
+ :header_params => header_params,
85
+ :query_params => query_params,
86
+ :form_params => form_params,
87
+ :body => post_body,
88
+ :auth_names => auth_names,
89
+ :return_type => 'Array<Object>')
90
+ if @api_client.config.debugging
91
+ @api_client.config.logger.debug "API called: ClusterControllerApi#get_cluster_load_balancers_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ end
93
+ return data, status_code, headers
94
+ end
95
+ # Retrieve a cluster's details
96
+ # @param application application
97
+ # @param account account
98
+ # @param cluster_name clusterName
99
+ # @param [Hash] opts the optional parameters
100
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
101
+ # @return [Hash<String, Object>]
102
+ def get_clusters_using_get(application, account, cluster_name, opts = {})
103
+ data, _status_code, _headers = get_clusters_using_get_with_http_info(application, account, cluster_name, opts)
104
+ data
105
+ end
106
+
107
+ # Retrieve a cluster&#39;s details
108
+ # @param application application
109
+ # @param account account
110
+ # @param cluster_name clusterName
111
+ # @param [Hash] opts the optional parameters
112
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
113
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
114
+ def get_clusters_using_get_with_http_info(application, account, cluster_name, opts = {})
115
+ if @api_client.config.debugging
116
+ @api_client.config.logger.debug 'Calling API: ClusterControllerApi.get_clusters_using_get ...'
117
+ end
118
+ # verify the required parameter 'application' is set
119
+ if @api_client.config.client_side_validation && application.nil?
120
+ fail ArgumentError, "Missing the required parameter 'application' when calling ClusterControllerApi.get_clusters_using_get"
121
+ end
122
+ # verify the required parameter 'account' is set
123
+ if @api_client.config.client_side_validation && account.nil?
124
+ fail ArgumentError, "Missing the required parameter 'account' when calling ClusterControllerApi.get_clusters_using_get"
125
+ end
126
+ # verify the required parameter 'cluster_name' is set
127
+ if @api_client.config.client_side_validation && cluster_name.nil?
128
+ fail ArgumentError, "Missing the required parameter 'cluster_name' when calling ClusterControllerApi.get_clusters_using_get"
129
+ end
130
+ # resource path
131
+ local_var_path = '/applications/{application}/clusters/{account}/{clusterName}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'account' + '}', account.to_s).sub('{' + 'clusterName' + '}', cluster_name.to_s)
132
+
133
+ # query parameters
134
+ query_params = {}
135
+
136
+ # header parameters
137
+ header_params = {}
138
+ # HTTP header 'Accept' (if needed)
139
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
140
+ # HTTP header 'Content-Type'
141
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
142
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
143
+
144
+ # form parameters
145
+ form_params = {}
146
+
147
+ # http body (model)
148
+ post_body = nil
149
+ auth_names = []
150
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
151
+ :header_params => header_params,
152
+ :query_params => query_params,
153
+ :form_params => form_params,
154
+ :body => post_body,
155
+ :auth_names => auth_names,
156
+ :return_type => 'Hash<String, Object>')
157
+ if @api_client.config.debugging
158
+ @api_client.config.logger.debug "API called: ClusterControllerApi#get_clusters_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
+ end
160
+ return data, status_code, headers
161
+ end
162
+ # Retrieve a list of clusters for an account
163
+ # @param application application
164
+ # @param account account
165
+ # @param [Hash] opts the optional parameters
166
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
167
+ # @return [Array<Object>]
168
+ def get_clusters_using_get1(application, account, opts = {})
169
+ data, _status_code, _headers = get_clusters_using_get1_with_http_info(application, account, opts)
170
+ data
171
+ end
172
+
173
+ # Retrieve a list of clusters for an account
174
+ # @param application application
175
+ # @param account account
176
+ # @param [Hash] opts the optional parameters
177
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
178
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
179
+ def get_clusters_using_get1_with_http_info(application, account, opts = {})
180
+ if @api_client.config.debugging
181
+ @api_client.config.logger.debug 'Calling API: ClusterControllerApi.get_clusters_using_get1 ...'
182
+ end
183
+ # verify the required parameter 'application' is set
184
+ if @api_client.config.client_side_validation && application.nil?
185
+ fail ArgumentError, "Missing the required parameter 'application' when calling ClusterControllerApi.get_clusters_using_get1"
186
+ end
187
+ # verify the required parameter 'account' is set
188
+ if @api_client.config.client_side_validation && account.nil?
189
+ fail ArgumentError, "Missing the required parameter 'account' when calling ClusterControllerApi.get_clusters_using_get1"
190
+ end
191
+ # resource path
192
+ local_var_path = '/applications/{application}/clusters/{account}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'account' + '}', account.to_s)
193
+
194
+ # query parameters
195
+ query_params = {}
196
+
197
+ # header parameters
198
+ header_params = {}
199
+ # HTTP header 'Accept' (if needed)
200
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
201
+ # HTTP header 'Content-Type'
202
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
203
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
204
+
205
+ # form parameters
206
+ form_params = {}
207
+
208
+ # http body (model)
209
+ post_body = nil
210
+ auth_names = []
211
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names,
217
+ :return_type => 'Array<Object>')
218
+ if @api_client.config.debugging
219
+ @api_client.config.logger.debug "API called: ClusterControllerApi#get_clusters_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
220
+ end
221
+ return data, status_code, headers
222
+ end
223
+ # Retrieve a list of cluster names for an application, grouped by account
224
+ # @param application application
225
+ # @param [Hash] opts the optional parameters
226
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
227
+ # @return [Hash<String, Object>]
228
+ def get_clusters_using_get2(application, opts = {})
229
+ data, _status_code, _headers = get_clusters_using_get2_with_http_info(application, opts)
230
+ data
231
+ end
232
+
233
+ # Retrieve a list of cluster names for an application, grouped by account
234
+ # @param application application
235
+ # @param [Hash] opts the optional parameters
236
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
237
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
238
+ def get_clusters_using_get2_with_http_info(application, opts = {})
239
+ if @api_client.config.debugging
240
+ @api_client.config.logger.debug 'Calling API: ClusterControllerApi.get_clusters_using_get2 ...'
241
+ end
242
+ # verify the required parameter 'application' is set
243
+ if @api_client.config.client_side_validation && application.nil?
244
+ fail ArgumentError, "Missing the required parameter 'application' when calling ClusterControllerApi.get_clusters_using_get2"
245
+ end
246
+ # resource path
247
+ local_var_path = '/applications/{application}/clusters'.sub('{' + 'application' + '}', application.to_s)
248
+
249
+ # query parameters
250
+ query_params = {}
251
+
252
+ # header parameters
253
+ header_params = {}
254
+ # HTTP header 'Accept' (if needed)
255
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
256
+ # HTTP header 'Content-Type'
257
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
258
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
259
+
260
+ # form parameters
261
+ form_params = {}
262
+
263
+ # http body (model)
264
+ post_body = nil
265
+ auth_names = []
266
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
267
+ :header_params => header_params,
268
+ :query_params => query_params,
269
+ :form_params => form_params,
270
+ :body => post_body,
271
+ :auth_names => auth_names,
272
+ :return_type => 'Hash<String, Object>')
273
+ if @api_client.config.debugging
274
+ @api_client.config.logger.debug "API called: ClusterControllerApi#get_clusters_using_get2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
275
+ end
276
+ return data, status_code, headers
277
+ end
278
+ # Retrieve a list of scaling activities for a server group
279
+ # @param application application
280
+ # @param account account
281
+ # @param cluster_name clusterName
282
+ # @param server_group_name serverGroupName
283
+ # @param [Hash] opts the optional parameters
284
+ # @option opts [String] :provider provider (default to aws)
285
+ # @option opts [String] :region region
286
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
287
+ # @return [Array<Object>]
288
+ def get_scaling_activities_using_get(application, account, cluster_name, server_group_name, opts = {})
289
+ data, _status_code, _headers = get_scaling_activities_using_get_with_http_info(application, account, cluster_name, server_group_name, opts)
290
+ data
291
+ end
292
+
293
+ # Retrieve a list of scaling activities for a server group
294
+ # @param application application
295
+ # @param account account
296
+ # @param cluster_name clusterName
297
+ # @param server_group_name serverGroupName
298
+ # @param [Hash] opts the optional parameters
299
+ # @option opts [String] :provider provider
300
+ # @option opts [String] :region region
301
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
302
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
303
+ def get_scaling_activities_using_get_with_http_info(application, account, cluster_name, server_group_name, opts = {})
304
+ if @api_client.config.debugging
305
+ @api_client.config.logger.debug 'Calling API: ClusterControllerApi.get_scaling_activities_using_get ...'
306
+ end
307
+ # verify the required parameter 'application' is set
308
+ if @api_client.config.client_side_validation && application.nil?
309
+ fail ArgumentError, "Missing the required parameter 'application' when calling ClusterControllerApi.get_scaling_activities_using_get"
310
+ end
311
+ # verify the required parameter 'account' is set
312
+ if @api_client.config.client_side_validation && account.nil?
313
+ fail ArgumentError, "Missing the required parameter 'account' when calling ClusterControllerApi.get_scaling_activities_using_get"
314
+ end
315
+ # verify the required parameter 'cluster_name' is set
316
+ if @api_client.config.client_side_validation && cluster_name.nil?
317
+ fail ArgumentError, "Missing the required parameter 'cluster_name' when calling ClusterControllerApi.get_scaling_activities_using_get"
318
+ end
319
+ # verify the required parameter 'server_group_name' is set
320
+ if @api_client.config.client_side_validation && server_group_name.nil?
321
+ fail ArgumentError, "Missing the required parameter 'server_group_name' when calling ClusterControllerApi.get_scaling_activities_using_get"
322
+ end
323
+ # resource path
324
+ local_var_path = '/applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName}/scalingActivities'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'account' + '}', account.to_s).sub('{' + 'clusterName' + '}', cluster_name.to_s).sub('{' + 'serverGroupName' + '}', server_group_name.to_s)
325
+
326
+ # query parameters
327
+ query_params = {}
328
+ query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
329
+ query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
330
+
331
+ # header parameters
332
+ header_params = {}
333
+ # HTTP header 'Accept' (if needed)
334
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
335
+ # HTTP header 'Content-Type'
336
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
337
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
338
+
339
+ # form parameters
340
+ form_params = {}
341
+
342
+ # http body (model)
343
+ post_body = nil
344
+ auth_names = []
345
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
346
+ :header_params => header_params,
347
+ :query_params => query_params,
348
+ :form_params => form_params,
349
+ :body => post_body,
350
+ :auth_names => auth_names,
351
+ :return_type => 'Array<Object>')
352
+ if @api_client.config.debugging
353
+ @api_client.config.logger.debug "API called: ClusterControllerApi#get_scaling_activities_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
354
+ end
355
+ return data, status_code, headers
356
+ end
357
+ # Retrieve a server group's details
358
+ # @param application application
359
+ # @param account account
360
+ # @param cluster_name clusterName
361
+ # @param server_group_name serverGroupName
362
+ # @param [Hash] opts the optional parameters
363
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
364
+ # @return [Array<Object>]
365
+ def get_server_groups_using_get(application, account, cluster_name, server_group_name, opts = {})
366
+ data, _status_code, _headers = get_server_groups_using_get_with_http_info(application, account, cluster_name, server_group_name, opts)
367
+ data
368
+ end
369
+
370
+ # Retrieve a server group&#39;s details
371
+ # @param application application
372
+ # @param account account
373
+ # @param cluster_name clusterName
374
+ # @param server_group_name serverGroupName
375
+ # @param [Hash] opts the optional parameters
376
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
377
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
378
+ def get_server_groups_using_get_with_http_info(application, account, cluster_name, server_group_name, opts = {})
379
+ if @api_client.config.debugging
380
+ @api_client.config.logger.debug 'Calling API: ClusterControllerApi.get_server_groups_using_get ...'
381
+ end
382
+ # verify the required parameter 'application' is set
383
+ if @api_client.config.client_side_validation && application.nil?
384
+ fail ArgumentError, "Missing the required parameter 'application' when calling ClusterControllerApi.get_server_groups_using_get"
385
+ end
386
+ # verify the required parameter 'account' is set
387
+ if @api_client.config.client_side_validation && account.nil?
388
+ fail ArgumentError, "Missing the required parameter 'account' when calling ClusterControllerApi.get_server_groups_using_get"
389
+ end
390
+ # verify the required parameter 'cluster_name' is set
391
+ if @api_client.config.client_side_validation && cluster_name.nil?
392
+ fail ArgumentError, "Missing the required parameter 'cluster_name' when calling ClusterControllerApi.get_server_groups_using_get"
393
+ end
394
+ # verify the required parameter 'server_group_name' is set
395
+ if @api_client.config.client_side_validation && server_group_name.nil?
396
+ fail ArgumentError, "Missing the required parameter 'server_group_name' when calling ClusterControllerApi.get_server_groups_using_get"
397
+ end
398
+ # resource path
399
+ local_var_path = '/applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'account' + '}', account.to_s).sub('{' + 'clusterName' + '}', cluster_name.to_s).sub('{' + 'serverGroupName' + '}', server_group_name.to_s)
400
+
401
+ # query parameters
402
+ query_params = {}
403
+
404
+ # header parameters
405
+ header_params = {}
406
+ # HTTP header 'Accept' (if needed)
407
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
408
+ # HTTP header 'Content-Type'
409
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
410
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
411
+
412
+ # form parameters
413
+ form_params = {}
414
+
415
+ # http body (model)
416
+ post_body = nil
417
+ auth_names = []
418
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
419
+ :header_params => header_params,
420
+ :query_params => query_params,
421
+ :form_params => form_params,
422
+ :body => post_body,
423
+ :auth_names => auth_names,
424
+ :return_type => 'Array<Object>')
425
+ if @api_client.config.debugging
426
+ @api_client.config.logger.debug "API called: ClusterControllerApi#get_server_groups_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
427
+ end
428
+ return data, status_code, headers
429
+ end
430
+ # Retrieve a list of server groups for a cluster
431
+ # @param application application
432
+ # @param account account
433
+ # @param cluster_name clusterName
434
+ # @param [Hash] opts the optional parameters
435
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
436
+ # @return [Array<Object>]
437
+ def get_server_groups_using_get1(application, account, cluster_name, opts = {})
438
+ data, _status_code, _headers = get_server_groups_using_get1_with_http_info(application, account, cluster_name, opts)
439
+ data
440
+ end
441
+
442
+ # Retrieve a list of server groups for a cluster
443
+ # @param application application
444
+ # @param account account
445
+ # @param cluster_name clusterName
446
+ # @param [Hash] opts the optional parameters
447
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
448
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
449
+ def get_server_groups_using_get1_with_http_info(application, account, cluster_name, opts = {})
450
+ if @api_client.config.debugging
451
+ @api_client.config.logger.debug 'Calling API: ClusterControllerApi.get_server_groups_using_get1 ...'
452
+ end
453
+ # verify the required parameter 'application' is set
454
+ if @api_client.config.client_side_validation && application.nil?
455
+ fail ArgumentError, "Missing the required parameter 'application' when calling ClusterControllerApi.get_server_groups_using_get1"
456
+ end
457
+ # verify the required parameter 'account' is set
458
+ if @api_client.config.client_side_validation && account.nil?
459
+ fail ArgumentError, "Missing the required parameter 'account' when calling ClusterControllerApi.get_server_groups_using_get1"
460
+ end
461
+ # verify the required parameter 'cluster_name' is set
462
+ if @api_client.config.client_side_validation && cluster_name.nil?
463
+ fail ArgumentError, "Missing the required parameter 'cluster_name' when calling ClusterControllerApi.get_server_groups_using_get1"
464
+ end
465
+ # resource path
466
+ local_var_path = '/applications/{application}/clusters/{account}/{clusterName}/serverGroups'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'account' + '}', account.to_s).sub('{' + 'clusterName' + '}', cluster_name.to_s)
467
+
468
+ # query parameters
469
+ query_params = {}
470
+
471
+ # header parameters
472
+ header_params = {}
473
+ # HTTP header 'Accept' (if needed)
474
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
475
+ # HTTP header 'Content-Type'
476
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
477
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
478
+
479
+ # form parameters
480
+ form_params = {}
481
+
482
+ # http body (model)
483
+ post_body = nil
484
+ auth_names = []
485
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
486
+ :header_params => header_params,
487
+ :query_params => query_params,
488
+ :form_params => form_params,
489
+ :body => post_body,
490
+ :auth_names => auth_names,
491
+ :return_type => 'Array<Object>')
492
+ if @api_client.config.debugging
493
+ @api_client.config.logger.debug "API called: ClusterControllerApi#get_server_groups_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
494
+ end
495
+ return data, status_code, headers
496
+ end
497
+ # Retrieve a server group that matches a target coordinate (e.g., newest, ancestor) relative to a cluster
498
+ # `scope` is either a zone or a region
499
+ # @param application application
500
+ # @param account account
501
+ # @param cluster_name clusterName
502
+ # @param cloud_provider cloudProvider
503
+ # @param scope scope
504
+ # @param target target
505
+ # @param [Hash] opts the optional parameters
506
+ # @option opts [BOOLEAN] :only_enabled onlyEnabled
507
+ # @option opts [BOOLEAN] :validate_oldest validateOldest
508
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
509
+ # @return [Hash<String, Object>]
510
+ def get_target_server_group_using_get(application, account, cluster_name, cloud_provider, scope, target, opts = {})
511
+ data, _status_code, _headers = get_target_server_group_using_get_with_http_info(application, account, cluster_name, cloud_provider, scope, target, opts)
512
+ data
513
+ end
514
+
515
+ # Retrieve a server group that matches a target coordinate (e.g., newest, ancestor) relative to a cluster
516
+ # &#x60;scope&#x60; is either a zone or a region
517
+ # @param application application
518
+ # @param account account
519
+ # @param cluster_name clusterName
520
+ # @param cloud_provider cloudProvider
521
+ # @param scope scope
522
+ # @param target target
523
+ # @param [Hash] opts the optional parameters
524
+ # @option opts [BOOLEAN] :only_enabled onlyEnabled
525
+ # @option opts [BOOLEAN] :validate_oldest validateOldest
526
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
527
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
528
+ def get_target_server_group_using_get_with_http_info(application, account, cluster_name, cloud_provider, scope, target, opts = {})
529
+ if @api_client.config.debugging
530
+ @api_client.config.logger.debug 'Calling API: ClusterControllerApi.get_target_server_group_using_get ...'
531
+ end
532
+ # verify the required parameter 'application' is set
533
+ if @api_client.config.client_side_validation && application.nil?
534
+ fail ArgumentError, "Missing the required parameter 'application' when calling ClusterControllerApi.get_target_server_group_using_get"
535
+ end
536
+ # verify the required parameter 'account' is set
537
+ if @api_client.config.client_side_validation && account.nil?
538
+ fail ArgumentError, "Missing the required parameter 'account' when calling ClusterControllerApi.get_target_server_group_using_get"
539
+ end
540
+ # verify the required parameter 'cluster_name' is set
541
+ if @api_client.config.client_side_validation && cluster_name.nil?
542
+ fail ArgumentError, "Missing the required parameter 'cluster_name' when calling ClusterControllerApi.get_target_server_group_using_get"
543
+ end
544
+ # verify the required parameter 'cloud_provider' is set
545
+ if @api_client.config.client_side_validation && cloud_provider.nil?
546
+ fail ArgumentError, "Missing the required parameter 'cloud_provider' when calling ClusterControllerApi.get_target_server_group_using_get"
547
+ end
548
+ # verify the required parameter 'scope' is set
549
+ if @api_client.config.client_side_validation && scope.nil?
550
+ fail ArgumentError, "Missing the required parameter 'scope' when calling ClusterControllerApi.get_target_server_group_using_get"
551
+ end
552
+ # verify the required parameter 'target' is set
553
+ if @api_client.config.client_side_validation && target.nil?
554
+ fail ArgumentError, "Missing the required parameter 'target' when calling ClusterControllerApi.get_target_server_group_using_get"
555
+ end
556
+ # resource path
557
+ local_var_path = '/applications/{application}/clusters/{account}/{clusterName}/{cloudProvider}/{scope}/serverGroups/target/{target}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'account' + '}', account.to_s).sub('{' + 'clusterName' + '}', cluster_name.to_s).sub('{' + 'cloudProvider' + '}', cloud_provider.to_s).sub('{' + 'scope' + '}', scope.to_s).sub('{' + 'target' + '}', target.to_s)
558
+
559
+ # query parameters
560
+ query_params = {}
561
+ query_params[:'onlyEnabled'] = opts[:'only_enabled'] if !opts[:'only_enabled'].nil?
562
+ query_params[:'validateOldest'] = opts[:'validate_oldest'] if !opts[:'validate_oldest'].nil?
563
+
564
+ # header parameters
565
+ header_params = {}
566
+ # HTTP header 'Accept' (if needed)
567
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
568
+ # HTTP header 'Content-Type'
569
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
570
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
571
+
572
+ # form parameters
573
+ form_params = {}
574
+
575
+ # http body (model)
576
+ post_body = nil
577
+ auth_names = []
578
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
579
+ :header_params => header_params,
580
+ :query_params => query_params,
581
+ :form_params => form_params,
582
+ :body => post_body,
583
+ :auth_names => auth_names,
584
+ :return_type => 'Hash<String, Object>')
585
+ if @api_client.config.debugging
586
+ @api_client.config.logger.debug "API called: ClusterControllerApi#get_target_server_group_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
587
+ end
588
+ return data, status_code, headers
589
+ end
590
+ end
591
+ end