pulp_container_client 2.14.2 → 2.14.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  3. data/docs/ContainerContainerDistribution.md +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +10 -10
  5. data/docs/ContainerContainerPushRepository.md +6 -6
  6. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  7. data/docs/ContainerContainerRemote.md +1 -1
  8. data/docs/ContainerContainerRemoteResponse.md +3 -1
  9. data/docs/ContainerContainerRemoteResponseHiddenFields.md +19 -0
  10. data/docs/ContainerContainerRepository.md +2 -2
  11. data/docs/ContainerContainerRepositoryResponse.md +2 -2
  12. data/docs/ContentBlobsApi.md +8 -8
  13. data/docs/ContentManifestsApi.md +8 -8
  14. data/docs/ContentSignaturesApi.md +8 -8
  15. data/docs/ContentTagsApi.md +8 -8
  16. data/docs/DistributionsContainerApi.md +24 -20
  17. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  18. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  19. data/docs/PatchedcontainerContainerRemote.md +1 -1
  20. data/docs/PatchedcontainerContainerRepository.md +2 -2
  21. data/docs/PulpContainerNamespacesApi.md +16 -16
  22. data/docs/RemotesContainerApi.md +20 -20
  23. data/docs/RepositoriesContainerApi.md +35 -19
  24. data/docs/RepositoriesContainerPushApi.md +35 -19
  25. data/docs/RepositoriesContainerPushVersionsApi.md +12 -12
  26. data/docs/RepositoriesContainerVersionsApi.md +12 -12
  27. data/lib/pulp_container_client/api/content_blobs_api.rb +13 -13
  28. data/lib/pulp_container_client/api/content_manifests_api.rb +13 -13
  29. data/lib/pulp_container_client/api/content_signatures_api.rb +13 -13
  30. data/lib/pulp_container_client/api/content_tags_api.rb +13 -13
  31. data/lib/pulp_container_client/api/distributions_container_api.rb +35 -29
  32. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +25 -25
  33. data/lib/pulp_container_client/api/remotes_container_api.rb +29 -29
  34. data/lib/pulp_container_client/api/repositories_container_api.rb +51 -27
  35. data/lib/pulp_container_client/api/repositories_container_push_api.rb +51 -27
  36. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +17 -17
  37. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +17 -17
  38. data/lib/pulp_container_client/models/container_container_distribution.rb +53 -51
  39. data/lib/pulp_container_client/models/container_container_distribution_response.rb +48 -46
  40. data/lib/pulp_container_client/models/container_container_push_repository.rb +40 -38
  41. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +52 -50
  42. data/lib/pulp_container_client/models/container_container_remote.rb +4 -2
  43. data/lib/pulp_container_client/models/container_container_remote_response.rb +17 -3
  44. data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +215 -0
  45. data/lib/pulp_container_client/models/container_container_repository.rb +5 -3
  46. data/lib/pulp_container_client/models/container_container_repository_response.rb +5 -3
  47. data/lib/pulp_container_client/models/nested_role.rb +19 -0
  48. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +44 -42
  49. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +40 -38
  50. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +4 -2
  51. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +5 -3
  52. data/lib/pulp_container_client/version.rb +1 -1
  53. data/lib/pulp_container_client.rb +1 -0
  54. data/spec/api/content_blobs_api_spec.rb +4 -4
  55. data/spec/api/content_manifests_api_spec.rb +4 -4
  56. data/spec/api/content_signatures_api_spec.rb +4 -4
  57. data/spec/api/content_tags_api_spec.rb +4 -4
  58. data/spec/api/distributions_container_api_spec.rb +12 -10
  59. data/spec/api/pulp_container_namespaces_api_spec.rb +8 -8
  60. data/spec/api/remotes_container_api_spec.rb +10 -10
  61. data/spec/api/repositories_container_api_spec.rb +17 -9
  62. data/spec/api/repositories_container_push_api_spec.rb +17 -9
  63. data/spec/api/repositories_container_push_versions_api_spec.rb +6 -6
  64. data/spec/api/repositories_container_versions_api_spec.rb +6 -6
  65. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  66. data/spec/models/container_container_distribution_spec.rb +5 -5
  67. data/spec/models/container_container_push_repository_response_spec.rb +8 -8
  68. data/spec/models/container_container_push_repository_spec.rb +4 -4
  69. data/spec/models/container_container_remote_response_hidden_fields_spec.rb +47 -0
  70. data/spec/models/container_container_remote_response_spec.rb +6 -0
  71. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  72. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  73. metadata +51 -47
