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.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +85 -0
- data/LICENSE +201 -0
- data/README.md +240 -0
- data/Rakefile +8 -0
- data/docs/Account.md +14 -0
- data/docs/AccountDetails.md +19 -0
- data/docs/AmazonInfrastructureControllerApi.md +128 -0
- data/docs/ApplicationControllerApi.md +754 -0
- data/docs/ArtifactControllerApi.md +111 -0
- data/docs/AuthControllerApi.md +212 -0
- data/docs/BakeControllerApi.md +143 -0
- data/docs/BuildControllerApi.md +493 -0
- data/docs/ClusterControllerApi.md +475 -0
- data/docs/ConcourseControllerApi.md +161 -0
- data/docs/CredentialsControllerApi.md +129 -0
- data/docs/EcsServerGroupEventsControllerApi.md +66 -0
- data/docs/ExecutionsControllerApi.md +133 -0
- data/docs/FirewallControllerApi.md +171 -0
- data/docs/GrantedAuthority.md +8 -0
- data/docs/HashMapstringobject.md +7 -0
- data/docs/HttpEntity.md +8 -0
- data/docs/ImageControllerApi.md +178 -0
- data/docs/InstanceControllerApi.md +122 -0
- data/docs/JobControllerApi.md +69 -0
- data/docs/LoadBalancerControllerApi.md +217 -0
- data/docs/Mapstringstring.md +7 -0
- data/docs/NetworkControllerApi.md +105 -0
- data/docs/PipelineConfigControllerApi.md +144 -0
- data/docs/PipelineControllerApi.md +1074 -0
- data/docs/PipelineTemplateDependent.md +10 -0
- data/docs/PipelineTemplatesControllerApi.md +350 -0
- data/docs/ProjectControllerApi.md +196 -0
- data/docs/PubsubSubscriptionControllerApi.md +48 -0
- data/docs/ReorderPipelinesCommand.md +9 -0
- data/docs/ReorderPipelinesControllerApi.md +54 -0
- data/docs/ResponseEntity.md +10 -0
- data/docs/SearchControllerApi.md +68 -0
- data/docs/SecurityGroupControllerApi.md +171 -0
- data/docs/ServerGroupControllerApi.md +125 -0
- data/docs/ServerGroupManagerControllerApi.md +54 -0
- data/docs/SnapshotControllerApi.md +110 -0
- data/docs/SubnetControllerApi.md +58 -0
- data/docs/TaskControllerApi.md +291 -0
- data/docs/User.md +18 -0
- data/docs/V2CanaryConfigControllerApi.md +259 -0
- data/docs/V2CanaryControllerApi.md +356 -0
- data/docs/V2PipelineTemplatesControllerApi.md +356 -0
- data/docs/Version.md +8 -0
- data/docs/VersionControllerApi.md +48 -0
- data/docs/WebhookControllerApi.md +105 -0
- data/git_push.sh +55 -0
- data/lib/swagger_client.rb +85 -0
- data/lib/swagger_client/api/amazon_infrastructure_controller_api.rb +161 -0
- data/lib/swagger_client/api/application_controller_api.rb +868 -0
- data/lib/swagger_client/api/artifact_controller_api.rb +141 -0
- data/lib/swagger_client/api/auth_controller_api.rb +258 -0
- data/lib/swagger_client/api/bake_controller_api.rb +179 -0
- data/lib/swagger_client/api/build_controller_api.rb +588 -0
- data/lib/swagger_client/api/cluster_controller_api.rb +591 -0
- data/lib/swagger_client/api/concourse_controller_api.rb +209 -0
- data/lib/swagger_client/api/credentials_controller_api.rb +163 -0
- data/lib/swagger_client/api/ecs_server_group_events_controller_api.rb +101 -0
- data/lib/swagger_client/api/executions_controller_api.rb +169 -0
- data/lib/swagger_client/api/firewall_controller_api.rb +209 -0
- data/lib/swagger_client/api/image_controller_api.rb +222 -0
- data/lib/swagger_client/api/instance_controller_api.rb +160 -0
- data/lib/swagger_client/api/job_controller_api.rb +99 -0
- data/lib/swagger_client/api/load_balancer_controller_api.rb +258 -0
- data/lib/swagger_client/api/network_controller_api.rb +127 -0
- data/lib/swagger_client/api/pipeline_config_controller_api.rb +176 -0
- data/lib/swagger_client/api/pipeline_controller_api.rb +1268 -0
- data/lib/swagger_client/api/pipeline_templates_controller_api.rb +404 -0
- data/lib/swagger_client/api/project_controller_api.rb +234 -0
- data/lib/swagger_client/api/pubsub_subscription_controller_api.rb +69 -0
- data/lib/swagger_client/api/reorder_pipelines_controller_api.rb +75 -0
- data/lib/swagger_client/api/search_controller_api.rb +94 -0
- data/lib/swagger_client/api/security_group_controller_api.rb +209 -0
- data/lib/swagger_client/api/server_group_controller_api.rb +163 -0
- data/lib/swagger_client/api/server_group_manager_controller_api.rb +75 -0
- data/lib/swagger_client/api/snapshot_controller_api.rb +142 -0
- data/lib/swagger_client/api/subnet_controller_api.rb +78 -0
- data/lib/swagger_client/api/task_controller_api.rb +345 -0
- data/lib/swagger_client/api/v2_canary_config_controller_api.rb +300 -0
- data/lib/swagger_client/api/v2_canary_controller_api.rb +421 -0
- data/lib/swagger_client/api/v2_pipeline_templates_controller_api.rb +412 -0
- data/lib/swagger_client/api/version_controller_api.rb +69 -0
- data/lib/swagger_client/api/webhook_controller_api.rb +135 -0
- data/lib/swagger_client/api_client.rb +388 -0
- data/lib/swagger_client/api_error.rb +38 -0
- data/lib/swagger_client/configuration.rb +202 -0
- data/lib/swagger_client/models/account.rb +241 -0
- data/lib/swagger_client/models/account_details.rb +286 -0
- data/lib/swagger_client/models/granted_authority.rb +183 -0
- data/lib/swagger_client/models/hash_mapstringobject.rb +174 -0
- data/lib/swagger_client/models/http_entity.rb +183 -0
- data/lib/swagger_client/models/mapstringstring.rb +174 -0
- data/lib/swagger_client/models/pipeline_template_dependent.rb +201 -0
- data/lib/swagger_client/models/reorder_pipelines_command.rb +194 -0
- data/lib/swagger_client/models/response_entity.rb +235 -0
- data/lib/swagger_client/models/user.rb +279 -0
- data/lib/swagger_client/models/version.rb +183 -0
- data/lib/swagger_client/version.rb +15 -0
- data/spec/api/amazon_infrastructure_controller_api_spec.rb +65 -0
- data/spec/api/application_controller_api_spec.rb +218 -0
- data/spec/api/artifact_controller_api_spec.rb +60 -0
- data/spec/api/auth_controller_api_spec.rb +86 -0
- data/spec/api/bake_controller_api_spec.rb +68 -0
- data/spec/api/build_controller_api_spec.rb +155 -0
- data/spec/api/cluster_controller_api_spec.rb +155 -0
- data/spec/api/concourse_controller_api_spec.rb +73 -0
- data/spec/api/credentials_controller_api_spec.rb +70 -0
- data/spec/api/ecs_server_group_events_controller_api_spec.rb +50 -0
- data/spec/api/executions_controller_api_spec.rb +72 -0
- data/spec/api/firewall_controller_api_spec.rb +77 -0
- data/spec/api/image_controller_api_spec.rb +80 -0
- data/spec/api/instance_controller_api_spec.rb +64 -0
- data/spec/api/job_controller_api_spec.rb +51 -0
- data/spec/api/load_balancer_controller_api_spec.rb +87 -0
- data/spec/api/network_controller_api_spec.rb +58 -0
- data/spec/api/pipeline_config_controller_api_spec.rb +68 -0
- data/spec/api/pipeline_controller_api_spec.rb +296 -0
- data/spec/api/pipeline_templates_controller_api_spec.rb +118 -0
- data/spec/api/project_controller_api_spec.rb +81 -0
- data/spec/api/pubsub_subscription_controller_api_spec.rb +45 -0
- data/spec/api/reorder_pipelines_controller_api_spec.rb +46 -0
- data/spec/api/search_controller_api_spec.rb +52 -0
- data/spec/api/security_group_controller_api_spec.rb +77 -0
- data/spec/api/server_group_controller_api_spec.rb +66 -0
- data/spec/api/server_group_manager_controller_api_spec.rb +46 -0
- data/spec/api/snapshot_controller_api_spec.rb +60 -0
- data/spec/api/subnet_controller_api_spec.rb +47 -0
- data/spec/api/task_controller_api_spec.rb +103 -0
- data/spec/api/v2_canary_config_controller_api_spec.rb +96 -0
- data/spec/api/v2_canary_controller_api_spec.rb +123 -0
- data/spec/api/v2_pipeline_templates_controller_api_spec.rb +121 -0
- data/spec/api/version_controller_api_spec.rb +45 -0
- data/spec/api/webhook_controller_api_spec.rb +60 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_details_spec.rb +107 -0
- data/spec/models/account_spec.rb +77 -0
- data/spec/models/granted_authority_spec.rb +41 -0
- data/spec/models/hash_mapstringobject_spec.rb +35 -0
- data/spec/models/http_entity_spec.rb +41 -0
- data/spec/models/mapstringstring_spec.rb +35 -0
- data/spec/models/pipeline_template_dependent_spec.rb +53 -0
- data/spec/models/reorder_pipelines_command_spec.rb +47 -0
- data/spec/models/response_entity_spec.rb +57 -0
- data/spec/models/user_spec.rb +101 -0
- data/spec/models/version_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- data/spinnaker_gate_ruby_client-1.0.0.gem +0 -0
- data/spinnaker_gate_ruby_client.gemspec +45 -0
- metadata +427 -0
@@ -0,0 +1,421 @@
|
|
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 V2CanaryControllerApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Retrieve a canary result
|
23
|
+
# @param canary_config_id canaryConfigId
|
24
|
+
# @param canary_execution_id canaryExecutionId
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :storage_account_name storageAccountName
|
27
|
+
# @return [Object]
|
28
|
+
def get_canary_result_using_get(canary_config_id, canary_execution_id, opts = {})
|
29
|
+
data, _status_code, _headers = get_canary_result_using_get_with_http_info(canary_config_id, canary_execution_id, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Retrieve a canary result
|
34
|
+
# @param canary_config_id canaryConfigId
|
35
|
+
# @param canary_execution_id canaryExecutionId
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :storage_account_name storageAccountName
|
38
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
39
|
+
def get_canary_result_using_get_with_http_info(canary_config_id, canary_execution_id, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: V2CanaryControllerApi.get_canary_result_using_get ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'canary_config_id' is set
|
44
|
+
if @api_client.config.client_side_validation && canary_config_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'canary_config_id' when calling V2CanaryControllerApi.get_canary_result_using_get"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'canary_execution_id' is set
|
48
|
+
if @api_client.config.client_side_validation && canary_execution_id.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'canary_execution_id' when calling V2CanaryControllerApi.get_canary_result_using_get"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/v2/canaries/canary/{canaryConfigId}/{canaryExecutionId}'.sub('{' + 'canaryConfigId' + '}', canary_config_id.to_s).sub('{' + 'canaryExecutionId' + '}', canary_execution_id.to_s)
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = {}
|
56
|
+
query_params[:'storageAccountName'] = opts[:'storage_account_name'] if !opts[:'storage_account_name'].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 => 'Object')
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: V2CanaryControllerApi#get_canary_result_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 an application's canary results
|
84
|
+
# @param application application
|
85
|
+
# @param limit limit
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [String] :statuses Comma-separated list of statuses, e.g.: RUNNING, SUCCEEDED, TERMINAL
|
88
|
+
# @option opts [String] :storage_account_name storageAccountName
|
89
|
+
# @return [Array<Object>]
|
90
|
+
def get_canary_results_by_application_using_get(application, limit, opts = {})
|
91
|
+
data, _status_code, _headers = get_canary_results_by_application_using_get_with_http_info(application, limit, opts)
|
92
|
+
data
|
93
|
+
end
|
94
|
+
|
95
|
+
# Retrieve a list of an application's canary results
|
96
|
+
# @param application application
|
97
|
+
# @param limit limit
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :statuses Comma-separated list of statuses, e.g.: RUNNING, SUCCEEDED, TERMINAL
|
100
|
+
# @option opts [String] :storage_account_name storageAccountName
|
101
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
102
|
+
def get_canary_results_by_application_using_get_with_http_info(application, limit, opts = {})
|
103
|
+
if @api_client.config.debugging
|
104
|
+
@api_client.config.logger.debug 'Calling API: V2CanaryControllerApi.get_canary_results_by_application_using_get ...'
|
105
|
+
end
|
106
|
+
# verify the required parameter 'application' is set
|
107
|
+
if @api_client.config.client_side_validation && application.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling V2CanaryControllerApi.get_canary_results_by_application_using_get"
|
109
|
+
end
|
110
|
+
# verify the required parameter 'limit' is set
|
111
|
+
if @api_client.config.client_side_validation && limit.nil?
|
112
|
+
fail ArgumentError, "Missing the required parameter 'limit' when calling V2CanaryControllerApi.get_canary_results_by_application_using_get"
|
113
|
+
end
|
114
|
+
# resource path
|
115
|
+
local_var_path = '/v2/canaries/{application}/executions'.sub('{' + 'application' + '}', application.to_s)
|
116
|
+
|
117
|
+
# query parameters
|
118
|
+
query_params = {}
|
119
|
+
query_params[:'limit'] = limit
|
120
|
+
query_params[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil?
|
121
|
+
query_params[:'storageAccountName'] = opts[:'storage_account_name'] if !opts[:'storage_account_name'].nil?
|
122
|
+
|
123
|
+
# header parameters
|
124
|
+
header_params = {}
|
125
|
+
# HTTP header 'Accept' (if needed)
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
127
|
+
# HTTP header 'Content-Type'
|
128
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
129
|
+
|
130
|
+
# form parameters
|
131
|
+
form_params = {}
|
132
|
+
|
133
|
+
# http body (model)
|
134
|
+
post_body = nil
|
135
|
+
auth_names = []
|
136
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
137
|
+
:header_params => header_params,
|
138
|
+
:query_params => query_params,
|
139
|
+
:form_params => form_params,
|
140
|
+
:body => post_body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'Array<Object>')
|
143
|
+
if @api_client.config.debugging
|
144
|
+
@api_client.config.logger.debug "API called: V2CanaryControllerApi#get_canary_results_by_application_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
|
+
end
|
146
|
+
return data, status_code, headers
|
147
|
+
end
|
148
|
+
# Retrieve a metric set pair list
|
149
|
+
# @param metric_set_pair_list_id metricSetPairListId
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :storage_account_name storageAccountName
|
152
|
+
# @return [Array<Object>]
|
153
|
+
def get_metric_set_pair_list_using_get(metric_set_pair_list_id, opts = {})
|
154
|
+
data, _status_code, _headers = get_metric_set_pair_list_using_get_with_http_info(metric_set_pair_list_id, opts)
|
155
|
+
data
|
156
|
+
end
|
157
|
+
|
158
|
+
# Retrieve a metric set pair list
|
159
|
+
# @param metric_set_pair_list_id metricSetPairListId
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @option opts [String] :storage_account_name storageAccountName
|
162
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
163
|
+
def get_metric_set_pair_list_using_get_with_http_info(metric_set_pair_list_id, opts = {})
|
164
|
+
if @api_client.config.debugging
|
165
|
+
@api_client.config.logger.debug 'Calling API: V2CanaryControllerApi.get_metric_set_pair_list_using_get ...'
|
166
|
+
end
|
167
|
+
# verify the required parameter 'metric_set_pair_list_id' is set
|
168
|
+
if @api_client.config.client_side_validation && metric_set_pair_list_id.nil?
|
169
|
+
fail ArgumentError, "Missing the required parameter 'metric_set_pair_list_id' when calling V2CanaryControllerApi.get_metric_set_pair_list_using_get"
|
170
|
+
end
|
171
|
+
# resource path
|
172
|
+
local_var_path = '/v2/canaries/metricSetPairList/{metricSetPairListId}'.sub('{' + 'metricSetPairListId' + '}', metric_set_pair_list_id.to_s)
|
173
|
+
|
174
|
+
# query parameters
|
175
|
+
query_params = {}
|
176
|
+
query_params[:'storageAccountName'] = opts[:'storage_account_name'] if !opts[:'storage_account_name'].nil?
|
177
|
+
|
178
|
+
# header parameters
|
179
|
+
header_params = {}
|
180
|
+
# HTTP header 'Accept' (if needed)
|
181
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
182
|
+
# HTTP header 'Content-Type'
|
183
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
184
|
+
|
185
|
+
# form parameters
|
186
|
+
form_params = {}
|
187
|
+
|
188
|
+
# http body (model)
|
189
|
+
post_body = nil
|
190
|
+
auth_names = []
|
191
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
192
|
+
:header_params => header_params,
|
193
|
+
:query_params => query_params,
|
194
|
+
:form_params => form_params,
|
195
|
+
:body => post_body,
|
196
|
+
:auth_names => auth_names,
|
197
|
+
:return_type => 'Array<Object>')
|
198
|
+
if @api_client.config.debugging
|
199
|
+
@api_client.config.logger.debug "API called: V2CanaryControllerApi#get_metric_set_pair_list_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
200
|
+
end
|
201
|
+
return data, status_code, headers
|
202
|
+
end
|
203
|
+
# Start a canary execution
|
204
|
+
# @param canary_config_id canaryConfigId
|
205
|
+
# @param execution_request executionRequest
|
206
|
+
# @param [Hash] opts the optional parameters
|
207
|
+
# @option opts [String] :application application
|
208
|
+
# @option opts [String] :parent_pipeline_execution_id parentPipelineExecutionId
|
209
|
+
# @option opts [String] :metrics_account_name metricsAccountName
|
210
|
+
# @option opts [String] :storage_account_name storageAccountName
|
211
|
+
# @option opts [String] :configuration_account_name configurationAccountName
|
212
|
+
# @return [Object]
|
213
|
+
def initiate_canary_using_post(canary_config_id, execution_request, opts = {})
|
214
|
+
data, _status_code, _headers = initiate_canary_using_post_with_http_info(canary_config_id, execution_request, opts)
|
215
|
+
data
|
216
|
+
end
|
217
|
+
|
218
|
+
# Start a canary execution
|
219
|
+
# @param canary_config_id canaryConfigId
|
220
|
+
# @param execution_request executionRequest
|
221
|
+
# @param [Hash] opts the optional parameters
|
222
|
+
# @option opts [String] :application application
|
223
|
+
# @option opts [String] :parent_pipeline_execution_id parentPipelineExecutionId
|
224
|
+
# @option opts [String] :metrics_account_name metricsAccountName
|
225
|
+
# @option opts [String] :storage_account_name storageAccountName
|
226
|
+
# @option opts [String] :configuration_account_name configurationAccountName
|
227
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
228
|
+
def initiate_canary_using_post_with_http_info(canary_config_id, execution_request, opts = {})
|
229
|
+
if @api_client.config.debugging
|
230
|
+
@api_client.config.logger.debug 'Calling API: V2CanaryControllerApi.initiate_canary_using_post ...'
|
231
|
+
end
|
232
|
+
# verify the required parameter 'canary_config_id' is set
|
233
|
+
if @api_client.config.client_side_validation && canary_config_id.nil?
|
234
|
+
fail ArgumentError, "Missing the required parameter 'canary_config_id' when calling V2CanaryControllerApi.initiate_canary_using_post"
|
235
|
+
end
|
236
|
+
# verify the required parameter 'execution_request' is set
|
237
|
+
if @api_client.config.client_side_validation && execution_request.nil?
|
238
|
+
fail ArgumentError, "Missing the required parameter 'execution_request' when calling V2CanaryControllerApi.initiate_canary_using_post"
|
239
|
+
end
|
240
|
+
# resource path
|
241
|
+
local_var_path = '/v2/canaries/canary/{canaryConfigId}'.sub('{' + 'canaryConfigId' + '}', canary_config_id.to_s)
|
242
|
+
|
243
|
+
# query parameters
|
244
|
+
query_params = {}
|
245
|
+
query_params[:'application'] = opts[:'application'] if !opts[:'application'].nil?
|
246
|
+
query_params[:'parentPipelineExecutionId'] = opts[:'parent_pipeline_execution_id'] if !opts[:'parent_pipeline_execution_id'].nil?
|
247
|
+
query_params[:'metricsAccountName'] = opts[:'metrics_account_name'] if !opts[:'metrics_account_name'].nil?
|
248
|
+
query_params[:'storageAccountName'] = opts[:'storage_account_name'] if !opts[:'storage_account_name'].nil?
|
249
|
+
query_params[:'configurationAccountName'] = opts[:'configuration_account_name'] if !opts[:'configuration_account_name'].nil?
|
250
|
+
|
251
|
+
# header parameters
|
252
|
+
header_params = {}
|
253
|
+
# HTTP header 'Accept' (if needed)
|
254
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
255
|
+
# HTTP header 'Content-Type'
|
256
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
257
|
+
|
258
|
+
# form parameters
|
259
|
+
form_params = {}
|
260
|
+
|
261
|
+
# http body (model)
|
262
|
+
post_body = @api_client.object_to_http_body(execution_request)
|
263
|
+
auth_names = []
|
264
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
265
|
+
:header_params => header_params,
|
266
|
+
:query_params => query_params,
|
267
|
+
:form_params => form_params,
|
268
|
+
:body => post_body,
|
269
|
+
:auth_names => auth_names,
|
270
|
+
:return_type => 'Object')
|
271
|
+
if @api_client.config.debugging
|
272
|
+
@api_client.config.logger.debug "API called: V2CanaryControllerApi#initiate_canary_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
273
|
+
end
|
274
|
+
return data, status_code, headers
|
275
|
+
end
|
276
|
+
# Retrieve a list of configured Kayenta accounts
|
277
|
+
# @param [Hash] opts the optional parameters
|
278
|
+
# @return [Array<Object>]
|
279
|
+
def list_credentials_using_get(opts = {})
|
280
|
+
data, _status_code, _headers = list_credentials_using_get_with_http_info(opts)
|
281
|
+
data
|
282
|
+
end
|
283
|
+
|
284
|
+
# Retrieve a list of configured Kayenta accounts
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
287
|
+
def list_credentials_using_get_with_http_info(opts = {})
|
288
|
+
if @api_client.config.debugging
|
289
|
+
@api_client.config.logger.debug 'Calling API: V2CanaryControllerApi.list_credentials_using_get ...'
|
290
|
+
end
|
291
|
+
# resource path
|
292
|
+
local_var_path = '/v2/canaries/credentials'
|
293
|
+
|
294
|
+
# query parameters
|
295
|
+
query_params = {}
|
296
|
+
|
297
|
+
# header parameters
|
298
|
+
header_params = {}
|
299
|
+
# HTTP header 'Accept' (if needed)
|
300
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
301
|
+
# HTTP header 'Content-Type'
|
302
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
303
|
+
|
304
|
+
# form parameters
|
305
|
+
form_params = {}
|
306
|
+
|
307
|
+
# http body (model)
|
308
|
+
post_body = nil
|
309
|
+
auth_names = []
|
310
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
311
|
+
:header_params => header_params,
|
312
|
+
:query_params => query_params,
|
313
|
+
:form_params => form_params,
|
314
|
+
:body => post_body,
|
315
|
+
:auth_names => auth_names,
|
316
|
+
:return_type => 'Array<Object>')
|
317
|
+
if @api_client.config.debugging
|
318
|
+
@api_client.config.logger.debug "API called: V2CanaryControllerApi#list_credentials_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
319
|
+
end
|
320
|
+
return data, status_code, headers
|
321
|
+
end
|
322
|
+
# Retrieve a list of all configured canary judges
|
323
|
+
# @param [Hash] opts the optional parameters
|
324
|
+
# @return [Array<Object>]
|
325
|
+
def list_judges_using_get(opts = {})
|
326
|
+
data, _status_code, _headers = list_judges_using_get_with_http_info(opts)
|
327
|
+
data
|
328
|
+
end
|
329
|
+
|
330
|
+
# Retrieve a list of all configured canary judges
|
331
|
+
# @param [Hash] opts the optional parameters
|
332
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
333
|
+
def list_judges_using_get_with_http_info(opts = {})
|
334
|
+
if @api_client.config.debugging
|
335
|
+
@api_client.config.logger.debug 'Calling API: V2CanaryControllerApi.list_judges_using_get ...'
|
336
|
+
end
|
337
|
+
# resource path
|
338
|
+
local_var_path = '/v2/canaries/judges'
|
339
|
+
|
340
|
+
# query parameters
|
341
|
+
query_params = {}
|
342
|
+
|
343
|
+
# header parameters
|
344
|
+
header_params = {}
|
345
|
+
# HTTP header 'Accept' (if needed)
|
346
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
347
|
+
# HTTP header 'Content-Type'
|
348
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
349
|
+
|
350
|
+
# form parameters
|
351
|
+
form_params = {}
|
352
|
+
|
353
|
+
# http body (model)
|
354
|
+
post_body = nil
|
355
|
+
auth_names = []
|
356
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
357
|
+
:header_params => header_params,
|
358
|
+
:query_params => query_params,
|
359
|
+
:form_params => form_params,
|
360
|
+
:body => post_body,
|
361
|
+
:auth_names => auth_names,
|
362
|
+
:return_type => 'Array<Object>')
|
363
|
+
if @api_client.config.debugging
|
364
|
+
@api_client.config.logger.debug "API called: V2CanaryControllerApi#list_judges_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
365
|
+
end
|
366
|
+
return data, status_code, headers
|
367
|
+
end
|
368
|
+
# Retrieve a list of descriptors for use in populating the canary config ui
|
369
|
+
# @param [Hash] opts the optional parameters
|
370
|
+
# @option opts [String] :filter filter
|
371
|
+
# @option opts [String] :metrics_account_name metricsAccountName
|
372
|
+
# @return [Array<Object>]
|
373
|
+
def list_metrics_service_metadata_using_get(opts = {})
|
374
|
+
data, _status_code, _headers = list_metrics_service_metadata_using_get_with_http_info(opts)
|
375
|
+
data
|
376
|
+
end
|
377
|
+
|
378
|
+
# Retrieve a list of descriptors for use in populating the canary config ui
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @option opts [String] :filter filter
|
381
|
+
# @option opts [String] :metrics_account_name metricsAccountName
|
382
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
383
|
+
def list_metrics_service_metadata_using_get_with_http_info(opts = {})
|
384
|
+
if @api_client.config.debugging
|
385
|
+
@api_client.config.logger.debug 'Calling API: V2CanaryControllerApi.list_metrics_service_metadata_using_get ...'
|
386
|
+
end
|
387
|
+
# resource path
|
388
|
+
local_var_path = '/v2/canaries/metadata/metricsService'
|
389
|
+
|
390
|
+
# query parameters
|
391
|
+
query_params = {}
|
392
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
393
|
+
query_params[:'metricsAccountName'] = opts[:'metrics_account_name'] if !opts[:'metrics_account_name'].nil?
|
394
|
+
|
395
|
+
# header parameters
|
396
|
+
header_params = {}
|
397
|
+
# HTTP header 'Accept' (if needed)
|
398
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
399
|
+
# HTTP header 'Content-Type'
|
400
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
401
|
+
|
402
|
+
# form parameters
|
403
|
+
form_params = {}
|
404
|
+
|
405
|
+
# http body (model)
|
406
|
+
post_body = nil
|
407
|
+
auth_names = []
|
408
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
409
|
+
:header_params => header_params,
|
410
|
+
:query_params => query_params,
|
411
|
+
:form_params => form_params,
|
412
|
+
:body => post_body,
|
413
|
+
:auth_names => auth_names,
|
414
|
+
:return_type => 'Array<Object>')
|
415
|
+
if @api_client.config.debugging
|
416
|
+
@api_client.config.logger.debug "API called: V2CanaryControllerApi#list_metrics_service_metadata_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
417
|
+
end
|
418
|
+
return data, status_code, headers
|
419
|
+
end
|
420
|
+
end
|
421
|
+
end
|
@@ -0,0 +1,412 @@
|
|
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 V2PipelineTemplatesControllerApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# (ALPHA) Create a pipeline template.
|
23
|
+
# @param pipeline_template pipelineTemplate
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :tag tag
|
26
|
+
# @return [nil]
|
27
|
+
def create_using_post1(pipeline_template, opts = {})
|
28
|
+
create_using_post1_with_http_info(pipeline_template, opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# (ALPHA) Create a pipeline template.
|
33
|
+
# @param pipeline_template pipelineTemplate
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @option opts [String] :tag tag
|
36
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
37
|
+
def create_using_post1_with_http_info(pipeline_template, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: V2PipelineTemplatesControllerApi.create_using_post1 ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'pipeline_template' is set
|
42
|
+
if @api_client.config.client_side_validation && pipeline_template.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'pipeline_template' when calling V2PipelineTemplatesControllerApi.create_using_post1"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/v2/pipelineTemplates/create'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = {}
|
50
|
+
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = @api_client.object_to_http_body(pipeline_template)
|
64
|
+
auth_names = []
|
65
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names)
|
71
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: V2PipelineTemplatesControllerApi#create_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
# Delete a pipeline template.
|
77
|
+
# @param id id
|
78
|
+
# @param [Hash] opts the optional parameters
|
79
|
+
# @option opts [String] :tag tag
|
80
|
+
# @option opts [String] :digest digest
|
81
|
+
# @option opts [String] :application application
|
82
|
+
# @return [Hash<String, Object>]
|
83
|
+
def delete_using_delete1(id, opts = {})
|
84
|
+
data, _status_code, _headers = delete_using_delete1_with_http_info(id, opts)
|
85
|
+
data
|
86
|
+
end
|
87
|
+
|
88
|
+
# Delete a pipeline template.
|
89
|
+
# @param id id
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [String] :tag tag
|
92
|
+
# @option opts [String] :digest digest
|
93
|
+
# @option opts [String] :application application
|
94
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
95
|
+
def delete_using_delete1_with_http_info(id, opts = {})
|
96
|
+
if @api_client.config.debugging
|
97
|
+
@api_client.config.logger.debug 'Calling API: V2PipelineTemplatesControllerApi.delete_using_delete1 ...'
|
98
|
+
end
|
99
|
+
# verify the required parameter 'id' is set
|
100
|
+
if @api_client.config.client_side_validation && id.nil?
|
101
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V2PipelineTemplatesControllerApi.delete_using_delete1"
|
102
|
+
end
|
103
|
+
# resource path
|
104
|
+
local_var_path = '/v2/pipelineTemplates/{id}'.sub('{' + 'id' + '}', id.to_s)
|
105
|
+
|
106
|
+
# query parameters
|
107
|
+
query_params = {}
|
108
|
+
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
109
|
+
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
110
|
+
query_params[:'application'] = opts[:'application'] if !opts[:'application'].nil?
|
111
|
+
|
112
|
+
# header parameters
|
113
|
+
header_params = {}
|
114
|
+
# HTTP header 'Accept' (if needed)
|
115
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
116
|
+
# HTTP header 'Content-Type'
|
117
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
118
|
+
|
119
|
+
# form parameters
|
120
|
+
form_params = {}
|
121
|
+
|
122
|
+
# http body (model)
|
123
|
+
post_body = nil
|
124
|
+
auth_names = []
|
125
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
126
|
+
:header_params => header_params,
|
127
|
+
:query_params => query_params,
|
128
|
+
:form_params => form_params,
|
129
|
+
:body => post_body,
|
130
|
+
:auth_names => auth_names,
|
131
|
+
:return_type => 'Hash<String, Object>')
|
132
|
+
if @api_client.config.debugging
|
133
|
+
@api_client.config.logger.debug "API called: V2PipelineTemplatesControllerApi#delete_using_delete1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
134
|
+
end
|
135
|
+
return data, status_code, headers
|
136
|
+
end
|
137
|
+
# (ALPHA) Get a pipeline template.
|
138
|
+
# @param id id
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @option opts [String] :tag tag
|
141
|
+
# @option opts [String] :digest digest
|
142
|
+
# @return [Hash<String, Object>]
|
143
|
+
def get_using_get2(id, opts = {})
|
144
|
+
data, _status_code, _headers = get_using_get2_with_http_info(id, opts)
|
145
|
+
data
|
146
|
+
end
|
147
|
+
|
148
|
+
# (ALPHA) Get a pipeline template.
|
149
|
+
# @param id id
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :tag tag
|
152
|
+
# @option opts [String] :digest digest
|
153
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
154
|
+
def get_using_get2_with_http_info(id, opts = {})
|
155
|
+
if @api_client.config.debugging
|
156
|
+
@api_client.config.logger.debug 'Calling API: V2PipelineTemplatesControllerApi.get_using_get2 ...'
|
157
|
+
end
|
158
|
+
# verify the required parameter 'id' is set
|
159
|
+
if @api_client.config.client_side_validation && id.nil?
|
160
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V2PipelineTemplatesControllerApi.get_using_get2"
|
161
|
+
end
|
162
|
+
# resource path
|
163
|
+
local_var_path = '/v2/pipelineTemplates/{id}'.sub('{' + 'id' + '}', id.to_s)
|
164
|
+
|
165
|
+
# query parameters
|
166
|
+
query_params = {}
|
167
|
+
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
168
|
+
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
169
|
+
|
170
|
+
# header parameters
|
171
|
+
header_params = {}
|
172
|
+
# HTTP header 'Accept' (if needed)
|
173
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
174
|
+
# HTTP header 'Content-Type'
|
175
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
176
|
+
|
177
|
+
# form parameters
|
178
|
+
form_params = {}
|
179
|
+
|
180
|
+
# http body (model)
|
181
|
+
post_body = nil
|
182
|
+
auth_names = []
|
183
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
184
|
+
:header_params => header_params,
|
185
|
+
:query_params => query_params,
|
186
|
+
:form_params => form_params,
|
187
|
+
:body => post_body,
|
188
|
+
:auth_names => auth_names,
|
189
|
+
:return_type => 'Hash<String, Object>')
|
190
|
+
if @api_client.config.debugging
|
191
|
+
@api_client.config.logger.debug "API called: V2PipelineTemplatesControllerApi#get_using_get2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
192
|
+
end
|
193
|
+
return data, status_code, headers
|
194
|
+
end
|
195
|
+
# (ALPHA) List all pipelines that implement a pipeline template
|
196
|
+
# @param id id
|
197
|
+
# @param [Hash] opts the optional parameters
|
198
|
+
# @return [Array<Object>]
|
199
|
+
def list_pipeline_template_dependents_using_get1(id, opts = {})
|
200
|
+
data, _status_code, _headers = list_pipeline_template_dependents_using_get1_with_http_info(id, opts)
|
201
|
+
data
|
202
|
+
end
|
203
|
+
|
204
|
+
# (ALPHA) List all pipelines that implement a pipeline template
|
205
|
+
# @param id id
|
206
|
+
# @param [Hash] opts the optional parameters
|
207
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
208
|
+
def list_pipeline_template_dependents_using_get1_with_http_info(id, opts = {})
|
209
|
+
if @api_client.config.debugging
|
210
|
+
@api_client.config.logger.debug 'Calling API: V2PipelineTemplatesControllerApi.list_pipeline_template_dependents_using_get1 ...'
|
211
|
+
end
|
212
|
+
# verify the required parameter 'id' is set
|
213
|
+
if @api_client.config.client_side_validation && id.nil?
|
214
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V2PipelineTemplatesControllerApi.list_pipeline_template_dependents_using_get1"
|
215
|
+
end
|
216
|
+
# resource path
|
217
|
+
local_var_path = '/v2/pipelineTemplates/{id}/dependents'.sub('{' + 'id' + '}', id.to_s)
|
218
|
+
|
219
|
+
# query parameters
|
220
|
+
query_params = {}
|
221
|
+
|
222
|
+
# header parameters
|
223
|
+
header_params = {}
|
224
|
+
# HTTP header 'Accept' (if needed)
|
225
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
226
|
+
# HTTP header 'Content-Type'
|
227
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
228
|
+
|
229
|
+
# form parameters
|
230
|
+
form_params = {}
|
231
|
+
|
232
|
+
# http body (model)
|
233
|
+
post_body = nil
|
234
|
+
auth_names = []
|
235
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
236
|
+
:header_params => header_params,
|
237
|
+
:query_params => query_params,
|
238
|
+
:form_params => form_params,
|
239
|
+
:body => post_body,
|
240
|
+
:auth_names => auth_names,
|
241
|
+
:return_type => 'Array<Object>')
|
242
|
+
if @api_client.config.debugging
|
243
|
+
@api_client.config.logger.debug "API called: V2PipelineTemplatesControllerApi#list_pipeline_template_dependents_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
244
|
+
end
|
245
|
+
return data, status_code, headers
|
246
|
+
end
|
247
|
+
# (ALPHA) List pipeline templates.
|
248
|
+
# @param [Hash] opts the optional parameters
|
249
|
+
# @option opts [Array<String>] :scopes scopes
|
250
|
+
# @return [Array<Object>]
|
251
|
+
def list_using_get1(opts = {})
|
252
|
+
data, _status_code, _headers = list_using_get1_with_http_info(opts)
|
253
|
+
data
|
254
|
+
end
|
255
|
+
|
256
|
+
# (ALPHA) List pipeline templates.
|
257
|
+
# @param [Hash] opts the optional parameters
|
258
|
+
# @option opts [Array<String>] :scopes scopes
|
259
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
260
|
+
def list_using_get1_with_http_info(opts = {})
|
261
|
+
if @api_client.config.debugging
|
262
|
+
@api_client.config.logger.debug 'Calling API: V2PipelineTemplatesControllerApi.list_using_get1 ...'
|
263
|
+
end
|
264
|
+
# resource path
|
265
|
+
local_var_path = '/v2/pipelineTemplates'
|
266
|
+
|
267
|
+
# query parameters
|
268
|
+
query_params = {}
|
269
|
+
query_params[:'scopes'] = @api_client.build_collection_param(opts[:'scopes'], :multi) if !opts[:'scopes'].nil?
|
270
|
+
|
271
|
+
# header parameters
|
272
|
+
header_params = {}
|
273
|
+
# HTTP header 'Accept' (if needed)
|
274
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
275
|
+
# HTTP header 'Content-Type'
|
276
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
277
|
+
|
278
|
+
# form parameters
|
279
|
+
form_params = {}
|
280
|
+
|
281
|
+
# http body (model)
|
282
|
+
post_body = nil
|
283
|
+
auth_names = []
|
284
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
285
|
+
:header_params => header_params,
|
286
|
+
:query_params => query_params,
|
287
|
+
:form_params => form_params,
|
288
|
+
:body => post_body,
|
289
|
+
:auth_names => auth_names,
|
290
|
+
:return_type => 'Array<Object>')
|
291
|
+
if @api_client.config.debugging
|
292
|
+
@api_client.config.logger.debug "API called: V2PipelineTemplatesControllerApi#list_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
293
|
+
end
|
294
|
+
return data, status_code, headers
|
295
|
+
end
|
296
|
+
# (ALPHA) Plan a pipeline template configuration.
|
297
|
+
# @param pipeline pipeline
|
298
|
+
# @param [Hash] opts the optional parameters
|
299
|
+
# @return [Hash<String, Object>]
|
300
|
+
def plan_using_post(pipeline, opts = {})
|
301
|
+
data, _status_code, _headers = plan_using_post_with_http_info(pipeline, opts)
|
302
|
+
data
|
303
|
+
end
|
304
|
+
|
305
|
+
# (ALPHA) Plan a pipeline template configuration.
|
306
|
+
# @param pipeline pipeline
|
307
|
+
# @param [Hash] opts the optional parameters
|
308
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
309
|
+
def plan_using_post_with_http_info(pipeline, opts = {})
|
310
|
+
if @api_client.config.debugging
|
311
|
+
@api_client.config.logger.debug 'Calling API: V2PipelineTemplatesControllerApi.plan_using_post ...'
|
312
|
+
end
|
313
|
+
# verify the required parameter 'pipeline' is set
|
314
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
315
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling V2PipelineTemplatesControllerApi.plan_using_post"
|
316
|
+
end
|
317
|
+
# resource path
|
318
|
+
local_var_path = '/v2/pipelineTemplates/plan'
|
319
|
+
|
320
|
+
# query parameters
|
321
|
+
query_params = {}
|
322
|
+
|
323
|
+
# header parameters
|
324
|
+
header_params = {}
|
325
|
+
# HTTP header 'Accept' (if needed)
|
326
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
327
|
+
# HTTP header 'Content-Type'
|
328
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
329
|
+
|
330
|
+
# form parameters
|
331
|
+
form_params = {}
|
332
|
+
|
333
|
+
# http body (model)
|
334
|
+
post_body = @api_client.object_to_http_body(pipeline)
|
335
|
+
auth_names = []
|
336
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
337
|
+
:header_params => header_params,
|
338
|
+
:query_params => query_params,
|
339
|
+
:form_params => form_params,
|
340
|
+
:body => post_body,
|
341
|
+
:auth_names => auth_names,
|
342
|
+
:return_type => 'Hash<String, Object>')
|
343
|
+
if @api_client.config.debugging
|
344
|
+
@api_client.config.logger.debug "API called: V2PipelineTemplatesControllerApi#plan_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
345
|
+
end
|
346
|
+
return data, status_code, headers
|
347
|
+
end
|
348
|
+
# (ALPHA) Update a pipeline template.
|
349
|
+
# @param id id
|
350
|
+
# @param pipeline_template pipelineTemplate
|
351
|
+
# @param [Hash] opts the optional parameters
|
352
|
+
# @option opts [String] :tag tag
|
353
|
+
# @option opts [BOOLEAN] :skip_plan_dependents skipPlanDependents (default to false)
|
354
|
+
# @return [nil]
|
355
|
+
def update_using_post1(id, pipeline_template, opts = {})
|
356
|
+
update_using_post1_with_http_info(id, pipeline_template, opts)
|
357
|
+
nil
|
358
|
+
end
|
359
|
+
|
360
|
+
# (ALPHA) Update a pipeline template.
|
361
|
+
# @param id id
|
362
|
+
# @param pipeline_template pipelineTemplate
|
363
|
+
# @param [Hash] opts the optional parameters
|
364
|
+
# @option opts [String] :tag tag
|
365
|
+
# @option opts [BOOLEAN] :skip_plan_dependents skipPlanDependents
|
366
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
367
|
+
def update_using_post1_with_http_info(id, pipeline_template, opts = {})
|
368
|
+
if @api_client.config.debugging
|
369
|
+
@api_client.config.logger.debug 'Calling API: V2PipelineTemplatesControllerApi.update_using_post1 ...'
|
370
|
+
end
|
371
|
+
# verify the required parameter 'id' is set
|
372
|
+
if @api_client.config.client_side_validation && id.nil?
|
373
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V2PipelineTemplatesControllerApi.update_using_post1"
|
374
|
+
end
|
375
|
+
# verify the required parameter 'pipeline_template' is set
|
376
|
+
if @api_client.config.client_side_validation && pipeline_template.nil?
|
377
|
+
fail ArgumentError, "Missing the required parameter 'pipeline_template' when calling V2PipelineTemplatesControllerApi.update_using_post1"
|
378
|
+
end
|
379
|
+
# resource path
|
380
|
+
local_var_path = '/v2/pipelineTemplates/update/{id}'.sub('{' + 'id' + '}', id.to_s)
|
381
|
+
|
382
|
+
# query parameters
|
383
|
+
query_params = {}
|
384
|
+
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
385
|
+
query_params[:'skipPlanDependents'] = opts[:'skip_plan_dependents'] if !opts[:'skip_plan_dependents'].nil?
|
386
|
+
|
387
|
+
# header parameters
|
388
|
+
header_params = {}
|
389
|
+
# HTTP header 'Accept' (if needed)
|
390
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
391
|
+
# HTTP header 'Content-Type'
|
392
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
393
|
+
|
394
|
+
# form parameters
|
395
|
+
form_params = {}
|
396
|
+
|
397
|
+
# http body (model)
|
398
|
+
post_body = @api_client.object_to_http_body(pipeline_template)
|
399
|
+
auth_names = []
|
400
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
401
|
+
:header_params => header_params,
|
402
|
+
:query_params => query_params,
|
403
|
+
:form_params => form_params,
|
404
|
+
:body => post_body,
|
405
|
+
:auth_names => auth_names)
|
406
|
+
if @api_client.config.debugging
|
407
|
+
@api_client.config.logger.debug "API called: V2PipelineTemplatesControllerApi#update_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
408
|
+
end
|
409
|
+
return data, status_code, headers
|
410
|
+
end
|
411
|
+
end
|
412
|
+
end
|