pulp_container_client 2.3.1 → 2.4.0

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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -16
  3. data/docs/ContainerContainerDistribution.md +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +8 -8
  5. data/docs/ContainerContainerRemote.md +7 -1
  6. data/docs/ContainerContainerRemoteResponse.md +3 -7
  7. data/docs/ContentBlobsApi.md +12 -12
  8. data/docs/ContentManifestsApi.md +12 -12
  9. data/docs/ContentTagsApi.md +14 -14
  10. data/docs/{ContentGuardsContentRedirectApi.md → ContentguardsContentRedirectApi.md} +29 -29
  11. data/docs/DistributionsContainerApi.md +22 -22
  12. data/docs/ManifestCopy.md +1 -1
  13. data/docs/MediaTypesEnum.md +16 -0
  14. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  15. data/docs/PatchedcontainerContainerRemote.md +7 -1
  16. data/docs/PulpContainerNamespacesApi.md +10 -10
  17. data/docs/RemotesContainerApi.md +24 -24
  18. data/docs/RemoveImage.md +17 -0
  19. data/docs/RepositoriesContainerApi.md +12 -12
  20. data/docs/RepositoriesContainerPushApi.md +68 -12
  21. data/docs/RepositoriesContainerVersionsApi.md +56 -56
  22. data/lib/pulp_container_client/api/content_blobs_api.rb +14 -14
  23. data/lib/pulp_container_client/api/content_manifests_api.rb +14 -14
  24. data/lib/pulp_container_client/api/content_tags_api.rb +17 -17
  25. data/lib/pulp_container_client/api/{content_guards_content_redirect_api.rb → contentguards_content_redirect_api.rb} +33 -33
  26. data/lib/pulp_container_client/api/distributions_container_api.rb +24 -24
  27. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +11 -11
  28. data/lib/pulp_container_client/api/remotes_container_api.rb +26 -26
  29. data/lib/pulp_container_client/api/repositories_container_api.rb +13 -13
  30. data/lib/pulp_container_client/api/repositories_container_push_api.rb +83 -13
  31. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +100 -60
  32. data/lib/pulp_container_client/models/container_container_distribution.rb +36 -36
  33. data/lib/pulp_container_client/models/container_container_distribution_response.rb +40 -40
  34. data/lib/pulp_container_client/models/container_container_remote.rb +36 -2
  35. data/lib/pulp_container_client/models/container_container_remote_response.rb +14 -35
  36. data/lib/pulp_container_client/models/manifest_copy.rb +1 -23
  37. data/lib/pulp_container_client/models/media_types_enum.rb +39 -0
  38. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
  39. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +36 -2
  40. data/lib/pulp_container_client/models/remove_image.rb +213 -0
  41. data/lib/pulp_container_client/version.rb +1 -1
  42. data/lib/pulp_container_client.rb +3 -1
  43. data/spec/api/content_blobs_api_spec.rb +6 -6
  44. data/spec/api/content_manifests_api_spec.rb +6 -6
  45. data/spec/api/content_tags_api_spec.rb +7 -7
  46. data/spec/api/{content_guards_content_redirect_api_spec.rb → contentguards_content_redirect_api_spec.rb} +11 -11
  47. data/spec/api/distributions_container_api_spec.rb +11 -11
  48. data/spec/api/pulp_container_namespaces_api_spec.rb +5 -5
  49. data/spec/api/remotes_container_api_spec.rb +12 -12
  50. data/spec/api/repositories_container_api_spec.rb +6 -6
  51. data/spec/api/repositories_container_push_api_spec.rb +19 -6
  52. data/spec/api/repositories_container_versions_api_spec.rb +28 -28
  53. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  54. data/spec/models/container_container_distribution_spec.rb +6 -6
  55. data/spec/models/container_container_remote_response_spec.rb +6 -18
  56. data/spec/models/container_container_remote_spec.rb +18 -0
  57. data/spec/models/manifest_copy_spec.rb +0 -4
  58. data/spec/models/media_types_enum_spec.rb +35 -0
  59. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  60. data/spec/models/patchedcontainer_container_remote_spec.rb +18 -0
  61. data/spec/models/remove_image_spec.rb +41 -0
  62. metadata +53 -45
@@ -435,14 +435,14 @@ module PulpContainerClient
435
435
  # ViewSet for container repo.
436
436
  # @param [Hash] opts the optional parameters
437
437
  # @option opts [Integer] :limit Number of results to return per page.