@@ -91,7 +91,7 @@ module PulpContainerClient
91
91
  # 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.
92
92
  # @param [Hash] opts the optional parameters
93
93
  # @option opts [Integer] :limit Number of results to return per page.
94
- # @option opts [String] :name
94
+ # @option opts [String] :name Filter results where name matches value
95
95
  # @option opts [String] :name__contains Filter results where name contains value
96
96
  # @option opts [String] :name__icontains Filter results where name contains value
97
97
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -100,8 +100,16 @@ module PulpContainerClient
100
100
  # @option opts [Array<String>] :ordering Ordering
101
101
  # @option opts [String] :pulp_label_select Filter labels by search string
102
102
  # @option opts [String] :remote Foreign Key referenced by HREF
103
- # @option opts [String] :fields A list of fields to include in the response.
104
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
103
+ # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
104
+ # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
105
+ # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
106
+ # @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
107
+ # @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
108
+ # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
109
+ # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
110
+ # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
111
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
112
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
105
113
  # @return [PaginatedcontainerContainerPushRepositoryResponseList]
106
114
  def list(opts = {})
107
115
  data, _status_code, _headers = list_with_http_info(opts)
@@ -112,7 +120,7 @@ module PulpContainerClient
112
120
  # 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.
113
121
  # @param [Hash] opts the optional parameters
114
122
  # @option opts [Integer] :limit Number of results to return per page.
115
- # @option opts [String] :name
123
+ # @option opts [String] :name Filter results where name matches value
116
124
  # @option opts [String] :name__contains Filter results where name contains value
117
125
  # @option opts [String] :name__icontains Filter results where name contains value
118
126
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -121,14 +129,22 @@ module PulpContainerClient
121
129
  # @option opts [Array<String>] :ordering Ordering
122
130
  # @option opts [String] :pulp_label_select Filter labels by search string
123
131
  # @option opts [String] :remote Foreign Key referenced by HREF
124
- # @option opts [String] :fields A list of fields to include in the response.
125
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
132
+ # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
133
+ # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
134
+ # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
135
+ # @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
136
+ # @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
137
+ # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
138
+ # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
139
+ # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
140
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
141
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
126
142
  # @return [Array<(PaginatedcontainerContainerPushRepositoryResponseList, Integer, Hash)>] PaginatedcontainerContainerPushRepositoryResponseList data, response status code and response headers
127
143
  def list_with_http_info(opts = {})
128
144
  if @api_client.config.debugging
129
145
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.list ...'
130
146
  end
