apcera 0.1.1
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/apcera.gemspec +31 -0
- data/lib/apcera/api/default_api.rb +128 -0
- data/lib/apcera/api/instances_api.rb +280 -0
- data/lib/apcera/api/jobs_api.rb +1428 -0
- data/lib/apcera/api/logs_api.rb +120 -0
- data/lib/apcera/api/metrics_api.rb +280 -0
- data/lib/apcera/api/packages_api.rb +541 -0
- data/lib/apcera/api/providers_api.rb +175 -0
- data/lib/apcera/api/rules_api.rb +228 -0
- data/lib/apcera/api/services_and_bindings_api.rb +278 -0
- data/lib/apcera/api/staging_pipelines_api.rb +281 -0
- data/lib/apcera/api/utilities_api.rb +327 -0
- data/lib/apcera/api_client.rb +294 -0
- data/lib/apcera/api_error.rb +24 -0
- data/lib/apcera/configuration.rb +173 -0
- data/lib/apcera/models/apc_version_object.rb +37 -0
- data/lib/apcera/models/api_error.rb +143 -0
- data/lib/apcera/models/audit_log_item.rb +117 -0
- data/lib/apcera/models/audit_log_item_old.rb +85 -0
- data/lib/apcera/models/base_object.rb +96 -0
- data/lib/apcera/models/binding.rb +137 -0
- data/lib/apcera/models/create_docker_job_request.rb +197 -0
- data/lib/apcera/models/create_docker_job_response.rb +37 -0
- data/lib/apcera/models/dependency.rb +53 -0
- data/lib/apcera/models/dependency_resolve.rb +45 -0
- data/lib/apcera/models/docker_origin.rb +63 -0
- data/lib/apcera/models/drain.rb +61 -0
- data/lib/apcera/models/drain_config.rb +53 -0
- data/lib/apcera/models/file_listing.rb +45 -0
- data/lib/apcera/models/info.rb +53 -0
- data/lib/apcera/models/instance_manager.rb +105 -0
- data/lib/apcera/models/instance_state.rb +117 -0
- data/lib/apcera/models/instances.rb +109 -0
- data/lib/apcera/models/job.rb +243 -0
- data/lib/apcera/models/job_health.rb +63 -0
- data/lib/apcera/models/job_preferences.rb +37 -0
- data/lib/apcera/models/log.rb +53 -0
- data/lib/apcera/models/metric_series.rb +49 -0
- data/lib/apcera/models/metric_series_hash.rb +29 -0
- data/lib/apcera/models/metrics.rb +49 -0
- data/lib/apcera/models/namespace.rb +37 -0
- data/lib/apcera/models/package.rb +183 -0
- data/lib/apcera/models/package_depends_request.rb +47 -0
- data/lib/apcera/models/package_info.rb +69 -0
- data/lib/apcera/models/package_resource.rb +61 -0
- data/lib/apcera/models/policy_error.rb +63 -0
- data/lib/apcera/models/port.rb +55 -0
- data/lib/apcera/models/process.rb +37 -0
- data/lib/apcera/models/process_object.rb +115 -0
- data/lib/apcera/models/provide.rb +53 -0
- data/lib/apcera/models/provider.rb +85 -0
- data/lib/apcera/models/resource.rb +69 -0
- data/lib/apcera/models/restart_config.rb +53 -0
- data/lib/apcera/models/rollout_config.rb +69 -0
- data/lib/apcera/models/route.rb +53 -0
- data/lib/apcera/models/rule.rb +101 -0
- data/lib/apcera/models/runtime.rb +47 -0
- data/lib/apcera/models/semi_pipe_rule.rb +101 -0
- data/lib/apcera/models/semi_pipe_rule_action.rb +37 -0
- data/lib/apcera/models/stager_job.rb +37 -0
- data/lib/apcera/models/staging_pipeline.rb +103 -0
- data/lib/apcera/models/sub_task.rb +61 -0
- data/lib/apcera/models/task.rb +87 -0
- data/lib/apcera/models/task_event.rb +113 -0
- data/lib/apcera/models/task_progress.rb +45 -0
- data/lib/apcera/models/unbind_parameter_object.rb +53 -0
- data/lib/apcera/models/unlink_parameter_object.rb +53 -0
- data/lib/apcera/version.rb +3 -0
- data/lib/apcera.rb +90 -0
- metadata +293 -0
@@ -0,0 +1,1428 @@
|
|
1
|
+
require "uri"
|
2
|
+
|
3
|
+
module Apcera
|
4
|
+
class JobsApi
|
5
|
+
attr_accessor :api_client
|
6
|
+
|
7
|
+
def initialize(api_client = nil)
|
8
|
+
@api_client = api_client || Configuration.api_client
|
9
|
+
end
|
10
|
+
|
11
|
+
# Creates a new binding between a job and a service, or between two jobs (a job link).
|
12
|
+
#
|
13
|
+
# @param binding An object that defines the properties of the new binding.
|
14
|
+
# @param [Hash] opts the optional parameters
|
15
|
+
# @option opts [String] :authorization
|
16
|
+
# @return [Binding]
|
17
|
+
def bindings_post(binding, opts = {})
|
18
|
+
|
19
|
+
if Configuration.debugging
|
20
|
+
Configuration.logger.debug "Calling API: JobsApi#bindings_post ..."
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
# verify the required parameter 'binding' is set
|
25
|
+
fail "Missing the required parameter 'binding' when calling bindings_post" if binding.nil?
|
26
|
+
|
27
|
+
# resource path
|
28
|
+
path = "/bindings".sub('{format}','json')
|
29
|
+
|
30
|
+
# query parameters
|
31
|
+
query_params = {}
|
32
|
+
|
33
|
+
# header parameters
|
34
|
+
header_params = {}
|
35
|
+
|
36
|
+
# HTTP header 'Accept' (if needed)
|
37
|
+
_header_accept = []
|
38
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
39
|
+
|
40
|
+
# HTTP header 'Content-Type'
|
41
|
+
_header_content_type = []
|
42
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
43
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
44
|
+
|
45
|
+
# form parameters
|
46
|
+
form_params = {}
|
47
|
+
|
48
|
+
# http body (model)
|
49
|
+
post_body = @api_client.object_to_http_body(binding)
|
50
|
+
|
51
|
+
|
52
|
+
auth_names = ['authorization']
|
53
|
+
result = @api_client.call_api(:POST, path,
|
54
|
+
:header_params => header_params,
|
55
|
+
:query_params => query_params,
|
56
|
+
:form_params => form_params,
|
57
|
+
:body => post_body,
|
58
|
+
:auth_names => auth_names,
|
59
|
+
:return_type => 'Binding')
|
60
|
+
if Configuration.debugging
|
61
|
+
Configuration.logger.debug "API called: JobsApi#bindings_post. Result: #{result.inspect}"
|
62
|
+
end
|
63
|
+
return result
|
64
|
+
end
|
65
|
+
|
66
|
+
# List jobs.
|
67
|
+
# Returns a list of jobs, optionally filtered by one or more query parameters.
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @option opts [String] :authorization
|
70
|
+
# @option opts [Array<String>] :tag List of tags. Only jobs with the specified tags are returned.
|
71
|
+
# @option opts [Array<String>] :ids List of job UUIDs. Only jobs with the specified UUIDs are returned.
|
72
|
+
# @option opts [String] :name Local name of job(s) to return.
|
73
|
+
# @option opts [String] :fqn FQN of job to return.
|
74
|
+
# @option opts [String] :match_partial_fqn If `true`, jobs that partially match the specified FQN are returned.
|
75
|
+
# @option opts [String] :package_id Return jobs that use the package specified by UUID.
|
76
|
+
# @option opts [String] :binding_fqn Filter jobs with a specific binding FQN.
|
77
|
+
# @option opts [String] :provider_fqn Return jobs bound to services on the specified provider.
|
78
|
+
# @option opts [String] :service_fqn Return jobs bound to the specified service.
|
79
|
+
# @option opts [String] :count Limits the number of jobs returned in the response. By default, all jobs are returned.
|
80
|
+
# @option opts [String] :page Specifies the number of the results page to fetch. By default, the first page of results is returned.
|
81
|
+
# @option opts [String] :health If `true`, the response includes health metrics for the job.
|
82
|
+
# @return [Array<Job>]
|
83
|
+
def jobs_get(opts = {})
|
84
|
+
|
85
|
+
if Configuration.debugging
|
86
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_get ..."
|
87
|
+
end
|
88
|
+
|
89
|
+
|
90
|
+
# resource path
|
91
|
+
path = "/jobs".sub('{format}','json')
|
92
|
+
|
93
|
+
# query parameters
|
94
|
+
query_params = {}
|
95
|
+
query_params[:'tag'] = opts[:'tag'] if opts[:'tag']
|
96
|
+
query_params[:'ids'] = opts[:'ids'] if opts[:'ids']
|
97
|
+
query_params[:'name'] = opts[:'name'] if opts[:'name']
|
98
|
+
query_params[:'fqn'] = opts[:'fqn'] if opts[:'fqn']
|
99
|
+
query_params[:'matchPartialFQN'] = opts[:'match_partial_fqn'] if opts[:'match_partial_fqn']
|
100
|
+
query_params[:'package_id'] = opts[:'package_id'] if opts[:'package_id']
|
101
|
+
query_params[:'BindingFQN'] = opts[:'binding_fqn'] if opts[:'binding_fqn']
|
102
|
+
query_params[:'ProviderFQN'] = opts[:'provider_fqn'] if opts[:'provider_fqn']
|
103
|
+
query_params[:'ServiceFQN'] = opts[:'service_fqn'] if opts[:'service_fqn']
|
104
|
+
query_params[:'count'] = opts[:'count'] if opts[:'count']
|
105
|
+
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
106
|
+
query_params[:'health'] = opts[:'health'] if opts[:'health']
|
107
|
+
|
108
|
+
# header parameters
|
109
|
+
header_params = {}
|
110
|
+
|
111
|
+
# HTTP header 'Accept' (if needed)
|
112
|
+
_header_accept = []
|
113
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
114
|
+
|
115
|
+
# HTTP header 'Content-Type'
|
116
|
+
_header_content_type = []
|
117
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
118
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
119
|
+
|
120
|
+
# form parameters
|
121
|
+
form_params = {}
|
122
|
+
|
123
|
+
# http body (model)
|
124
|
+
post_body = nil
|
125
|
+
|
126
|
+
|
127
|
+
auth_names = ['authorization']
|
128
|
+
result = @api_client.call_api(:GET, path,
|
129
|
+
:header_params => header_params,
|
130
|
+
:query_params => query_params,
|
131
|
+
:form_params => form_params,
|
132
|
+
:body => post_body,
|
133
|
+
:auth_names => auth_names,
|
134
|
+
:return_type => 'Array<Job>')
|
135
|
+
if Configuration.debugging
|
136
|
+
Configuration.logger.debug "API called: JobsApi#jobs_get. Result: #{result.inspect}"
|
137
|
+
end
|
138
|
+
return result
|
139
|
+
end
|
140
|
+
|
141
|
+
# Creates a new job.
|
142
|
+
# Creates a new job from the Job object passed in the POST body. The only required property in the request object is `fqn` ([Fully Qualified Name](http://docs.apcera.com/reference/glossary/#fqn)).
|
143
|
+
# @param job An object that defines the properties of the new job. The only required parameter is `fqn`.
|
144
|
+
# @param [Hash] opts the optional parameters
|
145
|
+
# @option opts [String] :authorization
|
146
|
+
# @return [Job]
|
147
|
+
def jobs_post(job, opts = {})
|
148
|
+
|
149
|
+
if Configuration.debugging
|
150
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_post ..."
|
151
|
+
end
|
152
|
+
|
153
|
+
|
154
|
+
# verify the required parameter 'job' is set
|
155
|
+
fail "Missing the required parameter 'job' when calling jobs_post" if job.nil?
|
156
|
+
|
157
|
+
# resource path
|
158
|
+
path = "/jobs".sub('{format}','json')
|
159
|
+
|
160
|
+
# query parameters
|
161
|
+
query_params = {}
|
162
|
+
|
163
|
+
# header parameters
|
164
|
+
header_params = {}
|
165
|
+
|
166
|
+
# HTTP header 'Accept' (if needed)
|
167
|
+
_header_accept = []
|
168
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
169
|
+
|
170
|
+
# HTTP header 'Content-Type'
|
171
|
+
_header_content_type = []
|
172
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
173
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
174
|
+
|
175
|
+
# form parameters
|
176
|
+
form_params = {}
|
177
|
+
|
178
|
+
# http body (model)
|
179
|
+
post_body = @api_client.object_to_http_body(job)
|
180
|
+
|
181
|
+
|
182
|
+
auth_names = ['authorization']
|
183
|
+
result = @api_client.call_api(:POST, path,
|
184
|
+
:header_params => header_params,
|
185
|
+
:query_params => query_params,
|
186
|
+
:form_params => form_params,
|
187
|
+
:body => post_body,
|
188
|
+
:auth_names => auth_names,
|
189
|
+
:return_type => 'Job')
|
190
|
+
if Configuration.debugging
|
191
|
+
Configuration.logger.debug "API called: JobsApi#jobs_post. Result: #{result.inspect}"
|
192
|
+
end
|
193
|
+
return result
|
194
|
+
end
|
195
|
+
|
196
|
+
# Creates a new job from a Docker image.
|
197
|
+
# Downloads a Docker image from a registry and creates a job to run it.
|
198
|
+
# @param job Docker job object.
|
199
|
+
# @param [Hash] opts the optional parameters
|
200
|
+
# @option opts [String] :authorization
|
201
|
+
# @return [CreateDockerJobResponse]
|
202
|
+
def docker_jobs_post(job, opts = {})
|
203
|
+
|
204
|
+
if Configuration.debugging
|
205
|
+
Configuration.logger.debug "Calling API: JobsApi#docker_jobs_post ..."
|
206
|
+
end
|
207
|
+
|
208
|
+
|
209
|
+
# verify the required parameter 'job' is set
|
210
|
+
fail "Missing the required parameter 'job' when calling docker_jobs_post" if job.nil?
|
211
|
+
|
212
|
+
# resource path
|
213
|
+
path = "/jobs/docker".sub('{format}','json')
|
214
|
+
|
215
|
+
# query parameters
|
216
|
+
query_params = {}
|
217
|
+
|
218
|
+
# header parameters
|
219
|
+
header_params = {}
|
220
|
+
|
221
|
+
# HTTP header 'Accept' (if needed)
|
222
|
+
_header_accept = []
|
223
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
224
|
+
|
225
|
+
# HTTP header 'Content-Type'
|
226
|
+
_header_content_type = []
|
227
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
228
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
229
|
+
|
230
|
+
# form parameters
|
231
|
+
form_params = {}
|
232
|
+
|
233
|
+
# http body (model)
|
234
|
+
post_body = @api_client.object_to_http_body(job)
|
235
|
+
|
236
|
+
|
237
|
+
auth_names = ['authorization']
|
238
|
+
result = @api_client.call_api(:POST, path,
|
239
|
+
:header_params => header_params,
|
240
|
+
:query_params => query_params,
|
241
|
+
:form_params => form_params,
|
242
|
+
:body => post_body,
|
243
|
+
:auth_names => auth_names,
|
244
|
+
:return_type => 'CreateDockerJobResponse')
|
245
|
+
if Configuration.debugging
|
246
|
+
Configuration.logger.debug "API called: JobsApi#docker_jobs_post. Result: #{result.inspect}"
|
247
|
+
end
|
248
|
+
return result
|
249
|
+
end
|
250
|
+
|
251
|
+
# Checks a Docker job before creation to see if it will be allowed by docker.allow policy.
|
252
|
+
# Checks a Docker job before creation to see if it will be allowed by [docker.allow policy](http://docs.apcera.com/policy/examples/docker/#docker-image-whitelisting).
|
253
|
+
# @param job The job object to check.
|
254
|
+
# @param [Hash] opts the optional parameters
|
255
|
+
# @option opts [String] :authorization
|
256
|
+
# @return [nil]
|
257
|
+
def docker_job_check(job, opts = {})
|
258
|
+
|
259
|
+
if Configuration.debugging
|
260
|
+
Configuration.logger.debug "Calling API: JobsApi#docker_job_check ..."
|
261
|
+
end
|
262
|
+
|
263
|
+
|
264
|
+
# verify the required parameter 'job' is set
|
265
|
+
fail "Missing the required parameter 'job' when calling docker_job_check" if job.nil?
|
266
|
+
|
267
|
+
# resource path
|
268
|
+
path = "/jobs/docker-job-check".sub('{format}','json')
|
269
|
+
|
270
|
+
# query parameters
|
271
|
+
query_params = {}
|
272
|
+
|
273
|
+
# header parameters
|
274
|
+
header_params = {}
|
275
|
+
|
276
|
+
# HTTP header 'Accept' (if needed)
|
277
|
+
_header_accept = []
|
278
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
279
|
+
|
280
|
+
# HTTP header 'Content-Type'
|
281
|
+
_header_content_type = []
|
282
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
283
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
284
|
+
|
285
|
+
# form parameters
|
286
|
+
form_params = {}
|
287
|
+
|
288
|
+
# http body (model)
|
289
|
+
post_body = @api_client.object_to_http_body(job)
|
290
|
+
|
291
|
+
|
292
|
+
auth_names = ['authorization']
|
293
|
+
@api_client.call_api(:POST, path,
|
294
|
+
:header_params => header_params,
|
295
|
+
:query_params => query_params,
|
296
|
+
:form_params => form_params,
|
297
|
+
:body => post_body,
|
298
|
+
:auth_names => auth_names)
|
299
|
+
if Configuration.debugging
|
300
|
+
Configuration.logger.debug "API called: JobsApi#docker_job_check"
|
301
|
+
end
|
302
|
+
return nil
|
303
|
+
end
|
304
|
+
|
305
|
+
# Retrieves health information for a job with a specific UUID.
|
306
|
+
# If a job UUID is supplied that corresponds to a deleted or non-running job, or the user does not have 'permit read' on the job that they requested health for, the health score will not be in the result.
|
307
|
+
# @param ids List of job UUIDs separated by commas.
|
308
|
+
# @param [Hash] opts the optional parameters
|
309
|
+
# @option opts [String] :authorization
|
310
|
+
# @return [JobHealth]
|
311
|
+
def jobs_health_get(ids, opts = {})
|
312
|
+
|
313
|
+
if Configuration.debugging
|
314
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_health_get ..."
|
315
|
+
end
|
316
|
+
|
317
|
+
|
318
|
+
# verify the required parameter 'ids' is set
|
319
|
+
fail "Missing the required parameter 'ids' when calling jobs_health_get" if ids.nil?
|
320
|
+
|
321
|
+
# resource path
|
322
|
+
path = "/jobs/health".sub('{format}','json')
|
323
|
+
|
324
|
+
# query parameters
|
325
|
+
query_params = {}
|
326
|
+
query_params[:'ids'] = ids
|
327
|
+
|
328
|
+
# header parameters
|
329
|
+
header_params = {}
|
330
|
+
|
331
|
+
# HTTP header 'Accept' (if needed)
|
332
|
+
_header_accept = []
|
333
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
334
|
+
|
335
|
+
# HTTP header 'Content-Type'
|
336
|
+
_header_content_type = []
|
337
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
338
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
339
|
+
|
340
|
+
# form parameters
|
341
|
+
form_params = {}
|
342
|
+
|
343
|
+
# http body (model)
|
344
|
+
post_body = nil
|
345
|
+
|
346
|
+
|
347
|
+
auth_names = ['authorization']
|
348
|
+
result = @api_client.call_api(:GET, path,
|
349
|
+
:header_params => header_params,
|
350
|
+
:query_params => query_params,
|
351
|
+
:form_params => form_params,
|
352
|
+
:body => post_body,
|
353
|
+
:auth_names => auth_names,
|
354
|
+
:return_type => 'JobHealth')
|
355
|
+
if Configuration.debugging
|
356
|
+
Configuration.logger.debug "API called: JobsApi#jobs_health_get. Result: #{result.inspect}"
|
357
|
+
end
|
358
|
+
return result
|
359
|
+
end
|
360
|
+
|
361
|
+
# Returns a list of all route endpoints that each map to an array of job UUIDs assigned to the endpoint.
|
362
|
+
# Returns a list of job routes.
|
363
|
+
# @param [Hash] opts the optional parameters
|
364
|
+
# @option opts [String] :authorization
|
365
|
+
# @return [Hash<String, Array<String>>]
|
366
|
+
def jobs_routes_get(opts = {})
|
367
|
+
|
368
|
+
if Configuration.debugging
|
369
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_routes_get ..."
|
370
|
+
end
|
371
|
+
|
372
|
+
|
373
|
+
# resource path
|
374
|
+
path = "/jobs/routes".sub('{format}','json')
|
375
|
+
|
376
|
+
# query parameters
|
377
|
+
query_params = {}
|
378
|
+
|
379
|
+
# header parameters
|
380
|
+
header_params = {}
|
381
|
+
|
382
|
+
# HTTP header 'Accept' (if needed)
|
383
|
+
_header_accept = []
|
384
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
385
|
+
|
386
|
+
# HTTP header 'Content-Type'
|
387
|
+
_header_content_type = []
|
388
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
389
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
390
|
+
|
391
|
+
# form parameters
|
392
|
+
form_params = {}
|
393
|
+
|
394
|
+
# http body (model)
|
395
|
+
post_body = nil
|
396
|
+
|
397
|
+
|
398
|
+
auth_names = ['authorization']
|
399
|
+
result = @api_client.call_api(:GET, path,
|
400
|
+
:header_params => header_params,
|
401
|
+
:query_params => query_params,
|
402
|
+
:form_params => form_params,
|
403
|
+
:body => post_body,
|
404
|
+
:auth_names => auth_names,
|
405
|
+
:return_type => 'Hash<String, Array<String>>')
|
406
|
+
if Configuration.debugging
|
407
|
+
Configuration.logger.debug "API called: JobsApi#jobs_routes_get. Result: #{result.inspect}"
|
408
|
+
end
|
409
|
+
return result
|
410
|
+
end
|
411
|
+
|
412
|
+
# Returns a map of the specified endpoint to an array of job UUIDs that are assigned to the endpoint.
|
413
|
+
#
|
414
|
+
# @param endpoint Base64-encoded endpoint URL.
|
415
|
+
# @param [Hash] opts the optional parameters
|
416
|
+
# @option opts [String] :authorization
|
417
|
+
# @return [Hash<String, Array<String>>]
|
418
|
+
def jobs_routes_endpoint_get(endpoint, opts = {})
|
419
|
+
|
420
|
+
if Configuration.debugging
|
421
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_routes_endpoint_get ..."
|
422
|
+
end
|
423
|
+
|
424
|
+
|
425
|
+
# verify the required parameter 'endpoint' is set
|
426
|
+
fail "Missing the required parameter 'endpoint' when calling jobs_routes_endpoint_get" if endpoint.nil?
|
427
|
+
|
428
|
+
# resource path
|
429
|
+
path = "/jobs/routes/{endpoint}".sub('{format}','json').sub('{' + 'endpoint' + '}', endpoint.to_s)
|
430
|
+
|
431
|
+
# query parameters
|
432
|
+
query_params = {}
|
433
|
+
|
434
|
+
# header parameters
|
435
|
+
header_params = {}
|
436
|
+
|
437
|
+
# HTTP header 'Accept' (if needed)
|
438
|
+
_header_accept = []
|
439
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
440
|
+
|
441
|
+
# HTTP header 'Content-Type'
|
442
|
+
_header_content_type = []
|
443
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
444
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
445
|
+
|
446
|
+
# form parameters
|
447
|
+
form_params = {}
|
448
|
+
|
449
|
+
# http body (model)
|
450
|
+
post_body = nil
|
451
|
+
|
452
|
+
|
453
|
+
auth_names = ['authorization']
|
454
|
+
result = @api_client.call_api(:GET, path,
|
455
|
+
:header_params => header_params,
|
456
|
+
:query_params => query_params,
|
457
|
+
:form_params => form_params,
|
458
|
+
:body => post_body,
|
459
|
+
:auth_names => auth_names,
|
460
|
+
:return_type => 'Hash<String, Array<String>>')
|
461
|
+
if Configuration.debugging
|
462
|
+
Configuration.logger.debug "API called: JobsApi#jobs_routes_endpoint_get. Result: #{result.inspect}"
|
463
|
+
end
|
464
|
+
return result
|
465
|
+
end
|
466
|
+
|
467
|
+
# Returns details about the specified job.
|
468
|
+
# Returns details about the specified job.
|
469
|
+
# @param uuid UUID of the job to fetch.
|
470
|
+
# @param [Hash] opts the optional parameters
|
471
|
+
# @option opts [String] :authorization
|
472
|
+
# @return [Job]
|
473
|
+
def jobs_uuid_get(uuid, opts = {})
|
474
|
+
|
475
|
+
if Configuration.debugging
|
476
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_get ..."
|
477
|
+
end
|
478
|
+
|
479
|
+
|
480
|
+
# verify the required parameter 'uuid' is set
|
481
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_get" if uuid.nil?
|
482
|
+
|
483
|
+
# resource path
|
484
|
+
path = "/jobs/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
485
|
+
|
486
|
+
# query parameters
|
487
|
+
query_params = {}
|
488
|
+
|
489
|
+
# header parameters
|
490
|
+
header_params = {}
|
491
|
+
|
492
|
+
# HTTP header 'Accept' (if needed)
|
493
|
+
_header_accept = []
|
494
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
495
|
+
|
496
|
+
# HTTP header 'Content-Type'
|
497
|
+
_header_content_type = []
|
498
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
499
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
500
|
+
|
501
|
+
# form parameters
|
502
|
+
form_params = {}
|
503
|
+
|
504
|
+
# http body (model)
|
505
|
+
post_body = nil
|
506
|
+
|
507
|
+
|
508
|
+
auth_names = ['authorization']
|
509
|
+
result = @api_client.call_api(:GET, path,
|
510
|
+
:header_params => header_params,
|
511
|
+
:query_params => query_params,
|
512
|
+
:form_params => form_params,
|
513
|
+
:body => post_body,
|
514
|
+
:auth_names => auth_names,
|
515
|
+
:return_type => 'Job')
|
516
|
+
if Configuration.debugging
|
517
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_get. Result: #{result.inspect}"
|
518
|
+
end
|
519
|
+
return result
|
520
|
+
end
|
521
|
+
|
522
|
+
# Updates a job.
|
523
|
+
# Updates the specified job.
|
524
|
+
# @param uuid UUID of the job to update.
|
525
|
+
# @param job A JSON object describing the full job object to update, including new values for any properties to update on the job.
|
526
|
+
# @param [Hash] opts the optional parameters
|
527
|
+
# @option opts [String] :authorization
|
528
|
+
# @return [Job]
|
529
|
+
def jobs_uuid_put(uuid, job, opts = {})
|
530
|
+
|
531
|
+
if Configuration.debugging
|
532
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_put ..."
|
533
|
+
end
|
534
|
+
|
535
|
+
|
536
|
+
# verify the required parameter 'uuid' is set
|
537
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_put" if uuid.nil?
|
538
|
+
|
539
|
+
# verify the required parameter 'job' is set
|
540
|
+
fail "Missing the required parameter 'job' when calling jobs_uuid_put" if job.nil?
|
541
|
+
|
542
|
+
# resource path
|
543
|
+
path = "/jobs/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
544
|
+
|
545
|
+
# query parameters
|
546
|
+
query_params = {}
|
547
|
+
|
548
|
+
# header parameters
|
549
|
+
header_params = {}
|
550
|
+
|
551
|
+
# HTTP header 'Accept' (if needed)
|
552
|
+
_header_accept = []
|
553
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
554
|
+
|
555
|
+
# HTTP header 'Content-Type'
|
556
|
+
_header_content_type = []
|
557
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
558
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
559
|
+
|
560
|
+
# form parameters
|
561
|
+
form_params = {}
|
562
|
+
|
563
|
+
# http body (model)
|
564
|
+
post_body = @api_client.object_to_http_body(job)
|
565
|
+
|
566
|
+
|
567
|
+
auth_names = ['authorization']
|
568
|
+
result = @api_client.call_api(:PUT, path,
|
569
|
+
:header_params => header_params,
|
570
|
+
:query_params => query_params,
|
571
|
+
:form_params => form_params,
|
572
|
+
:body => post_body,
|
573
|
+
:auth_names => auth_names,
|
574
|
+
:return_type => 'Job')
|
575
|
+
if Configuration.debugging
|
576
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_put. Result: #{result.inspect}"
|
577
|
+
end
|
578
|
+
return result
|
579
|
+
end
|
580
|
+
|
581
|
+
# Deletes the specified job.
|
582
|
+
# Deletes the specified job.
|
583
|
+
# @param uuid UUID of the job to delete.
|
584
|
+
# @param [Hash] opts the optional parameters
|
585
|
+
# @option opts [String] :authorization
|
586
|
+
# @return [nil]
|
587
|
+
def jobs_uuid_delete(uuid, opts = {})
|
588
|
+
|
589
|
+
if Configuration.debugging
|
590
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_delete ..."
|
591
|
+
end
|
592
|
+
|
593
|
+
|
594
|
+
# verify the required parameter 'uuid' is set
|
595
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_delete" if uuid.nil?
|
596
|
+
|
597
|
+
# resource path
|
598
|
+
path = "/jobs/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
599
|
+
|
600
|
+
# query parameters
|
601
|
+
query_params = {}
|
602
|
+
|
603
|
+
# header parameters
|
604
|
+
header_params = {}
|
605
|
+
|
606
|
+
# HTTP header 'Accept' (if needed)
|
607
|
+
_header_accept = []
|
608
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
609
|
+
|
610
|
+
# HTTP header 'Content-Type'
|
611
|
+
_header_content_type = []
|
612
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
613
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
614
|
+
|
615
|
+
# form parameters
|
616
|
+
form_params = {}
|
617
|
+
|
618
|
+
# http body (model)
|
619
|
+
post_body = nil
|
620
|
+
|
621
|
+
|
622
|
+
auth_names = ['authorization']
|
623
|
+
@api_client.call_api(:DELETE, path,
|
624
|
+
:header_params => header_params,
|
625
|
+
:query_params => query_params,
|
626
|
+
:form_params => form_params,
|
627
|
+
:body => post_body,
|
628
|
+
:auth_names => auth_names)
|
629
|
+
if Configuration.debugging
|
630
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_delete"
|
631
|
+
end
|
632
|
+
return nil
|
633
|
+
end
|
634
|
+
|
635
|
+
# Checks the specified job for policy compliance.
|
636
|
+
# Checks the specified job for policy compliance. It checks job routes, bindings, resources, etc. for any violations according to current policy.
|
637
|
+
# @param uuid UUID of the job to check for compliance.
|
638
|
+
# @param [Hash] opts the optional parameters
|
639
|
+
# @option opts [String] :authorization
|
640
|
+
# @return [nil]
|
641
|
+
def jobs_uuid_compliance_get(uuid, opts = {})
|
642
|
+
|
643
|
+
if Configuration.debugging
|
644
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_compliance_get ..."
|
645
|
+
end
|
646
|
+
|
647
|
+
|
648
|
+
# verify the required parameter 'uuid' is set
|
649
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_compliance_get" if uuid.nil?
|
650
|
+
|
651
|
+
# resource path
|
652
|
+
path = "/jobs/{uuid}/compliance".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
653
|
+
|
654
|
+
# query parameters
|
655
|
+
query_params = {}
|
656
|
+
|
657
|
+
# header parameters
|
658
|
+
header_params = {}
|
659
|
+
|
660
|
+
# HTTP header 'Accept' (if needed)
|
661
|
+
_header_accept = []
|
662
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
663
|
+
|
664
|
+
# HTTP header 'Content-Type'
|
665
|
+
_header_content_type = []
|
666
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
667
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
668
|
+
|
669
|
+
# form parameters
|
670
|
+
form_params = {}
|
671
|
+
|
672
|
+
# http body (model)
|
673
|
+
post_body = nil
|
674
|
+
|
675
|
+
|
676
|
+
auth_names = ['authorization']
|
677
|
+
@api_client.call_api(:GET, path,
|
678
|
+
:header_params => header_params,
|
679
|
+
:query_params => query_params,
|
680
|
+
:form_params => form_params,
|
681
|
+
:body => post_body,
|
682
|
+
:auth_names => auth_names)
|
683
|
+
if Configuration.debugging
|
684
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_compliance_get"
|
685
|
+
end
|
686
|
+
return nil
|
687
|
+
end
|
688
|
+
|
689
|
+
# Returns information about an instance's underlying file system.
|
690
|
+
# Returns information about an instance's underlying file system.
|
691
|
+
# @param uuid UUID of the job whose file system information should be retrieved.
|
692
|
+
# @param path The path to the root folder for which to generate the folder/file listing. For example, `/jobs/<uuid>/files/` returns a listing for the instance's root folder, and `/jobs/<uuid>/files/app` returns a list of the instance's `/app` folder.
|
693
|
+
# @param [Hash] opts the optional parameters
|
694
|
+
# @option opts [String] :authorization
|
695
|
+
# @return [Array<FileListing>]
|
696
|
+
def jobs_uuid_files_path_get(uuid, path, opts = {})
|
697
|
+
|
698
|
+
if Configuration.debugging
|
699
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_files_path_get ..."
|
700
|
+
end
|
701
|
+
|
702
|
+
|
703
|
+
# verify the required parameter 'uuid' is set
|
704
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_files_path_get" if uuid.nil?
|
705
|
+
|
706
|
+
# verify the required parameter 'path' is set
|
707
|
+
fail "Missing the required parameter 'path' when calling jobs_uuid_files_path_get" if path.nil?
|
708
|
+
|
709
|
+
# resource path
|
710
|
+
path = "/jobs/{uuid}/files/{path}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s).sub('{' + 'path' + '}', path.to_s)
|
711
|
+
|
712
|
+
# query parameters
|
713
|
+
query_params = {}
|
714
|
+
|
715
|
+
# header parameters
|
716
|
+
header_params = {}
|
717
|
+
|
718
|
+
# HTTP header 'Accept' (if needed)
|
719
|
+
_header_accept = []
|
720
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
721
|
+
|
722
|
+
# HTTP header 'Content-Type'
|
723
|
+
_header_content_type = []
|
724
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
725
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
726
|
+
|
727
|
+
# form parameters
|
728
|
+
form_params = {}
|
729
|
+
|
730
|
+
# http body (model)
|
731
|
+
post_body = nil
|
732
|
+
|
733
|
+
|
734
|
+
auth_names = ['authorization']
|
735
|
+
result = @api_client.call_api(:GET, path,
|
736
|
+
:header_params => header_params,
|
737
|
+
:query_params => query_params,
|
738
|
+
:form_params => form_params,
|
739
|
+
:body => post_body,
|
740
|
+
:auth_names => auth_names,
|
741
|
+
:return_type => 'Array<FileListing>')
|
742
|
+
if Configuration.debugging
|
743
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_files_path_get. Result: #{result.inspect}"
|
744
|
+
end
|
745
|
+
return result
|
746
|
+
end
|
747
|
+
|
748
|
+
# Returns instances from the health manager for a given job UUID.
|
749
|
+
# Returns instances from the health manager for a given job UUID.
|
750
|
+
# @param uuid UUID of the job.
|
751
|
+
# @param [Hash] opts the optional parameters
|
752
|
+
# @option opts [String] :authorization
|
753
|
+
# @return [nil]
|
754
|
+
def jobs_uuid_instances_get(uuid, opts = {})
|
755
|
+
|
756
|
+
if Configuration.debugging
|
757
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_instances_get ..."
|
758
|
+
end
|
759
|
+
|
760
|
+
|
761
|
+
# verify the required parameter 'uuid' is set
|
762
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_instances_get" if uuid.nil?
|
763
|
+
|
764
|
+
# resource path
|
765
|
+
path = "/jobs/{uuid}/instances".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
766
|
+
|
767
|
+
# query parameters
|
768
|
+
query_params = {}
|
769
|
+
|
770
|
+
# header parameters
|
771
|
+
header_params = {}
|
772
|
+
|
773
|
+
# HTTP header 'Accept' (if needed)
|
774
|
+
_header_accept = []
|
775
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
776
|
+
|
777
|
+
# HTTP header 'Content-Type'
|
778
|
+
_header_content_type = []
|
779
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
780
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
781
|
+
|
782
|
+
# form parameters
|
783
|
+
form_params = {}
|
784
|
+
|
785
|
+
# http body (model)
|
786
|
+
post_body = nil
|
787
|
+
|
788
|
+
|
789
|
+
auth_names = ['authorization']
|
790
|
+
@api_client.call_api(:GET, path,
|
791
|
+
:header_params => header_params,
|
792
|
+
:query_params => query_params,
|
793
|
+
:form_params => form_params,
|
794
|
+
:body => post_body,
|
795
|
+
:auth_names => auth_names)
|
796
|
+
if Configuration.debugging
|
797
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_instances_get"
|
798
|
+
end
|
799
|
+
return nil
|
800
|
+
end
|
801
|
+
|
802
|
+
# Stop a given instance of a job.
|
803
|
+
# Issues a stop request to the specified job instance.
|
804
|
+
# @param uuid UUID of the job.
|
805
|
+
# @param instance_uuid UUID of the job instance to stop.
|
806
|
+
# @param [Hash] opts the optional parameters
|
807
|
+
# @option opts [String] :authorization
|
808
|
+
# @return [nil]
|
809
|
+
def jobs_uuid_instances_instance_uuid_delete(uuid, instance_uuid, opts = {})
|
810
|
+
|
811
|
+
if Configuration.debugging
|
812
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_instances_instance_uuid_delete ..."
|
813
|
+
end
|
814
|
+
|
815
|
+
|
816
|
+
# verify the required parameter 'uuid' is set
|
817
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_instances_instance_uuid_delete" if uuid.nil?
|
818
|
+
|
819
|
+
# verify the required parameter 'instance_uuid' is set
|
820
|
+
fail "Missing the required parameter 'instance_uuid' when calling jobs_uuid_instances_instance_uuid_delete" if instance_uuid.nil?
|
821
|
+
|
822
|
+
# resource path
|
823
|
+
path = "/jobs/{uuid}/instances/{instance_uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s).sub('{' + 'instance_uuid' + '}', instance_uuid.to_s)
|
824
|
+
|
825
|
+
# query parameters
|
826
|
+
query_params = {}
|
827
|
+
|
828
|
+
# header parameters
|
829
|
+
header_params = {}
|
830
|
+
|
831
|
+
# HTTP header 'Accept' (if needed)
|
832
|
+
_header_accept = []
|
833
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
834
|
+
|
835
|
+
# HTTP header 'Content-Type'
|
836
|
+
_header_content_type = []
|
837
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
838
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
839
|
+
|
840
|
+
# form parameters
|
841
|
+
form_params = {}
|
842
|
+
|
843
|
+
# http body (model)
|
844
|
+
post_body = nil
|
845
|
+
|
846
|
+
|
847
|
+
auth_names = ['authorization']
|
848
|
+
@api_client.call_api(:DELETE, path,
|
849
|
+
:header_params => header_params,
|
850
|
+
:query_params => query_params,
|
851
|
+
:form_params => form_params,
|
852
|
+
:body => post_body,
|
853
|
+
:auth_names => auth_names)
|
854
|
+
if Configuration.debugging
|
855
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_instances_instance_uuid_delete"
|
856
|
+
end
|
857
|
+
return nil
|
858
|
+
end
|
859
|
+
|
860
|
+
# Returns logs for the specified job.
|
861
|
+
# Returns logs for the specified job.
|
862
|
+
# @param uuid UUID of the job to retrieve logs for.
|
863
|
+
# @param [Hash] opts the optional parameters
|
864
|
+
# @option opts [String] :authorization
|
865
|
+
# @return [String]
|
866
|
+
def jobs_uuid_logs_get(uuid, opts = {})
|
867
|
+
|
868
|
+
if Configuration.debugging
|
869
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_logs_get ..."
|
870
|
+
end
|
871
|
+
|
872
|
+
|
873
|
+
# verify the required parameter 'uuid' is set
|
874
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_logs_get" if uuid.nil?
|
875
|
+
|
876
|
+
# resource path
|
877
|
+
path = "/jobs/{uuid}/logs".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
878
|
+
|
879
|
+
# query parameters
|
880
|
+
query_params = {}
|
881
|
+
|
882
|
+
# header parameters
|
883
|
+
header_params = {}
|
884
|
+
|
885
|
+
# HTTP header 'Accept' (if needed)
|
886
|
+
_header_accept = []
|
887
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
888
|
+
|
889
|
+
# HTTP header 'Content-Type'
|
890
|
+
_header_content_type = []
|
891
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
892
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
893
|
+
|
894
|
+
# form parameters
|
895
|
+
form_params = {}
|
896
|
+
|
897
|
+
# http body (model)
|
898
|
+
post_body = nil
|
899
|
+
|
900
|
+
|
901
|
+
auth_names = ['authorization']
|
902
|
+
result = @api_client.call_api(:GET, path,
|
903
|
+
:header_params => header_params,
|
904
|
+
:query_params => query_params,
|
905
|
+
:form_params => form_params,
|
906
|
+
:body => post_body,
|
907
|
+
:auth_names => auth_names,
|
908
|
+
:return_type => 'String')
|
909
|
+
if Configuration.debugging
|
910
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_logs_get. Result: #{result.inspect}"
|
911
|
+
end
|
912
|
+
return result
|
913
|
+
end
|
914
|
+
|
915
|
+
# Returns all log drains for the specified job.
|
916
|
+
# Returns all configured log drains for the specified job.
|
917
|
+
# @param uuid UUID of the job to retrieve log drains for.
|
918
|
+
# @param [Hash] opts the optional parameters
|
919
|
+
# @option opts [String] :authorization
|
920
|
+
# @return [Drain]
|
921
|
+
def jobs_uuid_logs_drains_get(uuid, opts = {})
|
922
|
+
|
923
|
+
if Configuration.debugging
|
924
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_logs_drains_get ..."
|
925
|
+
end
|
926
|
+
|
927
|
+
|
928
|
+
# verify the required parameter 'uuid' is set
|
929
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_logs_drains_get" if uuid.nil?
|
930
|
+
|
931
|
+
# resource path
|
932
|
+
path = "/jobs/{uuid}/logs/drains".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
933
|
+
|
934
|
+
# query parameters
|
935
|
+
query_params = {}
|
936
|
+
|
937
|
+
# header parameters
|
938
|
+
header_params = {}
|
939
|
+
|
940
|
+
# HTTP header 'Accept' (if needed)
|
941
|
+
_header_accept = []
|
942
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
943
|
+
|
944
|
+
# HTTP header 'Content-Type'
|
945
|
+
_header_content_type = []
|
946
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
947
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
948
|
+
|
949
|
+
# form parameters
|
950
|
+
form_params = {}
|
951
|
+
|
952
|
+
# http body (model)
|
953
|
+
post_body = nil
|
954
|
+
|
955
|
+
|
956
|
+
auth_names = ['authorization']
|
957
|
+
result = @api_client.call_api(:GET, path,
|
958
|
+
:header_params => header_params,
|
959
|
+
:query_params => query_params,
|
960
|
+
:form_params => form_params,
|
961
|
+
:body => post_body,
|
962
|
+
:auth_names => auth_names,
|
963
|
+
:return_type => 'Drain')
|
964
|
+
if Configuration.debugging
|
965
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_logs_drains_get. Result: #{result.inspect}"
|
966
|
+
end
|
967
|
+
return result
|
968
|
+
end
|
969
|
+
|
970
|
+
# Creates a log drain on the specified job.
|
971
|
+
# Creates a log drain on the specified job from the `drain` parameter in the request body.
|
972
|
+
# @param uuid UUID of the job.
|
973
|
+
# @param [Hash] opts the optional parameters
|
974
|
+
# @option opts [Drain] :drain Drain object to add to job.
|
975
|
+
# @option opts [String] :authorization
|
976
|
+
# @return [Drain]
|
977
|
+
def jobs_uuid_logs_drains_post(uuid, opts = {})
|
978
|
+
|
979
|
+
if Configuration.debugging
|
980
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_logs_drains_post ..."
|
981
|
+
end
|
982
|
+
|
983
|
+
|
984
|
+
# verify the required parameter 'uuid' is set
|
985
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_logs_drains_post" if uuid.nil?
|
986
|
+
|
987
|
+
# resource path
|
988
|
+
path = "/jobs/{uuid}/logs/drains".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
989
|
+
|
990
|
+
# query parameters
|
991
|
+
query_params = {}
|
992
|
+
|
993
|
+
# header parameters
|
994
|
+
header_params = {}
|
995
|
+
|
996
|
+
# HTTP header 'Accept' (if needed)
|
997
|
+
_header_accept = []
|
998
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
999
|
+
|
1000
|
+
# HTTP header 'Content-Type'
|
1001
|
+
_header_content_type = []
|
1002
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1003
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
1004
|
+
|
1005
|
+
# form parameters
|
1006
|
+
form_params = {}
|
1007
|
+
|
1008
|
+
# http body (model)
|
1009
|
+
post_body = @api_client.object_to_http_body(opts[:'drain'])
|
1010
|
+
|
1011
|
+
|
1012
|
+
auth_names = ['authorization']
|
1013
|
+
result = @api_client.call_api(:POST, path,
|
1014
|
+
:header_params => header_params,
|
1015
|
+
:query_params => query_params,
|
1016
|
+
:form_params => form_params,
|
1017
|
+
:body => post_body,
|
1018
|
+
:auth_names => auth_names,
|
1019
|
+
:return_type => 'Drain')
|
1020
|
+
if Configuration.debugging
|
1021
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_logs_drains_post. Result: #{result.inspect}"
|
1022
|
+
end
|
1023
|
+
return result
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
# Deletes a log drain from a job.
|
1027
|
+
# Deletes the specified log drain from the specified job.
|
1028
|
+
# @param uuid UUID of the job with the log drain to delete.
|
1029
|
+
# @param drain_uuid UUID of the log drain to delete.
|
1030
|
+
# @param [Hash] opts the optional parameters
|
1031
|
+
# @option opts [String] :authorization
|
1032
|
+
# @return [Drain]
|
1033
|
+
def jobs_uuid_logs_drains_drain_uuid_delete(uuid, drain_uuid, opts = {})
|
1034
|
+
|
1035
|
+
if Configuration.debugging
|
1036
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_logs_drains_drain_uuid_delete ..."
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
|
1040
|
+
# verify the required parameter 'uuid' is set
|
1041
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_logs_drains_drain_uuid_delete" if uuid.nil?
|
1042
|
+
|
1043
|
+
# verify the required parameter 'drain_uuid' is set
|
1044
|
+
fail "Missing the required parameter 'drain_uuid' when calling jobs_uuid_logs_drains_drain_uuid_delete" if drain_uuid.nil?
|
1045
|
+
|
1046
|
+
# resource path
|
1047
|
+
path = "/jobs/{uuid}/logs/drains/{drain_uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s).sub('{' + 'drain_uuid' + '}', drain_uuid.to_s)
|
1048
|
+
|
1049
|
+
# query parameters
|
1050
|
+
query_params = {}
|
1051
|
+
|
1052
|
+
# header parameters
|
1053
|
+
header_params = {}
|
1054
|
+
|
1055
|
+
# HTTP header 'Accept' (if needed)
|
1056
|
+
_header_accept = []
|
1057
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1058
|
+
|
1059
|
+
# HTTP header 'Content-Type'
|
1060
|
+
_header_content_type = []
|
1061
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1062
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
1063
|
+
|
1064
|
+
# form parameters
|
1065
|
+
form_params = {}
|
1066
|
+
|
1067
|
+
# http body (model)
|
1068
|
+
post_body = nil
|
1069
|
+
|
1070
|
+
|
1071
|
+
auth_names = ['authorization']
|
1072
|
+
result = @api_client.call_api(:DELETE, path,
|
1073
|
+
:header_params => header_params,
|
1074
|
+
:query_params => query_params,
|
1075
|
+
:form_params => form_params,
|
1076
|
+
:body => post_body,
|
1077
|
+
:auth_names => auth_names,
|
1078
|
+
:return_type => 'Drain')
|
1079
|
+
if Configuration.debugging
|
1080
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_logs_drains_drain_uuid_delete. Result: #{result.inspect}"
|
1081
|
+
end
|
1082
|
+
return result
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
# Creates a bi-directional tunnel with the job/instance UUID specified.
|
1086
|
+
# Creates a bi-directional tunnel with the job/instance UUID specified.
|
1087
|
+
# @param uuid UUID of the job.
|
1088
|
+
# @param [Hash] opts the optional parameters
|
1089
|
+
# @option opts [String] :authorization
|
1090
|
+
# @return [nil]
|
1091
|
+
def jobs_uuid_tunnel_get(uuid, opts = {})
|
1092
|
+
|
1093
|
+
if Configuration.debugging
|
1094
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_tunnel_get ..."
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
|
1098
|
+
# verify the required parameter 'uuid' is set
|
1099
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_tunnel_get" if uuid.nil?
|
1100
|
+
|
1101
|
+
# resource path
|
1102
|
+
path = "/jobs/{uuid}/tunnel".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
1103
|
+
|
1104
|
+
# query parameters
|
1105
|
+
query_params = {}
|
1106
|
+
|
1107
|
+
# header parameters
|
1108
|
+
header_params = {}
|
1109
|
+
|
1110
|
+
# HTTP header 'Accept' (if needed)
|
1111
|
+
_header_accept = []
|
1112
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1113
|
+
|
1114
|
+
# HTTP header 'Content-Type'
|
1115
|
+
_header_content_type = []
|
1116
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1117
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
1118
|
+
|
1119
|
+
# form parameters
|
1120
|
+
form_params = {}
|
1121
|
+
|
1122
|
+
# http body (model)
|
1123
|
+
post_body = nil
|
1124
|
+
|
1125
|
+
|
1126
|
+
auth_names = ['authorization']
|
1127
|
+
@api_client.call_api(:GET, path,
|
1128
|
+
:header_params => header_params,
|
1129
|
+
:query_params => query_params,
|
1130
|
+
:form_params => form_params,
|
1131
|
+
:body => post_body,
|
1132
|
+
:auth_names => auth_names)
|
1133
|
+
if Configuration.debugging
|
1134
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_tunnel_get"
|
1135
|
+
end
|
1136
|
+
return nil
|
1137
|
+
end
|
1138
|
+
|
1139
|
+
# Creates a bi-directional tunnel with the job/instance UUID specified.
|
1140
|
+
# Creates a bi-directional tunnel with the job/instance UUID specified.
|
1141
|
+
# @param uuid UUID of the job.
|
1142
|
+
# @param instance_id UUID of the job instance.
|
1143
|
+
# @param [Hash] opts the optional parameters
|
1144
|
+
# @option opts [String] :authorization
|
1145
|
+
# @return [nil]
|
1146
|
+
def jobs_uuid_tunnel_instance_id_get(uuid, instance_id, opts = {})
|
1147
|
+
|
1148
|
+
if Configuration.debugging
|
1149
|
+
Configuration.logger.debug "Calling API: JobsApi#jobs_uuid_tunnel_instance_id_get ..."
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
|
1153
|
+
# verify the required parameter 'uuid' is set
|
1154
|
+
fail "Missing the required parameter 'uuid' when calling jobs_uuid_tunnel_instance_id_get" if uuid.nil?
|
1155
|
+
|
1156
|
+
# verify the required parameter 'instance_id' is set
|
1157
|
+
fail "Missing the required parameter 'instance_id' when calling jobs_uuid_tunnel_instance_id_get" if instance_id.nil?
|
1158
|
+
|
1159
|
+
# resource path
|
1160
|
+
path = "/jobs/{uuid}/tunnel/{instance_id}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s).sub('{' + 'instance_id' + '}', instance_id.to_s)
|
1161
|
+
|
1162
|
+
# query parameters
|
1163
|
+
query_params = {}
|
1164
|
+
|
1165
|
+
# header parameters
|
1166
|
+
header_params = {}
|
1167
|
+
|
1168
|
+
# HTTP header 'Accept' (if needed)
|
1169
|
+
_header_accept = []
|
1170
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1171
|
+
|
1172
|
+
# HTTP header 'Content-Type'
|
1173
|
+
_header_content_type = []
|
1174
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1175
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
1176
|
+
|
1177
|
+
# form parameters
|
1178
|
+
form_params = {}
|
1179
|
+
|
1180
|
+
# http body (model)
|
1181
|
+
post_body = nil
|
1182
|
+
|
1183
|
+
|
1184
|
+
auth_names = ['authorization']
|
1185
|
+
@api_client.call_api(:GET, path,
|
1186
|
+
:header_params => header_params,
|
1187
|
+
:query_params => query_params,
|
1188
|
+
:form_params => form_params,
|
1189
|
+
:body => post_body,
|
1190
|
+
:auth_names => auth_names)
|
1191
|
+
if Configuration.debugging
|
1192
|
+
Configuration.logger.debug "API called: JobsApi#jobs_uuid_tunnel_instance_id_get"
|
1193
|
+
end
|
1194
|
+
return nil
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
# Returns job-specific preferences.
|
1198
|
+
# Returns job-specific preferences used to expose claims retrieved from policy that are contextually important to the job.
|
1199
|
+
# @param fqn FQN of package whose job whose preferences should be returned.
|
1200
|
+
# @param [Hash] opts the optional parameters
|
1201
|
+
# @option opts [String] :authorization
|
1202
|
+
# @return [JobPreferences]
|
1203
|
+
def preferences_job_get(fqn, opts = {})
|
1204
|
+
|
1205
|
+
if Configuration.debugging
|
1206
|
+
Configuration.logger.debug "Calling API: JobsApi#preferences_job_get ..."
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
|
1210
|
+
# verify the required parameter 'fqn' is set
|
1211
|
+
fail "Missing the required parameter 'fqn' when calling preferences_job_get" if fqn.nil?
|
1212
|
+
|
1213
|
+
# resource path
|
1214
|
+
path = "/preferences/job".sub('{format}','json')
|
1215
|
+
|
1216
|
+
# query parameters
|
1217
|
+
query_params = {}
|
1218
|
+
query_params[:'fqn'] = fqn
|
1219
|
+
|
1220
|
+
# header parameters
|
1221
|
+
header_params = {}
|
1222
|
+
|
1223
|
+
# HTTP header 'Accept' (if needed)
|
1224
|
+
_header_accept = []
|
1225
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1226
|
+
|
1227
|
+
# HTTP header 'Content-Type'
|
1228
|
+
_header_content_type = []
|
1229
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1230
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
1231
|
+
|
1232
|
+
# form parameters
|
1233
|
+
form_params = {}
|
1234
|
+
|
1235
|
+
# http body (model)
|
1236
|
+
post_body = nil
|
1237
|
+
|
1238
|
+
|
1239
|
+
auth_names = ['authorization']
|
1240
|
+
result = @api_client.call_api(:GET, path,
|
1241
|
+
:header_params => header_params,
|
1242
|
+
:query_params => query_params,
|
1243
|
+
:form_params => form_params,
|
1244
|
+
:body => post_body,
|
1245
|
+
:auth_names => auth_names,
|
1246
|
+
:return_type => 'JobPreferences')
|
1247
|
+
if Configuration.debugging
|
1248
|
+
Configuration.logger.debug "API called: JobsApi#preferences_job_get. Result: #{result.inspect}"
|
1249
|
+
end
|
1250
|
+
return result
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
# Returns a list of task events for a given task.
|
1254
|
+
# Returns the requested Task, which contains a list of task events. A client can poll this endpoint to check the status of a task. Optionally, a client can request a websocket connection over which tasks are streamed in real-time.
|
1255
|
+
# @param uuid UUID of task.
|
1256
|
+
# @param [Hash] opts the optional parameters
|
1257
|
+
# @option opts [String] :authorization
|
1258
|
+
# @option opts [String] :time If specified, only task events that occurred after the specified time are returned. If not specified, all task events are returned.
|
1259
|
+
# @option opts [String] :upgrade Header required to upgrade connection to websocket. Value must be 'websocket'.
|
1260
|
+
# @option opts [String] :connection Header required to upgrade connection to websocket. Value must be 'Upgrade'.
|
1261
|
+
# @option opts [String] :sec_web_socket_key Header required to upgrade connection to websocket. Value is base64-encoded random bytes.
|
1262
|
+
# @return [Task]
|
1263
|
+
def tasks_uuid_get(uuid, opts = {})
|
1264
|
+
|
1265
|
+
if Configuration.debugging
|
1266
|
+
Configuration.logger.debug "Calling API: JobsApi#tasks_uuid_get ..."
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
|
1270
|
+
# verify the required parameter 'uuid' is set
|
1271
|
+
fail "Missing the required parameter 'uuid' when calling tasks_uuid_get" if uuid.nil?
|
1272
|
+
|
1273
|
+
# resource path
|
1274
|
+
path = "/tasks/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
|
1275
|
+
|
1276
|
+
# query parameters
|
1277
|
+
query_params = {}
|
1278
|
+
query_params[:'time'] = opts[:'time'] if opts[:'time']
|
1279
|
+
|
1280
|
+
# header parameters
|
1281
|
+
header_params = {}
|
1282
|
+
|
1283
|
+
# HTTP header 'Accept' (if needed)
|
1284
|
+
_header_accept = []
|
1285
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1286
|
+
|
1287
|
+
# HTTP header 'Content-Type'
|
1288
|
+
_header_content_type = []
|
1289
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1290
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
1291
|
+
header_params[:'Upgrade'] = opts[:'upgrade'] if opts[:'upgrade']
|
1292
|
+
header_params[:'Connection'] = opts[:'connection'] if opts[:'connection']
|
1293
|
+
header_params[:'Sec-WebSocket-Key'] = opts[:'sec_web_socket_key'] if opts[:'sec_web_socket_key']
|
1294
|
+
|
1295
|
+
# form parameters
|
1296
|
+
form_params = {}
|
1297
|
+
|
1298
|
+
# http body (model)
|
1299
|
+
post_body = nil
|
1300
|
+
|
1301
|
+
|
1302
|
+
auth_names = ['authorization']
|
1303
|
+
result = @api_client.call_api(:GET, path,
|
1304
|
+
:header_params => header_params,
|
1305
|
+
:query_params => query_params,
|
1306
|
+
:form_params => form_params,
|
1307
|
+
:body => post_body,
|
1308
|
+
:auth_names => auth_names,
|
1309
|
+
:return_type => 'Task')
|
1310
|
+
if Configuration.debugging
|
1311
|
+
Configuration.logger.debug "API called: JobsApi#tasks_uuid_get. Result: #{result.inspect}"
|
1312
|
+
end
|
1313
|
+
return result
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
# Removes a service binding from a job.
|
1317
|
+
# Removes a service binding from a job.
|
1318
|
+
# @param job An object that specifies the job and service to unbind.
|
1319
|
+
# @param [Hash] opts the optional parameters
|
1320
|
+
# @option opts [String] :authorization
|
1321
|
+
# @return [nil]
|
1322
|
+
def unbind_post(job, opts = {})
|
1323
|
+
|
1324
|
+
if Configuration.debugging
|
1325
|
+
Configuration.logger.debug "Calling API: JobsApi#unbind_post ..."
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
|
1329
|
+
# verify the required parameter 'job' is set
|
1330
|
+
fail "Missing the required parameter 'job' when calling unbind_post" if job.nil?
|
1331
|
+
|
1332
|
+
# resource path
|
1333
|
+
path = "/unbind".sub('{format}','json')
|
1334
|
+
|
1335
|
+
# query parameters
|
1336
|
+
query_params = {}
|
1337
|
+
|
1338
|
+
# header parameters
|
1339
|
+
header_params = {}
|
1340
|
+
|
1341
|
+
# HTTP header 'Accept' (if needed)
|
1342
|
+
_header_accept = []
|
1343
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1344
|
+
|
1345
|
+
# HTTP header 'Content-Type'
|
1346
|
+
_header_content_type = []
|
1347
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1348
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
1349
|
+
|
1350
|
+
# form parameters
|
1351
|
+
form_params = {}
|
1352
|
+
|
1353
|
+
# http body (model)
|
1354
|
+
post_body = @api_client.object_to_http_body(job)
|
1355
|
+
|
1356
|
+
|
1357
|
+
auth_names = ['authorization']
|
1358
|
+
@api_client.call_api(:POST, path,
|
1359
|
+
:header_params => header_params,
|
1360
|
+
:query_params => query_params,
|
1361
|
+
:form_params => form_params,
|
1362
|
+
:body => post_body,
|
1363
|
+
:auth_names => auth_names)
|
1364
|
+
if Configuration.debugging
|
1365
|
+
Configuration.logger.debug "API called: JobsApi#unbind_post"
|
1366
|
+
end
|
1367
|
+
return nil
|
1368
|
+
end
|
1369
|
+
|
1370
|
+
# Removes a link between two jobs.
|
1371
|
+
# Removes a link between two jobs. The binding record is only removed from the `from_job` property of the request object.
|
1372
|
+
# @param job An object that specifies the two jobs to link and the port to use on the target job.
|
1373
|
+
# @param [Hash] opts the optional parameters
|
1374
|
+
# @option opts [String] :authorization
|
1375
|
+
# @return [nil]
|
1376
|
+
def unlink_post(job, opts = {})
|
1377
|
+
|
1378
|
+
if Configuration.debugging
|
1379
|
+
Configuration.logger.debug "Calling API: JobsApi#unlink_post ..."
|
1380
|
+
end
|
1381
|
+
|
1382
|
+
|
1383
|
+
# verify the required parameter 'job' is set
|
1384
|
+
fail "Missing the required parameter 'job' when calling unlink_post" if job.nil?
|
1385
|
+
|
1386
|
+
# resource path
|
1387
|
+
path = "/unlink".sub('{format}','json')
|
1388
|
+
|
1389
|
+
# query parameters
|
1390
|
+
query_params = {}
|
1391
|
+
|
1392
|
+
# header parameters
|
1393
|
+
header_params = {}
|
1394
|
+
|
1395
|
+
# HTTP header 'Accept' (if needed)
|
1396
|
+
_header_accept = []
|
1397
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1398
|
+
|
1399
|
+
# HTTP header 'Content-Type'
|
1400
|
+
_header_content_type = []
|
1401
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1402
|
+
header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
|
1403
|
+
|
1404
|
+
# form parameters
|
1405
|
+
form_params = {}
|
1406
|
+
|
1407
|
+
# http body (model)
|
1408
|
+
post_body = @api_client.object_to_http_body(job)
|
1409
|
+
|
1410
|
+
|
1411
|
+
auth_names = ['authorization']
|
1412
|
+
@api_client.call_api(:POST, path,
|
1413
|
+
:header_params => header_params,
|
1414
|
+
:query_params => query_params,
|
1415
|
+
:form_params => form_params,
|
1416
|
+
:body => post_body,
|
1417
|
+
:auth_names => auth_names)
|
1418
|
+
if Configuration.debugging
|
1419
|
+
Configuration.logger.debug "API called: JobsApi#unlink_post"
|
1420
|
+
end
|
1421
|
+
return nil
|
1422
|
+
end
|
1423
|
+
end
|
1424
|
+
end
|
1425
|
+
|
1426
|
+
|
1427
|
+
|
1428
|
+
|