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.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/apcera.gemspec +31 -0
  3. data/lib/apcera/api/default_api.rb +128 -0
  4. data/lib/apcera/api/instances_api.rb +280 -0
  5. data/lib/apcera/api/jobs_api.rb +1428 -0
  6. data/lib/apcera/api/logs_api.rb +120 -0
  7. data/lib/apcera/api/metrics_api.rb +280 -0
  8. data/lib/apcera/api/packages_api.rb +541 -0
  9. data/lib/apcera/api/providers_api.rb +175 -0
  10. data/lib/apcera/api/rules_api.rb +228 -0
  11. data/lib/apcera/api/services_and_bindings_api.rb +278 -0
  12. data/lib/apcera/api/staging_pipelines_api.rb +281 -0
  13. data/lib/apcera/api/utilities_api.rb +327 -0
  14. data/lib/apcera/api_client.rb +294 -0
  15. data/lib/apcera/api_error.rb +24 -0
  16. data/lib/apcera/configuration.rb +173 -0
  17. data/lib/apcera/models/apc_version_object.rb +37 -0
  18. data/lib/apcera/models/api_error.rb +143 -0
  19. data/lib/apcera/models/audit_log_item.rb +117 -0
  20. data/lib/apcera/models/audit_log_item_old.rb +85 -0
  21. data/lib/apcera/models/base_object.rb +96 -0
  22. data/lib/apcera/models/binding.rb +137 -0
  23. data/lib/apcera/models/create_docker_job_request.rb +197 -0
  24. data/lib/apcera/models/create_docker_job_response.rb +37 -0
  25. data/lib/apcera/models/dependency.rb +53 -0
  26. data/lib/apcera/models/dependency_resolve.rb +45 -0
  27. data/lib/apcera/models/docker_origin.rb +63 -0
  28. data/lib/apcera/models/drain.rb +61 -0
  29. data/lib/apcera/models/drain_config.rb +53 -0
  30. data/lib/apcera/models/file_listing.rb +45 -0
  31. data/lib/apcera/models/info.rb +53 -0
  32. data/lib/apcera/models/instance_manager.rb +105 -0
  33. data/lib/apcera/models/instance_state.rb +117 -0
  34. data/lib/apcera/models/instances.rb +109 -0
  35. data/lib/apcera/models/job.rb +243 -0
  36. data/lib/apcera/models/job_health.rb +63 -0
  37. data/lib/apcera/models/job_preferences.rb +37 -0
  38. data/lib/apcera/models/log.rb +53 -0
  39. data/lib/apcera/models/metric_series.rb +49 -0
  40. data/lib/apcera/models/metric_series_hash.rb +29 -0
  41. data/lib/apcera/models/metrics.rb +49 -0
  42. data/lib/apcera/models/namespace.rb +37 -0
  43. data/lib/apcera/models/package.rb +183 -0
  44. data/lib/apcera/models/package_depends_request.rb +47 -0
  45. data/lib/apcera/models/package_info.rb +69 -0
  46. data/lib/apcera/models/package_resource.rb +61 -0
  47. data/lib/apcera/models/policy_error.rb +63 -0
  48. data/lib/apcera/models/port.rb +55 -0
  49. data/lib/apcera/models/process.rb +37 -0
  50. data/lib/apcera/models/process_object.rb +115 -0
  51. data/lib/apcera/models/provide.rb +53 -0
  52. data/lib/apcera/models/provider.rb +85 -0
  53. data/lib/apcera/models/resource.rb +69 -0
  54. data/lib/apcera/models/restart_config.rb +53 -0
  55. data/lib/apcera/models/rollout_config.rb +69 -0
  56. data/lib/apcera/models/route.rb +53 -0
  57. data/lib/apcera/models/rule.rb +101 -0
  58. data/lib/apcera/models/runtime.rb +47 -0
  59. data/lib/apcera/models/semi_pipe_rule.rb +101 -0
  60. data/lib/apcera/models/semi_pipe_rule_action.rb +37 -0
  61. data/lib/apcera/models/stager_job.rb +37 -0
  62. data/lib/apcera/models/staging_pipeline.rb +103 -0
  63. data/lib/apcera/models/sub_task.rb +61 -0
  64. data/lib/apcera/models/task.rb +87 -0
  65. data/lib/apcera/models/task_event.rb +113 -0
  66. data/lib/apcera/models/task_progress.rb +45 -0
  67. data/lib/apcera/models/unbind_parameter_object.rb +53 -0
  68. data/lib/apcera/models/unlink_parameter_object.rb +53 -0
  69. data/lib/apcera/version.rb +3 -0
  70. data/lib/apcera.rb +90 -0
  71. metadata +293 -0