131
- allowable_values = ["-alternatecontentsourcepath", "-container_containerpushrepository", "-container_containerrepository", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-uploads", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "container_containerpushrepository", "container_containerrepository", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "uploads", "user_hidden", "user_roles", "versions"]
147
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
132
148
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
133
149
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
134
150
  end
@@ -147,8 +163,16 @@ module PulpContainerClient
147
163
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
148
164
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
149
165
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
150
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
151
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
166
+ query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
167
+ query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
168
+ query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
169
+ query_params[:'retain_repo_versions__isnull'] = opts[:'retain_repo_versions__isnull'] if !opts[:'retain_repo_versions__isnull'].nil?
170
+ query_params[:'retain_repo_versions__lt'] = opts[:'retain_repo_versions__lt'] if !opts[:'retain_repo_versions__lt'].nil?
171
+ query_params[:'retain_repo_versions__lte'] = opts[:'retain_repo_versions__lte'] if !opts[:'retain_repo_versions__lte'].nil?
172
+ query_params[:'retain_repo_versions__ne'] = opts[:'retain_repo_versions__ne'] if !opts[:'retain_repo_versions__ne'].nil?
173
+ query_params[:'retain_repo_versions__range'] = @api_client.build_collection_param(opts[:'retain_repo_versions__range'], :csv) if !opts[:'retain_repo_versions__range'].nil?
174
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
175
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
152
176
 
153
177
  # header parameters
154
178
  header_params = opts[:header_params] || {}
@@ -186,8 +210,8 @@ module PulpContainerClient
186
210
  # List roles assigned to this object.
187
211
  # @param container_container_push_repository_href [String]
188
212
  # @param [Hash] opts the optional parameters
189
- # @option opts [String] :fields A list of fields to include in the response.
190
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
213
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
214
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
191
215
  # @return [ObjectRolesResponse]
192
216
  def list_roles(container_container_push_repository_href, opts = {})
193
217
  data, _status_code, _headers = list_roles_with_http_info(container_container_push_repository_href, opts)
@@ -197,8 +221,8 @@ module PulpContainerClient
197
221
  # List roles assigned to this object.
198
222
  # @param container_container_push_repository_href [String]
199
223
  # @param [Hash] opts the optional parameters
200
- # @option opts [String] :fields A list of fields to include in the response.
201
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
224
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
225
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
202
226
  # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
203
227
  def list_roles_with_http_info(container_container_push_repository_href, opts = {})
204
228
  if @api_client.config.debugging
@@ -213,8 +237,8 @@ module PulpContainerClient
213
237
 
214
238
  # query parameters
215
239
  query_params = opts[:query_params] || {}
216
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
217
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
240
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
241
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
218
242
 
219
243
  # header parameters
220
244
  header_params = opts[:header_params] || {}
@@ -252,8 +276,8 @@ module PulpContainerClient
252
276
  # List permissions available to the current user on this object.
253
277
  # @param container_container_push_repository_href [String]
254
278
  # @param [Hash] opts the optional parameters
255
- # @option opts [String] :fields A list of fields to include in the response.
256
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
279
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
280
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
257
281
  # @return [MyPermissionsResponse]
258
282
  def my_permissions(container_container_push_repository_href, opts = {})
259
283
  data, _status_code, _headers = my_permissions_with_http_info(container_container_push_repository_href, opts)
@@ -263,8 +287,8 @@ module PulpContainerClient
263
287
  # List permissions available to the current user on this object.
264
288
  # @param container_container_push_repository_href [String]
265
289
  # @param [Hash] opts the optional parameters
266
- # @option opts [String] :fields A list of fields to include in the response.
267
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
290
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
291
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
268
292
  # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
269
293
  def my_permissions_with_http_info(container_container_push_repository_href, opts = {})
270
294
  if @api_client.config.debugging
@@ -279,8 +303,8 @@ module PulpContainerClient
279
303
 
280
304
  # query parameters
281
305
  query_params = opts[:query_params] || {}
282
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
283
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
306
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
307
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
284
308
 
285
309
  # header parameters
286
310
  header_params = opts[:header_params] || {}
@@ -389,8 +413,8 @@ module PulpContainerClient
389
413
  # 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.
390
414
  # @param container_container_push_repository_href [String]
391
415
  # @param [Hash] opts the optional parameters
392
- # @option opts [String] :fields A list of fields to include in the response.
393
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
416
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
417
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
394
418
  # @return [ContainerContainerPushRepositoryResponse]
395
419
  def read(container_container_push_repository_href, opts = {})
396
420
  data, _status_code, _headers = read_with_http_info(container_container_push_repository_href, opts)
@@ -401,8 +425,8 @@ module PulpContainerClient
401
425
  # 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.
402
426
  # @param container_container_push_repository_href [String]
403
427
  # @param [Hash] opts the optional parameters
404
- # @option opts [String] :fields A list of fields to include in the response.
405
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
428
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
429
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
406
430
  # @return [Array<(ContainerContainerPushRepositoryResponse, Integer, Hash)>] ContainerContainerPushRepositoryResponse data, response status code and response headers
407
431
  def read_with_http_info(container_container_push_repository_href, opts = {})
408
432
  if @api_client.config.debugging
@@ -417,8 +441,8 @@ module PulpContainerClient
417
441
 
418
442
  # query parameters
419
443
  query_params = opts[:query_params] || {}
420
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
421
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
444
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
445
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
422
446
 
423
447
  # header parameters
424
448
  header_params = opts[:header_params] || {}
@@ -88,7 +88,7 @@ module PulpContainerClient
88
88
  # @option opts [String] :content Content Unit referenced by HREF
89
89
  # @option opts [String] :content__in Content Unit referenced by HREF
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
- # @option opts [Integer] :number
91
+ # @option opts [Integer] :number Filter results where number matches value
92
92
  # @option opts [Integer] :number__gt Filter results where number is greater than value
93
93
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
94
94
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -96,14 +96,14 @@ module PulpContainerClient
96
96
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
98
  # @option opts [Array<String>] :ordering Ordering
99
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
99
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
100
100
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
101
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
102
102
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
- # @option opts [String] :fields A list of fields to include in the response.
106
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
105
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
106
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
107
107
  # @return [PaginatedRepositoryVersionResponseList]
108
108
  def list(container_container_push_repository_href, opts = {})
109
109
  data, _status_code, _headers = list_with_http_info(container_container_push_repository_href, opts)
@@ -117,7 +117,7 @@ module PulpContainerClient
117
117
  # @option opts [String] :content Content Unit referenced by HREF
118
118
  # @option opts [String] :content__in Content Unit referenced by HREF
119
119
  # @option opts [Integer] :limit Number of results to return per page.
120
- # @option opts [Integer] :number
120
+ # @option opts [Integer] :number Filter results where number matches value
121
121
  # @option opts [Integer] :number__gt Filter results where number is greater than value
122
122
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
123
123
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -125,14 +125,14 @@ module PulpContainerClient
125
125
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
126
  # @option opts [Integer] :offset The initial index from which to return the results.
127
127
  # @option opts [Array<String>] :ordering Ordering
128
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
128
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
129
129
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
130
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
131
131
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
132
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
133
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
134
- # @option opts [String] :fields A list of fields to include in the response.
135
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
134
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
135
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
136
136
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
137
137
  def list_with_http_info(container_container_push_repository_href, opts = {})
138
138
  if @api_client.config.debugging
@@ -142,7 +142,7 @@ module PulpContainerClient
142
142
  if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushVersionsApi.list"
144
144
  end
145
- allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-info", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "info", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
145
+ allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
146
146
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
147
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
148
  end
@@ -168,8 +168,8 @@ module PulpContainerClient
168
168
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
169
169
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
170
170
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
171
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
172
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
171
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
172
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
173
173
 
174
174
  # header parameters
175
175
  header_params = opts[:header_params] || {}
@@ -208,8 +208,8 @@ module PulpContainerClient
208
208
  # 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.
209
209
  # @param container_container_push_repository_version_href [String]
210
210
  # @param [Hash] opts the optional parameters
211
- # @option opts [String] :fields A list of fields to include in the response.
212
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
211
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
212
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
213
213
  # @return [RepositoryVersionResponse]
214
214
  def read(container_container_push_repository_version_href, opts = {})
215
215
  data, _status_code, _headers = read_with_http_info(container_container_push_repository_version_href, opts)
@@ -220,8 +220,8 @@ module PulpContainerClient
220
220
  # 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.
221
221
  # @param container_container_push_repository_version_href [String]
222
222
  # @param [Hash] opts the optional parameters
223
- # @option opts [String] :fields A list of fields to include in the response.
224
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
223
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
224
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
225
225
  # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
226
226
  def read_with_http_info(container_container_push_repository_version_href, opts = {})
227
227
  if @api_client.config.debugging
@@ -236,8 +236,8 @@ module PulpContainerClient
236
236
 
237
237
  # query parameters
238
238
  query_params = opts[:query_params] || {}
239
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
240
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
239
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
240
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
241
241
 
242
242
  # header parameters
243
243
  header_params = opts[:header_params] || {}
@@ -88,7 +88,7 @@ module PulpContainerClient
88
88
  # @option opts [String] :content Content Unit referenced by HREF
89
89
  # @option opts [String] :content__in Content Unit referenced by HREF
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
- # @option opts [Integer] :number
91
+ # @option opts [Integer] :number Filter results where number matches value
92
92
  # @option opts [Integer] :number__gt Filter results where number is greater than value
93
93
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
94
94
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -96,14 +96,14 @@ module PulpContainerClient
96
96
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
98
  # @option opts [Array<String>] :ordering Ordering
99
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
99
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
100
100
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
101
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
102
102
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
- # @option opts [String] :fields A list of fields to include in the response.
106
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
105
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
106
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
107
107
  # @return [PaginatedRepositoryVersionResponseList]
108
108
  def list(container_container_repository_href, opts = {})
109
109
  data, _status_code, _headers = list_with_http_info(container_container_repository_href, opts)
@@ -117,7 +117,7 @@ module PulpContainerClient
117
117
  # @option opts [String] :content Content Unit referenced by HREF
118
118
  # @option opts [String] :content__in Content Unit referenced by HREF
119
119
  # @option opts [Integer] :limit Number of results to return per page.
120
- # @option opts [Integer] :number
120
+ # @option opts [Integer] :number Filter results where number matches value
121
121
  # @option opts [Integer] :number__gt Filter results where number is greater than value
122
122
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
123
123
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -125,14 +125,14 @@ module PulpContainerClient
125
125
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
126
  # @option opts [Integer] :offset The initial index from which to return the results.
127
127
  # @option opts [Array<String>] :ordering Ordering
128
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
128
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
129
129
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
130
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
131
131
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
132
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
133
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
134
- # @option opts [String] :fields A list of fields to include in the response.
135
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
134
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
135
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
136
136
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
137
137
  def list_with_http_info(container_container_repository_href, opts = {})
138
138
  if @api_client.config.debugging
@@ -142,7 +142,7 @@ module PulpContainerClient
142
142
  if @api_client.config.client_side_validation && container_container_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerVersionsApi.list"
144
144
  end
145
- allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-info", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "info", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
145
+ allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
146
146
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
147
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
148
  end
@@ -168,8 +168,8 @@ module PulpContainerClient
168
168
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
169
169
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
170
170
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
171
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
172
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
171
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
172
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
173
173
 
174
174
  # header parameters
175
175
  header_params = opts[:header_params] || {}
@@ -208,8 +208,8 @@ module PulpContainerClient
208
208
  # ContainerRepositoryVersion represents a single container repository version.
209
209
  # @param container_container_repository_version_href [String]
210
210
  # @param [Hash] opts the optional parameters
211
- # @option opts [String] :fields A list of fields to include in the response.
212
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
211
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
212
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
213
213
  # @return [RepositoryVersionResponse]
214
214
  def read(container_container_repository_version_href, opts = {})
215
215
  data, _status_code, _headers = read_with_http_info(container_container_repository_version_href, opts)
@@ -220,8 +220,8 @@ module PulpContainerClient
220
220
  # ContainerRepositoryVersion represents a single container repository version.
221
221
  # @param container_container_repository_version_href [String]
222
222
  # @param [Hash] opts the optional parameters
223
- # @option opts [String] :fields A list of fields to include in the response.
224
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
223
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
224
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
225
225
  # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
226
226
  def read_with_http_info(container_container_repository_version_href, opts = {})
227
227
  if @api_client.config.debugging
@@ -236,8 +236,8 @@ module PulpContainerClient
236
236
 
237
237
  # query parameters
238
238
  query_params = opts[:query_params] || {}
239
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
240
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
239
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
240
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
241
241
 
242
242
  # header parameters
243
243
  header_params = opts[:header_params] || {}
@@ -15,19 +15,19 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
- # The latest RepositoryVersion for this Repository will be served.
19
- attr_accessor :repository
20
-
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
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
23
20
 
24
21
  # An optional content-guard. If none is specified, a default one will be used.
25
22
  attr_accessor :content_guard
26
23
 
27
24
  attr_accessor :pulp_labels
28
25
 
29
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
- attr_accessor :base_path
26
+ # A unique name. Ex, `rawhide` and `stable`.
27
+ attr_accessor :name
28
+
29
+ # The latest RepositoryVersion for this Repository will be served.
30
+ attr_accessor :repository
31
31
 
32
32
  # RepositoryVersion to be served
33
33
  attr_accessor :repository_version
@@ -41,11 +41,11 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'repository' => :'repository',
45
- :'name' => :'name',
44
+ :'base_path' => :'base_path',
46
45
  :'content_guard' => :'content_guard',
47
46
  :'pulp_labels' => :'pulp_labels',
48
- :'base_path' => :'base_path',
47
+ :'name' => :'name',
48
+ :'repository' => :'repository',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
@@ -55,11 +55,11 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
- :'repository' => :'String',
59
- :'name' => :'String',
60
- :'content_guard' => :'String',
61
- :'pulp_labels' => :'Object',
62
58
  :'base_path' => :'String',
59
+ :'content_guard' => :'String',
60
+ :'pulp_labels' => :'Hash<String, String>',
61
+ :'name' => :'String',
62
+ :'repository' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,12 +90,8 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'repository')
94
- self.repository = attributes[:'repository']
95
- end
96
-
97
- if attributes.key?(:'name')
98
- self.name = attributes[:'name']
93
+ if attributes.key?(:'base_path')
94
+ self.base_path = attributes[:'base_path']
99
95
  end
