pulp_file_client 1.11.2 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +20 -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 +19 -19
- 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 +29 -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 +27 -27
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +17 -17
- 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/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 +10 -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 +9 -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 +37 -33
@@ -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
|
@@ -230,8 +230,8 @@ module PulpFileClient
|
|
230
230
|
# @option opts [Array<String>] :ordering Ordering
|
231
231
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
232
232
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
233
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
234
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
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.
|
235
235
|
# @return [PaginatedfileFileDistributionResponseList]
|
236
236
|
def list(opts = {})
|
237
237
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -241,12 +241,12 @@ module PulpFileClient
|
|
241
241
|
# List file distributions
|
242
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.
|
243
243
|
# @param [Hash] opts the optional parameters
|
244
|
-
# @option opts [String] :base_path
|
244
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
245
245
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
246
246
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
247
247
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
248
248
|
# @option opts [Integer] :limit Number of results to return per page.
|
249
|
-
# @option opts [String] :name
|
249
|
+
# @option opts [String] :name Filter results where name matches value
|
250
250
|
# @option opts [String] :name__contains Filter results where name contains value
|
251
251
|
# @option opts [String] :name__icontains Filter results where name contains value
|
252
252
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -255,14 +255,14 @@ module PulpFileClient
|
|
255
255
|
# @option opts [Array<String>] :ordering Ordering
|
256
256
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
257
257
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
258
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
259
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
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.
|
260
260
|
# @return [Array<(PaginatedfileFileDistributionResponseList, Integer, Hash)>] PaginatedfileFileDistributionResponseList data, response status code and response headers
|
261
261
|
def list_with_http_info(opts = {})
|
262
262
|
if @api_client.config.debugging
|
263
263
|
@api_client.config.logger.debug 'Calling API: DistributionsFileApi.list ...'
|
264
264
|
end
|
265
|
-
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"]
|
266
266
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
267
267
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
268
268
|
end
|
@@ -285,8 +285,8 @@ module PulpFileClient
|
|
285
285
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
286
286
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
287
287
|
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
288
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
289
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].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?
|
290
290
|
|
291
291
|
# header parameters
|
292
292
|
header_params = opts[:header_params] || {}
|
@@ -324,8 +324,8 @@ module PulpFileClient
|
|
324
324
|
# List roles assigned to this object.
|
325
325
|
# @param file_file_distribution_href [String]
|
326
326
|
# @param [Hash] opts the optional parameters
|
327
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
328
|
-
# @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.
|
329
329
|
# @return [ObjectRolesResponse]
|
330
330
|
def list_roles(file_file_distribution_href, opts = {})
|
331
331
|
data, _status_code, _headers = list_roles_with_http_info(file_file_distribution_href, opts)
|
@@ -335,8 +335,8 @@ module PulpFileClient
|
|
335
335
|
# List roles assigned to this object.
|
336
336
|
# @param file_file_distribution_href [String]
|
337
337
|
# @param [Hash] opts the optional parameters
|
338
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
339
|
-
# @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.
|
340
340
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
341
341
|
def list_roles_with_http_info(file_file_distribution_href, opts = {})
|
342
342
|
if @api_client.config.debugging
|
@@ -351,8 +351,8 @@ module PulpFileClient
|
|
351
351
|
|
352
352
|
# query parameters
|
353
353
|
query_params = opts[:query_params] || {}
|
354
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
355
|
-
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?
|
356
356
|
|
357
357
|
# header parameters
|
358
358
|
header_params = opts[:header_params] || {}
|
@@ -390,8 +390,8 @@ module PulpFileClient
|
|
390
390
|
# List permissions available to the current user on this object.
|
391
391
|
# @param file_file_distribution_href [String]
|
392
392
|
# @param [Hash] opts the optional parameters
|
393
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
394
|
-
# @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.
|
395
395
|
# @return [MyPermissionsResponse]
|
396
396
|
def my_permissions(file_file_distribution_href, opts = {})
|
397
397
|
data, _status_code, _headers = my_permissions_with_http_info(file_file_distribution_href, opts)
|
@@ -401,8 +401,8 @@ module PulpFileClient
|
|
401
401
|
# List permissions available to the current user on this object.
|
402
402
|
# @param file_file_distribution_href [String]
|
403
403
|
# @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.
|
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.
|
406
406
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
407
407
|
def my_permissions_with_http_info(file_file_distribution_href, opts = {})
|
408
408
|
if @api_client.config.debugging
|
@@ -417,8 +417,8 @@ module PulpFileClient
|
|
417
417
|
|
418
418
|
# query parameters
|
419
419
|
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?
|
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?
|
422
422
|
|
423
423
|
# header parameters
|
424
424
|
header_params = opts[:header_params] || {}
|
@@ -527,8 +527,8 @@ module PulpFileClient
|
|
527
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.
|
528
528
|
# @param file_file_distribution_href [String]
|
529
529
|
# @param [Hash] opts the optional parameters
|
530
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
531
|
-
# @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.
|
532
532
|
# @return [FileFileDistributionResponse]
|
533
533
|
def read(file_file_distribution_href, opts = {})
|
534
534
|
data, _status_code, _headers = read_with_http_info(file_file_distribution_href, opts)
|
@@ -539,8 +539,8 @@ module PulpFileClient
|
|
539
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.
|
540
540
|
# @param file_file_distribution_href [String]
|
541
541
|
# @param [Hash] opts the optional parameters
|
542
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
543
|
-
# @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.
|
544
544
|
# @return [Array<(FileFileDistributionResponse, Integer, Hash)>] FileFileDistributionResponse data, response status code and response headers
|
545
545
|
def read_with_http_info(file_file_distribution_href, opts = {})
|
546
546
|
if @api_client.config.debugging
|
@@ -555,8 +555,8 @@ module PulpFileClient
|
|
555
555
|
|
556
556
|
# query parameters
|
557
557
|
query_params = opts[:query_params] || {}
|
558
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
559
|
-
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?
|
560
560
|
|
561
561
|
# header parameters
|
562
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] || {}
|