pulp_file_client 1.11.1 → 1.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/AcsFileApi.md +18 -18
- data/docs/ContentFilesApi.md +8 -8
- data/docs/DistributionsFileApi.md +22 -20
- data/docs/FileFileDistribution.md +1 -1
- data/docs/FileFileDistributionResponse.md +1 -1
- data/docs/FileFileRemote.md +1 -1
- data/docs/FileFileRemoteResponse.md +4 -2
- data/docs/FileFileRemoteResponseHiddenFields.md +19 -0
- data/docs/FileFileRepository.md +1 -1
- data/docs/FileFileRepositoryResponse.md +1 -1
- data/docs/PatchedfileFileDistribution.md +1 -1
- data/docs/PatchedfileFileRemote.md +1 -1
- data/docs/PatchedfileFileRepository.md +1 -1
- data/docs/PublicationsFileApi.md +18 -18
- data/docs/RemotesFileApi.md +20 -20
- data/docs/RepositoriesFileApi.md +20 -18
- data/docs/RepositoriesFileVersionsApi.md +12 -12
- data/lib/pulp_file_client/api/acs_file_api.rb +27 -27
- data/lib/pulp_file_client/api/content_files_api.rb +13 -13
- data/lib/pulp_file_client/api/distributions_file_api.rb +32 -29
- data/lib/pulp_file_client/api/publications_file_api.rb +27 -27
- data/lib/pulp_file_client/api/remotes_file_api.rb +29 -29
- data/lib/pulp_file_client/api/repositories_file_api.rb +30 -27
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +17 -17
- data/lib/pulp_file_client/api_client.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution.rb +4 -2
- data/lib/pulp_file_client/models/file_file_distribution_response.rb +4 -2
- data/lib/pulp_file_client/models/file_file_remote.rb +4 -2
- data/lib/pulp_file_client/models/file_file_remote_response.rb +21 -7
- data/lib/pulp_file_client/models/file_file_remote_response_hidden_fields.rb +215 -0
- data/lib/pulp_file_client/models/file_file_repository.rb +4 -2
- data/lib/pulp_file_client/models/file_file_repository_response.rb +4 -2
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +4 -2
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +4 -2
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +4 -2
- data/lib/pulp_file_client/version.rb +1 -1
- data/lib/pulp_file_client.rb +1 -0
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/acs_file_api_spec.rb +9 -9
- data/spec/api/content_files_api_spec.rb +4 -4
- data/spec/api/distributions_file_api_spec.rb +11 -10
- data/spec/api/publications_file_api_spec.rb +9 -9
- data/spec/api/remotes_file_api_spec.rb +10 -10
- data/spec/api/repositories_file_api_spec.rb +10 -9
- data/spec/api/repositories_file_versions_api_spec.rb +6 -6
- data/spec/models/file_file_remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/file_file_remote_response_spec.rb +6 -0
- metadata +39 -35
@@ -216,12 +216,12 @@ module PulpFileClient
|
|
216
216
|
# List file distributions
|
217
217
|
# FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
|
218
218
|
# @param [Hash] opts the optional parameters
|
219
|
-
# @option opts [String] :base_path
|
219
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
220
220
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
221
221
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
222
222
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
223
223
|
# @option opts [Integer] :limit Number of results to return per page.
|
224
|
-
# @option opts [String] :name
|
224
|
+
# @option opts [String] :name Filter results where name matches value
|
225
225
|
# @option opts [String] :name__contains Filter results where name contains value
|
226
226
|
# @option opts [String] :name__icontains Filter results where name contains value
|
227
227
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -229,8 +229,9 @@ module PulpFileClient
|
|
229
229
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
230
230
|
# @option opts [Array<String>] :ordering Ordering
|
231
231
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
232
|
-
# @option opts [String] :
|
233
|
-
# @option opts [String] :
|
232
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
233
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
234
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
234
235
|
# @return [PaginatedfileFileDistributionResponseList]
|
235
236
|
def list(opts = {})
|
236
237
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -240,12 +241,12 @@ module PulpFileClient
|
|
240
241
|
# List file distributions
|
241
242
|
# FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
|
242
243
|
# @param [Hash] opts the optional parameters
|
243
|
-
# @option opts [String] :base_path
|
244
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
244
245
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
245
246
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
246
247
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
247
248
|
# @option opts [Integer] :limit Number of results to return per page.
|
248
|
-
# @option opts [String] :name
|
249
|
+
# @option opts [String] :name Filter results where name matches value
|
249
250
|
# @option opts [String] :name__contains Filter results where name contains value
|
250
251
|
# @option opts [String] :name__icontains Filter results where name contains value
|
251
252
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -253,14 +254,15 @@ module PulpFileClient
|
|
253
254
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
254
255
|
# @option opts [Array<String>] :ordering Ordering
|
255
256
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
256
|
-
# @option opts [String] :
|
257
|
-
# @option opts [String] :
|
257
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
258
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
259
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
258
260
|
# @return [Array<(PaginatedfileFileDistributionResponseList, Integer, Hash)>] PaginatedfileFileDistributionResponseList data, response status code and response headers
|
259
261
|
def list_with_http_info(opts = {})
|
260
262
|
if @api_client.config.debugging
|
261
263
|
@api_client.config.logger.debug 'Calling API: DistributionsFileApi.list ...'
|
262
264
|
end
|
263
|
-
allowable_values = ["-base_path", "-
|
265
|
+
allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
264
266
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
265
267
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
266
268
|
end
|
@@ -282,8 +284,9 @@ module PulpFileClient
|
|
282
284
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
283
285
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
284
286
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
285
|
-
query_params[:'
|
286
|
-
query_params[:'
|
287
|
+
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
288
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
289
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
287
290
|
|
288
291
|
# header parameters
|
289
292
|
header_params = opts[:header_params] || {}
|
@@ -321,8 +324,8 @@ module PulpFileClient
|
|
321
324
|
# List roles assigned to this object.
|
322
325
|
# @param file_file_distribution_href [String]
|
323
326
|
# @param [Hash] opts the optional parameters
|
324
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
325
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
327
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
328
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
326
329
|
# @return [ObjectRolesResponse]
|
327
330
|
def list_roles(file_file_distribution_href, opts = {})
|
328
331
|
data, _status_code, _headers = list_roles_with_http_info(file_file_distribution_href, opts)
|
@@ -332,8 +335,8 @@ module PulpFileClient
|
|
332
335
|
# List roles assigned to this object.
|
333
336
|
# @param file_file_distribution_href [String]
|
334
337
|
# @param [Hash] opts the optional parameters
|
335
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
336
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
338
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
339
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
337
340
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
338
341
|
def list_roles_with_http_info(file_file_distribution_href, opts = {})
|
339
342
|
if @api_client.config.debugging
|
@@ -348,8 +351,8 @@ module PulpFileClient
|
|
348
351
|
|
349
352
|
# query parameters
|
350
353
|
query_params = opts[:query_params] || {}
|
351
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
352
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
354
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
355
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
353
356
|
|
354
357
|
# header parameters
|
355
358
|
header_params = opts[:header_params] || {}
|
@@ -387,8 +390,8 @@ module PulpFileClient
|
|
387
390
|
# List permissions available to the current user on this object.
|
388
391
|
# @param file_file_distribution_href [String]
|
389
392
|
# @param [Hash] opts the optional parameters
|
390
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
391
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
393
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
394
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
392
395
|
# @return [MyPermissionsResponse]
|
393
396
|
def my_permissions(file_file_distribution_href, opts = {})
|
394
397
|
data, _status_code, _headers = my_permissions_with_http_info(file_file_distribution_href, opts)
|
@@ -398,8 +401,8 @@ module PulpFileClient
|
|
398
401
|
# List permissions available to the current user on this object.
|
399
402
|
# @param file_file_distribution_href [String]
|
400
403
|
# @param [Hash] opts the optional parameters
|
401
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
402
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
404
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
405
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
403
406
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
404
407
|
def my_permissions_with_http_info(file_file_distribution_href, opts = {})
|
405
408
|
if @api_client.config.debugging
|
@@ -414,8 +417,8 @@ module PulpFileClient
|
|
414
417
|
|
415
418
|
# query parameters
|
416
419
|
query_params = opts[:query_params] || {}
|
417
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
418
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
420
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
421
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
419
422
|
|
420
423
|
# header parameters
|
421
424
|
header_params = opts[:header_params] || {}
|
@@ -524,8 +527,8 @@ module PulpFileClient
|
|
524
527
|
# FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
|
525
528
|
# @param file_file_distribution_href [String]
|
526
529
|
# @param [Hash] opts the optional parameters
|
527
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
528
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
530
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
531
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
529
532
|
# @return [FileFileDistributionResponse]
|
530
533
|
def read(file_file_distribution_href, opts = {})
|
531
534
|
data, _status_code, _headers = read_with_http_info(file_file_distribution_href, opts)
|
@@ -536,8 +539,8 @@ module PulpFileClient
|
|
536
539
|
# FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
|
537
540
|
# @param file_file_distribution_href [String]
|
538
541
|
# @param [Hash] opts the optional parameters
|
539
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
540
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
542
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
543
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
541
544
|
# @return [Array<(FileFileDistributionResponse, Integer, Hash)>] FileFileDistributionResponse data, response status code and response headers
|
542
545
|
def read_with_http_info(file_file_distribution_href, opts = {})
|
543
546
|
if @api_client.config.debugging
|
@@ -552,8 +555,8 @@ module PulpFileClient
|
|
552
555
|
|
553
556
|
# query parameters
|
554
557
|
query_params = opts[:query_params] || {}
|
555
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
556
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
558
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
559
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
557
560
|
|
558
561
|
# header parameters
|
559
562
|
header_params = opts[:header_params] || {}
|
@@ -219,7 +219,7 @@ module PulpFileClient
|
|
219
219
|
# @option opts [Integer] :limit Number of results to return per page.
|
220
220
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
221
221
|
# @option opts [Array<String>] :ordering Ordering
|
222
|
-
# @option opts [DateTime] :pulp_created
|
222
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
223
223
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
224
224
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
225
225
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
@@ -227,8 +227,8 @@ module PulpFileClient
|
|
227
227
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
228
228
|
# @option opts [String] :repository Repository referenced by HREF
|
229
229
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
230
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
231
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
230
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
231
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
232
232
|
# @return [PaginatedfileFilePublicationResponseList]
|
233
233
|
def list(opts = {})
|
234
234
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -243,7 +243,7 @@ module PulpFileClient
|
|
243
243
|
# @option opts [Integer] :limit Number of results to return per page.
|
244
244
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
245
245
|
# @option opts [Array<String>] :ordering Ordering
|
246
|
-
# @option opts [DateTime] :pulp_created
|
246
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
247
247
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
248
248
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
249
249
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
@@ -251,14 +251,14 @@ module PulpFileClient
|
|
251
251
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
252
252
|
# @option opts [String] :repository Repository referenced by HREF
|
253
253
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
254
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
255
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
254
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
255
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
256
256
|
# @return [Array<(PaginatedfileFilePublicationResponseList, Integer, Hash)>] PaginatedfileFilePublicationResponseList data, response status code and response headers
|
257
257
|
def list_with_http_info(opts = {})
|
258
258
|
if @api_client.config.debugging
|
259
259
|
@api_client.config.logger.debug 'Calling API: PublicationsFileApi.list ...'
|
260
260
|
end
|
261
|
-
allowable_values = ["-complete", "-
|
261
|
+
allowable_values = ["-complete", "-pass_through", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "complete", "pass_through", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
|
262
262
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
263
263
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
264
264
|
end
|
@@ -280,8 +280,8 @@ module PulpFileClient
|
|
280
280
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
281
281
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
282
282
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
283
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
284
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
283
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
284
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
285
285
|
|
286
286
|
# header parameters
|
287
287
|
header_params = opts[:header_params] || {}
|
@@ -319,8 +319,8 @@ module PulpFileClient
|
|
319
319
|
# List roles assigned to this object.
|
320
320
|
# @param file_file_publication_href [String]
|
321
321
|
# @param [Hash] opts the optional parameters
|
322
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
323
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
322
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
323
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
324
324
|
# @return [ObjectRolesResponse]
|
325
325
|
def list_roles(file_file_publication_href, opts = {})
|
326
326
|
data, _status_code, _headers = list_roles_with_http_info(file_file_publication_href, opts)
|
@@ -330,8 +330,8 @@ module PulpFileClient
|
|
330
330
|
# List roles assigned to this object.
|
331
331
|
# @param file_file_publication_href [String]
|
332
332
|
# @param [Hash] opts the optional parameters
|
333
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
334
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
333
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
334
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
335
335
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
336
336
|
def list_roles_with_http_info(file_file_publication_href, opts = {})
|
337
337
|
if @api_client.config.debugging
|
@@ -346,8 +346,8 @@ module PulpFileClient
|
|
346
346
|
|
347
347
|
# query parameters
|
348
348
|
query_params = opts[:query_params] || {}
|
349
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
350
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
349
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
350
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
351
351
|
|
352
352
|
# header parameters
|
353
353
|
header_params = opts[:header_params] || {}
|
@@ -385,8 +385,8 @@ module PulpFileClient
|
|
385
385
|
# List permissions available to the current user on this object.
|
386
386
|
# @param file_file_publication_href [String]
|
387
387
|
# @param [Hash] opts the optional parameters
|
388
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
389
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
388
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
389
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
390
390
|
# @return [MyPermissionsResponse]
|
391
391
|
def my_permissions(file_file_publication_href, opts = {})
|
392
392
|
data, _status_code, _headers = my_permissions_with_http_info(file_file_publication_href, opts)
|
@@ -396,8 +396,8 @@ module PulpFileClient
|
|
396
396
|
# List permissions available to the current user on this object.
|
397
397
|
# @param file_file_publication_href [String]
|
398
398
|
# @param [Hash] opts the optional parameters
|
399
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
400
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
399
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
400
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
401
401
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
402
402
|
def my_permissions_with_http_info(file_file_publication_href, opts = {})
|
403
403
|
if @api_client.config.debugging
|
@@ -412,8 +412,8 @@ module PulpFileClient
|
|
412
412
|
|
413
413
|
# query parameters
|
414
414
|
query_params = opts[:query_params] || {}
|
415
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
416
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
415
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
416
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
417
417
|
|
418
418
|
# header parameters
|
419
419
|
header_params = opts[:header_params] || {}
|
@@ -452,8 +452,8 @@ module PulpFileClient
|
|
452
452
|
# A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
453
453
|
# @param file_file_publication_href [String]
|
454
454
|
# @param [Hash] opts the optional parameters
|
455
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
456
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
455
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
456
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
457
457
|
# @return [FileFilePublicationResponse]
|
458
458
|
def read(file_file_publication_href, opts = {})
|
459
459
|
data, _status_code, _headers = read_with_http_info(file_file_publication_href, opts)
|
@@ -464,8 +464,8 @@ module PulpFileClient
|
|
464
464
|
# A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
465
465
|
# @param file_file_publication_href [String]
|
466
466
|
# @param [Hash] opts the optional parameters
|
467
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
468
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
467
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
468
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
469
469
|
# @return [Array<(FileFilePublicationResponse, Integer, Hash)>] FileFilePublicationResponse data, response status code and response headers
|
470
470
|
def read_with_http_info(file_file_publication_href, opts = {})
|
471
471
|
if @api_client.config.debugging
|
@@ -480,8 +480,8 @@ module PulpFileClient
|
|
480
480
|
|
481
481
|
# query parameters
|
482
482
|
query_params = opts[:query_params] || {}
|
483
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
484
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
483
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
484
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
485
485
|
|
486
486
|
# header parameters
|
487
487
|
header_params = opts[:header_params] || {}
|
@@ -217,7 +217,7 @@ module PulpFileClient
|
|
217
217
|
# FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
|
218
218
|
# @param [Hash] opts the optional parameters
|
219
219
|
# @option opts [Integer] :limit Number of results to return per page.
|
220
|
-
# @option opts [String] :name
|
220
|
+
# @option opts [String] :name Filter results where name matches value
|
221
221
|
# @option opts [String] :name__contains Filter results where name contains value
|
222
222
|
# @option opts [String] :name__icontains Filter results where name contains value
|
223
223
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -225,14 +225,14 @@ module PulpFileClient
|
|
225
225
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
226
226
|
# @option opts [Array<String>] :ordering Ordering
|
227
227
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
228
|
-
# @option opts [DateTime] :pulp_last_updated
|
228
|
+
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
229
229
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
230
230
|
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
231
231
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
232
232
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
233
233
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
234
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
235
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
234
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
235
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
236
236
|
# @return [PaginatedfileFileRemoteResponseList]
|
237
237
|
def list(opts = {})
|
238
238
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -243,7 +243,7 @@ module PulpFileClient
|
|
243
243
|
# FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
|
244
244
|
# @param [Hash] opts the optional parameters
|
245
245
|
# @option opts [Integer] :limit Number of results to return per page.
|
246
|
-
# @option opts [String] :name
|
246
|
+
# @option opts [String] :name Filter results where name matches value
|
247
247
|
# @option opts [String] :name__contains Filter results where name contains value
|
248
248
|
# @option opts [String] :name__icontains Filter results where name contains value
|
249
249
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -251,20 +251,20 @@ module PulpFileClient
|
|
251
251
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
252
252
|
# @option opts [Array<String>] :ordering Ordering
|
253
253
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
254
|
-
# @option opts [DateTime] :pulp_last_updated
|
254
|
+
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
255
255
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
256
256
|
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
257
257
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
258
258
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
259
259
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
260
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
261
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
260
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
261
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
262
262
|
# @return [Array<(PaginatedfileFileRemoteResponseList, Integer, Hash)>] PaginatedfileFileRemoteResponseList data, response status code and response headers
|
263
263
|
def list_with_http_info(opts = {})
|
264
264
|
if @api_client.config.debugging
|
265
265
|
@api_client.config.logger.debug 'Calling API: RemotesFileApi.list ...'
|
266
266
|
end
|
267
|
-
allowable_values = ["-
|
267
|
+
allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
|
268
268
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
269
269
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
270
270
|
end
|
@@ -288,8 +288,8 @@ module PulpFileClient
|
|
288
288
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
289
289
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
290
290
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
291
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
292
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
291
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
292
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
293
293
|
|
294
294
|
# header parameters
|
295
295
|
header_params = opts[:header_params] || {}
|
@@ -327,8 +327,8 @@ module PulpFileClient
|
|
327
327
|
# List roles assigned to this object.
|
328
328
|
# @param file_file_remote_href [String]
|
329
329
|
# @param [Hash] opts the optional parameters
|
330
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
331
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
330
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
331
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
332
332
|
# @return [ObjectRolesResponse]
|
333
333
|
def list_roles(file_file_remote_href, opts = {})
|
334
334
|
data, _status_code, _headers = list_roles_with_http_info(file_file_remote_href, opts)
|
@@ -338,8 +338,8 @@ module PulpFileClient
|
|
338
338
|
# List roles assigned to this object.
|
339
339
|
# @param file_file_remote_href [String]
|
340
340
|
# @param [Hash] opts the optional parameters
|
341
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
342
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
341
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
342
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
343
343
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
344
344
|
def list_roles_with_http_info(file_file_remote_href, opts = {})
|
345
345
|
if @api_client.config.debugging
|
@@ -354,8 +354,8 @@ module PulpFileClient
|
|
354
354
|
|
355
355
|
# query parameters
|
356
356
|
query_params = opts[:query_params] || {}
|
357
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
358
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
357
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
358
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
359
359
|
|
360
360
|
# header parameters
|
361
361
|
header_params = opts[:header_params] || {}
|
@@ -393,8 +393,8 @@ module PulpFileClient
|
|
393
393
|
# List permissions available to the current user on this object.
|
394
394
|
# @param file_file_remote_href [String]
|
395
395
|
# @param [Hash] opts the optional parameters
|
396
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
397
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
396
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
397
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
398
398
|
# @return [MyPermissionsResponse]
|
399
399
|
def my_permissions(file_file_remote_href, opts = {})
|
400
400
|
data, _status_code, _headers = my_permissions_with_http_info(file_file_remote_href, opts)
|
@@ -404,8 +404,8 @@ module PulpFileClient
|
|
404
404
|
# List permissions available to the current user on this object.
|
405
405
|
# @param file_file_remote_href [String]
|
406
406
|
# @param [Hash] opts the optional parameters
|
407
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
408
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
407
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
408
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
409
409
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
410
410
|
def my_permissions_with_http_info(file_file_remote_href, opts = {})
|
411
411
|
if @api_client.config.debugging
|
@@ -420,8 +420,8 @@ module PulpFileClient
|
|
420
420
|
|
421
421
|
# query parameters
|
422
422
|
query_params = opts[:query_params] || {}
|
423
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
424
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
423
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
424
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
425
425
|
|
426
426
|
# header parameters
|
427
427
|
header_params = opts[:header_params] || {}
|
@@ -530,8 +530,8 @@ module PulpFileClient
|
|
530
530
|
# FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
|
531
531
|
# @param file_file_remote_href [String]
|
532
532
|
# @param [Hash] opts the optional parameters
|
533
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
534
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
533
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
534
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
535
535
|
# @return [FileFileRemoteResponse]
|
536
536
|
def read(file_file_remote_href, opts = {})
|
537
537
|
data, _status_code, _headers = read_with_http_info(file_file_remote_href, opts)
|
@@ -542,8 +542,8 @@ module PulpFileClient
|
|
542
542
|
# FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
|
543
543
|
# @param file_file_remote_href [String]
|
544
544
|
# @param [Hash] opts the optional parameters
|
545
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
546
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
545
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
546
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
547
547
|
# @return [Array<(FileFileRemoteResponse, Integer, Hash)>] FileFileRemoteResponse data, response status code and response headers
|
548
548
|
def read_with_http_info(file_file_remote_href, opts = {})
|
549
549
|
if @api_client.config.debugging
|
@@ -558,8 +558,8 @@ module PulpFileClient
|
|
558
558
|
|
559
559
|
# query parameters
|
560
560
|
query_params = opts[:query_params] || {}
|
561
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
562
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
561
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
562
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
563
563
|
|
564
564
|
# header parameters
|
565
565
|
header_params = opts[:header_params] || {}
|