100
96
 
101
97
  if attributes.key?(:'content_guard')
@@ -103,11 +99,17 @@ module PulpContainerClient
103
99
  end
104
100
 
105
101
  if attributes.key?(:'pulp_labels')
106
- self.pulp_labels = attributes[:'pulp_labels']
102
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
103
+ self.pulp_labels = value
104
+ end
107
105
  end
108
106
 
109
- if attributes.key?(:'base_path')
110
- self.base_path = attributes[:'base_path']
107
+ if attributes.key?(:'name')
108
+ self.name = attributes[:'name']
109
+ end
110
+
111
+ if attributes.key?(:'repository')
112
+ self.repository = attributes[:'repository']
111
113
  end
112
114
 
113
115
  if attributes.key?(:'repository_version')
@@ -127,14 +129,6 @@ module PulpContainerClient
127
129
  # @return Array for valid properties with the reasons
128
130
  def list_invalid_properties
129
131
  invalid_properties = Array.new
130
- if @name.nil?
131
- invalid_properties.push('invalid value for "name", name cannot be nil.')
132
- end
133
-
134
- if @name.to_s.length < 1
135
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
136
- end
137
-
138
132
  if @base_path.nil?
139
133
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
140
134
  end
@@ -143,6 +137,14 @@ module PulpContainerClient
143
137
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
144
138
  end