438
- # @option opts [String] :name name
439
- # @option opts [String] :name__contains name__contains
440
- # @option opts [String] :name__icontains name__icontains
441
- # @option opts [String] :name__in name__in
442
- # @option opts [String] :name__startswith name__startswith
438
+ # @option opts [String] :name
439
+ # @option opts [String] :name__contains Filter results where name contains value
440
+ # @option opts [String] :name__icontains Filter results where name contains value
441
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
442
+ # @option opts [String] :name__startswith Filter results where name starts with value
443
443
  # @option opts [Integer] :offset The initial index from which to return the results.
444
444
  # @option opts [String] :ordering Which field to use when ordering the results.
445
- # @option opts [String] :pulp_label_select pulp_label_select
445
+ # @option opts [String] :pulp_label_select Filter labels by search string
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
448
  # @return [PaginatedcontainerContainerRepositoryResponseList]
@@ -455,14 +455,14 @@ module PulpContainerClient
455
455
  # ViewSet for container repo.
456
456
  # @param [Hash] opts the optional parameters
457
457
  # @option opts [Integer] :limit Number of results to return per page.
458
- # @option opts [String] :name name
459
- # @option opts [String] :name__contains name__contains
460
- # @option opts [String] :name__icontains name__icontains
461
- # @option opts [String] :name__in name__in
462
- # @option opts [String] :name__startswith name__startswith
458
+ # @option opts [String] :name
459
+ # @option opts [String] :name__contains Filter results where name contains value
460
+ # @option opts [String] :name__icontains Filter results where name contains value
461
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
462
+ # @option opts [String] :name__startswith Filter results where name starts with value
463
463
  # @option opts [Integer] :offset The initial index from which to return the results.
464
464
  # @option opts [String] :ordering Which field to use when ordering the results.
465
- # @option opts [String] :pulp_label_select pulp_label_select
465
+ # @option opts [String] :pulp_label_select Filter labels by search string
466
466
  # @option opts [String] :fields A list of fields to include in the response.
467
467
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
468
468
  # @return [Array<(PaginatedcontainerContainerRepositoryResponseList, Integer, Hash)>] PaginatedcontainerContainerRepositoryResponseList data, response status code and response headers
@@ -479,7 +479,7 @@ module PulpContainerClient
479
479
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
480
480
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
481
481
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
482
- query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
482
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
483
483
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
484
484
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
485
485
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -23,14 +23,14 @@ module PulpContainerClient
23
23
  # ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
- # @option opts [String] :name name
27
- # @option opts [String] :name__contains name__contains
28
- # @option opts [String] :name__icontains name__icontains
29
- # @option opts [String] :name__in name__in
30
- # @option opts [String] :name__startswith name__startswith
26
+ # @option opts [String] :name
27
+ # @option opts [String] :name__contains Filter results where name contains value
28
+ # @option opts [String] :name__icontains Filter results where name contains value
29
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
30
+ # @option opts [String] :name__startswith Filter results where name starts with value
31
31
  # @option opts [Integer] :offset The initial index from which to return the results.
32
32
  # @option opts [String] :ordering Which field to use when ordering the results.
33
- # @option opts [String] :pulp_label_select pulp_label_select
33
+ # @option opts [String] :pulp_label_select Filter labels by search string
34
34
  # @option opts [String] :fields A list of fields to include in the response.
35
35
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
36
36
  # @return [PaginatedcontainerContainerPushRepositoryResponseList]
@@ -43,14 +43,14 @@ module PulpContainerClient
43
43
  # ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
44
44
  # @param [Hash] opts the optional parameters
45
45
  # @option opts [Integer] :limit Number of results to return per page.
46
- # @option opts [String] :name name
47
- # @option opts [String] :name__contains name__contains
48
- # @option opts [String] :name__icontains name__icontains
49
- # @option opts [String] :name__in name__in
50
- # @option opts [String] :name__startswith name__startswith
46
+ # @option opts [String] :name
47
+ # @option opts [String] :name__contains Filter results where name contains value
48
+ # @option opts [String] :name__icontains Filter results where name contains value
49
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
50
+ # @option opts [String] :name__startswith Filter results where name starts with value
51
51
  # @option opts [Integer] :offset The initial index from which to return the results.
52
52
  # @option opts [String] :ordering Which field to use when ordering the results.
