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 (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,209 @@
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 ConcourseControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Retrieve the list of job names for a given pipeline available to triggers
23
+ # @param build_master buildMaster
24
+ # @param team team
25
+ # @param pipeline pipeline
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [Array<Object>]
28
+ def jobs_using_get(build_master, team, pipeline, opts = {})
29
+ data, _status_code, _headers = jobs_using_get_with_http_info(build_master, team, pipeline, opts)
30
+ data
31
+ end
32
+
33
+ # Retrieve the list of job names for a given pipeline available to triggers
34
+ # @param build_master buildMaster
35
+ # @param team team
36
+ # @param pipeline pipeline
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
39
+ def jobs_using_get_with_http_info(build_master, team, pipeline, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: ConcourseControllerApi.jobs_using_get ...'
42
+ end
43
+ # verify the required parameter 'build_master' is set
44
+ if @api_client.config.client_side_validation && build_master.nil?
45
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling ConcourseControllerApi.jobs_using_get"
46
+ end
47
+ # verify the required parameter 'team' is set
48
+ if @api_client.config.client_side_validation && team.nil?
49
+ fail ArgumentError, "Missing the required parameter 'team' when calling ConcourseControllerApi.jobs_using_get"
50
+ end
51
+ # verify the required parameter 'pipeline' is set
52
+ if @api_client.config.client_side_validation && pipeline.nil?
53
+ fail ArgumentError, "Missing the required parameter 'pipeline' when calling ConcourseControllerApi.jobs_using_get"
54
+ end
55
+ # resource path
56
+ local_var_path = '/concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/jobs'.sub('{' + 'buildMaster' + '}', build_master.to_s).sub('{' + 'team' + '}', team.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
57
+
58
+ # query parameters
59
+ query_params = {}
60
+
61
+ # header parameters
62
+ header_params = {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
65
+ # HTTP header 'Content-Type'
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
67
+
68
+ # form parameters
69
+ form_params = {}
70
+
71
+ # http body (model)
72
+ post_body = nil
73
+ auth_names = []
74
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => 'Array<Object>')
81
+ if @api_client.config.debugging
82
+ @api_client.config.logger.debug "API called: ConcourseControllerApi#jobs_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
+ end
84
+ return data, status_code, headers
85
+ end
86
+ # Retrieve the list of pipeline names for a given team available to triggers
87
+ # @param build_master buildMaster
88
+ # @param team team
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<Object>]
91
+ def pipelines_using_get(build_master, team, opts = {})
92
+ data, _status_code, _headers = pipelines_using_get_with_http_info(build_master, team, opts)
93
+ data
94
+ end
95
+
96
+ # Retrieve the list of pipeline names for a given team available to triggers
97
+ # @param build_master buildMaster
98
+ # @param team team
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
101
+ def pipelines_using_get_with_http_info(build_master, team, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: ConcourseControllerApi.pipelines_using_get ...'
104
+ end
105
+ # verify the required parameter 'build_master' is set
106
+ if @api_client.config.client_side_validation && build_master.nil?
107
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling ConcourseControllerApi.pipelines_using_get"
108
+ end
109
+ # verify the required parameter 'team' is set
110
+ if @api_client.config.client_side_validation && team.nil?
111
+ fail ArgumentError, "Missing the required parameter 'team' when calling ConcourseControllerApi.pipelines_using_get"
112
+ end
113
+ # resource path
114
+ local_var_path = '/concourse/{buildMaster}/teams/{team}/pipelines'.sub('{' + 'buildMaster' + '}', build_master.to_s).sub('{' + 'team' + '}', team.to_s)
115
+
116
+ # query parameters
117
+ query_params = {}
118
+
119
+ # header parameters
120
+ header_params = {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
123
+ # HTTP header 'Content-Type'
124
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
125
+
126
+ # form parameters
127
+ form_params = {}
128
+
129
+ # http body (model)
130
+ post_body = nil
131
+ auth_names = []
132
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
133
+ :header_params => header_params,
134
+ :query_params => query_params,
135
+ :form_params => form_params,
136
+ :body => post_body,
137
+ :auth_names => auth_names,
138
+ :return_type => 'Array<Object>')
139
+ if @api_client.config.debugging
140
+ @api_client.config.logger.debug "API called: ConcourseControllerApi#pipelines_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
141
+ end
142
+ return data, status_code, headers
143
+ end
144
+ # Retrieve the list of resource names for a given pipeline available to the Concourse stage
145
+ # @param build_master buildMaster
146
+ # @param team team
147
+ # @param pipeline pipeline
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [Array<Object>]
150
+ def resources_using_get(build_master, team, pipeline, opts = {})
151
+ data, _status_code, _headers = resources_using_get_with_http_info(build_master, team, pipeline, opts)
152
+ data
153
+ end
154
+
155
+ # Retrieve the list of resource names for a given pipeline available to the Concourse stage
156
+ # @param build_master buildMaster
157
+ # @param team team
158
+ # @param pipeline pipeline
159
+ # @param [Hash] opts the optional parameters
160
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
161
+ def resources_using_get_with_http_info(build_master, team, pipeline, opts = {})
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug 'Calling API: ConcourseControllerApi.resources_using_get ...'
164
+ end
165
+ # verify the required parameter 'build_master' is set
166
+ if @api_client.config.client_side_validation && build_master.nil?
167
+ fail ArgumentError, "Missing the required parameter 'build_master' when calling ConcourseControllerApi.resources_using_get"
168
+ end
169
+ # verify the required parameter 'team' is set
170
+ if @api_client.config.client_side_validation && team.nil?
171
+ fail ArgumentError, "Missing the required parameter 'team' when calling ConcourseControllerApi.resources_using_get"
172
+ end
173
+ # verify the required parameter 'pipeline' is set
174
+ if @api_client.config.client_side_validation && pipeline.nil?
175
+ fail ArgumentError, "Missing the required parameter 'pipeline' when calling ConcourseControllerApi.resources_using_get"
176
+ end
177
+ # resource path
178
+ local_var_path = '/concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/resources'.sub('{' + 'buildMaster' + '}', build_master.to_s).sub('{' + 'team' + '}', team.to_s).sub('{' + 'pipeline' + '}', pipeline.to_s)
179
+
180
+ # query parameters
181
+ query_params = {}
182
+
183
+ # header parameters
184
+ header_params = {}
185
+ # HTTP header 'Accept' (if needed)
186
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
187
+ # HTTP header 'Content-Type'
188
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
189
+
190
+ # form parameters
191
+ form_params = {}
192
+
193
+ # http body (model)
194
+ post_body = nil
195
+ auth_names = []
196
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
197
+ :header_params => header_params,
198
+ :query_params => query_params,
199
+ :form_params => form_params,
200
+ :body => post_body,
201
+ :auth_names => auth_names,
202
+ :return_type => 'Array<Object>')
203
+ if @api_client.config.debugging
204
+ @api_client.config.logger.debug "API called: ConcourseControllerApi#resources_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
205
+ end
206
+ return data, status_code, headers
207
+ end
208
+ end
209
+ end
@@ -0,0 +1,163 @@
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 CredentialsControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Retrieve an account's details
23
+ # @param account account
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Array<String>] :roles
26
+ # @option opts [Array<String>] :allowed_accounts
27
+ # @option opts [String] :email
28
+ # @option opts [String] :username
29
+ # @option opts [String] :first_name
30
+ # @option opts [String] :last_name
31
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
32
+ # @return [AccountDetails]
33
+ def get_account_using_get(account, opts = {})
34
+ data, _status_code, _headers = get_account_using_get_with_http_info(account, opts)
35
+ data
36
+ end
37
+
38
+ # Retrieve an account&#39;s details
39
+ # @param account account
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [Array<String>] :roles
42
+ # @option opts [Array<String>] :allowed_accounts
43
+ # @option opts [String] :email
44
+ # @option opts [String] :username
45
+ # @option opts [String] :first_name
46
+ # @option opts [String] :last_name
47
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
48
+ # @return [Array<(AccountDetails, Fixnum, Hash)>] AccountDetails data, response status code and response headers
49
+ def get_account_using_get_with_http_info(account, opts = {})
50
+ if @api_client.config.debugging
51
+ @api_client.config.logger.debug 'Calling API: CredentialsControllerApi.get_account_using_get ...'
52
+ end
53
+ # verify the required parameter 'account' is set
54
+ if @api_client.config.client_side_validation && account.nil?
55
+ fail ArgumentError, "Missing the required parameter 'account' when calling CredentialsControllerApi.get_account_using_get"
56
+ end
57
+ # resource path
58
+ local_var_path = '/credentials/{account}'.sub('{' + 'account' + '}', account.to_s)
59
+
60
+ # query parameters
61
+ query_params = {}
62
+ query_params[:'roles'] = @api_client.build_collection_param(opts[:'roles'], :multi) if !opts[:'roles'].nil?
63
+ query_params[:'allowedAccounts'] = @api_client.build_collection_param(opts[:'allowed_accounts'], :multi) if !opts[:'allowed_accounts'].nil?
64
+ query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
65
+ query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
66
+ query_params[:'firstName'] = opts[:'first_name'] if !opts[:'first_name'].nil?
67
+ query_params[:'lastName'] = opts[:'last_name'] if !opts[:'last_name'].nil?
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 => 'AccountDetails')
90
+ if @api_client.config.debugging
91
+ @api_client.config.logger.debug "API called: CredentialsControllerApi#get_account_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ end
93
+ return data, status_code, headers
94
+ end
95
+ # Retrieve a list of accounts
96
+ # @param [Hash] opts the optional parameters
97
+ # @option opts [Array<String>] :roles
98
+ # @option opts [Array<String>] :allowed_accounts
99
+ # @option opts [String] :email
100
+ # @option opts [String] :username
101
+ # @option opts [String] :first_name
102
+ # @option opts [String] :last_name
103
+ # @option opts [BOOLEAN] :expand expand
104
+ # @return [Array<Account>]
105
+ def get_accounts_using_get(opts = {})
106
+ data, _status_code, _headers = get_accounts_using_get_with_http_info(opts)
107
+ data
108
+ end
109
+
110
+ # Retrieve a list of accounts
111
+ # @param [Hash] opts the optional parameters
112
+ # @option opts [Array<String>] :roles
113
+ # @option opts [Array<String>] :allowed_accounts
114
+ # @option opts [String] :email
115
+ # @option opts [String] :username
116
+ # @option opts [String] :first_name
117
+ # @option opts [String] :last_name
118
+ # @option opts [BOOLEAN] :expand expand
119
+ # @return [Array<(Array<Account>, Fixnum, Hash)>] Array<Account> data, response status code and response headers
120
+ def get_accounts_using_get_with_http_info(opts = {})
121
+ if @api_client.config.debugging
122
+ @api_client.config.logger.debug 'Calling API: CredentialsControllerApi.get_accounts_using_get ...'
123
+ end
124
+ # resource path
125
+ local_var_path = '/credentials'
126
+
127
+ # query parameters
128
+ query_params = {}
129
+ query_params[:'roles'] = @api_client.build_collection_param(opts[:'roles'], :multi) if !opts[:'roles'].nil?
130
+ query_params[:'allowedAccounts'] = @api_client.build_collection_param(opts[:'allowed_accounts'], :multi) if !opts[:'allowed_accounts'].nil?
131
+ query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
132
+ query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
133
+ query_params[:'firstName'] = opts[:'first_name'] if !opts[:'first_name'].nil?
134
+ query_params[:'lastName'] = opts[:'last_name'] if !opts[:'last_name'].nil?
135
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
136
+
137
+ # header parameters
138
+ header_params = {}
139
+ # HTTP header 'Accept' (if needed)
140
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
141
+ # HTTP header 'Content-Type'
142
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
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 => 'Array<Account>')
157
+ if @api_client.config.debugging
158
+ @api_client.config.logger.debug "API called: CredentialsControllerApi#get_accounts_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
+ end
160
+ return data, status_code, headers
161
+ end
162
+ end
163
+ end
@@ -0,0 +1,101 @@
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 EcsServerGroupEventsControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Retrieves a list of events for a server group
23
+ # @param application application
24
+ # @param account account
25
+ # @param server_group_name serverGroupName
26
+ # @param region region
27
+ # @param provider provider
28
+ # @param [Hash] opts the optional parameters
29
+ # @return [Array<Object>]
30
+ def get_events_using_get(application, account, server_group_name, region, provider, opts = {})
31
+ data, _status_code, _headers = get_events_using_get_with_http_info(application, account, server_group_name, region, provider, opts)
32
+ data
33
+ end
34
+
35
+ # Retrieves a list of events for a server group
36
+ # @param application application
37
+ # @param account account
38
+ # @param server_group_name serverGroupName
39
+ # @param region region
40
+ # @param provider provider
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
43
+ def get_events_using_get_with_http_info(application, account, server_group_name, region, provider, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: EcsServerGroupEventsControllerApi.get_events_using_get ...'
46
+ end
47
+ # verify the required parameter 'application' is set
48
+ if @api_client.config.client_side_validation && application.nil?
49
+ fail ArgumentError, "Missing the required parameter 'application' when calling EcsServerGroupEventsControllerApi.get_events_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 EcsServerGroupEventsControllerApi.get_events_using_get"
54
+ end
55
+ # verify the required parameter 'server_group_name' is set
56
+ if @api_client.config.client_side_validation && server_group_name.nil?
57
+ fail ArgumentError, "Missing the required parameter 'server_group_name' when calling EcsServerGroupEventsControllerApi.get_events_using_get"
58
+ end
59
+ # verify the required parameter 'region' is set
60
+ if @api_client.config.client_side_validation && region.nil?
61
+ fail ArgumentError, "Missing the required parameter 'region' when calling EcsServerGroupEventsControllerApi.get_events_using_get"
62
+ end
63
+ # verify the required parameter 'provider' is set
64
+ if @api_client.config.client_side_validation && provider.nil?
65
+ fail ArgumentError, "Missing the required parameter 'provider' when calling EcsServerGroupEventsControllerApi.get_events_using_get"
66
+ end
67
+ # resource path
68
+ local_var_path = '/applications/{application}/serverGroups/{account}/{serverGroupName}/events'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'account' + '}', account.to_s).sub('{' + 'serverGroupName' + '}', server_group_name.to_s)
69
+
70
+ # query parameters
71
+ query_params = {}
72
+ query_params[:'region'] = region
73
+ query_params[:'provider'] = provider
74
+
75
+ # header parameters
76
+ header_params = {}
77
+ # HTTP header 'Accept' (if needed)
78
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
79
+ # HTTP header 'Content-Type'
80
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
81
+
82
+ # form parameters
83
+ form_params = {}
84
+
85
+ # http body (model)
86
+ post_body = nil
87
+ auth_names = []
88
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
89
+ :header_params => header_params,
90
+ :query_params => query_params,
91
+ :form_params => form_params,
92
+ :body => post_body,
93
+ :auth_names => auth_names,
94
+ :return_type => 'Array<Object>')
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "API called: EcsServerGroupEventsControllerApi#get_events_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
97
+ end
98
+ return data, status_code, headers
99
+ end
100
+ end
101
+ end