pulp_container_client 2.0.0b2 → 2.0.0b3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -20
  3. data/docs/{ContainerBlobRead.md → ContainerBlob.md} +2 -2
  4. data/docs/ContainerContainerDistribution.md +8 -8
  5. data/docs/{ContainerContainerRepositoryRead.md → ContainerContainerPushRepository.md} +2 -2
  6. data/docs/ContainerContentRedirectContentGuard.md +23 -0
  7. data/docs/{ContainerManifestRead.md → ContainerManifest.md} +2 -2
  8. data/docs/{ContainerTagRead.md → ContainerTag.md} +2 -2
  9. data/docs/ContentBlobsApi.md +2 -2
  10. data/docs/ContentManifestsApi.md +2 -2
  11. data/docs/ContentTagsApi.md +2 -2
  12. data/docs/ContentguardsContentRedirectApi.md +355 -0
  13. data/docs/DistributionsContainerApi.md +4 -4
  14. data/docs/InlineResponse200.md +1 -1
  15. data/docs/InlineResponse2001.md +1 -1
  16. data/docs/InlineResponse2002.md +1 -1
  17. data/docs/InlineResponse2003.md +1 -1
  18. data/docs/InlineResponse2004.md +1 -1
  19. data/docs/InlineResponse2005.md +1 -1
  20. data/docs/InlineResponse2006.md +1 -1
  21. data/docs/InlineResponse2007.md +23 -0
  22. data/docs/InlineResponse2008.md +23 -0
  23. data/docs/RemotesContainerApi.md +6 -6
  24. data/docs/RepositoriesContainerApi.md +6 -6
  25. data/docs/RepositoriesContainerPushApi.md +356 -0
  26. data/docs/RepositoriesContainerVersionsApi.md +285 -20
  27. data/docs/{V2Api.md → TokenApi.md} +5 -5
  28. data/lib/pulp_container_client.rb +10 -12
  29. data/lib/pulp_container_client/api/content_blobs_api.rb +3 -3
  30. data/lib/pulp_container_client/api/content_manifests_api.rb +3 -3
  31. data/lib/pulp_container_client/api/content_tags_api.rb +3 -3
  32. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +431 -0
  33. data/lib/pulp_container_client/api/distributions_container_api.rb +6 -6
  34. data/lib/pulp_container_client/api/remotes_container_api.rb +9 -9
  35. data/lib/pulp_container_client/api/repositories_container_api.rb +9 -9
  36. data/lib/pulp_container_client/api/repositories_container_push_api.rb +433 -0
  37. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +354 -34
  38. data/lib/pulp_container_client/api/{v2_api.rb → token_api.rb} +6 -6
  39. data/lib/pulp_container_client/models/{container_blob_read.rb → container_blob.rb} +3 -3
  40. data/lib/pulp_container_client/models/container_container_distribution.rb +60 -61
  41. data/lib/pulp_container_client/models/{container_container_repository_read.rb → container_container_push_repository.rb} +3 -3
  42. data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +276 -0
  43. data/lib/pulp_container_client/models/{container_manifest_read.rb → container_manifest.rb} +3 -3
  44. data/lib/pulp_container_client/models/{container_tag_read.rb → container_tag.rb} +3 -3
  45. data/lib/pulp_container_client/models/inline_response200.rb +1 -1
  46. data/lib/pulp_container_client/models/inline_response2001.rb +1 -1
  47. data/lib/pulp_container_client/models/inline_response2002.rb +1 -1
  48. data/lib/pulp_container_client/models/inline_response2003.rb +1 -1
  49. data/lib/pulp_container_client/models/inline_response2004.rb +1 -1
  50. data/lib/pulp_container_client/models/inline_response2005.rb +1 -1
  51. data/lib/pulp_container_client/models/inline_response2006.rb +1 -1
  52. data/lib/pulp_container_client/models/{repository_version_read.rb → inline_response2007.rb} +42 -39
  53. data/lib/pulp_container_client/models/inline_response2008.rb +247 -0
  54. data/lib/pulp_container_client/version.rb +1 -1
  55. data/spec/api/content_blobs_api_spec.rb +1 -1
  56. data/spec/api/content_manifests_api_spec.rb +1 -1
  57. data/spec/api/content_tags_api_spec.rb +1 -1
  58. data/spec/api/contentguards_content_redirect_api_spec.rb +117 -0
  59. data/spec/api/distributions_container_api_spec.rb +2 -2
  60. data/spec/api/remotes_container_api_spec.rb +3 -3
  61. data/spec/api/repositories_container_api_spec.rb +3 -3
  62. data/spec/api/repositories_container_push_api_spec.rb +117 -0
  63. data/spec/api/repositories_container_versions_api_spec.rb +77 -7
  64. data/spec/api/{v2_api_spec.rb → token_api_spec.rb} +7 -7
  65. data/spec/models/{container_blob_read_spec.rb → container_blob_spec.rb} +6 -6
  66. data/spec/models/container_container_distribution_spec.rb +7 -7
  67. data/spec/models/{container_container_repository_read_spec.rb → container_container_push_repository_spec.rb} +6 -6
  68. data/spec/models/{repository_version_read_spec.rb → container_content_redirect_content_guard_spec.rb} +8 -14
  69. data/spec/models/{container_manifest_read_spec.rb → container_manifest_spec.rb} +6 -6
  70. data/spec/models/{container_tag_read_spec.rb → container_tag_spec.rb} +6 -6
  71. data/spec/models/inline_response2007_spec.rb +59 -0
  72. data/spec/models/inline_response2008_spec.rb +59 -0
  73. metadata +42 -50
  74. data/docs/ContainerContainerDistributionRead.md +0 -31
  75. data/docs/ContainerContainerRemoteRead.md +0 -47
  76. data/docs/RepositoryVersionRead.md +0 -25
  77. data/docs/V2BlobsApi.md +0 -63
  78. data/docs/V2CatalogApi.md +0 -64
  79. data/docs/V2ListApi.md +0 -66
  80. data/docs/V2UploadsApi.md +0 -61
  81. data/lib/pulp_container_client/api/v2_blobs_api.rb +0 -88
  82. data/lib/pulp_container_client/api/v2_catalog_api.rb +0 -80
  83. data/lib/pulp_container_client/api/v2_list_api.rb +0 -86
  84. data/lib/pulp_container_client/api/v2_uploads_api.rb +0 -82
  85. data/lib/pulp_container_client/models/container_container_distribution_read.rb +0 -342
  86. data/lib/pulp_container_client/models/container_container_remote_read.rb +0 -578
  87. data/spec/api/v2_blobs_api_spec.rb +0 -48
  88. data/spec/api/v2_catalog_api_spec.rb +0 -47
  89. data/spec/api/v2_list_api_spec.rb +0 -48
  90. data/spec/api/v2_uploads_api_spec.rb +0 -47
  91. data/spec/models/container_container_distribution_read_spec.rb +0 -83
  92. data/spec/models/container_container_remote_read_spec.rb +0 -135
