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.gemspec +45 -0
- metadata +426 -0
|
@@ -0,0 +1,127 @@
|
|
|
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 NetworkControllerApi
|
|
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 networks for a given cloud provider
|
|
23
|
+
# @param cloud_provider cloudProvider
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
26
|
+
# @return [Array<Object>]
|
|
27
|
+
def all_by_cloud_provider_using_get(cloud_provider, opts = {})
|
|
28
|
+
data, _status_code, _headers = all_by_cloud_provider_using_get_with_http_info(cloud_provider, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Retrieve a list of networks for a given cloud provider
|
|
33
|
+
# @param cloud_provider cloudProvider
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
36
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
|
37
|
+
def all_by_cloud_provider_using_get_with_http_info(cloud_provider, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: NetworkControllerApi.all_by_cloud_provider_using_get ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'cloud_provider' is set
|
|
42
|
+
if @api_client.config.client_side_validation && cloud_provider.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'cloud_provider' when calling NetworkControllerApi.all_by_cloud_provider_using_get"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/networks/{cloudProvider}'.sub('{' + 'cloudProvider' + '}', cloud_provider.to_s)
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
|
|
58
|
+
|
|
59
|
+
# form parameters
|
|
60
|
+
form_params = {}
|
|
61
|
+
|
|
62
|
+
# http body (model)
|
|
63
|
+
post_body = nil
|
|
64
|
+
auth_names = []
|
|
65
|
+
data, status_code, headers = @api_client.call_api(:GET, 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
|
+
:return_type => 'Array<Object>')
|
|
72
|
+
if @api_client.config.debugging
|
|
73
|
+
@api_client.config.logger.debug "API called: NetworkControllerApi#all_by_cloud_provider_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
74
|
+
end
|
|
75
|
+
return data, status_code, headers
|
|
76
|
+
end
|
|
77
|
+
# Retrieve a list of networks, grouped by cloud provider
|
|
78
|
+
# @param [Hash] opts the optional parameters
|
|
79
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
80
|
+
# @return [Hash<String, Object>]
|
|
81
|
+
def all_using_get2(opts = {})
|
|
82
|
+
data, _status_code, _headers = all_using_get2_with_http_info(opts)
|
|
83
|
+
data
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Retrieve a list of networks, grouped by cloud provider
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
89
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
90
|
+
def all_using_get2_with_http_info(opts = {})
|
|
91
|
+
if @api_client.config.debugging
|
|
92
|
+
@api_client.config.logger.debug 'Calling API: NetworkControllerApi.all_using_get2 ...'
|
|
93
|
+
end
|
|
94
|
+
# resource path
|
|
95
|
+
local_var_path = '/networks'
|
|
96
|
+
|
|
97
|
+
# query parameters
|
|
98
|
+
query_params = {}
|
|
99
|
+
|
|
100
|
+
# header parameters
|
|
101
|
+
header_params = {}
|
|
102
|
+
# HTTP header 'Accept' (if needed)
|
|
103
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
104
|
+
# HTTP header 'Content-Type'
|
|
105
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
106
|
+
header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
|
|
107
|
+
|
|
108
|
+
# form parameters
|
|
109
|
+
form_params = {}
|
|
110
|
+
|
|
111
|
+
# http body (model)
|
|
112
|
+
post_body = nil
|
|
113
|
+
auth_names = []
|
|
114
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
115
|
+
:header_params => header_params,
|
|
116
|
+
:query_params => query_params,
|
|
117
|
+
:form_params => form_params,
|
|
118
|
+
:body => post_body,
|
|
119
|
+
:auth_names => auth_names,
|
|
120
|
+
:return_type => 'Hash<String, Object>')
|
|
121
|
+
if @api_client.config.debugging
|
|
122
|
+
@api_client.config.logger.debug "API called: NetworkControllerApi#all_using_get2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
123
|
+
end
|
|
124
|
+
return data, status_code, headers
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
@@ -0,0 +1,176 @@
|
|
|
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 PipelineConfigControllerApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Convert a pipeline config to a pipeline template.
|
|
23
|
+
# @param pipeline_config_id pipelineConfigId
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [String]
|
|
26
|
+
def convert_pipeline_config_to_pipeline_template_using_get(pipeline_config_id, opts = {})
|
|
27
|
+
data, _status_code, _headers = convert_pipeline_config_to_pipeline_template_using_get_with_http_info(pipeline_config_id, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Convert a pipeline config to a pipeline template.
|
|
32
|
+
# @param pipeline_config_id pipelineConfigId
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
35
|
+
def convert_pipeline_config_to_pipeline_template_using_get_with_http_info(pipeline_config_id, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: PipelineConfigControllerApi.convert_pipeline_config_to_pipeline_template_using_get ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'pipeline_config_id' is set
|
|
40
|
+
if @api_client.config.client_side_validation && pipeline_config_id.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'pipeline_config_id' when calling PipelineConfigControllerApi.convert_pipeline_config_to_pipeline_template_using_get"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/pipelineConfigs/{pipelineConfigId}/convertToTemplate'.sub('{' + 'pipelineConfigId' + '}', pipeline_config_id.to_s)
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
53
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = nil
|
|
61
|
+
auth_names = []
|
|
62
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
63
|
+
:header_params => header_params,
|
|
64
|
+
:query_params => query_params,
|
|
65
|
+
:form_params => form_params,
|
|
66
|
+
:body => post_body,
|
|
67
|
+
:auth_names => auth_names,
|
|
68
|
+
:return_type => 'String')
|
|
69
|
+
if @api_client.config.debugging
|
|
70
|
+
@api_client.config.logger.debug "API called: PipelineConfigControllerApi#convert_pipeline_config_to_pipeline_template_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
71
|
+
end
|
|
72
|
+
return data, status_code, headers
|
|
73
|
+
end
|
|
74
|
+
# Get all pipeline configs.
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @return [Array<Object>]
|
|
77
|
+
def get_all_pipeline_configs_using_get(opts = {})
|
|
78
|
+
data, _status_code, _headers = get_all_pipeline_configs_using_get_with_http_info(opts)
|
|
79
|
+
data
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Get all pipeline configs.
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
|
85
|
+
def get_all_pipeline_configs_using_get_with_http_info(opts = {})
|
|
86
|
+
if @api_client.config.debugging
|
|
87
|
+
@api_client.config.logger.debug 'Calling API: PipelineConfigControllerApi.get_all_pipeline_configs_using_get ...'
|
|
88
|
+
end
|
|
89
|
+
# resource path
|
|
90
|
+
local_var_path = '/pipelineConfigs'
|
|
91
|
+
|
|
92
|
+
# query parameters
|
|
93
|
+
query_params = {}
|
|
94
|
+
|
|
95
|
+
# header parameters
|
|
96
|
+
header_params = {}
|
|
97
|
+
# HTTP header 'Accept' (if needed)
|
|
98
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
99
|
+
# HTTP header 'Content-Type'
|
|
100
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
101
|
+
|
|
102
|
+
# form parameters
|
|
103
|
+
form_params = {}
|
|
104
|
+
|
|
105
|
+
# http body (model)
|
|
106
|
+
post_body = nil
|
|
107
|
+
auth_names = []
|
|
108
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
109
|
+
:header_params => header_params,
|
|
110
|
+
:query_params => query_params,
|
|
111
|
+
:form_params => form_params,
|
|
112
|
+
:body => post_body,
|
|
113
|
+
:auth_names => auth_names,
|
|
114
|
+
:return_type => 'Array<Object>')
|
|
115
|
+
if @api_client.config.debugging
|
|
116
|
+
@api_client.config.logger.debug "API called: PipelineConfigControllerApi#get_all_pipeline_configs_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
117
|
+
end
|
|
118
|
+
return data, status_code, headers
|
|
119
|
+
end
|
|
120
|
+
# Get pipeline config history.
|
|
121
|
+
# @param pipeline_config_id pipelineConfigId
|
|
122
|
+
# @param [Hash] opts the optional parameters
|
|
123
|
+
# @option opts [Integer] :limit limit (default to 20)
|
|
124
|
+
# @return [Array<Object>]
|
|
125
|
+
def get_pipeline_config_history_using_get(pipeline_config_id, opts = {})
|
|
126
|
+
data, _status_code, _headers = get_pipeline_config_history_using_get_with_http_info(pipeline_config_id, opts)
|
|
127
|
+
data
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Get pipeline config history.
|
|
131
|
+
# @param pipeline_config_id pipelineConfigId
|
|
132
|
+
# @param [Hash] opts the optional parameters
|
|
133
|
+
# @option opts [Integer] :limit limit
|
|
134
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
|
135
|
+
def get_pipeline_config_history_using_get_with_http_info(pipeline_config_id, opts = {})
|
|
136
|
+
if @api_client.config.debugging
|
|
137
|
+
@api_client.config.logger.debug 'Calling API: PipelineConfigControllerApi.get_pipeline_config_history_using_get ...'
|
|
138
|
+
end
|
|
139
|
+
# verify the required parameter 'pipeline_config_id' is set
|
|
140
|
+
if @api_client.config.client_side_validation && pipeline_config_id.nil?
|
|
141
|
+
fail ArgumentError, "Missing the required parameter 'pipeline_config_id' when calling PipelineConfigControllerApi.get_pipeline_config_history_using_get"
|
|
142
|
+
end
|
|
143
|
+
# resource path
|
|
144
|
+
local_var_path = '/pipelineConfigs/{pipelineConfigId}/history'.sub('{' + 'pipelineConfigId' + '}', pipeline_config_id.to_s)
|
|
145
|
+
|
|
146
|
+
# query parameters
|
|
147
|
+
query_params = {}
|
|
148
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
149
|
+
|
|
150
|
+
# header parameters
|
|
151
|
+
header_params = {}
|
|
152
|
+
# HTTP header 'Accept' (if needed)
|
|
153
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
154
|
+
# HTTP header 'Content-Type'
|
|
155
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
156
|
+
|
|
157
|
+
# form parameters
|
|
158
|
+
form_params = {}
|
|
159
|
+
|
|
160
|
+
# http body (model)
|
|
161
|
+
post_body = nil
|
|
162
|
+
auth_names = []
|
|
163
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
164
|
+
:header_params => header_params,
|
|
165
|
+
:query_params => query_params,
|
|
166
|
+
:form_params => form_params,
|
|
167
|
+
:body => post_body,
|
|
168
|
+
:auth_names => auth_names,
|
|
169
|
+
:return_type => 'Array<Object>')
|
|
170
|
+
if @api_client.config.debugging
|
|
171
|
+
@api_client.config.logger.debug "API called: PipelineConfigControllerApi#get_pipeline_config_history_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
172
|
+
end
|
|
173
|
+
return data, status_code, headers
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
@@ -0,0 +1,1268 @@
|
|
|
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 PipelineControllerApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Cancel a pipeline execution
|
|
23
|
+
# @param id id
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :reason reason
|
|
26
|
+
# @option opts [BOOLEAN] :force force (default to false)
|
|
27
|
+
# @return [nil]
|
|
28
|
+
def cancel_pipeline_using_put1(id, opts = {})
|
|
29
|
+
cancel_pipeline_using_put1_with_http_info(id, opts)
|
|
30
|
+
nil
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Cancel a pipeline execution
|
|
34
|
+
# @param id id
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @option opts [String] :reason reason
|
|
37
|
+
# @option opts [BOOLEAN] :force force
|
|
38
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
39
|
+
def cancel_pipeline_using_put1_with_http_info(id, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.cancel_pipeline_using_put1 ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'id' is set
|
|
44
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.cancel_pipeline_using_put1"
|
|
46
|
+
end
|
|
47
|
+
# resource path
|
|
48
|
+
local_var_path = '/pipelines/{id}/cancel'.sub('{' + 'id' + '}', id.to_s)
|
|
49
|
+
|
|
50
|
+
# query parameters
|
|
51
|
+
query_params = {}
|
|
52
|
+
query_params[:'reason'] = opts[:'reason'] if !opts[:'reason'].nil?
|
|
53
|
+
query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
|
54
|
+
|
|
55
|
+
# header parameters
|
|
56
|
+
header_params = {}
|
|
57
|
+
# HTTP header 'Accept' (if needed)
|
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
59
|
+
# HTTP header 'Content-Type'
|
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
61
|
+
|
|
62
|
+
# form parameters
|
|
63
|
+
form_params = {}
|
|
64
|
+
|
|
65
|
+
# http body (model)
|
|
66
|
+
post_body = nil
|
|
67
|
+
auth_names = []
|
|
68
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
69
|
+
:header_params => header_params,
|
|
70
|
+
:query_params => query_params,
|
|
71
|
+
:form_params => form_params,
|
|
72
|
+
:body => post_body,
|
|
73
|
+
:auth_names => auth_names)
|
|
74
|
+
if @api_client.config.debugging
|
|
75
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#cancel_pipeline_using_put1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
76
|
+
end
|
|
77
|
+
return data, status_code, headers
|
|
78
|
+
end
|
|
79
|
+
# Delete a pipeline definition
|
|
80
|
+
# @param application application
|
|
81
|
+
# @param pipeline_name pipelineName
|
|
82
|
+
# @param [Hash] opts the optional parameters
|
|
83
|
+
# @return [nil]
|
|
84
|
+
def delete_pipeline_using_delete(application, pipeline_name, opts = {})
|
|
85
|
+
delete_pipeline_using_delete_with_http_info(application, pipeline_name, opts)
|
|
86
|
+
nil
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Delete a pipeline definition
|
|
90
|
+
# @param application application
|
|
91
|
+
# @param pipeline_name pipelineName
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
94
|
+
def delete_pipeline_using_delete_with_http_info(application, pipeline_name, opts = {})
|
|
95
|
+
if @api_client.config.debugging
|
|
96
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.delete_pipeline_using_delete ...'
|
|
97
|
+
end
|
|
98
|
+
# verify the required parameter 'application' is set
|
|
99
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
100
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling PipelineControllerApi.delete_pipeline_using_delete"
|
|
101
|
+
end
|
|
102
|
+
# verify the required parameter 'pipeline_name' is set
|
|
103
|
+
if @api_client.config.client_side_validation && pipeline_name.nil?
|
|
104
|
+
fail ArgumentError, "Missing the required parameter 'pipeline_name' when calling PipelineControllerApi.delete_pipeline_using_delete"
|
|
105
|
+
end
|
|
106
|
+
# resource path
|
|
107
|
+
local_var_path = '/pipelines/{application}/{pipelineName}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'pipelineName' + '}', pipeline_name.to_s)
|
|
108
|
+
|
|
109
|
+
# query parameters
|
|
110
|
+
query_params = {}
|
|
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
|
+
if @api_client.config.debugging
|
|
132
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#delete_pipeline_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
133
|
+
end
|
|
134
|
+
return data, status_code, headers
|
|
135
|
+
end
|
|
136
|
+
# Delete a pipeline execution
|
|
137
|
+
# @param id id
|
|
138
|
+
# @param [Hash] opts the optional parameters
|
|
139
|
+
# @return [Hash<String, Object>]
|
|
140
|
+
def delete_pipeline_using_delete1(id, opts = {})
|
|
141
|
+
data, _status_code, _headers = delete_pipeline_using_delete1_with_http_info(id, opts)
|
|
142
|
+
data
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Delete a pipeline execution
|
|
146
|
+
# @param id id
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
149
|
+
def delete_pipeline_using_delete1_with_http_info(id, opts = {})
|
|
150
|
+
if @api_client.config.debugging
|
|
151
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.delete_pipeline_using_delete1 ...'
|
|
152
|
+
end
|
|
153
|
+
# verify the required parameter 'id' is set
|
|
154
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.delete_pipeline_using_delete1"
|
|
156
|
+
end
|
|
157
|
+
# resource path
|
|
158
|
+
local_var_path = '/pipelines/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
159
|
+
|
|
160
|
+
# query parameters
|
|
161
|
+
query_params = {}
|
|
162
|
+
|
|
163
|
+
# header parameters
|
|
164
|
+
header_params = {}
|
|
165
|
+
# HTTP header 'Accept' (if needed)
|
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
167
|
+
# HTTP header 'Content-Type'
|
|
168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
169
|
+
|
|
170
|
+
# form parameters
|
|
171
|
+
form_params = {}
|
|
172
|
+
|
|
173
|
+
# http body (model)
|
|
174
|
+
post_body = nil
|
|
175
|
+
auth_names = []
|
|
176
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
177
|
+
:header_params => header_params,
|
|
178
|
+
:query_params => query_params,
|
|
179
|
+
:form_params => form_params,
|
|
180
|
+
:body => post_body,
|
|
181
|
+
:auth_names => auth_names,
|
|
182
|
+
:return_type => 'Hash<String, Object>')
|
|
183
|
+
if @api_client.config.debugging
|
|
184
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#delete_pipeline_using_delete1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
185
|
+
end
|
|
186
|
+
return data, status_code, headers
|
|
187
|
+
end
|
|
188
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
189
|
+
# @param id id
|
|
190
|
+
# @param expression expression
|
|
191
|
+
# @param [Hash] opts the optional parameters
|
|
192
|
+
# @return [Hash<String, Object>]
|
|
193
|
+
def evaluate_expression_for_execution_using_delete(id, expression, opts = {})
|
|
194
|
+
data, _status_code, _headers = evaluate_expression_for_execution_using_delete_with_http_info(id, expression, opts)
|
|
195
|
+
data
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
199
|
+
# @param id id
|
|
200
|
+
# @param expression expression
|
|
201
|
+
# @param [Hash] opts the optional parameters
|
|
202
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
203
|
+
def evaluate_expression_for_execution_using_delete_with_http_info(id, expression, opts = {})
|
|
204
|
+
if @api_client.config.debugging
|
|
205
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.evaluate_expression_for_execution_using_delete ...'
|
|
206
|
+
end
|
|
207
|
+
# verify the required parameter 'id' is set
|
|
208
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
209
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.evaluate_expression_for_execution_using_delete"
|
|
210
|
+
end
|
|
211
|
+
# verify the required parameter 'expression' is set
|
|
212
|
+
if @api_client.config.client_side_validation && expression.nil?
|
|
213
|
+
fail ArgumentError, "Missing the required parameter 'expression' when calling PipelineControllerApi.evaluate_expression_for_execution_using_delete"
|
|
214
|
+
end
|
|
215
|
+
# resource path
|
|
216
|
+
local_var_path = '/pipelines/{id}/evaluateExpression'.sub('{' + 'id' + '}', id.to_s)
|
|
217
|
+
|
|
218
|
+
# query parameters
|
|
219
|
+
query_params = {}
|
|
220
|
+
query_params[:'expression'] = expression
|
|
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(:DELETE, 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 => 'Hash<String, Object>')
|
|
242
|
+
if @api_client.config.debugging
|
|
243
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#evaluate_expression_for_execution_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
244
|
+
end
|
|
245
|
+
return data, status_code, headers
|
|
246
|
+
end
|
|
247
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
248
|
+
# @param id id
|
|
249
|
+
# @param expression expression
|
|
250
|
+
# @param [Hash] opts the optional parameters
|
|
251
|
+
# @return [Hash<String, Object>]
|
|
252
|
+
def evaluate_expression_for_execution_using_get(id, expression, opts = {})
|
|
253
|
+
data, _status_code, _headers = evaluate_expression_for_execution_using_get_with_http_info(id, expression, opts)
|
|
254
|
+
data
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
258
|
+
# @param id id
|
|
259
|
+
# @param expression expression
|
|
260
|
+
# @param [Hash] opts the optional parameters
|
|
261
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
262
|
+
def evaluate_expression_for_execution_using_get_with_http_info(id, expression, opts = {})
|
|
263
|
+
if @api_client.config.debugging
|
|
264
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.evaluate_expression_for_execution_using_get ...'
|
|
265
|
+
end
|
|
266
|
+
# verify the required parameter 'id' is set
|
|
267
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
268
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.evaluate_expression_for_execution_using_get"
|
|
269
|
+
end
|
|
270
|
+
# verify the required parameter 'expression' is set
|
|
271
|
+
if @api_client.config.client_side_validation && expression.nil?
|
|
272
|
+
fail ArgumentError, "Missing the required parameter 'expression' when calling PipelineControllerApi.evaluate_expression_for_execution_using_get"
|
|
273
|
+
end
|
|
274
|
+
# resource path
|
|
275
|
+
local_var_path = '/pipelines/{id}/evaluateExpression'.sub('{' + 'id' + '}', id.to_s)
|
|
276
|
+
|
|
277
|
+
# query parameters
|
|
278
|
+
query_params = {}
|
|
279
|
+
query_params[:'expression'] = expression
|
|
280
|
+
|
|
281
|
+
# header parameters
|
|
282
|
+
header_params = {}
|
|
283
|
+
# HTTP header 'Accept' (if needed)
|
|
284
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
285
|
+
# HTTP header 'Content-Type'
|
|
286
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
287
|
+
|
|
288
|
+
# form parameters
|
|
289
|
+
form_params = {}
|
|
290
|
+
|
|
291
|
+
# http body (model)
|
|
292
|
+
post_body = nil
|
|
293
|
+
auth_names = []
|
|
294
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
295
|
+
:header_params => header_params,
|
|
296
|
+
:query_params => query_params,
|
|
297
|
+
:form_params => form_params,
|
|
298
|
+
:body => post_body,
|
|
299
|
+
:auth_names => auth_names,
|
|
300
|
+
:return_type => 'Hash<String, Object>')
|
|
301
|
+
if @api_client.config.debugging
|
|
302
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#evaluate_expression_for_execution_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
303
|
+
end
|
|
304
|
+
return data, status_code, headers
|
|
305
|
+
end
|
|
306
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
307
|
+
# @param id id
|
|
308
|
+
# @param expression expression
|
|
309
|
+
# @param [Hash] opts the optional parameters
|
|
310
|
+
# @return [Hash<String, Object>]
|
|
311
|
+
def evaluate_expression_for_execution_using_head(id, expression, opts = {})
|
|
312
|
+
data, _status_code, _headers = evaluate_expression_for_execution_using_head_with_http_info(id, expression, opts)
|
|
313
|
+
data
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
317
|
+
# @param id id
|
|
318
|
+
# @param expression expression
|
|
319
|
+
# @param [Hash] opts the optional parameters
|
|
320
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
321
|
+
def evaluate_expression_for_execution_using_head_with_http_info(id, expression, opts = {})
|
|
322
|
+
if @api_client.config.debugging
|
|
323
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.evaluate_expression_for_execution_using_head ...'
|
|
324
|
+
end
|
|
325
|
+
# verify the required parameter 'id' is set
|
|
326
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
327
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.evaluate_expression_for_execution_using_head"
|
|
328
|
+
end
|
|
329
|
+
# verify the required parameter 'expression' is set
|
|
330
|
+
if @api_client.config.client_side_validation && expression.nil?
|
|
331
|
+
fail ArgumentError, "Missing the required parameter 'expression' when calling PipelineControllerApi.evaluate_expression_for_execution_using_head"
|
|
332
|
+
end
|
|
333
|
+
# resource path
|
|
334
|
+
local_var_path = '/pipelines/{id}/evaluateExpression'.sub('{' + 'id' + '}', id.to_s)
|
|
335
|
+
|
|
336
|
+
# query parameters
|
|
337
|
+
query_params = {}
|
|
338
|
+
query_params[:'expression'] = expression
|
|
339
|
+
|
|
340
|
+
# header parameters
|
|
341
|
+
header_params = {}
|
|
342
|
+
# HTTP header 'Accept' (if needed)
|
|
343
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
344
|
+
# HTTP header 'Content-Type'
|
|
345
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
346
|
+
|
|
347
|
+
# form parameters
|
|
348
|
+
form_params = {}
|
|
349
|
+
|
|
350
|
+
# http body (model)
|
|
351
|
+
post_body = nil
|
|
352
|
+
auth_names = []
|
|
353
|
+
data, status_code, headers = @api_client.call_api(:HEAD, local_var_path,
|
|
354
|
+
:header_params => header_params,
|
|
355
|
+
:query_params => query_params,
|
|
356
|
+
:form_params => form_params,
|
|
357
|
+
:body => post_body,
|
|
358
|
+
:auth_names => auth_names,
|
|
359
|
+
:return_type => 'Hash<String, Object>')
|
|
360
|
+
if @api_client.config.debugging
|
|
361
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#evaluate_expression_for_execution_using_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
362
|
+
end
|
|
363
|
+
return data, status_code, headers
|
|
364
|
+
end
|
|
365
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
366
|
+
# @param id id
|
|
367
|
+
# @param expression expression
|
|
368
|
+
# @param [Hash] opts the optional parameters
|
|
369
|
+
# @return [Hash<String, Object>]
|
|
370
|
+
def evaluate_expression_for_execution_using_options(id, expression, opts = {})
|
|
371
|
+
data, _status_code, _headers = evaluate_expression_for_execution_using_options_with_http_info(id, expression, opts)
|
|
372
|
+
data
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
376
|
+
# @param id id
|
|
377
|
+
# @param expression expression
|
|
378
|
+
# @param [Hash] opts the optional parameters
|
|
379
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
380
|
+
def evaluate_expression_for_execution_using_options_with_http_info(id, expression, opts = {})
|
|
381
|
+
if @api_client.config.debugging
|
|
382
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.evaluate_expression_for_execution_using_options ...'
|
|
383
|
+
end
|
|
384
|
+
# verify the required parameter 'id' is set
|
|
385
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
386
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.evaluate_expression_for_execution_using_options"
|
|
387
|
+
end
|
|
388
|
+
# verify the required parameter 'expression' is set
|
|
389
|
+
if @api_client.config.client_side_validation && expression.nil?
|
|
390
|
+
fail ArgumentError, "Missing the required parameter 'expression' when calling PipelineControllerApi.evaluate_expression_for_execution_using_options"
|
|
391
|
+
end
|
|
392
|
+
# resource path
|
|
393
|
+
local_var_path = '/pipelines/{id}/evaluateExpression'.sub('{' + 'id' + '}', id.to_s)
|
|
394
|
+
|
|
395
|
+
# query parameters
|
|
396
|
+
query_params = {}
|
|
397
|
+
query_params[:'expression'] = expression
|
|
398
|
+
|
|
399
|
+
# header parameters
|
|
400
|
+
header_params = {}
|
|
401
|
+
# HTTP header 'Accept' (if needed)
|
|
402
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
403
|
+
# HTTP header 'Content-Type'
|
|
404
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
405
|
+
|
|
406
|
+
# form parameters
|
|
407
|
+
form_params = {}
|
|
408
|
+
|
|
409
|
+
# http body (model)
|
|
410
|
+
post_body = nil
|
|
411
|
+
auth_names = []
|
|
412
|
+
data, status_code, headers = @api_client.call_api(:OPTIONS, local_var_path,
|
|
413
|
+
:header_params => header_params,
|
|
414
|
+
:query_params => query_params,
|
|
415
|
+
:form_params => form_params,
|
|
416
|
+
:body => post_body,
|
|
417
|
+
:auth_names => auth_names,
|
|
418
|
+
:return_type => 'Hash<String, Object>')
|
|
419
|
+
if @api_client.config.debugging
|
|
420
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#evaluate_expression_for_execution_using_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
421
|
+
end
|
|
422
|
+
return data, status_code, headers
|
|
423
|
+
end
|
|
424
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
425
|
+
# @param id id
|
|
426
|
+
# @param expression expression
|
|
427
|
+
# @param [Hash] opts the optional parameters
|
|
428
|
+
# @return [Hash<String, Object>]
|
|
429
|
+
def evaluate_expression_for_execution_using_patch(id, expression, opts = {})
|
|
430
|
+
data, _status_code, _headers = evaluate_expression_for_execution_using_patch_with_http_info(id, expression, opts)
|
|
431
|
+
data
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
435
|
+
# @param id id
|
|
436
|
+
# @param expression expression
|
|
437
|
+
# @param [Hash] opts the optional parameters
|
|
438
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
439
|
+
def evaluate_expression_for_execution_using_patch_with_http_info(id, expression, opts = {})
|
|
440
|
+
if @api_client.config.debugging
|
|
441
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.evaluate_expression_for_execution_using_patch ...'
|
|
442
|
+
end
|
|
443
|
+
# verify the required parameter 'id' is set
|
|
444
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
445
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.evaluate_expression_for_execution_using_patch"
|
|
446
|
+
end
|
|
447
|
+
# verify the required parameter 'expression' is set
|
|
448
|
+
if @api_client.config.client_side_validation && expression.nil?
|
|
449
|
+
fail ArgumentError, "Missing the required parameter 'expression' when calling PipelineControllerApi.evaluate_expression_for_execution_using_patch"
|
|
450
|
+
end
|
|
451
|
+
# resource path
|
|
452
|
+
local_var_path = '/pipelines/{id}/evaluateExpression'.sub('{' + 'id' + '}', id.to_s)
|
|
453
|
+
|
|
454
|
+
# query parameters
|
|
455
|
+
query_params = {}
|
|
456
|
+
query_params[:'expression'] = expression
|
|
457
|
+
|
|
458
|
+
# header parameters
|
|
459
|
+
header_params = {}
|
|
460
|
+
# HTTP header 'Accept' (if needed)
|
|
461
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
462
|
+
# HTTP header 'Content-Type'
|
|
463
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
464
|
+
|
|
465
|
+
# form parameters
|
|
466
|
+
form_params = {}
|
|
467
|
+
|
|
468
|
+
# http body (model)
|
|
469
|
+
post_body = nil
|
|
470
|
+
auth_names = []
|
|
471
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
|
472
|
+
:header_params => header_params,
|
|
473
|
+
:query_params => query_params,
|
|
474
|
+
:form_params => form_params,
|
|
475
|
+
:body => post_body,
|
|
476
|
+
:auth_names => auth_names,
|
|
477
|
+
:return_type => 'Hash<String, Object>')
|
|
478
|
+
if @api_client.config.debugging
|
|
479
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#evaluate_expression_for_execution_using_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
480
|
+
end
|
|
481
|
+
return data, status_code, headers
|
|
482
|
+
end
|
|
483
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
484
|
+
# @param id id
|
|
485
|
+
# @param expression expression
|
|
486
|
+
# @param [Hash] opts the optional parameters
|
|
487
|
+
# @return [Hash<String, Object>]
|
|
488
|
+
def evaluate_expression_for_execution_using_put(id, expression, opts = {})
|
|
489
|
+
data, _status_code, _headers = evaluate_expression_for_execution_using_put_with_http_info(id, expression, opts)
|
|
490
|
+
data
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
494
|
+
# @param id id
|
|
495
|
+
# @param expression expression
|
|
496
|
+
# @param [Hash] opts the optional parameters
|
|
497
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
498
|
+
def evaluate_expression_for_execution_using_put_with_http_info(id, expression, opts = {})
|
|
499
|
+
if @api_client.config.debugging
|
|
500
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.evaluate_expression_for_execution_using_put ...'
|
|
501
|
+
end
|
|
502
|
+
# verify the required parameter 'id' is set
|
|
503
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
504
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.evaluate_expression_for_execution_using_put"
|
|
505
|
+
end
|
|
506
|
+
# verify the required parameter 'expression' is set
|
|
507
|
+
if @api_client.config.client_side_validation && expression.nil?
|
|
508
|
+
fail ArgumentError, "Missing the required parameter 'expression' when calling PipelineControllerApi.evaluate_expression_for_execution_using_put"
|
|
509
|
+
end
|
|
510
|
+
# resource path
|
|
511
|
+
local_var_path = '/pipelines/{id}/evaluateExpression'.sub('{' + 'id' + '}', id.to_s)
|
|
512
|
+
|
|
513
|
+
# query parameters
|
|
514
|
+
query_params = {}
|
|
515
|
+
query_params[:'expression'] = expression
|
|
516
|
+
|
|
517
|
+
# header parameters
|
|
518
|
+
header_params = {}
|
|
519
|
+
# HTTP header 'Accept' (if needed)
|
|
520
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
521
|
+
# HTTP header 'Content-Type'
|
|
522
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
523
|
+
|
|
524
|
+
# form parameters
|
|
525
|
+
form_params = {}
|
|
526
|
+
|
|
527
|
+
# http body (model)
|
|
528
|
+
post_body = nil
|
|
529
|
+
auth_names = []
|
|
530
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
531
|
+
:header_params => header_params,
|
|
532
|
+
:query_params => query_params,
|
|
533
|
+
:form_params => form_params,
|
|
534
|
+
:body => post_body,
|
|
535
|
+
:auth_names => auth_names,
|
|
536
|
+
:return_type => 'Hash<String, Object>')
|
|
537
|
+
if @api_client.config.debugging
|
|
538
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#evaluate_expression_for_execution_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
539
|
+
end
|
|
540
|
+
return data, status_code, headers
|
|
541
|
+
end
|
|
542
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
543
|
+
# @param id id
|
|
544
|
+
# @param pipeline_expression pipelineExpression
|
|
545
|
+
# @param [Hash] opts the optional parameters
|
|
546
|
+
# @return [Hash<String, Object>]
|
|
547
|
+
def evaluate_expression_for_execution_via_post_using_post1(id, pipeline_expression, opts = {})
|
|
548
|
+
data, _status_code, _headers = evaluate_expression_for_execution_via_post_using_post1_with_http_info(id, pipeline_expression, opts)
|
|
549
|
+
data
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
# Evaluate a pipeline expression using the provided execution as context
|
|
553
|
+
# @param id id
|
|
554
|
+
# @param pipeline_expression pipelineExpression
|
|
555
|
+
# @param [Hash] opts the optional parameters
|
|
556
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
557
|
+
def evaluate_expression_for_execution_via_post_using_post1_with_http_info(id, pipeline_expression, opts = {})
|
|
558
|
+
if @api_client.config.debugging
|
|
559
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.evaluate_expression_for_execution_via_post_using_post1 ...'
|
|
560
|
+
end
|
|
561
|
+
# verify the required parameter 'id' is set
|
|
562
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
563
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.evaluate_expression_for_execution_via_post_using_post1"
|
|
564
|
+
end
|
|
565
|
+
# verify the required parameter 'pipeline_expression' is set
|
|
566
|
+
if @api_client.config.client_side_validation && pipeline_expression.nil?
|
|
567
|
+
fail ArgumentError, "Missing the required parameter 'pipeline_expression' when calling PipelineControllerApi.evaluate_expression_for_execution_via_post_using_post1"
|
|
568
|
+
end
|
|
569
|
+
# resource path
|
|
570
|
+
local_var_path = '/pipelines/{id}/evaluateExpression'.sub('{' + 'id' + '}', id.to_s)
|
|
571
|
+
|
|
572
|
+
# query parameters
|
|
573
|
+
query_params = {}
|
|
574
|
+
|
|
575
|
+
# header parameters
|
|
576
|
+
header_params = {}
|
|
577
|
+
# HTTP header 'Accept' (if needed)
|
|
578
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
579
|
+
# HTTP header 'Content-Type'
|
|
580
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
|
581
|
+
|
|
582
|
+
# form parameters
|
|
583
|
+
form_params = {}
|
|
584
|
+
|
|
585
|
+
# http body (model)
|
|
586
|
+
post_body = @api_client.object_to_http_body(pipeline_expression)
|
|
587
|
+
auth_names = []
|
|
588
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
589
|
+
:header_params => header_params,
|
|
590
|
+
:query_params => query_params,
|
|
591
|
+
:form_params => form_params,
|
|
592
|
+
:body => post_body,
|
|
593
|
+
:auth_names => auth_names,
|
|
594
|
+
:return_type => 'Hash<String, Object>')
|
|
595
|
+
if @api_client.config.debugging
|
|
596
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#evaluate_expression_for_execution_via_post_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
597
|
+
end
|
|
598
|
+
return data, status_code, headers
|
|
599
|
+
end
|
|
600
|
+
# Retrieve pipeline execution logs
|
|
601
|
+
# @param id id
|
|
602
|
+
# @param [Hash] opts the optional parameters
|
|
603
|
+
# @return [Array<Object>]
|
|
604
|
+
def get_pipeline_logs_using_get(id, opts = {})
|
|
605
|
+
data, _status_code, _headers = get_pipeline_logs_using_get_with_http_info(id, opts)
|
|
606
|
+
data
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
# Retrieve pipeline execution logs
|
|
610
|
+
# @param id id
|
|
611
|
+
# @param [Hash] opts the optional parameters
|
|
612
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
|
613
|
+
def get_pipeline_logs_using_get_with_http_info(id, opts = {})
|
|
614
|
+
if @api_client.config.debugging
|
|
615
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.get_pipeline_logs_using_get ...'
|
|
616
|
+
end
|
|
617
|
+
# verify the required parameter 'id' is set
|
|
618
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
619
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.get_pipeline_logs_using_get"
|
|
620
|
+
end
|
|
621
|
+
# resource path
|
|
622
|
+
local_var_path = '/pipelines/{id}/logs'.sub('{' + 'id' + '}', id.to_s)
|
|
623
|
+
|
|
624
|
+
# query parameters
|
|
625
|
+
query_params = {}
|
|
626
|
+
|
|
627
|
+
# header parameters
|
|
628
|
+
header_params = {}
|
|
629
|
+
# HTTP header 'Accept' (if needed)
|
|
630
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
631
|
+
# HTTP header 'Content-Type'
|
|
632
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
633
|
+
|
|
634
|
+
# form parameters
|
|
635
|
+
form_params = {}
|
|
636
|
+
|
|
637
|
+
# http body (model)
|
|
638
|
+
post_body = nil
|
|
639
|
+
auth_names = []
|
|
640
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
641
|
+
:header_params => header_params,
|
|
642
|
+
:query_params => query_params,
|
|
643
|
+
:form_params => form_params,
|
|
644
|
+
:body => post_body,
|
|
645
|
+
:auth_names => auth_names,
|
|
646
|
+
:return_type => 'Array<Object>')
|
|
647
|
+
if @api_client.config.debugging
|
|
648
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#get_pipeline_logs_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
649
|
+
end
|
|
650
|
+
return data, status_code, headers
|
|
651
|
+
end
|
|
652
|
+
# Retrieve a pipeline execution
|
|
653
|
+
# @param id id
|
|
654
|
+
# @param [Hash] opts the optional parameters
|
|
655
|
+
# @return [Object]
|
|
656
|
+
def get_pipeline_using_get(id, opts = {})
|
|
657
|
+
data, _status_code, _headers = get_pipeline_using_get_with_http_info(id, opts)
|
|
658
|
+
data
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
# Retrieve a pipeline execution
|
|
662
|
+
# @param id id
|
|
663
|
+
# @param [Hash] opts the optional parameters
|
|
664
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
|
665
|
+
def get_pipeline_using_get_with_http_info(id, opts = {})
|
|
666
|
+
if @api_client.config.debugging
|
|
667
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.get_pipeline_using_get ...'
|
|
668
|
+
end
|
|
669
|
+
# verify the required parameter 'id' is set
|
|
670
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
671
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.get_pipeline_using_get"
|
|
672
|
+
end
|
|
673
|
+
# resource path
|
|
674
|
+
local_var_path = '/pipelines/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
675
|
+
|
|
676
|
+
# query parameters
|
|
677
|
+
query_params = {}
|
|
678
|
+
|
|
679
|
+
# header parameters
|
|
680
|
+
header_params = {}
|
|
681
|
+
# HTTP header 'Accept' (if needed)
|
|
682
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
683
|
+
# HTTP header 'Content-Type'
|
|
684
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
685
|
+
|
|
686
|
+
# form parameters
|
|
687
|
+
form_params = {}
|
|
688
|
+
|
|
689
|
+
# http body (model)
|
|
690
|
+
post_body = nil
|
|
691
|
+
auth_names = []
|
|
692
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
693
|
+
:header_params => header_params,
|
|
694
|
+
:query_params => query_params,
|
|
695
|
+
:form_params => form_params,
|
|
696
|
+
:body => post_body,
|
|
697
|
+
:auth_names => auth_names,
|
|
698
|
+
:return_type => 'Object')
|
|
699
|
+
if @api_client.config.debugging
|
|
700
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#get_pipeline_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
701
|
+
end
|
|
702
|
+
return data, status_code, headers
|
|
703
|
+
end
|
|
704
|
+
# Trigger a pipeline execution
|
|
705
|
+
# @param application application
|
|
706
|
+
# @param pipeline_name_or_id pipelineNameOrId
|
|
707
|
+
# @param [Hash] opts the optional parameters
|
|
708
|
+
# @option opts [Object] :trigger trigger
|
|
709
|
+
# @return [HttpEntity]
|
|
710
|
+
def invoke_pipeline_config_using_post1(application, pipeline_name_or_id, opts = {})
|
|
711
|
+
data, _status_code, _headers = invoke_pipeline_config_using_post1_with_http_info(application, pipeline_name_or_id, opts)
|
|
712
|
+
data
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
# Trigger a pipeline execution
|
|
716
|
+
# @param application application
|
|
717
|
+
# @param pipeline_name_or_id pipelineNameOrId
|
|
718
|
+
# @param [Hash] opts the optional parameters
|
|
719
|
+
# @option opts [Object] :trigger trigger
|
|
720
|
+
# @return [Array<(HttpEntity, Fixnum, Hash)>] HttpEntity data, response status code and response headers
|
|
721
|
+
def invoke_pipeline_config_using_post1_with_http_info(application, pipeline_name_or_id, opts = {})
|
|
722
|
+
if @api_client.config.debugging
|
|
723
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.invoke_pipeline_config_using_post1 ...'
|
|
724
|
+
end
|
|
725
|
+
# verify the required parameter 'application' is set
|
|
726
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
727
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling PipelineControllerApi.invoke_pipeline_config_using_post1"
|
|
728
|
+
end
|
|
729
|
+
# verify the required parameter 'pipeline_name_or_id' is set
|
|
730
|
+
if @api_client.config.client_side_validation && pipeline_name_or_id.nil?
|
|
731
|
+
fail ArgumentError, "Missing the required parameter 'pipeline_name_or_id' when calling PipelineControllerApi.invoke_pipeline_config_using_post1"
|
|
732
|
+
end
|
|
733
|
+
# resource path
|
|
734
|
+
local_var_path = '/pipelines/{application}/{pipelineNameOrId}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'pipelineNameOrId' + '}', pipeline_name_or_id.to_s)
|
|
735
|
+
|
|
736
|
+
# query parameters
|
|
737
|
+
query_params = {}
|
|
738
|
+
|
|
739
|
+
# header parameters
|
|
740
|
+
header_params = {}
|
|
741
|
+
# HTTP header 'Accept' (if needed)
|
|
742
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
743
|
+
# HTTP header 'Content-Type'
|
|
744
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
745
|
+
|
|
746
|
+
# form parameters
|
|
747
|
+
form_params = {}
|
|
748
|
+
|
|
749
|
+
# http body (model)
|
|
750
|
+
post_body = @api_client.object_to_http_body(opts[:'trigger'])
|
|
751
|
+
auth_names = []
|
|
752
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
753
|
+
:header_params => header_params,
|
|
754
|
+
:query_params => query_params,
|
|
755
|
+
:form_params => form_params,
|
|
756
|
+
:body => post_body,
|
|
757
|
+
:auth_names => auth_names,
|
|
758
|
+
:return_type => 'HttpEntity')
|
|
759
|
+
if @api_client.config.debugging
|
|
760
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#invoke_pipeline_config_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
761
|
+
end
|
|
762
|
+
return data, status_code, headers
|
|
763
|
+
end
|
|
764
|
+
# Trigger a pipeline execution
|
|
765
|
+
# @param application application
|
|
766
|
+
# @param pipeline_name_or_id pipelineNameOrId
|
|
767
|
+
# @param [Hash] opts the optional parameters
|
|
768
|
+
# @option opts [Object] :trigger trigger
|
|
769
|
+
# @return [HttpEntity]
|
|
770
|
+
def invoke_pipeline_config_via_echo_using_post(application, pipeline_name_or_id, opts = {})
|
|
771
|
+
data, _status_code, _headers = invoke_pipeline_config_via_echo_using_post_with_http_info(application, pipeline_name_or_id, opts)
|
|
772
|
+
data
|
|
773
|
+
end
|
|
774
|
+
|
|
775
|
+
# Trigger a pipeline execution
|
|
776
|
+
# @param application application
|
|
777
|
+
# @param pipeline_name_or_id pipelineNameOrId
|
|
778
|
+
# @param [Hash] opts the optional parameters
|
|
779
|
+
# @option opts [Object] :trigger trigger
|
|
780
|
+
# @return [Array<(HttpEntity, Fixnum, Hash)>] HttpEntity data, response status code and response headers
|
|
781
|
+
def invoke_pipeline_config_via_echo_using_post_with_http_info(application, pipeline_name_or_id, opts = {})
|
|
782
|
+
if @api_client.config.debugging
|
|
783
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.invoke_pipeline_config_via_echo_using_post ...'
|
|
784
|
+
end
|
|
785
|
+
# verify the required parameter 'application' is set
|
|
786
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
787
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling PipelineControllerApi.invoke_pipeline_config_via_echo_using_post"
|
|
788
|
+
end
|
|
789
|
+
# verify the required parameter 'pipeline_name_or_id' is set
|
|
790
|
+
if @api_client.config.client_side_validation && pipeline_name_or_id.nil?
|
|
791
|
+
fail ArgumentError, "Missing the required parameter 'pipeline_name_or_id' when calling PipelineControllerApi.invoke_pipeline_config_via_echo_using_post"
|
|
792
|
+
end
|
|
793
|
+
# resource path
|
|
794
|
+
local_var_path = '/pipelines/v2/{application}/{pipelineNameOrId}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'pipelineNameOrId' + '}', pipeline_name_or_id.to_s)
|
|
795
|
+
|
|
796
|
+
# query parameters
|
|
797
|
+
query_params = {}
|
|
798
|
+
|
|
799
|
+
# header parameters
|
|
800
|
+
header_params = {}
|
|
801
|
+
# HTTP header 'Accept' (if needed)
|
|
802
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
803
|
+
# HTTP header 'Content-Type'
|
|
804
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
805
|
+
|
|
806
|
+
# form parameters
|
|
807
|
+
form_params = {}
|
|
808
|
+
|
|
809
|
+
# http body (model)
|
|
810
|
+
post_body = @api_client.object_to_http_body(opts[:'trigger'])
|
|
811
|
+
auth_names = []
|
|
812
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
813
|
+
:header_params => header_params,
|
|
814
|
+
:query_params => query_params,
|
|
815
|
+
:form_params => form_params,
|
|
816
|
+
:body => post_body,
|
|
817
|
+
:auth_names => auth_names,
|
|
818
|
+
:return_type => 'HttpEntity')
|
|
819
|
+
if @api_client.config.debugging
|
|
820
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#invoke_pipeline_config_via_echo_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
821
|
+
end
|
|
822
|
+
return data, status_code, headers
|
|
823
|
+
end
|
|
824
|
+
# Pause a pipeline execution
|
|
825
|
+
# @param id id
|
|
826
|
+
# @param [Hash] opts the optional parameters
|
|
827
|
+
# @return [nil]
|
|
828
|
+
def pause_pipeline_using_put(id, opts = {})
|
|
829
|
+
pause_pipeline_using_put_with_http_info(id, opts)
|
|
830
|
+
nil
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
# Pause a pipeline execution
|
|
834
|
+
# @param id id
|
|
835
|
+
# @param [Hash] opts the optional parameters
|
|
836
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
837
|
+
def pause_pipeline_using_put_with_http_info(id, opts = {})
|
|
838
|
+
if @api_client.config.debugging
|
|
839
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.pause_pipeline_using_put ...'
|
|
840
|
+
end
|
|
841
|
+
# verify the required parameter 'id' is set
|
|
842
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
843
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.pause_pipeline_using_put"
|
|
844
|
+
end
|
|
845
|
+
# resource path
|
|
846
|
+
local_var_path = '/pipelines/{id}/pause'.sub('{' + 'id' + '}', id.to_s)
|
|
847
|
+
|
|
848
|
+
# query parameters
|
|
849
|
+
query_params = {}
|
|
850
|
+
|
|
851
|
+
# header parameters
|
|
852
|
+
header_params = {}
|
|
853
|
+
# HTTP header 'Accept' (if needed)
|
|
854
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
855
|
+
# HTTP header 'Content-Type'
|
|
856
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
857
|
+
|
|
858
|
+
# form parameters
|
|
859
|
+
form_params = {}
|
|
860
|
+
|
|
861
|
+
# http body (model)
|
|
862
|
+
post_body = nil
|
|
863
|
+
auth_names = []
|
|
864
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
865
|
+
:header_params => header_params,
|
|
866
|
+
:query_params => query_params,
|
|
867
|
+
:form_params => form_params,
|
|
868
|
+
:body => post_body,
|
|
869
|
+
:auth_names => auth_names)
|
|
870
|
+
if @api_client.config.debugging
|
|
871
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#pause_pipeline_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
872
|
+
end
|
|
873
|
+
return data, status_code, headers
|
|
874
|
+
end
|
|
875
|
+
# Rename a pipeline definition
|
|
876
|
+
# @param rename_command renameCommand
|
|
877
|
+
# @param [Hash] opts the optional parameters
|
|
878
|
+
# @return [nil]
|
|
879
|
+
def rename_pipeline_using_post(rename_command, opts = {})
|
|
880
|
+
rename_pipeline_using_post_with_http_info(rename_command, opts)
|
|
881
|
+
nil
|
|
882
|
+
end
|
|
883
|
+
|
|
884
|
+
# Rename a pipeline definition
|
|
885
|
+
# @param rename_command renameCommand
|
|
886
|
+
# @param [Hash] opts the optional parameters
|
|
887
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
888
|
+
def rename_pipeline_using_post_with_http_info(rename_command, opts = {})
|
|
889
|
+
if @api_client.config.debugging
|
|
890
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.rename_pipeline_using_post ...'
|
|
891
|
+
end
|
|
892
|
+
# verify the required parameter 'rename_command' is set
|
|
893
|
+
if @api_client.config.client_side_validation && rename_command.nil?
|
|
894
|
+
fail ArgumentError, "Missing the required parameter 'rename_command' when calling PipelineControllerApi.rename_pipeline_using_post"
|
|
895
|
+
end
|
|
896
|
+
# resource path
|
|
897
|
+
local_var_path = '/pipelines/move'
|
|
898
|
+
|
|
899
|
+
# query parameters
|
|
900
|
+
query_params = {}
|
|
901
|
+
|
|
902
|
+
# header parameters
|
|
903
|
+
header_params = {}
|
|
904
|
+
# HTTP header 'Accept' (if needed)
|
|
905
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
906
|
+
# HTTP header 'Content-Type'
|
|
907
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
908
|
+
|
|
909
|
+
# form parameters
|
|
910
|
+
form_params = {}
|
|
911
|
+
|
|
912
|
+
# http body (model)
|
|
913
|
+
post_body = @api_client.object_to_http_body(rename_command)
|
|
914
|
+
auth_names = []
|
|
915
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
916
|
+
:header_params => header_params,
|
|
917
|
+
:query_params => query_params,
|
|
918
|
+
:form_params => form_params,
|
|
919
|
+
:body => post_body,
|
|
920
|
+
:auth_names => auth_names)
|
|
921
|
+
if @api_client.config.debugging
|
|
922
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#rename_pipeline_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
923
|
+
end
|
|
924
|
+
return data, status_code, headers
|
|
925
|
+
end
|
|
926
|
+
# Restart a stage execution
|
|
927
|
+
# @param id id
|
|
928
|
+
# @param stage_id stageId
|
|
929
|
+
# @param context context
|
|
930
|
+
# @param [Hash] opts the optional parameters
|
|
931
|
+
# @return [Hash<String, Object>]
|
|
932
|
+
def restart_stage_using_put(id, stage_id, context, opts = {})
|
|
933
|
+
data, _status_code, _headers = restart_stage_using_put_with_http_info(id, stage_id, context, opts)
|
|
934
|
+
data
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
# Restart a stage execution
|
|
938
|
+
# @param id id
|
|
939
|
+
# @param stage_id stageId
|
|
940
|
+
# @param context context
|
|
941
|
+
# @param [Hash] opts the optional parameters
|
|
942
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
943
|
+
def restart_stage_using_put_with_http_info(id, stage_id, context, opts = {})
|
|
944
|
+
if @api_client.config.debugging
|
|
945
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.restart_stage_using_put ...'
|
|
946
|
+
end
|
|
947
|
+
# verify the required parameter 'id' is set
|
|
948
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
949
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.restart_stage_using_put"
|
|
950
|
+
end
|
|
951
|
+
# verify the required parameter 'stage_id' is set
|
|
952
|
+
if @api_client.config.client_side_validation && stage_id.nil?
|
|
953
|
+
fail ArgumentError, "Missing the required parameter 'stage_id' when calling PipelineControllerApi.restart_stage_using_put"
|
|
954
|
+
end
|
|
955
|
+
# verify the required parameter 'context' is set
|
|
956
|
+
if @api_client.config.client_side_validation && context.nil?
|
|
957
|
+
fail ArgumentError, "Missing the required parameter 'context' when calling PipelineControllerApi.restart_stage_using_put"
|
|
958
|
+
end
|
|
959
|
+
# resource path
|
|
960
|
+
local_var_path = '/pipelines/{id}/stages/{stageId}/restart'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'stageId' + '}', stage_id.to_s)
|
|
961
|
+
|
|
962
|
+
# query parameters
|
|
963
|
+
query_params = {}
|
|
964
|
+
|
|
965
|
+
# header parameters
|
|
966
|
+
header_params = {}
|
|
967
|
+
# HTTP header 'Accept' (if needed)
|
|
968
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
969
|
+
# HTTP header 'Content-Type'
|
|
970
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
971
|
+
|
|
972
|
+
# form parameters
|
|
973
|
+
form_params = {}
|
|
974
|
+
|
|
975
|
+
# http body (model)
|
|
976
|
+
post_body = @api_client.object_to_http_body(context)
|
|
977
|
+
auth_names = []
|
|
978
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
979
|
+
:header_params => header_params,
|
|
980
|
+
:query_params => query_params,
|
|
981
|
+
:form_params => form_params,
|
|
982
|
+
:body => post_body,
|
|
983
|
+
:auth_names => auth_names,
|
|
984
|
+
:return_type => 'Hash<String, Object>')
|
|
985
|
+
if @api_client.config.debugging
|
|
986
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#restart_stage_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
987
|
+
end
|
|
988
|
+
return data, status_code, headers
|
|
989
|
+
end
|
|
990
|
+
# Resume a pipeline execution
|
|
991
|
+
# @param id id
|
|
992
|
+
# @param [Hash] opts the optional parameters
|
|
993
|
+
# @return [Hash<String, Object>]
|
|
994
|
+
def resume_pipeline_using_put(id, opts = {})
|
|
995
|
+
data, _status_code, _headers = resume_pipeline_using_put_with_http_info(id, opts)
|
|
996
|
+
data
|
|
997
|
+
end
|
|
998
|
+
|
|
999
|
+
# Resume a pipeline execution
|
|
1000
|
+
# @param id id
|
|
1001
|
+
# @param [Hash] opts the optional parameters
|
|
1002
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1003
|
+
def resume_pipeline_using_put_with_http_info(id, opts = {})
|
|
1004
|
+
if @api_client.config.debugging
|
|
1005
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.resume_pipeline_using_put ...'
|
|
1006
|
+
end
|
|
1007
|
+
# verify the required parameter 'id' is set
|
|
1008
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1009
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.resume_pipeline_using_put"
|
|
1010
|
+
end
|
|
1011
|
+
# resource path
|
|
1012
|
+
local_var_path = '/pipelines/{id}/resume'.sub('{' + 'id' + '}', id.to_s)
|
|
1013
|
+
|
|
1014
|
+
# query parameters
|
|
1015
|
+
query_params = {}
|
|
1016
|
+
|
|
1017
|
+
# header parameters
|
|
1018
|
+
header_params = {}
|
|
1019
|
+
# HTTP header 'Accept' (if needed)
|
|
1020
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1021
|
+
# HTTP header 'Content-Type'
|
|
1022
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1023
|
+
|
|
1024
|
+
# form parameters
|
|
1025
|
+
form_params = {}
|
|
1026
|
+
|
|
1027
|
+
# http body (model)
|
|
1028
|
+
post_body = nil
|
|
1029
|
+
auth_names = []
|
|
1030
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
1031
|
+
:header_params => header_params,
|
|
1032
|
+
:query_params => query_params,
|
|
1033
|
+
:form_params => form_params,
|
|
1034
|
+
:body => post_body,
|
|
1035
|
+
:auth_names => auth_names,
|
|
1036
|
+
:return_type => 'Hash<String, Object>')
|
|
1037
|
+
if @api_client.config.debugging
|
|
1038
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#resume_pipeline_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1039
|
+
end
|
|
1040
|
+
return data, status_code, headers
|
|
1041
|
+
end
|
|
1042
|
+
# Save a pipeline definition
|
|
1043
|
+
# @param pipeline pipeline
|
|
1044
|
+
# @param [Hash] opts the optional parameters
|
|
1045
|
+
# @return [nil]
|
|
1046
|
+
def save_pipeline_using_post(pipeline, opts = {})
|
|
1047
|
+
save_pipeline_using_post_with_http_info(pipeline, opts)
|
|
1048
|
+
nil
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
# Save a pipeline definition
|
|
1052
|
+
# @param pipeline pipeline
|
|
1053
|
+
# @param [Hash] opts the optional parameters
|
|
1054
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
1055
|
+
def save_pipeline_using_post_with_http_info(pipeline, opts = {})
|
|
1056
|
+
if @api_client.config.debugging
|
|
1057
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.save_pipeline_using_post ...'
|
|
1058
|
+
end
|
|
1059
|
+
# verify the required parameter 'pipeline' is set
|
|
1060
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
|
1061
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling PipelineControllerApi.save_pipeline_using_post"
|
|
1062
|
+
end
|
|
1063
|
+
# resource path
|
|
1064
|
+
local_var_path = '/pipelines'
|
|
1065
|
+
|
|
1066
|
+
# query parameters
|
|
1067
|
+
query_params = {}
|
|
1068
|
+
|
|
1069
|
+
# header parameters
|
|
1070
|
+
header_params = {}
|
|
1071
|
+
# HTTP header 'Accept' (if needed)
|
|
1072
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1073
|
+
# HTTP header 'Content-Type'
|
|
1074
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1075
|
+
|
|
1076
|
+
# form parameters
|
|
1077
|
+
form_params = {}
|
|
1078
|
+
|
|
1079
|
+
# http body (model)
|
|
1080
|
+
post_body = @api_client.object_to_http_body(pipeline)
|
|
1081
|
+
auth_names = []
|
|
1082
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
1083
|
+
:header_params => header_params,
|
|
1084
|
+
:query_params => query_params,
|
|
1085
|
+
:form_params => form_params,
|
|
1086
|
+
:body => post_body,
|
|
1087
|
+
:auth_names => auth_names)
|
|
1088
|
+
if @api_client.config.debugging
|
|
1089
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#save_pipeline_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1090
|
+
end
|
|
1091
|
+
return data, status_code, headers
|
|
1092
|
+
end
|
|
1093
|
+
# Initiate a pipeline execution
|
|
1094
|
+
# @param map map
|
|
1095
|
+
# @param [Hash] opts the optional parameters
|
|
1096
|
+
# @return [ResponseEntity]
|
|
1097
|
+
def start_using_post(map, opts = {})
|
|
1098
|
+
data, _status_code, _headers = start_using_post_with_http_info(map, opts)
|
|
1099
|
+
data
|
|
1100
|
+
end
|
|
1101
|
+
|
|
1102
|
+
# Initiate a pipeline execution
|
|
1103
|
+
# @param map map
|
|
1104
|
+
# @param [Hash] opts the optional parameters
|
|
1105
|
+
# @return [Array<(ResponseEntity, Fixnum, Hash)>] ResponseEntity data, response status code and response headers
|
|
1106
|
+
def start_using_post_with_http_info(map, opts = {})
|
|
1107
|
+
if @api_client.config.debugging
|
|
1108
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.start_using_post ...'
|
|
1109
|
+
end
|
|
1110
|
+
# verify the required parameter 'map' is set
|
|
1111
|
+
if @api_client.config.client_side_validation && map.nil?
|
|
1112
|
+
fail ArgumentError, "Missing the required parameter 'map' when calling PipelineControllerApi.start_using_post"
|
|
1113
|
+
end
|
|
1114
|
+
# resource path
|
|
1115
|
+
local_var_path = '/pipelines/start'
|
|
1116
|
+
|
|
1117
|
+
# query parameters
|
|
1118
|
+
query_params = {}
|
|
1119
|
+
|
|
1120
|
+
# header parameters
|
|
1121
|
+
header_params = {}
|
|
1122
|
+
# HTTP header 'Accept' (if needed)
|
|
1123
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1124
|
+
# HTTP header 'Content-Type'
|
|
1125
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1126
|
+
|
|
1127
|
+
# form parameters
|
|
1128
|
+
form_params = {}
|
|
1129
|
+
|
|
1130
|
+
# http body (model)
|
|
1131
|
+
post_body = @api_client.object_to_http_body(map)
|
|
1132
|
+
auth_names = []
|
|
1133
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
1134
|
+
:header_params => header_params,
|
|
1135
|
+
:query_params => query_params,
|
|
1136
|
+
:form_params => form_params,
|
|
1137
|
+
:body => post_body,
|
|
1138
|
+
:auth_names => auth_names,
|
|
1139
|
+
:return_type => 'ResponseEntity')
|
|
1140
|
+
if @api_client.config.debugging
|
|
1141
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#start_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1142
|
+
end
|
|
1143
|
+
return data, status_code, headers
|
|
1144
|
+
end
|
|
1145
|
+
# Update a pipeline definition
|
|
1146
|
+
# @param id id
|
|
1147
|
+
# @param pipeline pipeline
|
|
1148
|
+
# @param [Hash] opts the optional parameters
|
|
1149
|
+
# @return [Hash<String, Object>]
|
|
1150
|
+
def update_pipeline_using_put(id, pipeline, opts = {})
|
|
1151
|
+
data, _status_code, _headers = update_pipeline_using_put_with_http_info(id, pipeline, opts)
|
|
1152
|
+
data
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1155
|
+
# Update a pipeline definition
|
|
1156
|
+
# @param id id
|
|
1157
|
+
# @param pipeline pipeline
|
|
1158
|
+
# @param [Hash] opts the optional parameters
|
|
1159
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1160
|
+
def update_pipeline_using_put_with_http_info(id, pipeline, opts = {})
|
|
1161
|
+
if @api_client.config.debugging
|
|
1162
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.update_pipeline_using_put ...'
|
|
1163
|
+
end
|
|
1164
|
+
# verify the required parameter 'id' is set
|
|
1165
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1166
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.update_pipeline_using_put"
|
|
1167
|
+
end
|
|
1168
|
+
# verify the required parameter 'pipeline' is set
|
|
1169
|
+
if @api_client.config.client_side_validation && pipeline.nil?
|
|
1170
|
+
fail ArgumentError, "Missing the required parameter 'pipeline' when calling PipelineControllerApi.update_pipeline_using_put"
|
|
1171
|
+
end
|
|
1172
|
+
# resource path
|
|
1173
|
+
local_var_path = '/pipelines/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
1174
|
+
|
|
1175
|
+
# query parameters
|
|
1176
|
+
query_params = {}
|
|
1177
|
+
|
|
1178
|
+
# header parameters
|
|
1179
|
+
header_params = {}
|
|
1180
|
+
# HTTP header 'Accept' (if needed)
|
|
1181
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1182
|
+
# HTTP header 'Content-Type'
|
|
1183
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1184
|
+
|
|
1185
|
+
# form parameters
|
|
1186
|
+
form_params = {}
|
|
1187
|
+
|
|
1188
|
+
# http body (model)
|
|
1189
|
+
post_body = @api_client.object_to_http_body(pipeline)
|
|
1190
|
+
auth_names = []
|
|
1191
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
1192
|
+
:header_params => header_params,
|
|
1193
|
+
:query_params => query_params,
|
|
1194
|
+
:form_params => form_params,
|
|
1195
|
+
:body => post_body,
|
|
1196
|
+
:auth_names => auth_names,
|
|
1197
|
+
:return_type => 'Hash<String, Object>')
|
|
1198
|
+
if @api_client.config.debugging
|
|
1199
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#update_pipeline_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1200
|
+
end
|
|
1201
|
+
return data, status_code, headers
|
|
1202
|
+
end
|
|
1203
|
+
# Update a stage execution
|
|
1204
|
+
# @param id id
|
|
1205
|
+
# @param stage_id stageId
|
|
1206
|
+
# @param context context
|
|
1207
|
+
# @param [Hash] opts the optional parameters
|
|
1208
|
+
# @return [Hash<String, Object>]
|
|
1209
|
+
def update_stage_using_patch(id, stage_id, context, opts = {})
|
|
1210
|
+
data, _status_code, _headers = update_stage_using_patch_with_http_info(id, stage_id, context, opts)
|
|
1211
|
+
data
|
|
1212
|
+
end
|
|
1213
|
+
|
|
1214
|
+
# Update a stage execution
|
|
1215
|
+
# @param id id
|
|
1216
|
+
# @param stage_id stageId
|
|
1217
|
+
# @param context context
|
|
1218
|
+
# @param [Hash] opts the optional parameters
|
|
1219
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
1220
|
+
def update_stage_using_patch_with_http_info(id, stage_id, context, opts = {})
|
|
1221
|
+
if @api_client.config.debugging
|
|
1222
|
+
@api_client.config.logger.debug 'Calling API: PipelineControllerApi.update_stage_using_patch ...'
|
|
1223
|
+
end
|
|
1224
|
+
# verify the required parameter 'id' is set
|
|
1225
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1226
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PipelineControllerApi.update_stage_using_patch"
|
|
1227
|
+
end
|
|
1228
|
+
# verify the required parameter 'stage_id' is set
|
|
1229
|
+
if @api_client.config.client_side_validation && stage_id.nil?
|
|
1230
|
+
fail ArgumentError, "Missing the required parameter 'stage_id' when calling PipelineControllerApi.update_stage_using_patch"
|
|
1231
|
+
end
|
|
1232
|
+
# verify the required parameter 'context' is set
|
|
1233
|
+
if @api_client.config.client_side_validation && context.nil?
|
|
1234
|
+
fail ArgumentError, "Missing the required parameter 'context' when calling PipelineControllerApi.update_stage_using_patch"
|
|
1235
|
+
end
|
|
1236
|
+
# resource path
|
|
1237
|
+
local_var_path = '/pipelines/{id}/stages/{stageId}'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'stageId' + '}', stage_id.to_s)
|
|
1238
|
+
|
|
1239
|
+
# query parameters
|
|
1240
|
+
query_params = {}
|
|
1241
|
+
|
|
1242
|
+
# header parameters
|
|
1243
|
+
header_params = {}
|
|
1244
|
+
# HTTP header 'Accept' (if needed)
|
|
1245
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1246
|
+
# HTTP header 'Content-Type'
|
|
1247
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1248
|
+
|
|
1249
|
+
# form parameters
|
|
1250
|
+
form_params = {}
|
|
1251
|
+
|
|
1252
|
+
# http body (model)
|
|
1253
|
+
post_body = @api_client.object_to_http_body(context)
|
|
1254
|
+
auth_names = []
|
|
1255
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
|
1256
|
+
:header_params => header_params,
|
|
1257
|
+
:query_params => query_params,
|
|
1258
|
+
:form_params => form_params,
|
|
1259
|
+
:body => post_body,
|
|
1260
|
+
:auth_names => auth_names,
|
|
1261
|
+
:return_type => 'Hash<String, Object>')
|
|
1262
|
+
if @api_client.config.debugging
|
|
1263
|
+
@api_client.config.logger.debug "API called: PipelineControllerApi#update_stage_using_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1264
|
+
end
|
|
1265
|
+
return data, status_code, headers
|
|
1266
|
+
end
|
|
1267
|
+
end
|
|
1268
|
+
end
|