53
- # @option opts [String] :pulp_label_select pulp_label_select
53
+ # @option opts [String] :pulp_label_select Filter labels by search string
54
54
  # @option opts [String] :fields A list of fields to include in the response.
55
55
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
56
56
  # @return [Array<(PaginatedcontainerContainerPushRepositoryResponseList, Integer, Hash)>] PaginatedcontainerContainerPushRepositoryResponseList data, response status code and response headers
@@ -67,7 +67,7 @@ module PulpContainerClient
67
67
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
68
68
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
69
69
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
70
- query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
70
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
71
71
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
72
72
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
73
73
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -176,6 +176,76 @@ module PulpContainerClient
176
176
  return data, status_code, headers
177
177
  end
178
178
 
179
+ # Delete an image from a repository
180
+ # Trigger an asynchronous task to remove a manifest and all its associated data by a digest
181
+ # @param container_container_push_repository_href [String]
182
+ # @param remove_image [RemoveImage]
183
+ # @param [Hash] opts the optional parameters
184
+ # @return [AsyncOperationResponse]
185
+ def remove_image(container_container_push_repository_href, remove_image, opts = {})
186
+ data, _status_code, _headers = remove_image_with_http_info(container_container_push_repository_href, remove_image, opts)
187
+ data
188
+ end
189
+
190
+ # Delete an image from a repository
191
+ # Trigger an asynchronous task to remove a manifest and all its associated data by a digest
192
+ # @param container_container_push_repository_href [String]
193
+ # @param remove_image [RemoveImage]
194
+ # @param [Hash] opts the optional parameters
195
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
196
+ def remove_image_with_http_info(container_container_push_repository_href, remove_image, opts = {})
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.remove_image ...'
199
+ end
200
+ # verify the required parameter 'container_container_push_repository_href' is set
201
+ if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
202
+ fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.remove_image"
203
+ end
204
+ # verify the required parameter 'remove_image' is set
205
+ if @api_client.config.client_side_validation && remove_image.nil?
206
+ fail ArgumentError, "Missing the required parameter 'remove_image' when calling RepositoriesContainerPushApi.remove_image"
207
+ end
208
+ # resource path
209
+ local_var_path = '{container_container_push_repository_href}remove_image/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
210
+
211
+ # query parameters
212
+ query_params = opts[:query_params] || {}
213
+
214
+ # header parameters
215
+ header_params = opts[:header_params] || {}
216
+ # HTTP header 'Accept' (if needed)
217
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
218
+ # HTTP header 'Content-Type'
219
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
220
+
221
+ # form parameters
222
+ form_params = opts[:form_params] || {}
223
+
224
+ # http body (model)
225
+ post_body = opts[:body] || @api_client.object_to_http_body(remove_image)
226
+
227
+ # return_type
228
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
229
+
230
+ # auth_names
231
+ auth_names = opts[:auth_names] || ['basicAuth']
232
+
233
+ new_options = opts.merge(
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
+ :return_type => return_type
240
+ )
241
+
242
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
243
+ if @api_client.config.debugging
244
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#remove_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
245
+ end
246
+ return data, status_code, headers
247
+ end
248
+
179
249
  # Create a Tag
180
250
  # Trigger an asynchronous task to tag an image in the repository
181
251
  # @param container_container_push_repository_href [String]
@@ -147,23 +147,23 @@ module PulpContainerClient
147
147
  # ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
148
148
  # @param container_container_push_repository_href [String]
149
149
  # @param [Hash] opts the optional parameters
150
- # @option opts [String] :content content
151
- # @option opts [String] :content__in content__in
150
+ # @option opts [String] :content Content Unit referenced by HREF
151
+ # @option opts [String] :content__in Content Unit referenced by HREF
152
152
  # @option opts [Integer] :limit Number of results to return per page.
153
- # @option opts [String] :number number
154
- # @option opts [String] :number__gt number__gt
155
- # @option opts [String] :number__gte number__gte
156
- # @option opts [String] :number__lt number__lt
157
- # @option opts [String] :number__lte number__lte
158
- # @option opts [String] :number__range number__range
153
+ # @option opts [Integer] :number
154
+ # @option opts [Integer] :number__gt Filter results where number is greater than value
155
+ # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
156
+ # @option opts [Integer] :number__lt Filter results where number is less than value
157
+ # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
158
+ # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
159
159
  # @option opts [Integer] :offset The initial index from which to return the results.
160
160
  # @option opts [String] :ordering Which field to use when ordering the results.