@@ -159,7 +159,7 @@ module PulpContainerClient
159
159
  # @option opts [Integer] :offset The initial index from which to return the results.
160
160
  # @option opts [String] :fields A list of fields to include in the response.
161
161
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
162
- # @return [InlineResponse2003]
162
+ # @return [InlineResponse2004]
163
163
  def list(opts = {})
164
164
  data, _status_code, _headers = list_with_http_info(opts)
165
165
  data
@@ -179,7 +179,7 @@ module PulpContainerClient
179
179
  # @option opts [Integer] :offset The initial index from which to return the results.
180
180
  # @option opts [String] :fields A list of fields to include in the response.
181
181
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
- # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
182
+ # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
183
183
  def list_with_http_info(opts = {})
184
184
  if @api_client.config.debugging
185
185
  @api_client.config.logger.debug 'Calling API: DistributionsContainerApi.list ...'
@@ -213,7 +213,7 @@ module PulpContainerClient
213
213
  post_body = opts[:body]
214
214
 
215
215
  # return_type
216
- return_type = opts[:return_type] || 'InlineResponse2003'
216
+ return_type = opts[:return_type] || 'InlineResponse2004'
217
217
 
218
218
  # auth_names
219
219
  auth_names = opts[:auth_names] || ['Basic']
@@ -310,7 +310,7 @@ module PulpContainerClient
310
310
  # @param [Hash] opts the optional parameters