@@ -0,0 +1,541 @@
1
+ require "uri"
2
+
3
+ module Apcera
4
+ class PackagesApi
5
+ attr_accessor :api_client
6
+
7
+ def initialize(api_client = nil)
8
+ @api_client = api_client || Configuration.api_client
9
+ end
10
+
11
+ # Returns a list of packages on the cluster.
12
+ # Returns a list of packages on the cluster, optionally filtered by package name, FQN, UUID or other properties. Pagination is also supported.
13
+ # @param [Hash] opts the optional parameters
14
+ # @option opts [Array<String>] :tag List of tags. Only packages with the specified tags are returned.
15
+ # @option opts [Array<String>] :excluded_tags List of excluded tags. Only packages without the specified tags are returned.
16
+ # @option opts [Array<String>] :ids List of package UUIDs. Only packages with specifed UUIDs to return.
17
+ # @option opts [String] :name Local name of package to return.
18
+ # @option opts [String] :fqn FQN of package to return.
19
+ # @option opts [String] :match_partial_fqn If `true`, packages that partially match the FQN specified by `fqn` parameter are returned. If `false` (default) then `fqn` must exactly match an available package.
20
+ # @option opts [String] :package_id UUID of the package to return.
21
+ # @option opts [String] :provides_type Type of packages to return. Valid values are `os`, `package`, `runtime`, or `file`.
22
+ # @option opts [String] :provides_name Name that describes the packages to return. Value can be an exact package name (&#39;java-1.6&#39; or &#39;ubuntu-13.10&#39;, for example) or a generalized requirement (&#39;linux&#39;, for example).
23
+ # @option opts [String] :authorization
24
+ # @return [Array<Package>]
25
+ def packages_get(opts = {})
26
+
27
+ if Configuration.debugging
28
+ Configuration.logger.debug "Calling API: PackagesApi#packages_get ..."
29
+ end
30
+
31
+
32
+ if opts[:'provides_type'] && !['file', 'package', 'runtime', 'os'].include?(opts[:'provides_type'])
33
+ fail 'invalid value for "provides_type", must be one of file, package, runtime, os'
34
+ end
35
+
36
+ # resource path
37
+ path = "/packages".sub('{format}','json')
38
+
39
+ # query parameters
40
+ query_params = {}
41
+ query_params[:'tag'] = opts[:'tag'] if opts[:'tag']
42
+ query_params[:'excluded_tags'] = opts[:'excluded_tags'] if opts[:'excluded_tags']
43
+ query_params[:'ids'] = opts[:'ids'] if opts[:'ids']
44
+ query_params[:'name'] = opts[:'name'] if opts[:'name']
45
+ query_params[:'fqn'] = opts[:'fqn'] if opts[:'fqn']
46
+ query_params[:'matchPartialFQN'] = opts[:'match_partial_fqn'] if opts[:'match_partial_fqn']
47
+ query_params[:'package_id'] = opts[:'package_id'] if opts[:'package_id']
48
+ query_params[:'provides_type'] = opts[:'provides_type'] if opts[:'provides_type']
49
+ query_params[:'provides_name'] = opts[:'provides_name'] if opts[:'provides_name']
50
+
51
+ # header parameters
52
+ header_params = {}
53
+
54
+ # HTTP header 'Accept' (if needed)
55
+ _header_accept = []
56
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
57
+
58
+ # HTTP header 'Content-Type'
59
+ _header_content_type = []
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
61
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
62
+
63
+ # form parameters
64
+ form_params = {}
65
+
66
+ # http body (model)
67
+ post_body = nil
68
+
69
+
70
+ auth_names = ['authorization']
71
+ result = @api_client.call_api(:GET, path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => 'Array<Package>')
78
+ if Configuration.debugging
79
+ Configuration.logger.debug "API called: PackagesApi#packages_get. Result: #{result.inspect}"
80
+ end
81
+ return result
82
+ end
83
+
84
+ # Creates a new package.
85
+ # Creates a new package from the provided JSON object.
86
+ # @param pkg An object that defines the properties of the new package.
87
+ # @param [Hash] opts the optional parameters
88
+ # @option opts [String] :authorization
89
+ # @return [Package]
90
+ def packages_post(pkg, opts = {})
91
+
92
+ if Configuration.debugging
93
+ Configuration.logger.debug "Calling API: PackagesApi#packages_post ..."
94
+ end
95
+
96
+
97
+ # verify the required parameter 'pkg' is set
98
+ fail "Missing the required parameter 'pkg' when calling packages_post" if pkg.nil?
99
+
100
+ # resource path
101
+ path = "/packages".sub('{format}','json')
102
+
103
+ # query parameters
104
+ query_params = {}
105
+
106
+ # header parameters
107
+ header_params = {}
108
+
109
+ # HTTP header 'Accept' (if needed)
110
+ _header_accept = []
111
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
112
+
113
+ # HTTP header 'Content-Type'
114
+ _header_content_type = []
115
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
116
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
117
+
118
+ # form parameters
119
+ form_params = {}
120
+
121
+ # http body (model)
122
+ post_body = @api_client.object_to_http_body(pkg)
123
+
124
+
125
+ auth_names = ['authorization']
126
+ result = @api_client.call_api(:POST, path,
127
+ :header_params => header_params,
128
+ :query_params => query_params,
129
+ :form_params => form_params,
130
+ :body => post_body,
131
+ :auth_names => auth_names,
132
+ :return_type => 'Package')
133
+ if Configuration.debugging
134
+ Configuration.logger.debug "API called: PackagesApi#packages_post. Result: #{result.inspect}"
135
+ end
136
+ return result
137
+ end
138
+
139
+ # Returns a list of packages that fulfill the specified dependency type and name for the specified namespace.
140
+ # Returns a list of packages that fulfill the specified dependency type and name for the specified namespace.
141
+ # @param [Hash] opts the optional parameters
142
+ # @option opts [PackageDependsRequest] :targetjob_resource JSON object that identifies the namespace we&#39;re resolving dependencies within, and the package dependencies that need to be fully resolved.
143
+ # @option opts [String] :authorization
144
+ # @return [Array<Package>]
145
+ def packages_dependencies_post(opts = {})
146
+
147
+ if Configuration.debugging
148
+ Configuration.logger.debug "Calling API: PackagesApi#packages_dependencies_post ..."
149
+ end
150
+
151
+
152
+ # resource path
153
+ path = "/packages/dependencies".sub('{format}','json')
154
+
155
+ # query parameters
156
+ query_params = {}
157
+
158
+ # header parameters
159
+ header_params = {}
160
+
161
+ # HTTP header 'Accept' (if needed)
162
+ _header_accept = []
163
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
164
+
165
+ # HTTP header 'Content-Type'
166
+ _header_content_type = []
167
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
168
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
169
+
170
+ # form parameters
171
+ form_params = {}
172
+
173
+ # http body (model)
174
+ post_body = @api_client.object_to_http_body(opts[:'targetjob_resource'])
175
+
176
+
177
+ auth_names = ['authorization']
178
+ result = @api_client.call_api(:POST, path,
179
+ :header_params => header_params,
180
+ :query_params => query_params,
181
+ :form_params => form_params,
182
+ :body => post_body,
183
+ :auth_names => auth_names,
184
+ :return_type => 'Array<Package>')
185
+ if Configuration.debugging
186
+ Configuration.logger.debug "API called: PackagesApi#packages_dependencies_post. Result: #{result.inspect}"
187
+ end
188
+ return result
189
+ end
190
+
191
+ # Downloads the specified package&#39;s binary resource.
192
+ # Downloads the specified package&#39;s binary resource.
193
+ # @param uuid UUID of the package.
194
+ # @param [Hash] opts the optional parameters
195
+ # @option opts [String] :authorization
196
+ # @return [nil]
197
+ def packages_resources_uuid_get(uuid, opts = {})
198
+
199
+ if Configuration.debugging
200
+ Configuration.logger.debug "Calling API: PackagesApi#packages_resources_uuid_get ..."
201
+ end
202
+
203
+
204
+ # verify the required parameter 'uuid' is set
205
+ fail "Missing the required parameter 'uuid' when calling packages_resources_uuid_get" if uuid.nil?
206
+
207
+ # resource path
208
+ path = "/packages/resources/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
209
+
210
+ # query parameters
211
+ query_params = {}
212
+
213
+ # header parameters
214
+ header_params = {}
215
+
216
+ # HTTP header 'Accept' (if needed)
217
+ _header_accept = []
218
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
219
+
220
+ # HTTP header 'Content-Type'
221
+ _header_content_type = []
222
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
223
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
224
+
225
+ # form parameters
226
+ form_params = {}
227
+
228
+ # http body (model)
229
+ post_body = nil
230
+
231
+
232
+ auth_names = ['authorization']
233
+ @api_client.call_api(:GET, path,
234
+ :header_params => header_params,
235
+ :query_params => query_params,
236
+ :form_params => form_params,
237
+ :body => post_body,
238
+ :auth_names => auth_names)
239
+ if Configuration.debugging
240
+ Configuration.logger.debug "API called: PackagesApi#packages_resources_uuid_get"
241
+ end
242
+ return nil
243
+ end
244
+
245
+ # Uploads package resources for the specified package.
246
+ # Uploads package resources for the specified package.
247
+ # @param uuid UUID of the package.
248
+ # @param binary_data Binary package resource (GZIP). The resource&#39;s content length and SHA must match the values specified made in a previous call to [`POST /packages`](#operation--packages-post).
249
+ # @param [Hash] opts the optional parameters
250
+ # @option opts [String] :authorization
251
+ # @return [nil]
252
+ def packages_resources_uuid_put(uuid, binary_data, opts = {})
253
+
254
+ if Configuration.debugging
255
+ Configuration.logger.debug "Calling API: PackagesApi#packages_resources_uuid_put ..."
256
+ end
257
+
258
+
259
+ # verify the required parameter 'uuid' is set
260
+ fail "Missing the required parameter 'uuid' when calling packages_resources_uuid_put" if uuid.nil?
261
+
262
+ # verify the required parameter 'binary_data' is set
263
+ fail "Missing the required parameter 'binary_data' when calling packages_resources_uuid_put" if binary_data.nil?
264
+
265
+ # resource path
266
+ path = "/packages/resources/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
267
+
268
+ # query parameters
269
+ query_params = {}
270
+
271
+ # header parameters
272
+ header_params = {}
273
+
274
+ # HTTP header 'Accept' (if needed)
275
+ _header_accept = []
276
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
277
+
278
+ # HTTP header 'Content-Type'
279
+ _header_content_type = ['application/octet-stream']
280
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
281
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
282
+
283
+ # form parameters
284
+ form_params = {}
285
+
286
+ # http body (model)
287
+ post_body = @api_client.object_to_http_body(binary_data)
288
+
289
+
290
+ auth_names = ['authorization']
291
+ @api_client.call_api(:PUT, path,
292
+ :header_params => header_params,
293
+ :query_params => query_params,
294
+ :form_params => form_params,
295
+ :body => post_body,
296
+ :auth_names => auth_names)
297
+ if Configuration.debugging
298
+ Configuration.logger.debug "API called: PackagesApi#packages_resources_uuid_put"
299
+ end
300
+ return nil
301
+ end
302
+
303
+ # Uploads a package resource for the specified package.
304
+ # Uploads a specific package resource to the specified package.
305
+ # @param package_uuid UUID of the package.
306
+ # @param resource_uuid UUID of the resource.
307
+ # @param binary_data Binary package resource (GZIP). The resource&#39;s content length and SHA must match the values specified made in a previous call to [`POST /packages`](#operation--packages-post).
308
+ # @param content_digest
309
+ # @param [Hash] opts the optional parameters
310
+ # @option opts [String] :authorization
311
+ # @return [nil]
312
+ def packages_package_uuid_resources_resource_uuid_put(package_uuid, resource_uuid, binary_data, content_digest, opts = {})
313
+
314
+ if Configuration.debugging
315
+ Configuration.logger.debug "Calling API: PackagesApi#packages_package_uuid_resources_resource_uuid_put ..."
316
+ end
317
+
318
+
319
+ # verify the required parameter 'package_uuid' is set
320
+ fail "Missing the required parameter 'package_uuid' when calling packages_package_uuid_resources_resource_uuid_put" if package_uuid.nil?
321
+
322
+ # verify the required parameter 'resource_uuid' is set
323
+ fail "Missing the required parameter 'resource_uuid' when calling packages_package_uuid_resources_resource_uuid_put" if resource_uuid.nil?
324
+
325
+ # verify the required parameter 'binary_data' is set
326
+ fail "Missing the required parameter 'binary_data' when calling packages_package_uuid_resources_resource_uuid_put" if binary_data.nil?
327
+
328
+ # verify the required parameter 'content_digest' is set
329
+ fail "Missing the required parameter 'content_digest' when calling packages_package_uuid_resources_resource_uuid_put" if content_digest.nil?
330
+
331
+ # resource path
332
+ path = "/packages/{package_uuid}/resources/{resource_uuid}".sub('{format}','json').sub('{' + 'package_uuid' + '}', package_uuid.to_s).sub('{' + 'resource_uuid' + '}', resource_uuid.to_s)
333
+
334
+ # query parameters
335
+ query_params = {}
336
+
337
+ # header parameters
338
+ header_params = {}
339
+
340
+ # HTTP header 'Accept' (if needed)
341
+ _header_accept = []
342
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
343
+
344
+ # HTTP header 'Content-Type'
345
+ _header_content_type = ['application/octet-stream']
346
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
347
+ header_params[:'Content-Digest'] = content_digest
348
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
349
+
350
+ # form parameters
351
+ form_params = {}
352
+
353
+ # http body (model)
354
+ post_body = @api_client.object_to_http_body(binary_data)
355
+
356
+
357
+ auth_names = ['authorization']
358
+ @api_client.call_api(:PUT, path,
359
+ :header_params => header_params,
360
+ :query_params => query_params,
361
+ :form_params => form_params,
362
+ :body => post_body,
363
+ :auth_names => auth_names)
364
+ if Configuration.debugging
365
+ Configuration.logger.debug "API called: PackagesApi#packages_package_uuid_resources_resource_uuid_put"
366
+ end
367
+ return nil
368
+ end
369
+
370
+ # Returns the specified package.
371
+ # Returns the specified package.
372
+ # @param uuid UUID of the package.
373
+ # @param [Hash] opts the optional parameters
374
+ # @option opts [String] :authorization
375
+ # @return [Package]
376
+ def packages_uuid_get(uuid, opts = {})
377
+
378
+ if Configuration.debugging
379
+ Configuration.logger.debug "Calling API: PackagesApi#packages_uuid_get ..."
380
+ end
381
+
382
+
383
+ # verify the required parameter 'uuid' is set
384
+ fail "Missing the required parameter 'uuid' when calling packages_uuid_get" if uuid.nil?
385
+
386
+ # resource path
387
+ path = "/packages/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
388
+
389
+ # query parameters
390
+ query_params = {}
391
+
392
+ # header parameters
393
+ header_params = {}
394
+
395
+ # HTTP header 'Accept' (if needed)
396
+ _header_accept = []
397
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
398
+
399
+ # HTTP header 'Content-Type'
400
+ _header_content_type = []
401
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
402
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
403
+
404
+ # form parameters
405
+ form_params = {}
406
+
407
+ # http body (model)
408
+ post_body = nil
409
+
410
+
411
+ auth_names = ['authorization']
412
+ result = @api_client.call_api(:GET, path,
413
+ :header_params => header_params,
414
+ :query_params => query_params,
415
+ :form_params => form_params,
416
+ :body => post_body,
417
+ :auth_names => auth_names,
418
+ :return_type => 'Package')
419
+ if Configuration.debugging
420
+ Configuration.logger.debug "API called: PackagesApi#packages_uuid_get. Result: #{result.inspect}"
421
+ end
422
+ return result
423
+ end
424
+
425
+ # Updates the specified package&#39;s properties.
426
+ # Updates the specified package with the properties defined in the provided package object.
427
+ # @param uuid UUID of the package.
428
+ # @param package A Package object containing the updated properties for the specified package.
429
+ # @param [Hash] opts the optional parameters
430
+ # @option opts [String] :authorization
431
+ # @return [nil]
432
+ def packages_uuid_put(uuid, package, opts = {})
433
+
434
+ if Configuration.debugging
435
+ Configuration.logger.debug "Calling API: PackagesApi#packages_uuid_put ..."
436
+ end
437
+
438
+
439
+ # verify the required parameter 'uuid' is set
440
+ fail "Missing the required parameter 'uuid' when calling packages_uuid_put" if uuid.nil?
441
+
442
+ # verify the required parameter 'package' is set
443
+ fail "Missing the required parameter 'package' when calling packages_uuid_put" if package.nil?
444
+
445
+ # resource path
446
+ path = "/packages/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
447
+
448
+ # query parameters
449
+ query_params = {}
450
+
451
+ # header parameters
452
+ header_params = {}
453
+
454
+ # HTTP header 'Accept' (if needed)
455
+ _header_accept = []
456
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
457
+
458
+ # HTTP header 'Content-Type'
459
+ _header_content_type = []
460
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
461
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
462
+
463
+ # form parameters
464
+ form_params = {}
465
+
466
+ # http body (model)
467
+ post_body = @api_client.object_to_http_body(package)
468
+
469
+
470
+ auth_names = ['authorization']
471
+ @api_client.call_api(:PUT, path,
472
+ :header_params => header_params,
473
+ :query_params => query_params,
474
+ :form_params => form_params,
475
+ :body => post_body,
476
+ :auth_names => auth_names)
477
+ if Configuration.debugging
478
+ Configuration.logger.debug "API called: PackagesApi#packages_uuid_put"
479
+ end
480
+ return nil
481
+ end
482
+
483
+ # Deletes the specified package.
484
+ # Deletes the specified package.
485
+ # @param uuid UUID of the package to delete.
486
+ # @param [Hash] opts the optional parameters
487
+ # @option opts [String] :authorization
488
+ # @return [nil]
489
+ def packages_uuid_delete(uuid, opts = {})
490
+
491
+ if Configuration.debugging
492
+ Configuration.logger.debug "Calling API: PackagesApi#packages_uuid_delete ..."
493
+ end
494
+
495
+
496
+ # verify the required parameter 'uuid' is set
497
+ fail "Missing the required parameter 'uuid' when calling packages_uuid_delete" if uuid.nil?
498
+
499
+ # resource path
500
+ path = "/packages/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s)
501
+
502
+ # query parameters
503
+ query_params = {}
504
+
505
+ # header parameters
506
+ header_params = {}
507
+
508
+ # HTTP header 'Accept' (if needed)
509
+ _header_accept = []
510
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
511
+
512
+ # HTTP header 'Content-Type'
513
+ _header_content_type = []
514
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
515
+ header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization']
516
+
517
+ # form parameters
518
+ form_params = {}
519
+
520
+ # http body (model)
521
+ post_body = nil
522
+
523
+
524
+ auth_names = ['authorization']
525
+ @api_client.call_api(:DELETE, path,
526
+ :header_params => header_params,
527
+ :query_params => query_params,
528
+ :form_params => form_params,
529
+ :body => post_body,
530
+ :auth_names => auth_names)
531
+ if Configuration.debugging
532
+ Configuration.logger.debug "API called: PackagesApi#packages_uuid_delete"
533
+ end
534
+ return nil
535
+ end
536
+ end
537
+ end
538
+
539
+
540
+
541
+