spinnaker_gate_ruby_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/Gemfile.lock +85 -0
  4. data/LICENSE +201 -0
  5. data/README.md +240 -0
  6. data/Rakefile +8 -0
  7. data/docs/Account.md +14 -0
  8. data/docs/AccountDetails.md +19 -0
  9. data/docs/AmazonInfrastructureControllerApi.md +128 -0
  10. data/docs/ApplicationControllerApi.md +754 -0
  11. data/docs/ArtifactControllerApi.md +111 -0
  12. data/docs/AuthControllerApi.md +212 -0
  13. data/docs/BakeControllerApi.md +143 -0
  14. data/docs/BuildControllerApi.md +493 -0
  15. data/docs/ClusterControllerApi.md +475 -0
  16. data/docs/ConcourseControllerApi.md +161 -0
  17. data/docs/CredentialsControllerApi.md +129 -0
  18. data/docs/EcsServerGroupEventsControllerApi.md +66 -0
  19. data/docs/ExecutionsControllerApi.md +133 -0
  20. data/docs/FirewallControllerApi.md +171 -0
  21. data/docs/GrantedAuthority.md +8 -0
  22. data/docs/HashMapstringobject.md +7 -0
  23. data/docs/HttpEntity.md +8 -0
  24. data/docs/ImageControllerApi.md +178 -0
  25. data/docs/InstanceControllerApi.md +122 -0
  26. data/docs/JobControllerApi.md +69 -0
  27. data/docs/LoadBalancerControllerApi.md +217 -0
  28. data/docs/Mapstringstring.md +7 -0
  29. data/docs/NetworkControllerApi.md +105 -0
  30. data/docs/PipelineConfigControllerApi.md +144 -0
  31. data/docs/PipelineControllerApi.md +1074 -0
  32. data/docs/PipelineTemplateDependent.md +10 -0
  33. data/docs/PipelineTemplatesControllerApi.md +350 -0
  34. data/docs/ProjectControllerApi.md +196 -0
  35. data/docs/PubsubSubscriptionControllerApi.md +48 -0
  36. data/docs/ReorderPipelinesCommand.md +9 -0
  37. data/docs/ReorderPipelinesControllerApi.md +54 -0
  38. data/docs/ResponseEntity.md +10 -0
  39. data/docs/SearchControllerApi.md +68 -0
  40. data/docs/SecurityGroupControllerApi.md +171 -0
  41. data/docs/ServerGroupControllerApi.md +125 -0
  42. data/docs/ServerGroupManagerControllerApi.md +54 -0
  43. data/docs/SnapshotControllerApi.md +110 -0
  44. data/docs/SubnetControllerApi.md +58 -0
  45. data/docs/TaskControllerApi.md +291 -0
  46. data/docs/User.md +18 -0
  47. data/docs/V2CanaryConfigControllerApi.md +259 -0
  48. data/docs/V2CanaryControllerApi.md +356 -0
  49. data/docs/V2PipelineTemplatesControllerApi.md +356 -0
  50. data/docs/Version.md +8 -0
  51. data/docs/VersionControllerApi.md +48 -0
  52. data/docs/WebhookControllerApi.md +105 -0
  53. data/git_push.sh +55 -0
  54. data/lib/swagger_client.rb +85 -0
  55. data/lib/swagger_client/api/amazon_infrastructure_controller_api.rb +161 -0
  56. data/lib/swagger_client/api/application_controller_api.rb +868 -0
  57. data/lib/swagger_client/api/artifact_controller_api.rb +141 -0
  58. data/lib/swagger_client/api/auth_controller_api.rb +258 -0
  59. data/lib/swagger_client/api/bake_controller_api.rb +179 -0
  60. data/lib/swagger_client/api/build_controller_api.rb +588 -0
  61. data/lib/swagger_client/api/cluster_controller_api.rb +591 -0
  62. data/lib/swagger_client/api/concourse_controller_api.rb +209 -0
  63. data/lib/swagger_client/api/credentials_controller_api.rb +163 -0
  64. data/lib/swagger_client/api/ecs_server_group_events_controller_api.rb +101 -0
  65. data/lib/swagger_client/api/executions_controller_api.rb +169 -0
  66. data/lib/swagger_client/api/firewall_controller_api.rb +209 -0
  67. data/lib/swagger_client/api/image_controller_api.rb +222 -0
  68. data/lib/swagger_client/api/instance_controller_api.rb +160 -0
  69. data/lib/swagger_client/api/job_controller_api.rb +99 -0
  70. data/lib/swagger_client/api/load_balancer_controller_api.rb +258 -0
  71. data/lib/swagger_client/api/network_controller_api.rb +127 -0
  72. data/lib/swagger_client/api/pipeline_config_controller_api.rb +176 -0
  73. data/lib/swagger_client/api/pipeline_controller_api.rb +1268 -0
  74. data/lib/swagger_client/api/pipeline_templates_controller_api.rb +404 -0
  75. data/lib/swagger_client/api/project_controller_api.rb +234 -0
  76. data/lib/swagger_client/api/pubsub_subscription_controller_api.rb +69 -0
  77. data/lib/swagger_client/api/reorder_pipelines_controller_api.rb +75 -0
  78. data/lib/swagger_client/api/search_controller_api.rb +94 -0
  79. data/lib/swagger_client/api/security_group_controller_api.rb +209 -0
  80. data/lib/swagger_client/api/server_group_controller_api.rb +163 -0
  81. data/lib/swagger_client/api/server_group_manager_controller_api.rb +75 -0
  82. data/lib/swagger_client/api/snapshot_controller_api.rb +142 -0
  83. data/lib/swagger_client/api/subnet_controller_api.rb +78 -0
  84. data/lib/swagger_client/api/task_controller_api.rb +345 -0
  85. data/lib/swagger_client/api/v2_canary_config_controller_api.rb +300 -0
  86. data/lib/swagger_client/api/v2_canary_controller_api.rb +421 -0
  87. data/lib/swagger_client/api/v2_pipeline_templates_controller_api.rb +412 -0
  88. data/lib/swagger_client/api/version_controller_api.rb +69 -0
  89. data/lib/swagger_client/api/webhook_controller_api.rb +135 -0
  90. data/lib/swagger_client/api_client.rb +388 -0
  91. data/lib/swagger_client/api_error.rb +38 -0
  92. data/lib/swagger_client/configuration.rb +202 -0
  93. data/lib/swagger_client/models/account.rb +241 -0
  94. data/lib/swagger_client/models/account_details.rb +286 -0
  95. data/lib/swagger_client/models/granted_authority.rb +183 -0
  96. data/lib/swagger_client/models/hash_mapstringobject.rb +174 -0
  97. data/lib/swagger_client/models/http_entity.rb +183 -0
  98. data/lib/swagger_client/models/mapstringstring.rb +174 -0
  99. data/lib/swagger_client/models/pipeline_template_dependent.rb +201 -0
  100. data/lib/swagger_client/models/reorder_pipelines_command.rb +194 -0
  101. data/lib/swagger_client/models/response_entity.rb +235 -0
  102. data/lib/swagger_client/models/user.rb +279 -0
  103. data/lib/swagger_client/models/version.rb +183 -0
  104. data/lib/swagger_client/version.rb +15 -0
  105. data/spec/api/amazon_infrastructure_controller_api_spec.rb +65 -0
  106. data/spec/api/application_controller_api_spec.rb +218 -0
  107. data/spec/api/artifact_controller_api_spec.rb +60 -0
  108. data/spec/api/auth_controller_api_spec.rb +86 -0
  109. data/spec/api/bake_controller_api_spec.rb +68 -0
  110. data/spec/api/build_controller_api_spec.rb +155 -0
  111. data/spec/api/cluster_controller_api_spec.rb +155 -0
  112. data/spec/api/concourse_controller_api_spec.rb +73 -0
  113. data/spec/api/credentials_controller_api_spec.rb +70 -0
  114. data/spec/api/ecs_server_group_events_controller_api_spec.rb +50 -0
  115. data/spec/api/executions_controller_api_spec.rb +72 -0
  116. data/spec/api/firewall_controller_api_spec.rb +77 -0
  117. data/spec/api/image_controller_api_spec.rb +80 -0
  118. data/spec/api/instance_controller_api_spec.rb +64 -0
  119. data/spec/api/job_controller_api_spec.rb +51 -0
  120. data/spec/api/load_balancer_controller_api_spec.rb +87 -0
  121. data/spec/api/network_controller_api_spec.rb +58 -0
  122. data/spec/api/pipeline_config_controller_api_spec.rb +68 -0
  123. data/spec/api/pipeline_controller_api_spec.rb +296 -0
  124. data/spec/api/pipeline_templates_controller_api_spec.rb +118 -0
  125. data/spec/api/project_controller_api_spec.rb +81 -0
  126. data/spec/api/pubsub_subscription_controller_api_spec.rb +45 -0
  127. data/spec/api/reorder_pipelines_controller_api_spec.rb +46 -0
  128. data/spec/api/search_controller_api_spec.rb +52 -0
  129. data/spec/api/security_group_controller_api_spec.rb +77 -0
  130. data/spec/api/server_group_controller_api_spec.rb +66 -0
  131. data/spec/api/server_group_manager_controller_api_spec.rb +46 -0
  132. data/spec/api/snapshot_controller_api_spec.rb +60 -0
  133. data/spec/api/subnet_controller_api_spec.rb +47 -0
  134. data/spec/api/task_controller_api_spec.rb +103 -0
  135. data/spec/api/v2_canary_config_controller_api_spec.rb +96 -0
  136. data/spec/api/v2_canary_controller_api_spec.rb +123 -0
  137. data/spec/api/v2_pipeline_templates_controller_api_spec.rb +121 -0
  138. data/spec/api/version_controller_api_spec.rb +45 -0
  139. data/spec/api/webhook_controller_api_spec.rb +60 -0
  140. data/spec/api_client_spec.rb +226 -0
  141. data/spec/configuration_spec.rb +42 -0
  142. data/spec/models/account_details_spec.rb +107 -0
  143. data/spec/models/account_spec.rb +77 -0
  144. data/spec/models/granted_authority_spec.rb +41 -0
  145. data/spec/models/hash_mapstringobject_spec.rb +35 -0
  146. data/spec/models/http_entity_spec.rb +41 -0
  147. data/spec/models/mapstringstring_spec.rb +35 -0
  148. data/spec/models/pipeline_template_dependent_spec.rb +53 -0
  149. data/spec/models/reorder_pipelines_command_spec.rb +47 -0
  150. data/spec/models/response_entity_spec.rb +57 -0
  151. data/spec/models/user_spec.rb +101 -0
  152. data/spec/models/version_spec.rb +41 -0
  153. data/spec/spec_helper.rb +111 -0
  154. data/spinnaker_gate_ruby_client.gemspec +45 -0
  155. metadata +426 -0
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,85 @@
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
+ # Common files
14
+ require 'swagger_client/api_client'
15
+ require 'swagger_client/api_error'
16
+ require 'swagger_client/version'
17
+ require 'swagger_client/configuration'
18
+
19
+ # Models
20
+ require 'swagger_client/models/account'
21
+ require 'swagger_client/models/account_details'
22
+ require 'swagger_client/models/granted_authority'
23
+ require 'swagger_client/models/hash_mapstringobject'
24
+ require 'swagger_client/models/http_entity'
25
+ require 'swagger_client/models/mapstringstring'
26
+ require 'swagger_client/models/pipeline_template_dependent'
27
+ require 'swagger_client/models/reorder_pipelines_command'
28
+ require 'swagger_client/models/response_entity'
29
+ require 'swagger_client/models/user'
30
+ require 'swagger_client/models/version'
31
+
32
+ # APIs
33
+ require 'swagger_client/api/amazon_infrastructure_controller_api'
34
+ require 'swagger_client/api/application_controller_api'
35
+ require 'swagger_client/api/artifact_controller_api'
36
+ require 'swagger_client/api/auth_controller_api'
37
+ require 'swagger_client/api/bake_controller_api'
38
+ require 'swagger_client/api/build_controller_api'
39
+ require 'swagger_client/api/cluster_controller_api'
40
+ require 'swagger_client/api/concourse_controller_api'
41
+ require 'swagger_client/api/credentials_controller_api'
42
+ require 'swagger_client/api/ecs_server_group_events_controller_api'
43
+ require 'swagger_client/api/executions_controller_api'
44
+ require 'swagger_client/api/firewall_controller_api'
45
+ require 'swagger_client/api/image_controller_api'
46
+ require 'swagger_client/api/instance_controller_api'
47
+ require 'swagger_client/api/job_controller_api'
48
+ require 'swagger_client/api/load_balancer_controller_api'
49
+ require 'swagger_client/api/network_controller_api'
50
+ require 'swagger_client/api/pipeline_config_controller_api'
51
+ require 'swagger_client/api/pipeline_controller_api'
52
+ require 'swagger_client/api/pipeline_templates_controller_api'
53
+ require 'swagger_client/api/project_controller_api'
54
+ require 'swagger_client/api/pubsub_subscription_controller_api'
55
+ require 'swagger_client/api/reorder_pipelines_controller_api'
56
+ require 'swagger_client/api/search_controller_api'
57
+ require 'swagger_client/api/security_group_controller_api'
58
+ require 'swagger_client/api/server_group_controller_api'
59
+ require 'swagger_client/api/server_group_manager_controller_api'
60
+ require 'swagger_client/api/snapshot_controller_api'
61
+ require 'swagger_client/api/subnet_controller_api'
62
+ require 'swagger_client/api/task_controller_api'
63
+ require 'swagger_client/api/v2_canary_config_controller_api'
64
+ require 'swagger_client/api/v2_canary_controller_api'
65
+ require 'swagger_client/api/v2_pipeline_templates_controller_api'
66
+ require 'swagger_client/api/version_controller_api'
67
+ require 'swagger_client/api/webhook_controller_api'
68
+
69
+ module SwaggerClient
70
+ class << self
71
+ # Customize default settings for the SDK using block.
72
+ # SwaggerClient.configure do |config|
73
+ # config.username = "xxx"
74
+ # config.password = "xxx"
75
+ # end
76
+ # If no block given, return the default Configuration object.
77
+ def configure
78
+ if block_given?
79
+ yield(Configuration.default)
80
+ else
81
+ Configuration.default
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,161 @@
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 AmazonInfrastructureControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get instance types
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [Array<Object>]
25
+ def instance_types_using_get(opts = {})
26
+ data, _status_code, _headers = instance_types_using_get_with_http_info(opts)
27
+ data
28
+ end
29
+
30
+ # Get instance types
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
33
+ def instance_types_using_get_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: AmazonInfrastructureControllerApi.instance_types_using_get ...'
36
+ end
37
+ # resource path
38
+ local_var_path = '/instanceTypes'
39
+
40
+ # query parameters
41
+ query_params = {}
42
+
43
+ # header parameters
44
+ header_params = {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
47
+ # HTTP header 'Content-Type'
48
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
49
+
50
+ # form parameters
51
+ form_params = {}
52
+
53
+ # http body (model)
54
+ post_body = nil
55
+ auth_names = []
56
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
57
+ :header_params => header_params,
58
+ :query_params => query_params,
59
+ :form_params => form_params,
60
+ :body => post_body,
61
+ :auth_names => auth_names,
62
+ :return_type => 'Array<Object>')
63
+ if @api_client.config.debugging
64
+ @api_client.config.logger.debug "API called: AmazonInfrastructureControllerApi#instance_types_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
65
+ end
66
+ return data, status_code, headers
67
+ end
68
+ # Get subnets
69
+ # @param [Hash] opts the optional parameters
70
+ # @return [Array<Object>]
71
+ def subnets_using_get(opts = {})
72
+ data, _status_code, _headers = subnets_using_get_with_http_info(opts)
73
+ data
74
+ end
75
+
76
+ # Get subnets
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
79
+ def subnets_using_get_with_http_info(opts = {})
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug 'Calling API: AmazonInfrastructureControllerApi.subnets_using_get ...'
82
+ end
83
+ # resource path
84
+ local_var_path = '/subnets'
85
+
86
+ # query parameters
87
+ query_params = {}
88
+
89
+ # header parameters
90
+ header_params = {}
91
+ # HTTP header 'Accept' (if needed)
92
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
93
+ # HTTP header 'Content-Type'
94
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
95
+
96
+ # form parameters
97
+ form_params = {}
98
+
99
+ # http body (model)
100
+ post_body = nil
101
+ auth_names = []
102
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
103
+ :header_params => header_params,
104
+ :query_params => query_params,
105
+ :form_params => form_params,
106
+ :body => post_body,
107
+ :auth_names => auth_names,
108
+ :return_type => 'Array<Object>')
109
+ if @api_client.config.debugging
110
+ @api_client.config.logger.debug "API called: AmazonInfrastructureControllerApi#subnets_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
111
+ end
112
+ return data, status_code, headers
113
+ end
114
+ # Get VPCs
115
+ # @param [Hash] opts the optional parameters
116
+ # @return [Array<Object>]
117
+ def vpcs_using_get(opts = {})
118
+ data, _status_code, _headers = vpcs_using_get_with_http_info(opts)
119
+ data
120
+ end
121
+
122
+ # Get VPCs
123
+ # @param [Hash] opts the optional parameters
124
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
125
+ def vpcs_using_get_with_http_info(opts = {})
126
+ if @api_client.config.debugging
127
+ @api_client.config.logger.debug 'Calling API: AmazonInfrastructureControllerApi.vpcs_using_get ...'
128
+ end
129
+ # resource path
130
+ local_var_path = '/vpcs'
131
+
132
+ # query parameters
133
+ query_params = {}
134
+
135
+ # header parameters
136
+ header_params = {}
137
+ # HTTP header 'Accept' (if needed)
138
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
139
+ # HTTP header 'Content-Type'
140
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
141
+
142
+ # form parameters
143
+ form_params = {}
144
+
145
+ # http body (model)
146
+ post_body = nil
147
+ auth_names = []
148
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
149
+ :header_params => header_params,
150
+ :query_params => query_params,
151
+ :form_params => form_params,
152
+ :body => post_body,
153
+ :auth_names => auth_names,
154
+ :return_type => 'Array<Object>')
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug "API called: AmazonInfrastructureControllerApi#vpcs_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
157
+ end
158
+ return data, status_code, headers
159
+ end
160
+ end
161
+ end
@@ -0,0 +1,868 @@
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 ApplicationControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Cancel pipeline
23
+ # @param id id
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :reason reason
26
+ # @return [Hash<String, Object>]
27
+ def cancel_pipeline_using_put(id, opts = {})
28
+ data, _status_code, _headers = cancel_pipeline_using_put_with_http_info(id, opts)
29
+ data
30
+ end
31
+
32
+ # Cancel pipeline
33
+ # @param id id
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [String] :reason reason
36
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
37
+ def cancel_pipeline_using_put_with_http_info(id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.cancel_pipeline_using_put ...'
40
+ end
41
+ # verify the required parameter 'id' is set
42
+ if @api_client.config.client_side_validation && id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'id' when calling ApplicationControllerApi.cancel_pipeline_using_put"
44
+ end
45
+ # resource path
46
+ local_var_path = '/applications/{application}/pipelines/{id}/cancel'.sub('{' + 'id' + '}', id.to_s)
47
+
48
+ # query parameters
49
+ query_params = {}
50
+ query_params[:'reason'] = opts[:'reason'] if !opts[:'reason'].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 = nil
64
+ auth_names = []
65
+ data, status_code, headers = @api_client.call_api(:PUT, 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 => 'Hash<String, Object>')
72
+ if @api_client.config.debugging
73
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#cancel_pipeline_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
+ end
75
+ return data, status_code, headers
76
+ end
77
+ # Cancel task
78
+ # @param id id
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [Hash<String, Object>]
81
+ def cancel_task_using_put(id, opts = {})
82
+ data, _status_code, _headers = cancel_task_using_put_with_http_info(id, opts)
83
+ data
84
+ end
85
+
86
+ # Cancel task
87
+ # @param id id
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
90
+ def cancel_task_using_put_with_http_info(id, opts = {})
91
+ if @api_client.config.debugging
92
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.cancel_task_using_put ...'
93
+ end
94
+ # verify the required parameter 'id' is set
95
+ if @api_client.config.client_side_validation && id.nil?
96
+ fail ArgumentError, "Missing the required parameter 'id' when calling ApplicationControllerApi.cancel_task_using_put"
97
+ end
98
+ # resource path
99
+ local_var_path = '/applications/{application}/tasks/{id}/cancel'.sub('{' + 'id' + '}', id.to_s)
100
+
101
+ # query parameters
102
+ query_params = {}
103
+
104
+ # header parameters
105
+ header_params = {}
106
+ # HTTP header 'Accept' (if needed)
107
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
108
+ # HTTP header 'Content-Type'
109
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
110
+
111
+ # form parameters
112
+ form_params = {}
113
+
114
+ # http body (model)
115
+ post_body = nil
116
+ auth_names = []
117
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
118
+ :header_params => header_params,
119
+ :query_params => query_params,
120
+ :form_params => form_params,
121
+ :body => post_body,
122
+ :auth_names => auth_names,
123
+ :return_type => 'Hash<String, Object>')
124
+ if @api_client.config.debugging
125
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#cancel_task_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
126
+ end
127
+ return data, status_code, headers
128
+ end
129
+ # Retrieve a list of applications
130
+ # @param [Hash] opts the optional parameters
131
+ # @option opts [String] :account filters results to only include applications deployed in the specified account
132
+ # @option opts [String] :owner filteres results to only include applications owned by the specified email
133
+ # @return [Array<Object>]
134
+ def get_all_applications_using_get(opts = {})
135
+ data, _status_code, _headers = get_all_applications_using_get_with_http_info(opts)
136
+ data
137
+ end
138
+
139
+ # Retrieve a list of applications
140
+ # @param [Hash] opts the optional parameters
141
+ # @option opts [String] :account filters results to only include applications deployed in the specified account
142
+ # @option opts [String] :owner filteres results to only include applications owned by the specified email
143
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
144
+ def get_all_applications_using_get_with_http_info(opts = {})
145
+ if @api_client.config.debugging
146
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_all_applications_using_get ...'
147
+ end
148
+ # resource path
149
+ local_var_path = '/applications'
150
+
151
+ # query parameters
152
+ query_params = {}
153
+ query_params[:'account'] = opts[:'account'] if !opts[:'account'].nil?
154
+ query_params[:'owner'] = opts[:'owner'] if !opts[:'owner'].nil?
155
+
156
+ # header parameters
157
+ header_params = {}
158
+ # HTTP header 'Accept' (if needed)
159
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
160
+ # HTTP header 'Content-Type'
161
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
162
+
163
+ # form parameters
164
+ form_params = {}
165
+
166
+ # http body (model)
167
+ post_body = nil
168
+ auth_names = []
169
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
170
+ :header_params => header_params,
171
+ :query_params => query_params,
172
+ :form_params => form_params,
173
+ :body => post_body,
174
+ :auth_names => auth_names,
175
+ :return_type => 'Array<Object>')
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_all_applications_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
178
+ end
179
+ return data, status_code, headers
180
+ end
181
+ # Retrieve a list of an application's configuration revision history
182
+ # @param application application
183
+ # @param [Hash] opts the optional parameters
184
+ # @option opts [Integer] :limit limit (default to 20)
185
+ # @return [Array<Object>]
186
+ def get_application_history_using_get(application, opts = {})
187
+ data, _status_code, _headers = get_application_history_using_get_with_http_info(application, opts)
188
+ data
189
+ end
190
+
191
+ # Retrieve a list of an application&#39;s configuration revision history
192
+ # @param application application
193
+ # @param [Hash] opts the optional parameters
194
+ # @option opts [Integer] :limit limit
195
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
196
+ def get_application_history_using_get_with_http_info(application, opts = {})
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_application_history_using_get ...'
199
+ end
200
+ # verify the required parameter 'application' is set
201
+ if @api_client.config.client_side_validation && application.nil?
202
+ fail ArgumentError, "Missing the required parameter 'application' when calling ApplicationControllerApi.get_application_history_using_get"
203
+ end
204
+ # resource path
205
+ local_var_path = '/applications/{application}/history'.sub('{' + 'application' + '}', application.to_s)
206
+
207
+ # query parameters
208
+ query_params = {}
209
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
210
+
211
+ # header parameters
212
+ header_params = {}
213
+ # HTTP header 'Accept' (if needed)
214
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
215
+ # HTTP header 'Content-Type'
216
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
217
+
218
+ # form parameters
219
+ form_params = {}
220
+
221
+ # http body (model)
222
+ post_body = nil
223
+ auth_names = []
224
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
225
+ :header_params => header_params,
226
+ :query_params => query_params,
227
+ :form_params => form_params,
228
+ :body => post_body,
229
+ :auth_names => auth_names,
230
+ :return_type => 'Array<Object>')
231
+ if @api_client.config.debugging
232
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_application_history_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
233
+ end
234
+ return data, status_code, headers
235
+ end
236
+ # Retrieve an application's details
237
+ # @param application application
238
+ # @param [Hash] opts the optional parameters
239
+ # @option opts [BOOLEAN] :expand expand (default to true)
240
+ # @return [Hash<String, Object>]
241
+ def get_application_using_get(application, opts = {})
242
+ data, _status_code, _headers = get_application_using_get_with_http_info(application, opts)
243
+ data
244
+ end
245
+
246
+ # Retrieve an application&#39;s details
247
+ # @param application application
248
+ # @param [Hash] opts the optional parameters
249
+ # @option opts [BOOLEAN] :expand expand
250
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
251
+ def get_application_using_get_with_http_info(application, opts = {})
252
+ if @api_client.config.debugging
253
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_application_using_get ...'
254
+ end
255
+ # verify the required parameter 'application' is set
256
+ if @api_client.config.client_side_validation && application.nil?
257
+ fail ArgumentError, "Missing the required parameter 'application' when calling ApplicationControllerApi.get_application_using_get"
258
+ end
259
+ # resource path
260
+ local_var_path = '/applications/{application}'.sub('{' + 'application' + '}', application.to_s)
261
+
262
+ # query parameters
263
+ query_params = {}
264
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
265
+
266
+ # header parameters
267
+ header_params = {}
268
+ # HTTP header 'Accept' (if needed)
269
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
270
+ # HTTP header 'Content-Type'
271
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
272
+
273
+ # form parameters
274
+ form_params = {}
275
+
276
+ # http body (model)
277
+ post_body = nil
278
+ auth_names = []
279
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
280
+ :header_params => header_params,
281
+ :query_params => query_params,
282
+ :form_params => form_params,
283
+ :body => post_body,
284
+ :auth_names => auth_names,
285
+ :return_type => 'Hash<String, Object>')
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_application_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
288
+ end
289
+ return data, status_code, headers
290
+ end
291
+ # Retrieve a pipeline configuration
292
+ # @param application application
293
+ # @param pipeline_name pipelineName
294
+ # @param [Hash] opts the optional parameters
295
+ # @return [Hash<String, Object>]
296
+ def get_pipeline_config_using_get(application, pipeline_name, opts = {})
297
+ data, _status_code, _headers = get_pipeline_config_using_get_with_http_info(application, pipeline_name, opts)
298
+ data
299
+ end
300
+
301
+ # Retrieve a pipeline configuration
302
+ # @param application application
303
+ # @param pipeline_name pipelineName
304
+ # @param [Hash] opts the optional parameters
305
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
306
+ def get_pipeline_config_using_get_with_http_info(application, pipeline_name, opts = {})
307
+ if @api_client.config.debugging
308
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_pipeline_config_using_get ...'
309
+ end
310
+ # verify the required parameter 'application' is set
311
+ if @api_client.config.client_side_validation && application.nil?
312
+ fail ArgumentError, "Missing the required parameter 'application' when calling ApplicationControllerApi.get_pipeline_config_using_get"
313
+ end
314
+ # verify the required parameter 'pipeline_name' is set
315
+ if @api_client.config.client_side_validation && pipeline_name.nil?
316
+ fail ArgumentError, "Missing the required parameter 'pipeline_name' when calling ApplicationControllerApi.get_pipeline_config_using_get"
317
+ end
318
+ # resource path
319
+ local_var_path = '/applications/{application}/pipelineConfigs/{pipelineName}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'pipelineName' + '}', pipeline_name.to_s)
320
+
321
+ # query parameters
322
+ query_params = {}
323
+
324
+ # header parameters
325
+ header_params = {}
326
+ # HTTP header 'Accept' (if needed)
327
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
328
+ # HTTP header 'Content-Type'
329
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
330
+
331
+ # form parameters
332
+ form_params = {}
333
+
334
+ # http body (model)
335
+ post_body = nil
336
+ auth_names = []
337
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
338
+ :header_params => header_params,
339
+ :query_params => query_params,
340
+ :form_params => form_params,
341
+ :body => post_body,
342
+ :auth_names => auth_names,
343
+ :return_type => 'Hash<String, Object>')
344
+ if @api_client.config.debugging
345
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_pipeline_config_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
346
+ end
347
+ return data, status_code, headers
348
+ end
349
+ # Retrieve a list of an application's pipeline configurations
350
+ # @param application application
351
+ # @param [Hash] opts the optional parameters
352
+ # @return [Array<Object>]
353
+ def get_pipeline_configs_for_application_using_get(application, opts = {})
354
+ data, _status_code, _headers = get_pipeline_configs_for_application_using_get_with_http_info(application, opts)
355
+ data
356
+ end
357
+
358
+ # Retrieve a list of an application&#39;s pipeline configurations
359
+ # @param application application
360
+ # @param [Hash] opts the optional parameters
361
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
362
+ def get_pipeline_configs_for_application_using_get_with_http_info(application, opts = {})
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_pipeline_configs_for_application_using_get ...'
365
+ end
366
+ # verify the required parameter 'application' is set
367
+ if @api_client.config.client_side_validation && application.nil?
368
+ fail ArgumentError, "Missing the required parameter 'application' when calling ApplicationControllerApi.get_pipeline_configs_for_application_using_get"
369
+ end
370
+ # resource path
371
+ local_var_path = '/applications/{application}/pipelineConfigs'.sub('{' + 'application' + '}', application.to_s)
372
+
373
+ # query parameters
374
+ query_params = {}
375
+
376
+ # header parameters
377
+ header_params = {}
378
+ # HTTP header 'Accept' (if needed)
379
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
380
+ # HTTP header 'Content-Type'
381
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
382
+
383
+ # form parameters
384
+ form_params = {}
385
+
386
+ # http body (model)
387
+ post_body = nil
388
+ auth_names = []
389
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
390
+ :header_params => header_params,
391
+ :query_params => query_params,
392
+ :form_params => form_params,
393
+ :body => post_body,
394
+ :auth_names => auth_names,
395
+ :return_type => 'Array<Object>')
396
+ if @api_client.config.debugging
397
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_pipeline_configs_for_application_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
398
+ end
399
+ return data, status_code, headers
400
+ end
401
+ # Retrieve a list of an application's pipeline executions
402
+ # @param application application
403
+ # @param [Hash] opts the optional parameters
404
+ # @option opts [Integer] :limit limit
405
+ # @option opts [String] :statuses statuses
406
+ # @option opts [BOOLEAN] :expand expand
407
+ # @return [Array<Object>]
408
+ def get_pipelines_using_get(application, opts = {})
409
+ data, _status_code, _headers = get_pipelines_using_get_with_http_info(application, opts)
410
+ data
411
+ end
412
+
413
+ # Retrieve a list of an application&#39;s pipeline executions
414
+ # @param application application
415
+ # @param [Hash] opts the optional parameters
416
+ # @option opts [Integer] :limit limit
417
+ # @option opts [String] :statuses statuses
418
+ # @option opts [BOOLEAN] :expand expand
419
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
420
+ def get_pipelines_using_get_with_http_info(application, opts = {})
421
+ if @api_client.config.debugging
422
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_pipelines_using_get ...'
423
+ end
424
+ # verify the required parameter 'application' is set
425
+ if @api_client.config.client_side_validation && application.nil?
426
+ fail ArgumentError, "Missing the required parameter 'application' when calling ApplicationControllerApi.get_pipelines_using_get"
427
+ end
428
+ # resource path
429
+ local_var_path = '/applications/{application}/pipelines'.sub('{' + 'application' + '}', application.to_s)
430
+
431
+ # query parameters
432
+ query_params = {}
433
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
434
+ query_params[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil?
435
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
436
+
437
+ # header parameters
438
+ header_params = {}
439
+ # HTTP header 'Accept' (if needed)
440
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
441
+ # HTTP header 'Content-Type'
442
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
443
+
444
+ # form parameters
445
+ form_params = {}
446
+
447
+ # http body (model)
448
+ post_body = nil
449
+ auth_names = []
450
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
451
+ :header_params => header_params,
452
+ :query_params => query_params,
453
+ :form_params => form_params,
454
+ :body => post_body,
455
+ :auth_names => auth_names,
456
+ :return_type => 'Array<Object>')
457
+ if @api_client.config.debugging
458
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_pipelines_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
459
+ end
460
+ return data, status_code, headers
461
+ end
462
+ # Retrieve a pipeline strategy configuration
463
+ # @param application application
464
+ # @param strategy_name strategyName
465
+ # @param [Hash] opts the optional parameters
466
+ # @return [Hash<String, Object>]
467
+ def get_strategy_config_using_get(application, strategy_name, opts = {})
468
+ data, _status_code, _headers = get_strategy_config_using_get_with_http_info(application, strategy_name, opts)
469
+ data
470
+ end
471
+
472
+ # Retrieve a pipeline strategy configuration
473
+ # @param application application
474
+ # @param strategy_name strategyName
475
+ # @param [Hash] opts the optional parameters
476
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
477
+ def get_strategy_config_using_get_with_http_info(application, strategy_name, opts = {})
478
+ if @api_client.config.debugging
479
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_strategy_config_using_get ...'
480
+ end
481
+ # verify the required parameter 'application' is set
482
+ if @api_client.config.client_side_validation && application.nil?
483
+ fail ArgumentError, "Missing the required parameter 'application' when calling ApplicationControllerApi.get_strategy_config_using_get"
484
+ end
485
+ # verify the required parameter 'strategy_name' is set
486
+ if @api_client.config.client_side_validation && strategy_name.nil?
487
+ fail ArgumentError, "Missing the required parameter 'strategy_name' when calling ApplicationControllerApi.get_strategy_config_using_get"
488
+ end
489
+ # resource path
490
+ local_var_path = '/applications/{application}/strategyConfigs/{strategyName}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'strategyName' + '}', strategy_name.to_s)
491
+
492
+ # query parameters
493
+ query_params = {}
494
+
495
+ # header parameters
496
+ header_params = {}
497
+ # HTTP header 'Accept' (if needed)
498
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
499
+ # HTTP header 'Content-Type'
500
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
501
+
502
+ # form parameters
503
+ form_params = {}
504
+
505
+ # http body (model)
506
+ post_body = nil
507
+ auth_names = []
508
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
509
+ :header_params => header_params,
510
+ :query_params => query_params,
511
+ :form_params => form_params,
512
+ :body => post_body,
513
+ :auth_names => auth_names,
514
+ :return_type => 'Hash<String, Object>')
515
+ if @api_client.config.debugging
516
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_strategy_config_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
517
+ end
518
+ return data, status_code, headers
519
+ end
520
+ # Retrieve a list of an application's pipeline strategy configurations
521
+ # @param application application
522
+ # @param [Hash] opts the optional parameters
523
+ # @return [Array<Object>]
524
+ def get_strategy_configs_for_application_using_get(application, opts = {})
525
+ data, _status_code, _headers = get_strategy_configs_for_application_using_get_with_http_info(application, opts)
526
+ data
527
+ end
528
+
529
+ # Retrieve a list of an application&#39;s pipeline strategy configurations
530
+ # @param application application
531
+ # @param [Hash] opts the optional parameters
532
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
533
+ def get_strategy_configs_for_application_using_get_with_http_info(application, opts = {})
534
+ if @api_client.config.debugging
535
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_strategy_configs_for_application_using_get ...'
536
+ end
537
+ # verify the required parameter 'application' is set
538
+ if @api_client.config.client_side_validation && application.nil?
539
+ fail ArgumentError, "Missing the required parameter 'application' when calling ApplicationControllerApi.get_strategy_configs_for_application_using_get"
540
+ end
541
+ # resource path
542
+ local_var_path = '/applications/{application}/strategyConfigs'.sub('{' + 'application' + '}', application.to_s)
543
+
544
+ # query parameters
545
+ query_params = {}
546
+
547
+ # header parameters
548
+ header_params = {}
549
+ # HTTP header 'Accept' (if needed)
550
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
551
+ # HTTP header 'Content-Type'
552
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
553
+
554
+ # form parameters
555
+ form_params = {}
556
+
557
+ # http body (model)
558
+ post_body = nil
559
+ auth_names = []
560
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
561
+ :header_params => header_params,
562
+ :query_params => query_params,
563
+ :form_params => form_params,
564
+ :body => post_body,
565
+ :auth_names => auth_names,
566
+ :return_type => 'Array<Object>')
567
+ if @api_client.config.debugging
568
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_strategy_configs_for_application_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
569
+ end
570
+ return data, status_code, headers
571
+ end
572
+ # Get task details
573
+ # @param id id
574
+ # @param task_details_id taskDetailsId
575
+ # @param [Hash] opts the optional parameters
576
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
577
+ # @return [Hash<String, Object>]
578
+ def get_task_details_using_get(id, task_details_id, opts = {})
579
+ data, _status_code, _headers = get_task_details_using_get_with_http_info(id, task_details_id, opts)
580
+ data
581
+ end
582
+
583
+ # Get task details
584
+ # @param id id
585
+ # @param task_details_id taskDetailsId
586
+ # @param [Hash] opts the optional parameters
587
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
588
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
589
+ def get_task_details_using_get_with_http_info(id, task_details_id, opts = {})
590
+ if @api_client.config.debugging
591
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_task_details_using_get ...'
592
+ end
593
+ # verify the required parameter 'id' is set
594
+ if @api_client.config.client_side_validation && id.nil?
595
+ fail ArgumentError, "Missing the required parameter 'id' when calling ApplicationControllerApi.get_task_details_using_get"
596
+ end
597
+ # verify the required parameter 'task_details_id' is set
598
+ if @api_client.config.client_side_validation && task_details_id.nil?
599
+ fail ArgumentError, "Missing the required parameter 'task_details_id' when calling ApplicationControllerApi.get_task_details_using_get"
600
+ end
601
+ # resource path
602
+ local_var_path = '/applications/{application}/tasks/{id}/details/{taskDetailsId}'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'taskDetailsId' + '}', task_details_id.to_s)
603
+
604
+ # query parameters
605
+ query_params = {}
606
+
607
+ # header parameters
608
+ header_params = {}
609
+ # HTTP header 'Accept' (if needed)
610
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
611
+ # HTTP header 'Content-Type'
612
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
613
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
614
+
615
+ # form parameters
616
+ form_params = {}
617
+
618
+ # http body (model)
619
+ post_body = nil
620
+ auth_names = []
621
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
622
+ :header_params => header_params,
623
+ :query_params => query_params,
624
+ :form_params => form_params,
625
+ :body => post_body,
626
+ :auth_names => auth_names,
627
+ :return_type => 'Hash<String, Object>')
628
+ if @api_client.config.debugging
629
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_task_details_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
630
+ end
631
+ return data, status_code, headers
632
+ end
633
+ # Get task
634
+ # @param id id
635
+ # @param [Hash] opts the optional parameters
636
+ # @return [Hash<String, Object>]
637
+ def get_task_using_get(id, opts = {})
638
+ data, _status_code, _headers = get_task_using_get_with_http_info(id, opts)
639
+ data
640
+ end
641
+
642
+ # Get task
643
+ # @param id id
644
+ # @param [Hash] opts the optional parameters
645
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
646
+ def get_task_using_get_with_http_info(id, opts = {})
647
+ if @api_client.config.debugging
648
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_task_using_get ...'
649
+ end
650
+ # verify the required parameter 'id' is set
651
+ if @api_client.config.client_side_validation && id.nil?
652
+ fail ArgumentError, "Missing the required parameter 'id' when calling ApplicationControllerApi.get_task_using_get"
653
+ end
654
+ # resource path
655
+ local_var_path = '/applications/{application}/tasks/{id}'.sub('{' + 'id' + '}', id.to_s)
656
+
657
+ # query parameters
658
+ query_params = {}
659
+
660
+ # header parameters
661
+ header_params = {}
662
+ # HTTP header 'Accept' (if needed)
663
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
664
+ # HTTP header 'Content-Type'
665
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
666
+
667
+ # form parameters
668
+ form_params = {}
669
+
670
+ # http body (model)
671
+ post_body = nil
672
+ auth_names = []
673
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
674
+ :header_params => header_params,
675
+ :query_params => query_params,
676
+ :form_params => form_params,
677
+ :body => post_body,
678
+ :auth_names => auth_names,
679
+ :return_type => 'Hash<String, Object>')
680
+ if @api_client.config.debugging
681
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_task_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
682
+ end
683
+ return data, status_code, headers
684
+ end
685
+ # Retrieve a list of an application's tasks
686
+ # @param application application
687
+ # @param [Hash] opts the optional parameters
688
+ # @option opts [Integer] :page page
689
+ # @option opts [Integer] :limit limit
690
+ # @option opts [String] :statuses statuses
691
+ # @return [Array<Object>]
692
+ def get_tasks_using_get(application, opts = {})
693
+ data, _status_code, _headers = get_tasks_using_get_with_http_info(application, opts)
694
+ data
695
+ end
696
+
697
+ # Retrieve a list of an application&#39;s tasks
698
+ # @param application application
699
+ # @param [Hash] opts the optional parameters
700
+ # @option opts [Integer] :page page
701
+ # @option opts [Integer] :limit limit
702
+ # @option opts [String] :statuses statuses
703
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
704
+ def get_tasks_using_get_with_http_info(application, opts = {})
705
+ if @api_client.config.debugging
706
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_tasks_using_get ...'
707
+ end
708
+ # verify the required parameter 'application' is set
709
+ if @api_client.config.client_side_validation && application.nil?
710
+ fail ArgumentError, "Missing the required parameter 'application' when calling ApplicationControllerApi.get_tasks_using_get"
711
+ end
712
+ # resource path
713
+ local_var_path = '/applications/{application}/tasks'.sub('{' + 'application' + '}', application.to_s)
714
+
715
+ # query parameters
716
+ query_params = {}
717
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
718
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
719
+ query_params[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil?
720
+
721
+ # header parameters
722
+ header_params = {}
723
+ # HTTP header 'Accept' (if needed)
724
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
725
+ # HTTP header 'Content-Type'
726
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
727
+
728
+ # form parameters
729
+ form_params = {}
730
+
731
+ # http body (model)
732
+ post_body = nil
733
+ auth_names = []
734
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
735
+ :header_params => header_params,
736
+ :query_params => query_params,
737
+ :form_params => form_params,
738
+ :body => post_body,
739
+ :auth_names => auth_names,
740
+ :return_type => 'Array<Object>')
741
+ if @api_client.config.debugging
742
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#get_tasks_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
743
+ end
744
+ return data, status_code, headers
745
+ end
746
+ # Invoke pipeline config
747
+ # @param application application
748
+ # @param pipeline_name pipelineName
749
+ # @param [Hash] opts the optional parameters
750
+ # @option opts [Object] :trigger trigger
751
+ # @option opts [String] :user user
752
+ # @return [HttpEntity]
753
+ def invoke_pipeline_config_using_post(application, pipeline_name, opts = {})
754
+ data, _status_code, _headers = invoke_pipeline_config_using_post_with_http_info(application, pipeline_name, opts)
755
+ data
756
+ end
757
+
758
+ # Invoke pipeline config
759
+ # @param application application
760
+ # @param pipeline_name pipelineName
761
+ # @param [Hash] opts the optional parameters
762
+ # @option opts [Object] :trigger trigger
763
+ # @option opts [String] :user user
764
+ # @return [Array<(HttpEntity, Fixnum, Hash)>] HttpEntity data, response status code and response headers
765
+ def invoke_pipeline_config_using_post_with_http_info(application, pipeline_name, opts = {})
766
+ if @api_client.config.debugging
767
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.invoke_pipeline_config_using_post ...'
768
+ end
769
+ # verify the required parameter 'application' is set
770
+ if @api_client.config.client_side_validation && application.nil?
771
+ fail ArgumentError, "Missing the required parameter 'application' when calling ApplicationControllerApi.invoke_pipeline_config_using_post"
772
+ end
773
+ # verify the required parameter 'pipeline_name' is set
774
+ if @api_client.config.client_side_validation && pipeline_name.nil?
775
+ fail ArgumentError, "Missing the required parameter 'pipeline_name' when calling ApplicationControllerApi.invoke_pipeline_config_using_post"
776
+ end
777
+ # resource path
778
+ local_var_path = '/applications/{application}/pipelineConfigs/{pipelineName}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'pipelineName' + '}', pipeline_name.to_s)
779
+
780
+ # query parameters
781
+ query_params = {}
782
+ query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
783
+
784
+ # header parameters
785
+ header_params = {}
786
+ # HTTP header 'Accept' (if needed)
787
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
788
+ # HTTP header 'Content-Type'
789
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
790
+
791
+ # form parameters
792
+ form_params = {}
793
+
794
+ # http body (model)
795
+ post_body = @api_client.object_to_http_body(opts[:'trigger'])
796
+ auth_names = []
797
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
798
+ :header_params => header_params,
799
+ :query_params => query_params,
800
+ :form_params => form_params,
801
+ :body => post_body,
802
+ :auth_names => auth_names,
803
+ :return_type => 'HttpEntity')
804
+ if @api_client.config.debugging
805
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#invoke_pipeline_config_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
806
+ end
807
+ return data, status_code, headers
808
+ end
809
+ # Create task
810
+ # @param application application
811
+ # @param map map
812
+ # @param [Hash] opts the optional parameters
813
+ # @return [Hash<String, Object>]
814
+ def task_using_post(application, map, opts = {})
815
+ data, _status_code, _headers = task_using_post_with_http_info(application, map, opts)
816
+ data
817
+ end
818
+
819
+ # Create task
820
+ # @param application application
821
+ # @param map map
822
+ # @param [Hash] opts the optional parameters
823
+ # @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
824
+ def task_using_post_with_http_info(application, map, opts = {})
825
+ if @api_client.config.debugging
826
+ @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.task_using_post ...'
827
+ end
828
+ # verify the required parameter 'application' is set
829
+ if @api_client.config.client_side_validation && application.nil?
830
+ fail ArgumentError, "Missing the required parameter 'application' when calling ApplicationControllerApi.task_using_post"
831
+ end
832
+ # verify the required parameter 'map' is set
833
+ if @api_client.config.client_side_validation && map.nil?
834
+ fail ArgumentError, "Missing the required parameter 'map' when calling ApplicationControllerApi.task_using_post"
835
+ end
836
+ # resource path
837
+ local_var_path = '/applications/{application}/tasks'.sub('{' + 'application' + '}', application.to_s)
838
+
839
+ # query parameters
840
+ query_params = {}
841
+
842
+ # header parameters
843
+ header_params = {}
844
+ # HTTP header 'Accept' (if needed)
845
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
846
+ # HTTP header 'Content-Type'
847
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
848
+
849
+ # form parameters
850
+ form_params = {}
851
+
852
+ # http body (model)
853
+ post_body = @api_client.object_to_http_body(map)
854
+ auth_names = []
855
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
856
+ :header_params => header_params,
857
+ :query_params => query_params,
858
+ :form_params => form_params,
859
+ :body => post_body,
860
+ :auth_names => auth_names,
861
+ :return_type => 'Hash<String, Object>')
862
+ if @api_client.config.debugging
863
+ @api_client.config.logger.debug "API called: ApplicationControllerApi#task_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
864
+ end
865
+ return data, status_code, headers
866
+ end
867
+ end
868
+ end