311
311
  # @option opts [String] :fields A list of fields to include in the response.
312
312
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
313
- # @return [ContainerContainerDistributionRead]
313
+ # @return [ContainerContainerDistribution]
314
314
  def read(container_distribution_href, opts = {})
315
315
  data, _status_code, _headers = read_with_http_info(container_distribution_href, opts)
316
316
  data
@@ -322,7 +322,7 @@ module PulpContainerClient
322
322
  # @param [Hash] opts the optional parameters
323
323
  # @option opts [String] :fields A list of fields to include in the response.
324
324
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
325
- # @return [Array<(ContainerContainerDistributionRead, Integer, Hash)>] ContainerContainerDistributionRead data, response status code and response headers
325
+ # @return [Array<(ContainerContainerDistribution, Integer, Hash)>] ContainerContainerDistribution data, response status code and response headers
326
326
  def read_with_http_info(container_distribution_href, opts = {})
327
327
  if @api_client.config.debugging
328
328
  @api_client.config.logger.debug 'Calling API: DistributionsContainerApi.read ...'
@@ -351,7 +351,7 @@ module PulpContainerClient
351
351
  post_body = opts[:body]
352
352
 
353
353
  # return_type
354
- return_type = opts[:return_type] || 'ContainerContainerDistributionRead'
354
+ return_type = opts[:return_type] || 'ContainerContainerDistribution'
355
355
 
356
356
  # auth_names
357
357
  auth_names = opts[:auth_names] || ['Basic']
@@ -23,7 +23,7 @@ module PulpContainerClient
23
23
  # Container remotes represent an external repository that implements the Container Registry API. Container remotes support deferred downloading by configuring the ``policy`` field. ``on_demand`` and ``streamed`` policies can provide significant disk space savings.
24
24
  # @param data [ContainerContainerRemote]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [ContainerContainerRemoteRead]
26
+ # @return [ContainerContainerRemote]
27
27
  def create(data, opts = {})
28
28
  data, _status_code, _headers = create_with_http_info(data, opts)
29
29
  data
@@ -33,7 +33,7 @@ module PulpContainerClient
33
33
  # Container remotes represent an external repository that implements the Container Registry API. Container remotes support deferred downloading by configuring the &#x60;&#x60;policy&#x60;&#x60; field. &#x60;&#x60;on_demand&#x60;&#x60; and &#x60;&#x60;streamed&#x60;&#x60; policies can provide significant disk space savings.
34
34
  # @param data [ContainerContainerRemote]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(ContainerContainerRemoteRead, Integer, Hash)>] ContainerContainerRemoteRead data, response status code and response headers