161
- # @option opts [String] :pulp_created pulp_created
162
- # @option opts [String] :pulp_created__gt pulp_created__gt
163
- # @option opts [String] :pulp_created__gte pulp_created__gte
164
- # @option opts [String] :pulp_created__lt pulp_created__lt
165
- # @option opts [String] :pulp_created__lte pulp_created__lte
166
- # @option opts [String] :pulp_created__range pulp_created__range
161
+ # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
162
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
163
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
164
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
165
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
166
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
167
167
  # @option opts [String] :fields A list of fields to include in the response.
168
168
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
169
169
  # @return [PaginatedRepositoryVersionResponseList]
@@ -176,23 +176,23 @@ module PulpContainerClient
176
176
  # ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
177
177
  # @param container_container_push_repository_href [String]
178
178
  # @param [Hash] opts the optional parameters
179
- # @option opts [String] :content content
180
- # @option opts [String] :content__in content__in
179
+ # @option opts [String] :content Content Unit referenced by HREF
180
+ # @option opts [String] :content__in Content Unit referenced by HREF
181
181
  # @option opts [Integer] :limit Number of results to return per page.
182
- # @option opts [String] :number number
183
- # @option opts [String] :number__gt number__gt
184
- # @option opts [String] :number__gte number__gte
185
- # @option opts [String] :number__lt number__lt
186
- # @option opts [String] :number__lte number__lte
187
- # @option opts [String] :number__range number__range
182
+ # @option opts [Integer] :number
183
+ # @option opts [Integer] :number__gt Filter results where number is greater than value
184
+ # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
185
+ # @option opts [Integer] :number__lt Filter results where number is less than value
186
+ # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
187
+ # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
188
188
  # @option opts [Integer] :offset The initial index from which to return the results.
189
189
  # @option opts [String] :ordering Which field to use when ordering the results.
190
- # @option opts [String] :pulp_created pulp_created
191
- # @option opts [String] :pulp_created__gt pulp_created__gt
192
- # @option opts [String] :pulp_created__gte pulp_created__gte
193
- # @option opts [String] :pulp_created__lt pulp_created__lt
194
- # @option opts [String] :pulp_created__lte pulp_created__lte
195
- # @option opts [String] :pulp_created__range pulp_created__range
190
+ # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
191
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
192
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
193
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
194
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
195
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
196
196
  # @option opts [String] :fields A list of fields to include in the response.
197
197
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
198
198
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -204,6 +204,26 @@ module PulpContainerClient
204
204
  if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
205
205
  fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerVersionsApi.list"
206
206
  end
207
+ if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
208
+ fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
209
+ end
210
+
211
+ if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
212
+ fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
213
+ end
214
+
215
+ if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
216
+ fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
217
+ end
218
+
219
+ if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
220
+ fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
221
+ end
222
+
223
+ if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
224
+ fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
225
+ end
226
+
207
227
  # resource path
208
228
  local_var_path = '{container_container_push_repository_href}versions/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
209
229
 
@@ -217,7 +237,7 @@ module PulpContainerClient
217
237
  query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
218
238
  query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
219
239
  query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
220
- query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
240
+ query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
221
241
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
222
242
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
223
243
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
@@ -225,7 +245,7 @@ module PulpContainerClient
225
245
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
226
246
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
227
247
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
228
- query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
248
+ query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
229
249
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
230
250
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
231
251
 
@@ -266,23 +286,23 @@ module PulpContainerClient
266
286
  # ContainerRepositoryVersion represents a single container repository version.
267
287
  # @param container_container_repository_href [String]
268
288
  # @param [Hash] opts the optional parameters
269
- # @option opts [String] :content content
270
- # @option opts [String] :content__in content__in
289
+ # @option opts [String] :content Content Unit referenced by HREF
290
+ # @option opts [String] :content__in Content Unit referenced by HREF
271
291
  # @option opts [Integer] :limit Number of results to return per page.
272
- # @option opts [String] :number number
273
- # @option opts [String] :number__gt number__gt
274
- # @option opts [String] :number__gte number__gte
275
- # @option opts [String] :number__lt number__lt
276
- # @option opts [String] :number__lte number__lte
277
- # @option opts [String] :number__range number__range
292
+ # @option opts [Integer] :number
293
+ # @option opts [Integer] :number__gt Filter results where number is greater than value
294
+ # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
295
+ # @option opts [Integer] :number__lt Filter results where number is less than value
296
+ # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
297
+ # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
278
298
  # @option opts [Integer] :offset The initial index from which to return the results.
