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,169 @@
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 ExecutionsControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Retrieves an ad-hoc collection of executions based on a number of user-supplied parameters. Either executionIds or pipelineConfigIds must be supplied in order to return any results. If both are supplied, an exception will be thrown.
23
+ # @param [Hash] opts the optional parameters
24
+ # @option opts [String] :pipeline_config_ids A comma-separated list of pipeline configuration IDs to retrieve recent executions for. Either this OR pipelineConfigIds must be supplied, but not both.
25
+ # @option opts [String] :execution_ids A comma-separated list of executions to retrieve. Either this OR pipelineConfigIds must be supplied, but not both.
26
+ # @option opts [Integer] :limit The number of executions to return per pipeline configuration. Ignored if executionIds parameter is supplied. If this value is missing, it is defaulted to 1.
27
+ # @option opts [String] :statuses A comma-separated list of execution statuses to filter by. Ignored if executionIds parameter is supplied. If this value is missing, it is defaulted to all statuses.
28
+ # @option opts [BOOLEAN] :expand Expands each execution object in the resulting list. If this value is missing, it is defaulted to true. (default to true)
29
+ # @return [Array<Object>]
30
+ def get_latest_executions_by_config_ids_using_get(opts = {})
31
+ data, _status_code, _headers = get_latest_executions_by_config_ids_using_get_with_http_info(opts)
32
+ data
33
+ end
34
+
35
+ # Retrieves an ad-hoc collection of executions based on a number of user-supplied parameters. Either executionIds or pipelineConfigIds must be supplied in order to return any results. If both are supplied, an exception will be thrown.
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :pipeline_config_ids A comma-separated list of pipeline configuration IDs to retrieve recent executions for. Either this OR pipelineConfigIds must be supplied, but not both.
38
+ # @option opts [String] :execution_ids A comma-separated list of executions to retrieve. Either this OR pipelineConfigIds must be supplied, but not both.
39
+ # @option opts [Integer] :limit The number of executions to return per pipeline configuration. Ignored if executionIds parameter is supplied. If this value is missing, it is defaulted to 1.
40
+ # @option opts [String] :statuses A comma-separated list of execution statuses to filter by. Ignored if executionIds parameter is supplied. If this value is missing, it is defaulted to all statuses.
41
+ # @option opts [BOOLEAN] :expand Expands each execution object in the resulting list. If this value is missing, it is defaulted to true.
42
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
43
+ def get_latest_executions_by_config_ids_using_get_with_http_info(opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: ExecutionsControllerApi.get_latest_executions_by_config_ids_using_get ...'
46
+ end
47
+ # resource path
48
+ local_var_path = '/executions'
49
+
50
+ # query parameters
51
+ query_params = {}
52
+ query_params[:'pipelineConfigIds'] = opts[:'pipeline_config_ids'] if !opts[:'pipeline_config_ids'].nil?
53
+ query_params[:'executionIds'] = opts[:'execution_ids'] if !opts[:'execution_ids'].nil?
54
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
55
+ query_params[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil?
56
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
57
+
58
+ # header parameters
59
+ header_params = {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
62
+ # HTTP header 'Content-Type'
63
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ post_body = nil
70
+ auth_names = []
71
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => 'Array<Object>')
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: ExecutionsControllerApi#get_latest_executions_by_config_ids_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ # Search for pipeline executions using a combination of criteria. The returned list is sorted by buildTime (trigger time) in reverse order so that newer executions are first in the list.
84
+ # @param application Only includes executions that are part of this application. If this value is \&quot;*\&quot;, results will include executions of all applications.
85
+ # @param [Hash] opts the optional parameters
86
+ # @option opts [String] :trigger_types Only includes executions that were triggered by a trigger with a type that is equal to a type provided in this field. The list of trigger types should be a comma-delimited string. If this value is missing, results will includes executions of all trigger types.
87
+ # @option opts [String] :pipeline_name Only includes executions that with this pipeline name.
88
+ # @option opts [String] :event_id Only includes executions that were triggered by a trigger with this eventId.
89
+ # @option opts [String] :trigger Only includes executions that were triggered by a trigger that matches the subset of fields provided by this value. This value should be a base64-encoded string of a JSON representation of a trigger object. The comparison succeeds if the execution trigger contains all the fields of the input trigger, the fields are of the same type, and each value of the field \&quot;matches\&quot;. The term \&quot;matches\&quot; is specific for each field&#39;s type: - For Strings: A String value in the execution&#39;s trigger matches the input trigger&#39;s String value if the former equals the latter (case-insensitive) OR if the former matches the latter as a regular expression. - For Maps: A Map value in the execution&#39;s trigger matches the input trigger&#39;s Map value if the former contains all keys of the latter and their values match. - For Collections: A Collection value in the execution&#39;s trigger matches the input trigger&#39;s Collection value if the former has a unique element that matches each element of the latter. - Every other value is compared using the Java \&quot;equals\&quot; method (Groovy \&quot;&#x3D;&#x3D;\&quot; operator)
90
+ # @option opts [Integer] :trigger_time_start_boundary Only includes executions that were built at or after the given time, represented as a Unix timestamp in ms (UTC). This value must be &gt;&#x3D; 0 and &lt;&#x3D; the value of [triggerTimeEndBoundary], if provided. If this value is missing, it is defaulted to 0. (default to 0)
91
+ # @option opts [Integer] :trigger_time_end_boundary Only includes executions that were built at or before the given time, represented as a Unix timestamp in ms (UTC). This value must be &lt;&#x3D; 9223372036854775807 (Long.MAX_VALUE) and &gt;&#x3D; the value of [triggerTimeStartBoundary], if provided. If this value is missing, it is defaulted to 9223372036854775807.
92
+ # @option opts [String] :statuses Only includes executions with a status that is equal to a status provided in this field. The list of statuses should be given as a comma-delimited string. If this value is missing, includes executions of all statuses. Allowed statuses are: NOT_STARTED, RUNNING, PAUSED, SUSPENDED, SUCCEEDED, FAILED_CONTINUE, TERMINAL, CANCELED, REDIRECT, STOPPED, SKIPPED, BUFFERED.
93
+ # @option opts [Integer] :start_index Sets the first item of the resulting list for pagination. The list is 0-indexed. This value must be &gt;&#x3D; 0. If this value is missing, it is defaulted to 0. (default to 0)
94
+ # @option opts [Integer] :size Sets the size of the resulting list for pagination. This value must be &gt; 0. If this value is missing, it is defaulted to 10. (default to 10)
95
+ # @option opts [BOOLEAN] :reverse Reverses the resulting list before it is paginated. If this value is missing, it is defaulted to false. (default to false)
96
+ # @option opts [BOOLEAN] :expand Expands each execution object in the resulting list. If this value is missing, it is defaulted to false. (default to false)
97
+ # @return [Array<Object>]
98
+ def search_for_pipeline_executions_by_trigger_using_get(application, opts = {})
99
+ data, _status_code, _headers = search_for_pipeline_executions_by_trigger_using_get_with_http_info(application, opts)
100
+ data
101
+ end
102
+
103
+ # Search for pipeline executions using a combination of criteria. The returned list is sorted by buildTime (trigger time) in reverse order so that newer executions are first in the list.
104
+ # @param application Only includes executions that are part of this application. If this value is \&quot;*\&quot;, results will include executions of all applications.
105
+ # @param [Hash] opts the optional parameters
106
+ # @option opts [String] :trigger_types Only includes executions that were triggered by a trigger with a type that is equal to a type provided in this field. The list of trigger types should be a comma-delimited string. If this value is missing, results will includes executions of all trigger types.
107
+ # @option opts [String] :pipeline_name Only includes executions that with this pipeline name.
108
+ # @option opts [String] :event_id Only includes executions that were triggered by a trigger with this eventId.
109
+ # @option opts [String] :trigger Only includes executions that were triggered by a trigger that matches the subset of fields provided by this value. This value should be a base64-encoded string of a JSON representation of a trigger object. The comparison succeeds if the execution trigger contains all the fields of the input trigger, the fields are of the same type, and each value of the field \&quot;matches\&quot;. The term \&quot;matches\&quot; is specific for each field&#39;s type: - For Strings: A String value in the execution&#39;s trigger matches the input trigger&#39;s String value if the former equals the latter (case-insensitive) OR if the former matches the latter as a regular expression. - For Maps: A Map value in the execution&#39;s trigger matches the input trigger&#39;s Map value if the former contains all keys of the latter and their values match. - For Collections: A Collection value in the execution&#39;s trigger matches the input trigger&#39;s Collection value if the former has a unique element that matches each element of the latter. - Every other value is compared using the Java \&quot;equals\&quot; method (Groovy \&quot;&#x3D;&#x3D;\&quot; operator)
110
+ # @option opts [Integer] :trigger_time_start_boundary Only includes executions that were built at or after the given time, represented as a Unix timestamp in ms (UTC). This value must be &gt;&#x3D; 0 and &lt;&#x3D; the value of [triggerTimeEndBoundary], if provided. If this value is missing, it is defaulted to 0.
111
+ # @option opts [Integer] :trigger_time_end_boundary Only includes executions that were built at or before the given time, represented as a Unix timestamp in ms (UTC). This value must be &lt;&#x3D; 9223372036854775807 (Long.MAX_VALUE) and &gt;&#x3D; the value of [triggerTimeStartBoundary], if provided. If this value is missing, it is defaulted to 9223372036854775807.
112
+ # @option opts [String] :statuses Only includes executions with a status that is equal to a status provided in this field. The list of statuses should be given as a comma-delimited string. If this value is missing, includes executions of all statuses. Allowed statuses are: NOT_STARTED, RUNNING, PAUSED, SUSPENDED, SUCCEEDED, FAILED_CONTINUE, TERMINAL, CANCELED, REDIRECT, STOPPED, SKIPPED, BUFFERED.
113
+ # @option opts [Integer] :start_index Sets the first item of the resulting list for pagination. The list is 0-indexed. This value must be &gt;&#x3D; 0. If this value is missing, it is defaulted to 0.
114
+ # @option opts [Integer] :size Sets the size of the resulting list for pagination. This value must be &gt; 0. If this value is missing, it is defaulted to 10.
115
+ # @option opts [BOOLEAN] :reverse Reverses the resulting list before it is paginated. If this value is missing, it is defaulted to false.
116
+ # @option opts [BOOLEAN] :expand Expands each execution object in the resulting list. If this value is missing, it is defaulted to false.
117
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
118
+ def search_for_pipeline_executions_by_trigger_using_get_with_http_info(application, opts = {})
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug 'Calling API: ExecutionsControllerApi.search_for_pipeline_executions_by_trigger_using_get ...'
121
+ end
122
+ # verify the required parameter 'application' is set
123
+ if @api_client.config.client_side_validation && application.nil?
124
+ fail ArgumentError, "Missing the required parameter 'application' when calling ExecutionsControllerApi.search_for_pipeline_executions_by_trigger_using_get"
125
+ end
126
+ # resource path
127
+ local_var_path = '/applications/{application}/executions/search'.sub('{' + 'application' + '}', application.to_s)
128
+
129
+ # query parameters
130
+ query_params = {}
131
+ query_params[:'triggerTypes'] = opts[:'trigger_types'] if !opts[:'trigger_types'].nil?
132
+ query_params[:'pipelineName'] = opts[:'pipeline_name'] if !opts[:'pipeline_name'].nil?
133
+ query_params[:'eventId'] = opts[:'event_id'] if !opts[:'event_id'].nil?
134
+ query_params[:'trigger'] = opts[:'trigger'] if !opts[:'trigger'].nil?
135
+ query_params[:'triggerTimeStartBoundary'] = opts[:'trigger_time_start_boundary'] if !opts[:'trigger_time_start_boundary'].nil?
136
+ query_params[:'triggerTimeEndBoundary'] = opts[:'trigger_time_end_boundary'] if !opts[:'trigger_time_end_boundary'].nil?
137
+ query_params[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil?
138
+ query_params[:'startIndex'] = opts[:'start_index'] if !opts[:'start_index'].nil?
139
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
140
+ query_params[:'reverse'] = opts[:'reverse'] if !opts[:'reverse'].nil?
141
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
142
+
143
+ # header parameters
144
+ header_params = {}
145
+ # HTTP header 'Accept' (if needed)
146
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
147
+ # HTTP header 'Content-Type'
148
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
149
+
150
+ # form parameters
151
+ form_params = {}
152
+
153
+ # http body (model)
154
+ post_body = nil
155
+ auth_names = []
156
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
157
+ :header_params => header_params,
158
+ :query_params => query_params,
159
+ :form_params => form_params,
160
+ :body => post_body,
161
+ :auth_names => auth_names,
162
+ :return_type => 'Array<Object>')
163
+ if @api_client.config.debugging
164
+ @api_client.config.logger.debug "API called: ExecutionsControllerApi#search_for_pipeline_executions_by_trigger_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
165
+ end
166
+ return data, status_code, headers
167
+ end
168
+ end
169
+ end
@@ -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 FirewallControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Retrieve a list of firewalls for a given account, grouped by region
23
+ # @param account account
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :provider provider (default to aws)
26
+ # @option opts [String] :region region
27
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
28
+ # @return [Object]
29
+ def all_by_account_using_get(account, opts = {})
30
+ data, _status_code, _headers = all_by_account_using_get_with_http_info(account, opts)
31
+ data
32
+ end
33
+
34
+ # Retrieve a list of firewalls for a given account, grouped by region
35
+ # @param account account
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :provider provider
38
+ # @option opts [String] :region region
39
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
40
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
41
+ def all_by_account_using_get_with_http_info(account, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: FirewallControllerApi.all_by_account_using_get ...'
44
+ end
45
+ # verify the required parameter 'account' is set
46
+ if @api_client.config.client_side_validation && account.nil?
47
+ fail ArgumentError, "Missing the required parameter 'account' when calling FirewallControllerApi.all_by_account_using_get"
48
+ end
49
+ # resource path
50
+ local_var_path = '/firewalls/{account}'.sub('{' + 'account' + '}', account.to_s)
51
+
52
+ # query parameters
53
+ query_params = {}
54
+ query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
55
+ query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
56
+
57
+ # header parameters
58
+ header_params = {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
63
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ post_body = nil
70
+ auth_names = []
71
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => 'Object')
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: FirewallControllerApi#all_by_account_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ # Retrieve a list of firewalls, grouped by account, cloud provider, and region
84
+ # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :id id
86
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
87
+ # @return [Object]
88
+ def all_using_get1(opts = {})
89
+ data, _status_code, _headers = all_using_get1_with_http_info(opts)
90
+ data
91
+ end
92
+
93
+ # Retrieve a list of firewalls, grouped by account, cloud provider, and region
94
+ # @param [Hash] opts the optional parameters
95
+ # @option opts [String] :id id
96
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
97
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
98
+ def all_using_get1_with_http_info(opts = {})
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug 'Calling API: FirewallControllerApi.all_using_get1 ...'
101
+ end
102
+ # resource path
103
+ local_var_path = '/firewalls'
104
+
105
+ # query parameters
106
+ query_params = {}
107
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
108
+
109
+ # header parameters
110
+ header_params = {}
111
+ # HTTP header 'Accept' (if needed)
112
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
113
+ # HTTP header 'Content-Type'
114
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
115
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
116
+
117
+ # form parameters
118
+ form_params = {}
119
+
120
+ # http body (model)
121
+ post_body = nil
122
+ auth_names = []
123
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
124
+ :header_params => header_params,
125
+ :query_params => query_params,
126
+ :form_params => form_params,
127
+ :body => post_body,
128
+ :auth_names => auth_names,
129
+ :return_type => 'Object')
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug "API called: FirewallControllerApi#all_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
+ end
133
+ return data, status_code, headers
134
+ end
135
+ # Retrieve a firewall's details
136
+ # @param account account
137
+ # @param region region
138
+ # @param name name
139
+ # @param [Hash] opts the optional parameters
140
+ # @option opts [String] :provider provider (default to aws)
141
+ # @option opts [String] :vpc_id vpcId
142
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
143
+ # @return [Object]
144
+ def get_security_group_using_get(account, region, name, opts = {})
145
+ data, _status_code, _headers = get_security_group_using_get_with_http_info(account, region, name, opts)
146
+ data
147
+ end
148
+
149
+ # Retrieve a firewall&#39;s details
150
+ # @param account account
151
+ # @param region region
152
+ # @param name name
153
+ # @param [Hash] opts the optional parameters
154
+ # @option opts [String] :provider provider
155
+ # @option opts [String] :vpc_id vpcId
156
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
157
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
158
+ def get_security_group_using_get_with_http_info(account, region, name, opts = {})
159
+ if @api_client.config.debugging
160
+ @api_client.config.logger.debug 'Calling API: FirewallControllerApi.get_security_group_using_get ...'
161
+ end
162
+ # verify the required parameter 'account' is set
163
+ if @api_client.config.client_side_validation && account.nil?
164
+ fail ArgumentError, "Missing the required parameter 'account' when calling FirewallControllerApi.get_security_group_using_get"
165
+ end
166
+ # verify the required parameter 'region' is set
167
+ if @api_client.config.client_side_validation && region.nil?
168
+ fail ArgumentError, "Missing the required parameter 'region' when calling FirewallControllerApi.get_security_group_using_get"
169
+ end
170
+ # verify the required parameter 'name' is set
171
+ if @api_client.config.client_side_validation && name.nil?
172
+ fail ArgumentError, "Missing the required parameter 'name' when calling FirewallControllerApi.get_security_group_using_get"
173
+ end
174
+ # resource path
175
+ local_var_path = '/firewalls/{account}/{region}/{name}'.sub('{' + 'account' + '}', account.to_s).sub('{' + 'region' + '}', region.to_s).sub('{' + 'name' + '}', name.to_s)
176
+
177
+ # query parameters
178
+ query_params = {}
179
+ query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
180
+ query_params[:'vpcId'] = opts[:'vpc_id'] if !opts[:'vpc_id'].nil?
181
+
182
+ # header parameters
183
+ header_params = {}
184
+ # HTTP header 'Accept' (if needed)
185
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
186
+ # HTTP header 'Content-Type'
187
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
188
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
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 => 'Object')
203
+ if @api_client.config.debugging
204
+ @api_client.config.logger.debug "API called: FirewallControllerApi#get_security_group_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,222 @@
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 ImageControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Retrieve a list of images, filtered by cloud provider, region, and account
23
+ # The query parameter `q` filters the list of images by image name
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :provider provider (default to aws)
26
+ # @option opts [String] :q q
27
+ # @option opts [String] :region region
28
+ # @option opts [String] :account account
29
+ # @option opts [Integer] :count count
30
+ # @return [Array<Object>]
31
+ def find_images_using_get(opts = {})
32
+ data, _status_code, _headers = find_images_using_get_with_http_info(opts)
33
+ data
34
+ end
35
+
36
+ # Retrieve a list of images, filtered by cloud provider, region, and account
37
+ # The query parameter &#x60;q&#x60; filters the list of images by image name
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :provider provider
40
+ # @option opts [String] :q q
41
+ # @option opts [String] :region region
42
+ # @option opts [String] :account account
43
+ # @option opts [Integer] :count count
44
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
45
+ def find_images_using_get_with_http_info(opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: ImageControllerApi.find_images_using_get ...'
48
+ end
49
+ # resource path
50
+ local_var_path = '/images/find'
51
+
52
+ # query parameters
53
+ query_params = {}
54
+ query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
55
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
56
+ query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
57
+ query_params[:'account'] = opts[:'account'] if !opts[:'account'].nil?
58
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
59
+
60
+ # header parameters
61
+ header_params = {}
62
+ # HTTP header 'Accept' (if needed)
63
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
64
+ # HTTP header 'Content-Type'
65
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
66
+
67
+ # form parameters
68
+ form_params = {}
69
+
70
+ # http body (model)
71
+ post_body = nil
72
+ auth_names = []
73
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
74
+ :header_params => header_params,
75
+ :query_params => query_params,
76
+ :form_params => form_params,
77
+ :body => post_body,
78
+ :auth_names => auth_names,
79
+ :return_type => 'Array<Object>')
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: ImageControllerApi#find_images_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+ # Find tags
86
+ # @param account account
87
+ # @param repository repository
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [String] :provider provider (default to aws)
90
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
91
+ # @return [Array<Object>]
92
+ def find_tags_using_get(account, repository, opts = {})
93
+ data, _status_code, _headers = find_tags_using_get_with_http_info(account, repository, opts)
94
+ data
95
+ end
96
+
97
+ # Find tags
98
+ # @param account account
99
+ # @param repository repository
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [String] :provider provider
102
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
103
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
104
+ def find_tags_using_get_with_http_info(account, repository, opts = {})
105
+ if @api_client.config.debugging
106
+ @api_client.config.logger.debug 'Calling API: ImageControllerApi.find_tags_using_get ...'
107
+ end
108
+ # verify the required parameter 'account' is set
109
+ if @api_client.config.client_side_validation && account.nil?
110
+ fail ArgumentError, "Missing the required parameter 'account' when calling ImageControllerApi.find_tags_using_get"
111
+ end
112
+ # verify the required parameter 'repository' is set
113
+ if @api_client.config.client_side_validation && repository.nil?
114
+ fail ArgumentError, "Missing the required parameter 'repository' when calling ImageControllerApi.find_tags_using_get"
115
+ end
116
+ # resource path
117
+ local_var_path = '/images/tags'
118
+
119
+ # query parameters
120
+ query_params = {}
121
+ query_params[:'account'] = account
122
+ query_params[:'repository'] = repository
123
+ query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
124
+
125
+ # header parameters
126
+ header_params = {}
127
+ # HTTP header 'Accept' (if needed)
128
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
129
+ # HTTP header 'Content-Type'
130
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
131
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
132
+
133
+ # form parameters
134
+ form_params = {}
135
+
136
+ # http body (model)
137
+ post_body = nil
138
+ auth_names = []
139
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
140
+ :header_params => header_params,
141
+ :query_params => query_params,
142
+ :form_params => form_params,
143
+ :body => post_body,
144
+ :auth_names => auth_names,
145
+ :return_type => 'Array<Object>')
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug "API called: ImageControllerApi#find_tags_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
+ end
149
+ return data, status_code, headers
150
+ end
151
+ # Get image details
152
+ # @param account account
153
+ # @param region region
154
+ # @param image_id imageId
155
+ # @param [Hash] opts the optional parameters
156
+ # @option opts [String] :provider provider (default to aws)
157
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
158
+ # @return [Array<Object>]
159
+ def get_image_details_using_get(account, region, image_id, opts = {})
160
+ data, _status_code, _headers = get_image_details_using_get_with_http_info(account, region, image_id, opts)
161
+ data
162
+ end
163
+
164
+ # Get image details
165
+ # @param account account
166
+ # @param region region
167
+ # @param image_id imageId
168
+ # @param [Hash] opts the optional parameters
169
+ # @option opts [String] :provider provider
170
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
171
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
172
+ def get_image_details_using_get_with_http_info(account, region, image_id, opts = {})
173
+ if @api_client.config.debugging
174
+ @api_client.config.logger.debug 'Calling API: ImageControllerApi.get_image_details_using_get ...'
175
+ end
176
+ # verify the required parameter 'account' is set
177
+ if @api_client.config.client_side_validation && account.nil?
178
+ fail ArgumentError, "Missing the required parameter 'account' when calling ImageControllerApi.get_image_details_using_get"
179
+ end
180
+ # verify the required parameter 'region' is set
181
+ if @api_client.config.client_side_validation && region.nil?
182
+ fail ArgumentError, "Missing the required parameter 'region' when calling ImageControllerApi.get_image_details_using_get"
183
+ end
184
+ # verify the required parameter 'image_id' is set
185
+ if @api_client.config.client_side_validation && image_id.nil?
186
+ fail ArgumentError, "Missing the required parameter 'image_id' when calling ImageControllerApi.get_image_details_using_get"
187
+ end
188
+ # resource path
189
+ local_var_path = '/images/{account}/{region}/{imageId}'.sub('{' + 'account' + '}', account.to_s).sub('{' + 'region' + '}', region.to_s).sub('{' + 'imageId' + '}', image_id.to_s)
190
+
191
+ # query parameters
192
+ query_params = {}
193
+ query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
194
+
195
+ # header parameters
196
+ header_params = {}
197
+ # HTTP header 'Accept' (if needed)
198
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
199
+ # HTTP header 'Content-Type'
200
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
201
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
202
+
203
+ # form parameters
204
+ form_params = {}
205
+
206
+ # http body (model)
207
+ post_body = nil
208
+ auth_names = []
209
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
210
+ :header_params => header_params,
211
+ :query_params => query_params,
212
+ :form_params => form_params,
213
+ :body => post_body,
214
+ :auth_names => auth_names,
215
+ :return_type => 'Array<Object>')
216
+ if @api_client.config.debugging
217
+ @api_client.config.logger.debug "API called: ImageControllerApi#get_image_details_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
218
+ end
219
+ return data, status_code, headers
220
+ end
221
+ end
222
+ end