145
139
 
140
+ if @name.nil?
141
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
142
+ end
143
+
144
+ if @name.to_s.length < 1
145
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
146
+ end
147
+
146
148
  if !@description.nil? && @description.to_s.length < 1
147
149
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
148
150
  end
@@ -153,28 +155,14 @@ module PulpContainerClient
153
155
  # Check to see if the all the properties in the model are valid
154
156
  # @return true if the model is valid
155
157
  def valid?
156
- return false if @name.nil?
157
- return false if @name.to_s.length < 1
158
158
  return false if @base_path.nil?
159
159
  return false if @base_path.to_s.length < 1
160
+ return false if @name.nil?
161
+ return false if @name.to_s.length < 1
160
162
  return false if !@description.nil? && @description.to_s.length < 1
161
163
  true
162
164
  end
163
165
 
164
- # Custom attribute writer method with validation
165
- # @param [Object] name Value to be assigned
166
- def name=(name)
167
- if name.nil?
168
- fail ArgumentError, 'name cannot be nil'
169
- end
170
-
171
- if name.to_s.length < 1
172
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
173
- end
174
-
175
- @name = name
176
- end
177
-
178
166
  # Custom attribute writer method with validation
179
167
  # @param [Object] base_path Value to be assigned
180
168
  def base_path=(base_path)