279
299
  # @option opts [String] :ordering Which field to use when ordering the results.
280
- # @option opts [String] :pulp_created pulp_created
281
- # @option opts [String] :pulp_created__gt pulp_created__gt
282
- # @option opts [String] :pulp_created__gte pulp_created__gte
283
- # @option opts [String] :pulp_created__lt pulp_created__lt
284
- # @option opts [String] :pulp_created__lte pulp_created__lte
285
- # @option opts [String] :pulp_created__range pulp_created__range
300
+ # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
301
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
302
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
303
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
304
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
305
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
286
306
  # @option opts [String] :fields A list of fields to include in the response.
287
307
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
288
308
  # @return [PaginatedRepositoryVersionResponseList]
@@ -295,23 +315,23 @@ module PulpContainerClient
295
315
  # ContainerRepositoryVersion represents a single container repository version.
296
316
  # @param container_container_repository_href [String]
297
317
  # @param [Hash] opts the optional parameters
298
- # @option opts [String] :content content
299
- # @option opts [String] :content__in content__in
318
+ # @option opts [String] :content Content Unit referenced by HREF
319
+ # @option opts [String] :content__in Content Unit referenced by HREF
300
320
  # @option opts [Integer] :limit Number of results to return per page.
301
- # @option opts [String] :number number
302
- # @option opts [String] :number__gt number__gt
303
- # @option opts [String] :number__gte number__gte
304
- # @option opts [String] :number__lt number__lt
305
- # @option opts [String] :number__lte number__lte
306
- # @option opts [String] :number__range number__range
321
+ # @option opts [Integer] :number
322
+ # @option opts [Integer] :number__gt Filter results where number is greater than value
323
+ # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
324
+ # @option opts [Integer] :number__lt Filter results where number is less than value
325
+ # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
326
+ # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
307
327
  # @option opts [Integer] :offset The initial index from which to return the results.
308
328
  # @option opts [String] :ordering Which field to use when ordering the results.
309
- # @option opts [String] :pulp_created pulp_created
310
- # @option opts [String] :pulp_created__gt pulp_created__gt
311
- # @option opts [String] :pulp_created__gte pulp_created__gte
312
- # @option opts [String] :pulp_created__lt pulp_created__lt
313
- # @option opts [String] :pulp_created__lte pulp_created__lte
314
- # @option opts [String] :pulp_created__range pulp_created__range
329
+ # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
330
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
331
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
332
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
333
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
334
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
315
335
  # @option opts [String] :fields A list of fields to include in the response.
316
336
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
317
337
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -323,6 +343,26 @@ module PulpContainerClient
323
343
  if @api_client.config.client_side_validation && container_container_repository_href.nil?
324
344
  fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerVersionsApi.list_0"
325
345
  end
346
+ if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
347
+ fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
348
+ end
349
+
350
+ if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
351
+ fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
352
+ end
353
+
354
+ if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
355
+ fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
356
+ end
357
+
358
+ if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
359
+ fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
360
+ end
361
+
362
+ if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
363
+ fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
364
+ end
365
+
326
366
  # resource path
327
367
  local_var_path = '{container_container_repository_href}versions/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
328
368
 
@@ -336,7 +376,7 @@ module PulpContainerClient
336
376
  query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
337
377
  query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
338
378
  query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
339
- query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
379
+ query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
340
380
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
341
381
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
342
382
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
@@ -344,7 +384,7 @@ module PulpContainerClient
344
384
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
345
385
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
346
386
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
347
- query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
387
+ query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
348
388
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
349
389
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
350
390
 
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
+ attr_accessor :pulp_labels
19
+
20
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
21
+ attr_accessor :base_path
22
+
23
+ # RepositoryVersion to be served
24
+ attr_accessor :repository_version
25
+
18
26
  # A unique name. Ex, `rawhide` and `stable`.
19
27
  attr_accessor :name
20
28
 
21
- attr_accessor :pulp_labels
22
-
23
29
  # The latest RepositoryVersion for this Repository will be served.
24
30
  attr_accessor :repository
25
31
 
26
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
- attr_accessor :base_path
28
-
29
32
  # An optional content-guard. If none is specified, a default one will be used.
30
33
  attr_accessor :content_guard
31
34
 
