pulp_container_client 2.4.0.dev01613359303 → 2.4.0.dev01613964104

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_container_client might be problematic. Click here for more details.

Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -16
  3. data/docs/ContainerContainerDistribution.md +5 -5
  4. data/docs/ContainerContainerDistributionResponse.md +7 -7
  5. data/docs/ContentBlobsApi.md +12 -12
  6. data/docs/ContentManifestsApi.md +12 -12
  7. data/docs/ContentTagsApi.md +14 -14
  8. data/docs/{ContentGuardsContentRedirectApi.md → ContentguardsContentRedirectApi.md} +29 -29
  9. data/docs/DistributionsContainerApi.md +22 -22
  10. data/docs/ManifestCopy.md +1 -1
  11. data/docs/MediaTypesEnum.md +16 -0
  12. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  13. data/docs/PulpContainerNamespacesApi.md +10 -10
  14. data/docs/RemotesContainerApi.md +24 -24
  15. data/docs/RepositoriesContainerApi.md +12 -12
  16. data/docs/RepositoriesContainerPushApi.md +12 -12
  17. data/docs/RepositoriesContainerVersionsApi.md +56 -56
  18. data/lib/pulp_container_client.rb +2 -1
  19. data/lib/pulp_container_client/api/content_blobs_api.rb +14 -14
  20. data/lib/pulp_container_client/api/content_manifests_api.rb +14 -14
  21. data/lib/pulp_container_client/api/content_tags_api.rb +17 -17
  22. data/lib/pulp_container_client/api/{content_guards_content_redirect_api.rb → contentguards_content_redirect_api.rb} +33 -33
  23. data/lib/pulp_container_client/api/distributions_container_api.rb +24 -24
  24. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +11 -11
  25. data/lib/pulp_container_client/api/remotes_container_api.rb +26 -26
  26. data/lib/pulp_container_client/api/repositories_container_api.rb +13 -13
  27. data/lib/pulp_container_client/api/repositories_container_push_api.rb +13 -13
  28. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +100 -60
  29. data/lib/pulp_container_client/models/container_container_distribution.rb +23 -23
  30. data/lib/pulp_container_client/models/container_container_distribution_response.rb +33 -33
  31. data/lib/pulp_container_client/models/manifest_copy.rb +1 -23
  32. data/lib/pulp_container_client/models/media_types_enum.rb +39 -0
  33. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +18 -18
  34. data/lib/pulp_container_client/version.rb +1 -1
  35. data/spec/api/content_blobs_api_spec.rb +6 -6
  36. data/spec/api/content_manifests_api_spec.rb +6 -6
  37. data/spec/api/content_tags_api_spec.rb +7 -7
  38. data/spec/api/{content_guards_content_redirect_api_spec.rb → contentguards_content_redirect_api_spec.rb} +11 -11
  39. data/spec/api/distributions_container_api_spec.rb +11 -11
  40. data/spec/api/pulp_container_namespaces_api_spec.rb +5 -5
  41. data/spec/api/remotes_container_api_spec.rb +12 -12
  42. data/spec/api/repositories_container_api_spec.rb +6 -6
  43. data/spec/api/repositories_container_push_api_spec.rb +6 -6
  44. data/spec/api/repositories_container_versions_api_spec.rb +28 -28
  45. data/spec/models/container_container_distribution_response_spec.rb +5 -5
  46. data/spec/models/container_container_distribution_spec.rb +3 -3
  47. data/spec/models/manifest_copy_spec.rb +0 -4
  48. data/spec/models/media_types_enum_spec.rb +35 -0
  49. data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
  50. metadata +10 -6
@@ -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?
@@ -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,17 +15,17 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
- attr_accessor :base_path
20
-
21
18
  # An optional content-guard. If none is specified, a default one will be used.
22
19
  attr_accessor :content_guard
23
20
 
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
23
+
24
24
  # The latest RepositoryVersion for this Repository will be served.
25
25
  attr_accessor :repository
26
26
 
27
- # A unique name. Ex, `rawhide` and `stable`.
28
- attr_accessor :name
27
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
28
+ attr_accessor :base_path
29
29
 
30
30
  attr_accessor :pulp_labels
31
31
 
@@ -41,10 +41,10 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'base_path' => :'base_path',
45
44
  :'content_guard' => :'content_guard',
46
- :'repository' => :'repository',
47
45
  :'name' => :'name',
46
+ :'repository' => :'repository',
47
+ :'base_path' => :'base_path',
48
48
  :'pulp_labels' => :'pulp_labels',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
@@ -55,10 +55,10 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
- :'base_path' => :'String',
59
58
  :'content_guard' => :'String',
60
- :'repository' => :'String',
61
59
  :'name' => :'String',
60
+ :'repository' => :'String',
61
+ :'base_path' => :'String',
62
62
  :'pulp_labels' => :'Object',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
@@ -90,20 +90,20 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'base_path')
94
- self.base_path = attributes[:'base_path']
95
- end
96
-
97
93
  if attributes.key?(:'content_guard')
98
94
  self.content_guard = attributes[:'content_guard']
99
95
  end
100
96
 
97
+ if attributes.key?(:'name')
98
+ self.name = attributes[:'name']
99
+ end
100
+
101
101
  if attributes.key?(:'repository')
102
102
  self.repository = attributes[:'repository']
103
103
  end
104
104
 
105
- if attributes.key?(:'name')
106
- self.name = attributes[:'name']
105
+ if attributes.key?(:'base_path')
106
+ self.base_path = attributes[:'base_path']
107
107
  end
108
108
 
109
109
  if attributes.key?(:'pulp_labels')
@@ -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 @base_path.nil?
131
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
132
- end
133
-
134
130
  if @name.nil?
135
131
  invalid_properties.push('invalid value for "name", name cannot be nil.')
136
132
  end
137
133
 
134
+ if @base_path.nil?
135
+ invalid_properties.push('invalid value for "base_path", base_path 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 @base_path.nil?
145
144
  return false if @name.nil?
145
+ return false if @base_path.nil?
146
146
  true
147
147
  end
148
148
 
@@ -151,10 +151,10 @@ module PulpContainerClient
151
151
  def ==(o)
152
152
  return true if self.equal?(o)
153
153
  self.class == o.class &&
154
- base_path == o.base_path &&
155
154
  content_guard == o.content_guard &&
156
- repository == o.repository &&
157
155
  name == o.name &&
156
+ repository == o.repository &&
157
+ base_path == o.base_path &&
158
158
  pulp_labels == o.pulp_labels &&
159
159
  repository_version == o.repository_version &&
160
160
  private == o.private &&
@@ -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
- [base_path, content_guard, repository, name, pulp_labels, repository_version, private, description].hash
173
+ [content_guard, name, repository, base_path, pulp_labels, repository_version, private, description].hash
174
174
  end
175
175
 
176
176
  # Builds the object from hash