36
+ # @return [Array<(ContainerContainerRemote, Integer, Hash)>] ContainerContainerRemote data, response status code and response headers
37
37
  def create_with_http_info(data, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: RemotesContainerApi.create ...'
@@ -62,7 +62,7 @@ module PulpContainerClient
62
62
  post_body = opts[:body] || @api_client.object_to_http_body(data)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'ContainerContainerRemoteRead'
65
+ return_type = opts[:return_type] || 'ContainerContainerRemote'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['Basic']
@@ -161,7 +161,7 @@ module PulpContainerClient
161
161
  # @option opts [Integer] :offset The initial index from which to return the results.
162
162
  # @option opts [String] :fields A list of fields to include in the response.
163
163
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
164
- # @return [InlineResponse2004]
164
+ # @return [InlineResponse2005]
165
165
  def list(opts = {})
166
166
  data, _status_code, _headers = list_with_http_info(opts)
167
167
  data
@@ -183,7 +183,7 @@ module PulpContainerClient
183
183
  # @option opts [Integer] :offset The initial index from which to return the results.
184
184
  # @option opts [String] :fields A list of fields to include in the response.
185
185
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
186
- # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
186
+ # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
187
187
  def list_with_http_info(opts = {})
188
188
  if @api_client.config.debugging
189
189
  @api_client.config.logger.debug 'Calling API: RemotesContainerApi.list ...'
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  post_body = opts[:body]
220
220
 
221
221
  # return_type
222
- return_type = opts[:return_type] || 'InlineResponse2004'
222
+ return_type = opts[:return_type] || 'InlineResponse2005'
223
223
 
224
224
  # auth_names
225
225
  auth_names = opts[:auth_names] || ['Basic']
@@ -316,7 +316,7 @@ module PulpContainerClient
316
316
  # @param [Hash] opts the optional parameters
317
317
  # @option opts [String] :fields A list of fields to include in the response.
318
318
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
319
- # @return [ContainerContainerRemoteRead]
319
+ # @return [ContainerContainerRemote]
320
320
  def read(container_remote_href, opts = {})
321
321
  data, _status_code, _headers = read_with_http_info(container_remote_href, opts)
322
322
  data
@@ -328,7 +328,7 @@ module PulpContainerClient
328
328
  # @param [Hash] opts the optional parameters
329
329
  # @option opts [String] :fields A list of fields to include in the response.
330
330
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
331
- # @return [Array<(ContainerContainerRemoteRead, Integer, Hash)>] ContainerContainerRemoteRead data, response status code and response headers
331
+ # @return [Array<(ContainerContainerRemote, Integer, Hash)>] ContainerContainerRemote data, response status code and response headers
332
332
  def read_with_http_info(container_remote_href, opts = {})
333
333
  if @api_client.config.debugging
334
334
  @api_client.config.logger.debug 'Calling API: RemotesContainerApi.read ...'
@@ -357,7 +357,7 @@ module PulpContainerClient
357
357
  post_body = opts[:body]
358
358
 
359
359
  # return_type
360
- return_type = opts[:return_type] || 'ContainerContainerRemoteRead'
360
+ return_type = opts[:return_type] || 'ContainerContainerRemote'
361
361
 
362
362
  # auth_names
363
363
  auth_names = opts[:auth_names] || ['Basic']
@@ -313,7 +313,7 @@ module PulpContainerClient
313
313
  # ViewSet for container repo.
314
314
  # @param data [ContainerContainerRepository]
315
315
  # @param [Hash] opts the optional parameters
316
- # @return [ContainerContainerRepositoryRead]
316
+ # @return [ContainerContainerRepository]
317
317
  def create(data, opts = {})
318
318
  data, _status_code, _headers = create_with_http_info(data, opts)
319
319
  data
@@ -323,7 +323,7 @@ module PulpContainerClient
323
323
  # ViewSet for container repo.
324
324
  # @param data [ContainerContainerRepository]
325
325
  # @param [Hash] opts the optional parameters
326
- # @return [Array<(ContainerContainerRepositoryRead, Integer, Hash)>] ContainerContainerRepositoryRead data, response status code and response headers
326
+ # @return [Array<(ContainerContainerRepository, Integer, Hash)>] ContainerContainerRepository data, response status code and response headers
327
327
  def create_with_http_info(data, opts = {})
328
328
  if @api_client.config.debugging
329
329
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.create ...'
@@ -352,7 +352,7 @@ module PulpContainerClient
352
352
  post_body = opts[:body] || @api_client.object_to_http_body(data)
353
353
 
354
354
  # return_type
355
- return_type = opts[:return_type] || 'ContainerContainerRepositoryRead'
355
+ return_type = opts[:return_type] || 'ContainerContainerRepository'
356
356
 
357
357
  # auth_names
358
358
  auth_names = opts[:auth_names] || ['Basic']
@@ -445,7 +445,7 @@ module PulpContainerClient
445
445
  # @option opts [Integer] :offset The initial index from which to return the results.
446
446
  # @option opts [String] :fields A list of fields to include in the response.
447
447
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
448
- # @return [InlineResponse2005]
448
+ # @return [InlineResponse2008]
449
449
  def list(opts = {})
450
450
  data, _status_code, _headers = list_with_http_info(opts)
451
451
  data
@@ -461,7 +461,7 @@ module PulpContainerClient
461
461
  # @option opts [Integer] :offset The initial index from which to return the results.
462
462
  # @option opts [String] :fields A list of fields to include in the response.
463
463
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
464
- # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
464
+ # @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
465
465
  def list_with_http_info(opts = {})
466
466
  if @api_client.config.debugging
467
467
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.list ...'
@@ -491,7 +491,7 @@ module PulpContainerClient
491
491
  post_body = opts[:body]
492
492
 
493
493
  # return_type
494
- return_type = opts[:return_type] || 'InlineResponse2005'
494
+ return_type = opts[:return_type] || 'InlineResponse2008'
495
495
 
496
496
  # auth_names
497
497
  auth_names = opts[:auth_names] || ['Basic']
@@ -588,7 +588,7 @@ module PulpContainerClient
588
588
  # @param [Hash] opts the optional parameters
589
589
  # @option opts [String] :fields A list of fields to include in the response.
590
590
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
591
- # @return [ContainerContainerRepositoryRead]
591
+ # @return [ContainerContainerRepository]
592
592
  def read(container_repository_href, opts = {})
593
593
  data, _status_code, _headers = read_with_http_info(container_repository_href, opts)
594
594
  data
@@ -600,7 +600,7 @@ module PulpContainerClient
600
600
  # @param [Hash] opts the optional parameters
601
601
  # @option opts [String] :fields A list of fields to include in the response.
602
602
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
603
- # @return [Array<(ContainerContainerRepositoryRead, Integer, Hash)>] ContainerContainerRepositoryRead data, response status code and response headers
603
+ # @return [Array<(ContainerContainerRepository, Integer, Hash)>] ContainerContainerRepository data, response status code and response headers
604
604
  def read_with_http_info(container_repository_href, opts = {})
605
605
  if @api_client.config.debugging
606
606
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.read ...'
@@ -629,7 +629,7 @@ module PulpContainerClient
629
629
  post_body = opts[:body]
630
630
 
631
631
  # return_type
632
- return_type = opts[:return_type] || 'ContainerContainerRepositoryRead'
632
+ return_type = opts[:return_type] || 'ContainerContainerRepository'
633
633
 
634
634
  # auth_names
635
635
  auth_names = opts[:auth_names] || ['Basic']
@@ -0,0 +1,433 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpContainerClient
16
+ class RepositoriesContainerPushApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a container push repository
23
+ # ViewSet for container push repository.
24
+ # @param data [ContainerContainerPushRepository]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [ContainerContainerPushRepository]
27
+ def create(data, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(data, opts)
29
+ data
30
+ end
31
+
32
+ # Create a container push repository
33
+ # ViewSet for container push repository.
34
+ # @param data [ContainerContainerPushRepository]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(ContainerContainerPushRepository, Integer, Hash)>] ContainerContainerPushRepository data, response status code and response headers
37
+ def create_with_http_info(data, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.create ...'
40
+ end
41
+ # verify the required parameter 'data' is set
42
+ if @api_client.config.client_side_validation && data.nil?
43
+ fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesContainerPushApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/repositories/container/container-push/'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(data)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'ContainerContainerPushRepository'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['Basic']
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete a container push repository
87
+ # Trigger an asynchronous delete task
88
+ # @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [AsyncOperationResponse]
91
+ def delete(container_push_repository_href, opts = {})
92
+ data, _status_code, _headers = delete_with_http_info(container_push_repository_href, opts)
93
+ data
94
+ end
95
+
96
+ # Delete a container push repository
97
+ # Trigger an asynchronous delete task
98
+ # @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
+ def delete_with_http_info(container_push_repository_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.delete ...'
104
+ end
105
+ # verify the required parameter 'container_push_repository_href' is set
106
+ if @api_client.config.client_side_validation && container_push_repository_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'container_push_repository_href' when calling RepositoriesContainerPushApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{container_push_repository_href}'.sub('{' + 'container_push_repository_href' + '}', CGI.escape(container_push_repository_href.to_s).gsub('%2F', '/'))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
+
120
+ # form parameters
121
+ form_params = opts[:form_params] || {}
122
+
123
+ # http body (model)
124
+ post_body = opts[:body]
125
+
126
+ # return_type
127
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
128
+
129
+ # auth_names
130
+ auth_names = opts[:auth_names] || ['Basic']
131
+
132
+ new_options = opts.merge(
133
+ :header_params => header_params,
134
+ :query_params => query_params,
135
+ :form_params => form_params,
136
+ :body => post_body,
137
+ :auth_names => auth_names,
138
+ :return_type => return_type
139
+ )
140
+
141
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ end
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # List container push repositorys
149
+ # ViewSet for container push repository.
150
+ # @param [Hash] opts the optional parameters
151
+ # @option opts [String] :ordering Which field to use when ordering the results.
152
+ # @option opts [String] :name
153
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
154
+ # @option opts [Integer] :limit Number of results to return per page.
155
+ # @option opts [Integer] :offset The initial index from which to return the results.
156
+ # @option opts [String] :fields A list of fields to include in the response.
157
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
158
+ # @return [InlineResponse2006]
159
+ def list(opts = {})
160
+ data, _status_code, _headers = list_with_http_info(opts)
161
+ data
162
+ end
163
+
164
+ # List container push repositorys
165
+ # ViewSet for container push repository.
166
+ # @param [Hash] opts the optional parameters
167
+ # @option opts [String] :ordering Which field to use when ordering the results.
168
+ # @option opts [String] :name
169
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
170
+ # @option opts [Integer] :limit Number of results to return per page.
171
+ # @option opts [Integer] :offset The initial index from which to return the results.
172
+ # @option opts [String] :fields A list of fields to include in the response.
173
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
174
+ # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
175
+ def list_with_http_info(opts = {})
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.list ...'
178
+ end
179
+ # resource path
180
+ local_var_path = '/pulp/api/v3/repositories/container/container-push/'
181
+
182
+ # query parameters
183
+ query_params = opts[:query_params] || {}
184
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
185
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
186
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
187
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
188
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
189
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
190
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
191
+
192
+ # header parameters
193
+ header_params = opts[:header_params] || {}
194
+ # HTTP header 'Accept' (if needed)
195
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
196
+
197
+ # form parameters
198
+ form_params = opts[:form_params] || {}
199
+
200
+ # http body (model)
201
+ post_body = opts[:body]
202
+
203
+ # return_type
204
+ return_type = opts[:return_type] || 'InlineResponse2006'
205
+
206
+ # auth_names
207
+ auth_names = opts[:auth_names] || ['Basic']
208
+
209
+ new_options = opts.merge(
210
+ :header_params => header_params,
211
+ :query_params => query_params,
212
+ :form_params => form_params,
213
+ :body => post_body,
214
+ :auth_names => auth_names,
215
+ :return_type => return_type
216
+ )
217
+
218
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
219
+ if @api_client.config.debugging
220
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
221
+ end
222
+ return data, status_code, headers
223
+ end
224
+
225
+ # Partially update a container push repository
226
+ # Trigger an asynchronous partial update task
227
+ # @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
228
+ # @param data [ContainerContainerPushRepository]
229
+ # @param [Hash] opts the optional parameters
230
+ # @return [AsyncOperationResponse]
231
+ def partial_update(container_push_repository_href, data, opts = {})
232
+ data, _status_code, _headers = partial_update_with_http_info(container_push_repository_href, data, opts)
233
+ data
234
+ end
235
+
236
+ # Partially update a container push repository
237
+ # Trigger an asynchronous partial update task
238
+ # @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
239
+ # @param data [ContainerContainerPushRepository]
240
+ # @param [Hash] opts the optional parameters
241
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
242
+ def partial_update_with_http_info(container_push_repository_href, data, opts = {})
243
+ if @api_client.config.debugging
244
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.partial_update ...'
245
+ end
246
+ # verify the required parameter 'container_push_repository_href' is set
247
+ if @api_client.config.client_side_validation && container_push_repository_href.nil?
248
+ fail ArgumentError, "Missing the required parameter 'container_push_repository_href' when calling RepositoriesContainerPushApi.partial_update"
249
+ end
250
+ # verify the required parameter 'data' is set
251
+ if @api_client.config.client_side_validation && data.nil?
252
+ fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesContainerPushApi.partial_update"
253
+ end
254
+ # resource path
255
+ local_var_path = '{container_push_repository_href}'.sub('{' + 'container_push_repository_href' + '}', CGI.escape(container_push_repository_href.to_s).gsub('%2F', '/'))
256
+
257
+ # query parameters
258
+ query_params = opts[:query_params] || {}
259
+
260
+ # header parameters
261
+ header_params = opts[:header_params] || {}
262
+ # HTTP header 'Accept' (if needed)
263
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
264
+ # HTTP header 'Content-Type'
265
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
266
+
267
+ # form parameters
268
+ form_params = opts[:form_params] || {}
269
+
270
+ # http body (model)
271
+ post_body = opts[:body] || @api_client.object_to_http_body(data)
272
+
273
+ # return_type
274
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
275
+
276
+ # auth_names
277
+ auth_names = opts[:auth_names] || ['Basic']
278
+
279
+ new_options = opts.merge(
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 => return_type
286
+ )
287
+
288
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
289
+ if @api_client.config.debugging
290
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
291
+ end
292
+ return data, status_code, headers
293
+ end
294
+
295
+ # Inspect a container push repository
296
+ # ViewSet for container push repository.
297
+ # @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
298
+ # @param [Hash] opts the optional parameters
299
+ # @option opts [String] :fields A list of fields to include in the response.
300
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
301
+ # @return [ContainerContainerPushRepository]
302
+ def read(container_push_repository_href, opts = {})
303
+ data, _status_code, _headers = read_with_http_info(container_push_repository_href, opts)
304
+ data
305
+ end
306
+
307
+ # Inspect a container push repository
308
+ # ViewSet for container push repository.
309
+ # @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
310
+ # @param [Hash] opts the optional parameters
311
+ # @option opts [String] :fields A list of fields to include in the response.
312
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
313
+ # @return [Array<(ContainerContainerPushRepository, Integer, Hash)>] ContainerContainerPushRepository data, response status code and response headers
314
+ def read_with_http_info(container_push_repository_href, opts = {})
315
+ if @api_client.config.debugging
316
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.read ...'
317
+ end
318
+ # verify the required parameter 'container_push_repository_href' is set
319
+ if @api_client.config.client_side_validation && container_push_repository_href.nil?
320
+ fail ArgumentError, "Missing the required parameter 'container_push_repository_href' when calling RepositoriesContainerPushApi.read"
321
+ end
322
+ # resource path
323
+ local_var_path = '{container_push_repository_href}'.sub('{' + 'container_push_repository_href' + '}', CGI.escape(container_push_repository_href.to_s).gsub('%2F', '/'))
324
+
325
+ # query parameters
326
+ query_params = opts[:query_params] || {}
327
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
328
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
329
+
330
+ # header parameters
331
+ header_params = opts[:header_params] || {}
332
+ # HTTP header 'Accept' (if needed)
333
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
334
+
335
+ # form parameters
336
+ form_params = opts[:form_params] || {}
337
+
338
+ # http body (model)
339
+ post_body = opts[:body]
340
+
341
+ # return_type
342
+ return_type = opts[:return_type] || 'ContainerContainerPushRepository'
343
+
344
+ # auth_names
345
+ auth_names = opts[:auth_names] || ['Basic']
346
+
347
+ new_options = opts.merge(
348
+ :header_params => header_params,
349
+ :query_params => query_params,
350
+ :form_params => form_params,
351
+ :body => post_body,
352
+ :auth_names => auth_names,
353
+ :return_type => return_type
354
+ )
355
+
356
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
357
+ if @api_client.config.debugging
358
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
359
+ end
360
+ return data, status_code, headers
361
+ end
362
+
363
+ # Update a container push repository
364
+ # Trigger an asynchronous update task
365
+ # @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
366
+ # @param data [ContainerContainerPushRepository]
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [AsyncOperationResponse]
369
+ def update(container_push_repository_href, data, opts = {})
370
+ data, _status_code, _headers = update_with_http_info(container_push_repository_href, data, opts)
371
+ data
372
+ end
373
+
374
+ # Update a container push repository
375
+ # Trigger an asynchronous update task
376
+ # @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
377
+ # @param data [ContainerContainerPushRepository]
378
+ # @param [Hash] opts the optional parameters
379
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
380
+ def update_with_http_info(container_push_repository_href, data, opts = {})
381
+ if @api_client.config.debugging
382
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.update ...'
383
+ end
384
+ # verify the required parameter 'container_push_repository_href' is set
385
+ if @api_client.config.client_side_validation && container_push_repository_href.nil?
386
+ fail ArgumentError, "Missing the required parameter 'container_push_repository_href' when calling RepositoriesContainerPushApi.update"
387
+ end
388
+ # verify the required parameter 'data' is set
389
+ if @api_client.config.client_side_validation && data.nil?
390
+ fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesContainerPushApi.update"
391
+ end
392
+ # resource path
393
+ local_var_path = '{container_push_repository_href}'.sub('{' + 'container_push_repository_href' + '}', CGI.escape(container_push_repository_href.to_s).gsub('%2F', '/'))
394
+
395
+ # query parameters
396
+ query_params = opts[:query_params] || {}
397
+
398
+ # header parameters
399
+ header_params = opts[:header_params] || {}
400
+ # HTTP header 'Accept' (if needed)
401
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
402
+ # HTTP header 'Content-Type'
403
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
404
+
405
+ # form parameters
406
+ form_params = opts[:form_params] || {}
407
+
408
+ # http body (model)
409
+ post_body = opts[:body] || @api_client.object_to_http_body(data)
410
+
411
+ # return_type
412
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
413
+
414
+ # auth_names
415
+ auth_names = opts[:auth_names] || ['Basic']
416
+
417
+ new_options = opts.merge(
418
+ :header_params => header_params,
419
+ :query_params => query_params,
420
+ :form_params => form_params,
421
+ :body => post_body,
422
+ :auth_names => auth_names,
423
+ :return_type => return_type
424
+ )
425
+
426
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
427
+ if @api_client.config.debugging
428
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
429
+ end
430
+ return data, status_code, headers
431
+ end
432
+ end
433
+ end