@@ -189,6 +177,20 @@ module PulpContainerClient
189
177
  @base_path = base_path
190
178
  end
191
179
 
180
+ # Custom attribute writer method with validation
181
+ # @param [Object] name Value to be assigned
182
+ def name=(name)
183
+ if name.nil?
184
+ fail ArgumentError, 'name cannot be nil'
185
+ end
186
+
187
+ if name.to_s.length < 1
188
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
189
+ end
190
+
191
+ @name = name
192
+ end
193
+
192
194
  # Custom attribute writer method with validation
193
195
  # @param [Object] description Value to be assigned
194
196
  def description=(description)
@@ -204,11 +206,11 @@ module PulpContainerClient
204
206
  def ==(o)
205
207
  return true if self.equal?(o)
206
208
  self.class == o.class &&
207
- repository == o.repository &&
208
- name == o.name &&
209
+ base_path == o.base_path &&
209
210
  content_guard == o.content_guard &&
210
211
  pulp_labels == o.pulp_labels &&
211
- base_path == o.base_path &&
212
+ name == o.name &&
213
+ repository == o.repository &&
212
214
  repository_version == o.repository_version &&
213
215
  private == o.private &&
214
216
  description == o.description
@@ -223,7 +225,7 @@ module PulpContainerClient
223
225
  # Calculates hash code according to all attributes.
224
226
  # @return [Integer] Hash code
225
227
  def hash
226
- [repository, name, content_guard, pulp_labels, base_path, repository_version, private, description].hash
228
+ [base_path, content_guard, pulp_labels, name, repository, repository_version, private, description].hash
227
229
  end
228
230
 
229
231
  # Builds the object from hash