32
- # RepositoryVersion to be served
33
- attr_accessor :repository_version
34
-
35
35
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
36
36
  attr_accessor :private
37
37
 
@@ -41,12 +41,12 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'name' => :'name',
45
44
  :'pulp_labels' => :'pulp_labels',
46
- :'repository' => :'repository',
47
45
  :'base_path' => :'base_path',
48
- :'content_guard' => :'content_guard',
49
46
  :'repository_version' => :'repository_version',
47
+ :'name' => :'name',
48
+ :'repository' => :'repository',
49
+ :'content_guard' => :'content_guard',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
52
52
  }
@@ -55,12 +55,12 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
- :'name' => :'String',
59
58
  :'pulp_labels' => :'Object',
60
- :'repository' => :'String',
61
59
  :'base_path' => :'String',
62
- :'content_guard' => :'String',
63
60
  :'repository_version' => :'String',
61
+ :'name' => :'String',
62
+ :'repository' => :'String',
63
+ :'content_guard' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
66
66
  }
@@ -69,8 +69,8 @@ module PulpContainerClient
69
69
  # List of attributes with nullable: true
70
70
  def self.openapi_nullable
71
71
  Set.new([
72
- :'repository',
73
72
  :'repository_version',
73
+ :'repository',
74
74
  :'description'
75
75
  ])
76
76
  end
@@ -90,30 +90,30 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'name')
94
- self.name = attributes[:'name']
95
- end
96
-
97
93
  if attributes.key?(:'pulp_labels')
98
94
  self.pulp_labels = attributes[:'pulp_labels']
99
95
  end
100
96
 
101
- if attributes.key?(:'repository')
102
- self.repository = attributes[:'repository']
103
- end
104
-
105
97
  if attributes.key?(:'base_path')
106
98
  self.base_path = attributes[:'base_path']
107
99
  end
108
100
 
109
- if attributes.key?(:'content_guard')
110
- self.content_guard = attributes[:'content_guard']
111
- end
112
-
113
101
  if attributes.key?(:'repository_version')
114
102
  self.repository_version = attributes[:'repository_version']
115
103
  end
116
104
 
105
+ if attributes.key?(:'name')
106
+ self.name = attributes[:'name']
107
+ end
108
+
109
+ if attributes.key?(:'repository')
110
+ self.repository = attributes[:'repository']
111
+ end
112
+
113
+ if attributes.key?(:'content_guard')
114
+ self.content_guard = attributes[:'content_guard']
115
+ end
116
+
117
117
  if attributes.key?(:'private')
118
118
  self.private = attributes[:'private']
119
119
  end
@@ -127,22 +127,22 @@ module PulpContainerClient
127
127
  # @return Array for valid properties with the reasons
128
128
  def list_invalid_properties
129
129
  invalid_properties = Array.new
130
- if @name.nil?
131
- invalid_properties.push('invalid value for "name", name cannot be nil.')
132
- end
133
-
134
130
  if @base_path.nil?
135
131
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
136
132
  end
137
133
 
134
+ if @name.nil?
135
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
136
+ end
137
+
138
138
  invalid_properties
139
139
  end
140
140
 
141
141
  # Check to see if the all the properties in the model are valid
142
142
  # @return true if the model is valid
143
143
  def valid?
144
- return false if @name.nil?
145
144
  return false if @base_path.nil?
145
+ return false if @name.nil?
146
146
  true
147
147
  end
148
148
 
@@ -151,12 +151,12 @@ module PulpContainerClient
151
151
  def ==(o)
152
152
  return true if self.equal?(o)
153
153
  self.class == o.class &&
154
- name == o.name &&
155
154
  pulp_labels == o.pulp_labels &&
156
- repository == o.repository &&
157
155
  base_path == o.base_path &&
158
- content_guard == o.content_guard &&
159
156
  repository_version == o.repository_version &&
157
+ name == o.name &&
158
+ repository == o.repository &&
159
+ content_guard == o.content_guard &&
160
160
  private == o.private &&
161
161
  description == o.description
162
162
  end
@@ -170,7 +170,7 @@ module PulpContainerClient
170
170
  # Calculates hash code according to all attributes.
171
171
  # @return [Integer] Hash code
172
172
  def hash
173
- [name, pulp_labels, repository, base_path, content_guard, repository_version, private, description].hash
173
+ [pulp_labels, base_path, repository_version, name, repository, content_guard, private, description].hash
174
174
  end
175
175
 
176
176
  # Builds the object from hash