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
@@ -19,13 +19,75 @@ module PulpContainerClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Delete a repository version
23
+ # Trigger an asynchronous task to delete a repositroy version.
24
+ # @param container_push_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container-push/1/versions/1/
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AsyncOperationResponse]
27
+ def delete(container_push_repository_version_href, opts = {})
28
+ data, _status_code, _headers = delete_with_http_info(container_push_repository_version_href, opts)
29
+ data
30
+ end
31
+
32
+ # Delete a repository version
33
+ # Trigger an asynchronous task to delete a repositroy version.
34
+ # @param container_push_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container-push/1/versions/1/
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
+ def delete_with_http_info(container_push_repository_version_href, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.delete ...'
40
+ end
41
+ # verify the required parameter 'container_push_repository_version_href' is set
42
+ if @api_client.config.client_side_validation && container_push_repository_version_href.nil?
43
+ fail ArgumentError, "Missing the required parameter 'container_push_repository_version_href' when calling RepositoriesContainerVersionsApi.delete"
44
+ end
45
+ # resource path
46
+ local_var_path = '{container-push_repository_version_href}'.sub('{' + 'container-push_repository_version_href' + '}', CGI.escape(container_push_repository_version_href.to_s).gsub('%2F', '/'))
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
+
56
+ # form parameters
57
+ form_params = opts[:form_params] || {}
58
+
59
+ # http body (model)
60
+ post_body = opts[:body]
61
+
62
+ # return_type
63
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
64
+
65
+ # auth_names
66
+ auth_names = opts[:auth_names] || ['Basic']
67
+
68
+ new_options = opts.merge(
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => return_type
75
+ )
76
+
77
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+
22
84
  # Delete a repository version
23
85
  # Trigger an asynchronous task to delete a repositroy version.
24
86
  # @param container_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/
25
87
  # @param [Hash] opts the optional parameters
26
88
  # @return [AsyncOperationResponse]
27
- def delete(container_repository_version_href, opts = {})
28
- data, _status_code, _headers = delete_with_http_info(container_repository_version_href, opts)
89
+ def delete_0(container_repository_version_href, opts = {})
90
+ data, _status_code, _headers = delete_0_with_http_info(container_repository_version_href, opts)
29
91
  data
30
92
  end
31
93
 
@@ -34,13 +96,13 @@ module PulpContainerClient
34
96
  # @param container_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/
35
97
  # @param [Hash] opts the optional parameters
36
98
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
- def delete_with_http_info(container_repository_version_href, opts = {})
99
+ def delete_0_with_http_info(container_repository_version_href, opts = {})
38
100
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.delete ...'
101
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.delete_0 ...'
40
102
  end
41
103
  # verify the required parameter 'container_repository_version_href' is set
42
104
  if @api_client.config.client_side_validation && container_repository_version_href.nil?
43
- fail ArgumentError, "Missing the required parameter 'container_repository_version_href' when calling RepositoriesContainerVersionsApi.delete"
105
+ fail ArgumentError, "Missing the required parameter 'container_repository_version_href' when calling RepositoriesContainerVersionsApi.delete_0"
44
106
  end
45
107
  # resource path
46
108
  local_var_path = '{container_repository_version_href}'.sub('{' + 'container_repository_version_href' + '}', CGI.escape(container_repository_version_href.to_s).gsub('%2F', '/'))
@@ -76,7 +138,126 @@ module PulpContainerClient
76
138
 
77
139
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
78
140
  if @api_client.config.debugging
79
- @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
141
+ @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#delete_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # List repository versions
147
+ # ContainerPushRepositoryVersion represents a single container push repository version.
148
+ # @param container_push_repository_pk [String]
149
+ # @param [Hash] opts the optional parameters
150
+ # @option opts [String] :ordering Which field to use when ordering the results.
151
+ # @option opts [Float] :number
152
+ # @option opts [Float] :number__lt Filter results where number is less than value
153
+ # @option opts [Float] :number__lte Filter results where number is less than or equal to value
154
+ # @option opts [Float] :number__gt Filter results where number is greater than value
155
+ # @option opts [Float] :number__gte Filter results where number is greater than or equal to value
156
+ # @option opts [Float] :number__range Filter results where number is between two comma separated values
157
+ # @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
158
+ # @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
159
+ # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
160
+ # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
161
+ # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
162
+ # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
163
+ # @option opts [String] :content Content Unit referenced by HREF
164
+ # @option opts [String] :content__in Content Unit referenced by HREF
165
+ # @option opts [Integer] :limit Number of results to return per page.
166
+ # @option opts [Integer] :offset The initial index from which to return the results.
167
+ # @option opts [String] :fields A list of fields to include in the response.
168
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
169
+ # @return [InlineResponse2007]
170
+ def list(container_push_repository_pk, opts = {})
171
+ data, _status_code, _headers = list_with_http_info(container_push_repository_pk, opts)
172
+ data
173
+ end
174
+
175
+ # List repository versions
176
+ # ContainerPushRepositoryVersion represents a single container push repository version.
177
+ # @param container_push_repository_pk [String]
178
+ # @param [Hash] opts the optional parameters
179
+ # @option opts [String] :ordering Which field to use when ordering the results.
180
+ # @option opts [Float] :number
181
+ # @option opts [Float] :number__lt Filter results where number is less than value
182
+ # @option opts [Float] :number__lte Filter results where number is less than or equal to value
183
+ # @option opts [Float] :number__gt Filter results where number is greater than value
184
+ # @option opts [Float] :number__gte Filter results where number is greater than or equal to value
185
+ # @option opts [Float] :number__range Filter results where number is between two comma separated values
186
+ # @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
187
+ # @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
188
+ # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
189
+ # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
190
+ # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
191
+ # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
192
+ # @option opts [String] :content Content Unit referenced by HREF
193
+ # @option opts [String] :content__in Content Unit referenced by HREF
194
+ # @option opts [Integer] :limit Number of results to return per page.
195
+ # @option opts [Integer] :offset The initial index from which to return the results.
196
+ # @option opts [String] :fields A list of fields to include in the response.
197
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
198
+ # @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
199
+ def list_with_http_info(container_push_repository_pk, opts = {})
200
+ if @api_client.config.debugging
201
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.list ...'
202
+ end
203
+ # verify the required parameter 'container_push_repository_pk' is set
204
+ if @api_client.config.client_side_validation && container_push_repository_pk.nil?
205
+ fail ArgumentError, "Missing the required parameter 'container_push_repository_pk' when calling RepositoriesContainerVersionsApi.list"
206
+ end
207
+ # resource path
208
+ local_var_path = '/pulp/api/v3/repositories/container/container-push/{container-push_repository_pk}/versions/'.sub('{' + 'container-push_repository_pk' + '}', CGI.escape(container_push_repository_pk.to_s).gsub('%2F', '/'))
209
+
210
+ # query parameters
211
+ query_params = opts[:query_params] || {}
212
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
213
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
214
+ query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
215
+ query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
216
+ query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
217
+ query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
218
+ query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
219
+ query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
220
+ query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
221
+ query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
222
+ query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
223
+ query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
224
+ query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
225
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
226
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
227
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
228
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
229
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
230
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
231
+
232
+ # header parameters
233
+ header_params = opts[:header_params] || {}
234
+ # HTTP header 'Accept' (if needed)
235
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
236
+
237
+ # form parameters
238
+ form_params = opts[:form_params] || {}
239
+
240
+ # http body (model)
241
+ post_body = opts[:body]
242
+
243
+ # return_type
244
+ return_type = opts[:return_type] || 'InlineResponse2007'
245
+
246
+ # auth_names
247
+ auth_names = opts[:auth_names] || ['Basic']
248
+
249
+ new_options = opts.merge(
250
+ :header_params => header_params,
251
+ :query_params => query_params,
252
+ :form_params => form_params,
253
+ :body => post_body,
254
+ :auth_names => auth_names,
255
+ :return_type => return_type
256
+ )
257
+
258
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
259
+ if @api_client.config.debugging
260
+ @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
261
  end
81
262
  return data, status_code, headers
82
263
  end
@@ -97,15 +278,16 @@ module PulpContainerClient
97
278
  # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
98
279
  # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
99
280
  # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
100
- # @option opts [String] :content Content Unit referenced by HREF
101
281
  # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
282
+ # @option opts [String] :content Content Unit referenced by HREF
283
+ # @option opts [String] :content__in Content Unit referenced by HREF
102
284
  # @option opts [Integer] :limit Number of results to return per page.
103
285
  # @option opts [Integer] :offset The initial index from which to return the results.
104
286
  # @option opts [String] :fields A list of fields to include in the response.
105
287
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
106
- # @return [InlineResponse2006]
107
- def list(container_repository_href, opts = {})
108
- data, _status_code, _headers = list_with_http_info(container_repository_href, opts)
288
+ # @return [InlineResponse2007]
289
+ def list_0(container_repository_href, opts = {})
290
+ data, _status_code, _headers = list_0_with_http_info(container_repository_href, opts)
109
291
  data
110
292
  end
111
293
 
@@ -125,20 +307,21 @@ module PulpContainerClient
125
307
  # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
126
308
  # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
127
309
  # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
128
- # @option opts [String] :content Content Unit referenced by HREF
129
310
  # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
311
+ # @option opts [String] :content Content Unit referenced by HREF
312
+ # @option opts [String] :content__in Content Unit referenced by HREF
130
313
  # @option opts [Integer] :limit Number of results to return per page.
131
314
  # @option opts [Integer] :offset The initial index from which to return the results.
132
315
  # @option opts [String] :fields A list of fields to include in the response.
133
316
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
134
- # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
135
- def list_with_http_info(container_repository_href, opts = {})
317
+ # @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
318
+ def list_0_with_http_info(container_repository_href, opts = {})
136
319
  if @api_client.config.debugging
137
- @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.list ...'
320
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.list_0 ...'
138
321
  end
139
322
  # verify the required parameter 'container_repository_href' is set
140
323
  if @api_client.config.client_side_validation && container_repository_href.nil?
141
- fail ArgumentError, "Missing the required parameter 'container_repository_href' when calling RepositoriesContainerVersionsApi.list"
324
+ fail ArgumentError, "Missing the required parameter 'container_repository_href' when calling RepositoriesContainerVersionsApi.list_0"
142
325
  end
143
326
  # resource path
144
327
  local_var_path = '{container_repository_href}versions/'.sub('{' + 'container_repository_href' + '}', CGI.escape(container_repository_href.to_s).gsub('%2F', '/'))
@@ -157,8 +340,9 @@ module PulpContainerClient
157
340
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
158
341
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
159
342
  query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
160
- query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
161
343
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
344
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
345
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
162
346
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
163
347
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
164
348
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
@@ -176,7 +360,7 @@ module PulpContainerClient
176
360
  post_body = opts[:body]
177
361
 
178
362
  # return_type
179
- return_type = opts[:return_type] || 'InlineResponse2006'
363
+ return_type = opts[:return_type] || 'InlineResponse2007'
180
364
 
181
365
  # auth_names
182
366
  auth_names = opts[:auth_names] || ['Basic']
@@ -192,7 +376,75 @@ module PulpContainerClient
192
376
 
193
377
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
194
378
  if @api_client.config.debugging
195
- @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
379
+ @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#list_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
380
+ end
381
+ return data, status_code, headers
382
+ end
383
+
384
+ # Inspect a repository version
385
+ # ContainerPushRepositoryVersion represents a single container push repository version.
386
+ # @param container_push_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container-push/1/versions/1/
387
+ # @param [Hash] opts the optional parameters
388
+ # @option opts [String] :fields A list of fields to include in the response.
389
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
390
+ # @return [RepositoryVersion]
391
+ def read(container_push_repository_version_href, opts = {})
392
+ data, _status_code, _headers = read_with_http_info(container_push_repository_version_href, opts)
393
+ data
394
+ end
395
+
396
+ # Inspect a repository version
397
+ # ContainerPushRepositoryVersion represents a single container push repository version.
398
+ # @param container_push_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container-push/1/versions/1/
399
+ # @param [Hash] opts the optional parameters
400
+ # @option opts [String] :fields A list of fields to include in the response.
401
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
402
+ # @return [Array<(RepositoryVersion, Integer, Hash)>] RepositoryVersion data, response status code and response headers
403
+ def read_with_http_info(container_push_repository_version_href, opts = {})
404
+ if @api_client.config.debugging
405
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.read ...'
406
+ end
407
+ # verify the required parameter 'container_push_repository_version_href' is set
408
+ if @api_client.config.client_side_validation && container_push_repository_version_href.nil?
409
+ fail ArgumentError, "Missing the required parameter 'container_push_repository_version_href' when calling RepositoriesContainerVersionsApi.read"
410
+ end
411
+ # resource path
412
+ local_var_path = '{container-push_repository_version_href}'.sub('{' + 'container-push_repository_version_href' + '}', CGI.escape(container_push_repository_version_href.to_s).gsub('%2F', '/'))
413
+
414
+ # query parameters
415
+ query_params = opts[:query_params] || {}
416
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
417
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
418
+
419
+ # header parameters
420
+ header_params = opts[:header_params] || {}
421
+ # HTTP header 'Accept' (if needed)
422
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
423
+
424
+ # form parameters
425
+ form_params = opts[:form_params] || {}
426
+
427
+ # http body (model)
428
+ post_body = opts[:body]
429
+
430
+ # return_type
431
+ return_type = opts[:return_type] || 'RepositoryVersion'
432
+
433
+ # auth_names
434
+ auth_names = opts[:auth_names] || ['Basic']
435
+
436
+ new_options = opts.merge(
437
+ :header_params => header_params,
438
+ :query_params => query_params,
439
+ :form_params => form_params,
440
+ :body => post_body,
441
+ :auth_names => auth_names,
442
+ :return_type => return_type
443
+ )
444
+
445
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
196
448
  end
197
449
  return data, status_code, headers
198
450
  end
@@ -203,9 +455,9 @@ module PulpContainerClient
203
455
  # @param [Hash] opts the optional parameters
204
456
  # @option opts [String] :fields A list of fields to include in the response.
205
457
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
206
- # @return [RepositoryVersionRead]
207
- def read(container_repository_version_href, opts = {})
208
- data, _status_code, _headers = read_with_http_info(container_repository_version_href, opts)
458
+ # @return [RepositoryVersion]
459
+ def read_0(container_repository_version_href, opts = {})
460
+ data, _status_code, _headers = read_0_with_http_info(container_repository_version_href, opts)
209
461
  data
210
462
  end
211
463
 
@@ -215,14 +467,14 @@ module PulpContainerClient
215
467
  # @param [Hash] opts the optional parameters
216
468
  # @option opts [String] :fields A list of fields to include in the response.
217
469
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
218
- # @return [Array<(RepositoryVersionRead, Integer, Hash)>] RepositoryVersionRead data, response status code and response headers
219
- def read_with_http_info(container_repository_version_href, opts = {})
470
+ # @return [Array<(RepositoryVersion, Integer, Hash)>] RepositoryVersion data, response status code and response headers
471
+ def read_0_with_http_info(container_repository_version_href, opts = {})
220
472
  if @api_client.config.debugging
221
- @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.read ...'
473
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.read_0 ...'
222
474
  end
223
475
  # verify the required parameter 'container_repository_version_href' is set
224
476
  if @api_client.config.client_side_validation && container_repository_version_href.nil?
225
- fail ArgumentError, "Missing the required parameter 'container_repository_version_href' when calling RepositoriesContainerVersionsApi.read"
477
+ fail ArgumentError, "Missing the required parameter 'container_repository_version_href' when calling RepositoriesContainerVersionsApi.read_0"
226
478
  end
227
479
  # resource path
228
480
  local_var_path = '{container_repository_version_href}'.sub('{' + 'container_repository_version_href' + '}', CGI.escape(container_repository_version_href.to_s).gsub('%2F', '/'))
@@ -244,7 +496,7 @@ module PulpContainerClient
244
496
  post_body = opts[:body]
245
497
 
246
498
  # return_type
247
- return_type = opts[:return_type] || 'RepositoryVersionRead'
499
+ return_type = opts[:return_type] || 'RepositoryVersion'
248
500
 
249
501
  # auth_names
250
502
  auth_names = opts[:auth_names] || ['Basic']
@@ -260,7 +512,75 @@ module PulpContainerClient
260
512
 
261
513
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
262
514
  if @api_client.config.debugging
263
- @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
515
+ @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#read_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
516
+ end
517
+ return data, status_code, headers
518
+ end
519
+
520
+ # Trigger an asynchronous task to repair a repositroy version.
521
+ # @param container_push_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container-push/1/versions/1/
522
+ # @param data [RepositoryVersion]
523
+ # @param [Hash] opts the optional parameters
524
+ # @return [AsyncOperationResponse]
525
+ def repair(container_push_repository_version_href, data, opts = {})
526
+ data, _status_code, _headers = repair_with_http_info(container_push_repository_version_href, data, opts)
527
+ data
528
+ end
529
+
530
+ # Trigger an asynchronous task to repair a repositroy version.
531
+ # @param container_push_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container-push/1/versions/1/
532
+ # @param data [RepositoryVersion]
533
+ # @param [Hash] opts the optional parameters
534
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
535
+ def repair_with_http_info(container_push_repository_version_href, data, opts = {})
536
+ if @api_client.config.debugging
537
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.repair ...'
538
+ end
539
+ # verify the required parameter 'container_push_repository_version_href' is set
540
+ if @api_client.config.client_side_validation && container_push_repository_version_href.nil?
541
+ fail ArgumentError, "Missing the required parameter 'container_push_repository_version_href' when calling RepositoriesContainerVersionsApi.repair"
542
+ end
543
+ # verify the required parameter 'data' is set
544
+ if @api_client.config.client_side_validation && data.nil?
545
+ fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesContainerVersionsApi.repair"
546
+ end
547
+ # resource path
548
+ local_var_path = '{container-push_repository_version_href}repair/'.sub('{' + 'container-push_repository_version_href' + '}', CGI.escape(container_push_repository_version_href.to_s).gsub('%2F', '/'))
549
+
550
+ # query parameters
551
+ query_params = opts[:query_params] || {}
552
+
553
+ # header parameters
554
+ header_params = opts[:header_params] || {}
555
+ # HTTP header 'Accept' (if needed)
556
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
557
+ # HTTP header 'Content-Type'
558
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
559
+
560
+ # form parameters
561
+ form_params = opts[:form_params] || {}
562
+
563
+ # http body (model)
564
+ post_body = opts[:body] || @api_client.object_to_http_body(data)
565
+
566
+ # return_type
567
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
568
+
569
+ # auth_names
570
+ auth_names = opts[:auth_names] || ['Basic']
571
+
572
+ new_options = opts.merge(
573
+ :header_params => header_params,
574
+ :query_params => query_params,
575
+ :form_params => form_params,
576
+ :body => post_body,
577
+ :auth_names => auth_names,
578
+ :return_type => return_type
579
+ )
580
+
581
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
582
+ if @api_client.config.debugging
583
+ @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
264
584
  end
265
585
  return data, status_code, headers
266
586
  end
@@ -270,8 +590,8 @@ module PulpContainerClient
270
590
  # @param data [RepositoryVersion]
271
591
  # @param [Hash] opts the optional parameters
272
592
  # @return [AsyncOperationResponse]
273
- def repair(container_repository_version_href, data, opts = {})
274
- data, _status_code, _headers = repair_with_http_info(container_repository_version_href, data, opts)
593
+ def repair_0(container_repository_version_href, data, opts = {})
594
+ data, _status_code, _headers = repair_0_with_http_info(container_repository_version_href, data, opts)
275
595
  data
276
596
  end
277
597
 
@@ -280,17 +600,17 @@ module PulpContainerClient
280
600
  # @param data [RepositoryVersion]
281
601
  # @param [Hash] opts the optional parameters
282
602
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
283
- def repair_with_http_info(container_repository_version_href, data, opts = {})
603
+ def repair_0_with_http_info(container_repository_version_href, data, opts = {})
284
604
  if @api_client.config.debugging
285
- @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.repair ...'
605
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.repair_0 ...'
286
606
  end
287
607
  # verify the required parameter 'container_repository_version_href' is set
288
608
  if @api_client.config.client_side_validation && container_repository_version_href.nil?
289
- fail ArgumentError, "Missing the required parameter 'container_repository_version_href' when calling RepositoriesContainerVersionsApi.repair"
609
+ fail ArgumentError, "Missing the required parameter 'container_repository_version_href' when calling RepositoriesContainerVersionsApi.repair_0"
290
610
  end
291
611
  # verify the required parameter 'data' is set
292
612
  if @api_client.config.client_side_validation && data.nil?
293
- fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesContainerVersionsApi.repair"
613
+ fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesContainerVersionsApi.repair_0"
294
614
  end
295
615
  # resource path
296
616
  local_var_path = '{container_repository_version_href}repair/'.sub('{' + 'container_repository_version_href' + '}', CGI.escape(container_repository_version_href.to_s).gsub('%2F', '/'))
@@ -328,7 +648,7 @@ module PulpContainerClient
328
648
 
329
649
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
330
650
  if @api_client.config.debugging
331
- @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
651
+ @api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#repair_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
332
652
  end
333
653
  return data, status_code, headers
334
654
  end