pulp_file_client 1.14.4 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -25
  3. data/docs/AcsFileApi.md +23 -9
  4. data/docs/ContentFilesApi.md +3 -1
  5. data/docs/DistributionsFileApi.md +135 -9
  6. data/docs/PublicationsFileApi.md +15 -9
  7. data/docs/RemotesFileApi.md +135 -9
  8. data/docs/RepositoriesFileApi.md +135 -9
  9. data/docs/RepositoriesFileVersionsApi.md +3 -1
  10. data/docs/SetLabel.md +19 -0
  11. data/docs/SetLabelResponse.md +19 -0
  12. data/docs/UnsetLabel.md +17 -0
  13. data/docs/UnsetLabelResponse.md +19 -0
  14. data/lib/pulp_file_client/api/acs_file_api.rb +23 -0
  15. data/lib/pulp_file_client/api/content_files_api.rb +3 -0
  16. data/lib/pulp_file_client/api/distributions_file_api.rb +163 -0
  17. data/lib/pulp_file_client/api/publications_file_api.rb +11 -0
  18. data/lib/pulp_file_client/api/remotes_file_api.rb +163 -0
  19. data/lib/pulp_file_client/api/repositories_file_api.rb +163 -0
  20. data/lib/pulp_file_client/api/repositories_file_versions_api.rb +3 -0
  21. data/lib/pulp_file_client/configuration.rb +2 -2
  22. data/lib/pulp_file_client/models/set_label.rb +252 -0
  23. data/lib/pulp_file_client/models/set_label_response.rb +243 -0
  24. data/lib/pulp_file_client/models/unset_label.rb +242 -0
  25. data/lib/pulp_file_client/models/unset_label_response.rb +242 -0
  26. data/lib/pulp_file_client/version.rb +1 -1
  27. data/lib/pulp_file_client.rb +4 -0
  28. data/spec/api/acs_file_api_spec.rb +9 -0
  29. data/spec/api/content_files_api_spec.rb +1 -0
  30. data/spec/api/distributions_file_api_spec.rb +35 -0
  31. data/spec/api/publications_file_api_spec.rb +5 -0
  32. data/spec/api/remotes_file_api_spec.rb +35 -0
  33. data/spec/api/repositories_file_api_spec.rb +35 -0
  34. data/spec/api/repositories_file_versions_api_spec.rb +1 -0
  35. data/spec/configuration_spec.rb +3 -3
  36. data/spec/models/set_label_response_spec.rb +47 -0
  37. data/spec/models/set_label_spec.rb +47 -0
  38. data/spec/models/unset_label_response_spec.rb +47 -0
  39. data/spec/models/unset_label_spec.rb +41 -0
  40. metadata +47 -31
@@ -0,0 +1,17 @@
1
+ # PulpFileClient::UnsetLabel
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpFileClient'
13
+
14
+ instance = PulpFileClient::UnsetLabel.new(key: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # PulpFileClient::UnsetLabelResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+ **value** | **String** | | [optional] [readonly]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpFileClient'
14
+
15
+ instance = PulpFileClient::UnsetLabelResponse.new(key: null,
16
+ value: null)
17
+ ```
18
+
19
+
@@ -19,6 +19,7 @@ module PulpFileClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add a role
22
23
  # Add a role for this object to users/groups.
23
24
  # @param file_file_alternate_content_source_href [String]
24
25
  # @param nested_role [NestedRole]
@@ -29,6 +30,7 @@ module PulpFileClient
29
30
  data
30
31
  end
31
32
 
33
+ # Add a role
32
34
  # Add a role for this object to users/groups.
33
35
  # @param file_file_alternate_content_source_href [String]
34
36
  # @param nested_role [NestedRole]
@@ -220,12 +222,17 @@ module PulpFileClient
220
222
  # @option opts [String] :name Filter results where name matches value
221
223
  # @option opts [String] :name__contains Filter results where name contains value
222
224
  # @option opts [String] :name__icontains Filter results where name contains value
225
+ # @option opts [String] :name__iexact Filter results where name matches value
223
226
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
227
+ # @option opts [String] :name__iregex Filter results where name matches regex value
228
+ # @option opts [String] :name__istartswith Filter results where name starts with value
229
+ # @option opts [String] :name__regex Filter results where name matches regex value
224
230
  # @option opts [String] :name__startswith Filter results where name starts with value
225
231
  # @option opts [Integer] :offset The initial index from which to return the results.
226
232
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;last_refreshed&#x60; - Last refreshed * &#x60;-last_refreshed&#x60; - Last refreshed (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
227
233
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
228
234
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
235
+ # @option opts [String] :q
229
236
  # @option opts [Array<String>] :fields A list of fields to include in the response.
230
237
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
231
238
  # @return [PaginatedfileFileAlternateContentSourceResponseList]
@@ -241,12 +248,17 @@ module PulpFileClient
241
248
  # @option opts [String] :name Filter results where name matches value
242
249
  # @option opts [String] :name__contains Filter results where name contains value
243
250
  # @option opts [String] :name__icontains Filter results where name contains value
251
+ # @option opts [String] :name__iexact Filter results where name matches value
244
252
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
253
+ # @option opts [String] :name__iregex Filter results where name matches regex value
254
+ # @option opts [String] :name__istartswith Filter results where name starts with value
255
+ # @option opts [String] :name__regex Filter results where name matches regex value
245
256
  # @option opts [String] :name__startswith Filter results where name starts with value
246
257
  # @option opts [Integer] :offset The initial index from which to return the results.
247
258
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;last_refreshed&#x60; - Last refreshed * &#x60;-last_refreshed&#x60; - Last refreshed (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
248
259
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
249
260
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
261
+ # @option opts [String] :q
250
262
  # @option opts [Array<String>] :fields A list of fields to include in the response.
251
263
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
252
264
  # @return [Array<(PaginatedfileFileAlternateContentSourceResponseList, Integer, Hash)>] PaginatedfileFileAlternateContentSourceResponseList data, response status code and response headers
@@ -267,12 +279,17 @@ module PulpFileClient
267
279
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
268
280
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
269
281
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
282
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
270
283
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
284
+ query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
285
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
286
+ query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
271
287
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
272
288
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
273
289
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
274
290
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
275
291
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
292
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
276
293
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
277
294
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
278
295
 
@@ -309,6 +326,7 @@ module PulpFileClient
309
326
  return data, status_code, headers
310
327
  end
311
328
 
329
+ # List roles
312
330
  # List roles assigned to this object.
313
331
  # @param file_file_alternate_content_source_href [String]
314
332
  # @param [Hash] opts the optional parameters
@@ -320,6 +338,7 @@ module PulpFileClient
320
338
  data
321
339
  end
322
340
 
341
+ # List roles
323
342
  # List roles assigned to this object.
324
343
  # @param file_file_alternate_content_source_href [String]
325
344
  # @param [Hash] opts the optional parameters
@@ -375,6 +394,7 @@ module PulpFileClient
375
394
  return data, status_code, headers
376
395
  end
377
396
 
397
+ # List user permissions
378
398
  # List permissions available to the current user on this object.
379
399
  # @param file_file_alternate_content_source_href [String]
380
400
  # @param [Hash] opts the optional parameters
@@ -386,6 +406,7 @@ module PulpFileClient
386
406
  data
387
407
  end
388
408
 
409
+ # List user permissions
389
410
  # List permissions available to the current user on this object.
390
411
  # @param file_file_alternate_content_source_href [String]
391
412
  # @param [Hash] opts the optional parameters
@@ -641,6 +662,7 @@ module PulpFileClient
641
662
  return data, status_code, headers
642
663
  end
643
664
 
665
+ # Remove a role
644
666
  # Remove a role for this object from users/groups.
645
667
  # @param file_file_alternate_content_source_href [String]
646
668
  # @param nested_role [NestedRole]
@@ -651,6 +673,7 @@ module PulpFileClient
651
673
  data
652
674
  end
653
675
 
676
+ # Remove a role
654
677
  # Remove a role for this object from users/groups.
655
678
  # @param file_file_alternate_content_source_href [String]
656
679
  # @param nested_role [NestedRole]
@@ -108,6 +108,7 @@ module PulpFileClient
108
108
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
109
109
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
110
110
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
111
+ # @option opts [String] :q
111
112
  # @option opts [String] :relative_path Filter results where relative_path matches value
112
113
  # @option opts [String] :repository_version Repository Version referenced by HREF
113
114
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -129,6 +130,7 @@ module PulpFileClient
129
130
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
130
131
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
131
132
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
133
+ # @option opts [String] :q
132
134
  # @option opts [String] :relative_path Filter results where relative_path matches value
133
135
  # @option opts [String] :repository_version Repository Version referenced by HREF
134
136
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -155,6 +157,7 @@ module PulpFileClient
155
157
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
156
158
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
157
159
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
160
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
158
161
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
159
162
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
160
163
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -19,6 +19,7 @@ module PulpFileClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add a role
22
23
  # Add a role for this object to users/groups.
23
24
  # @param file_file_distribution_href [String]
24
25
  # @param nested_role [NestedRole]
@@ -29,6 +30,7 @@ module PulpFileClient
29
30
  data
30
31
  end
31
32
 
33
+ # Add a role
32
34
  # Add a role for this object to users/groups.
33
35
  # @param file_file_distribution_href [String]
34
36
  # @param nested_role [NestedRole]
@@ -224,13 +226,18 @@ module PulpFileClient
224
226
  # @option opts [String] :name Filter results where name matches value
225
227
  # @option opts [String] :name__contains Filter results where name contains value
226
228
  # @option opts [String] :name__icontains Filter results where name contains value
229
+ # @option opts [String] :name__iexact Filter results where name matches value
227
230
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
231
+ # @option opts [String] :name__iregex Filter results where name matches regex value
232
+ # @option opts [String] :name__istartswith Filter results where name starts with value
233
+ # @option opts [String] :name__regex Filter results where name matches regex value
228
234
  # @option opts [String] :name__startswith Filter results where name starts with value
229
235
  # @option opts [Integer] :offset The initial index from which to return the results.
230
236
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
231
237
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
232
238
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
233
239
  # @option opts [String] :pulp_label_select Filter labels by search string
240
+ # @option opts [String] :q
234
241
  # @option opts [String] :repository Filter results where repository matches value
235
242
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
236
243
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -253,13 +260,18 @@ module PulpFileClient
253
260
  # @option opts [String] :name Filter results where name matches value
254
261
  # @option opts [String] :name__contains Filter results where name contains value
255
262
  # @option opts [String] :name__icontains Filter results where name contains value
263
+ # @option opts [String] :name__iexact Filter results where name matches value
256
264
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
265
+ # @option opts [String] :name__iregex Filter results where name matches regex value
266
+ # @option opts [String] :name__istartswith Filter results where name starts with value
267
+ # @option opts [String] :name__regex Filter results where name matches regex value
257
268
  # @option opts [String] :name__startswith Filter results where name starts with value
258
269
  # @option opts [Integer] :offset The initial index from which to return the results.
259
270
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
260
271
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
261
272
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
262
273
  # @option opts [String] :pulp_label_select Filter labels by search string
274
+ # @option opts [String] :q
263
275
  # @option opts [String] :repository Filter results where repository matches value
264
276
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
265
277
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -287,13 +299,18 @@ module PulpFileClient
287
299
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
288
300
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
289
301
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
302
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
290
303
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
304
+ query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
305
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
306
+ query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
291
307
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
292
308
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
293
309
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
294
310
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
295
311
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
296
312
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
313
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
297
314
  query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
298
315
  query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
299
316
  query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
@@ -333,6 +350,7 @@ module PulpFileClient
333
350
  return data, status_code, headers
334
351
  end
335
352
 
353
+ # List roles
336
354
  # List roles assigned to this object.
337
355
  # @param file_file_distribution_href [String]
338
356
  # @param [Hash] opts the optional parameters
@@ -344,6 +362,7 @@ module PulpFileClient
344
362
  data
345
363
  end
346
364
 
365
+ # List roles
347
366
  # List roles assigned to this object.
348
367
  # @param file_file_distribution_href [String]
349
368
  # @param [Hash] opts the optional parameters
@@ -399,6 +418,7 @@ module PulpFileClient
399
418
  return data, status_code, headers
400
419
  end
401
420
 
421
+ # List user permissions
402
422
  # List permissions available to the current user on this object.
403
423
  # @param file_file_distribution_href [String]
404
424
  # @param [Hash] opts the optional parameters
@@ -410,6 +430,7 @@ module PulpFileClient
410
430
  data
411
431
  end
412
432
 
433
+ # List user permissions
413
434
  # List permissions available to the current user on this object.
414
435
  # @param file_file_distribution_href [String]
415
436
  # @param [Hash] opts the optional parameters
@@ -603,6 +624,7 @@ module PulpFileClient
603
624
  return data, status_code, headers
604
625
  end
605
626
 
627
+ # Remove a role
606
628
  # Remove a role for this object from users/groups.
607
629
  # @param file_file_distribution_href [String]
608
630
  # @param nested_role [NestedRole]
@@ -613,6 +635,7 @@ module PulpFileClient
613
635
  data
614
636
  end
615
637
 
638
+ # Remove a role
616
639
  # Remove a role for this object from users/groups.
617
640
  # @param file_file_distribution_href [String]
618
641
  # @param nested_role [NestedRole]
@@ -671,6 +694,146 @@ module PulpFileClient
671
694
  return data, status_code, headers
672
695
  end
673
696
 
697
+ # Set a label
698
+ # Set a single pulp_label on the object to a specific value or null.
699
+ # @param file_file_distribution_href [String]
700
+ # @param set_label [SetLabel]
701
+ # @param [Hash] opts the optional parameters
702
+ # @return [SetLabelResponse]
703
+ def set_label(file_file_distribution_href, set_label, opts = {})
704
+ data, _status_code, _headers = set_label_with_http_info(file_file_distribution_href, set_label, opts)
705
+ data
706
+ end
707
+
708
+ # Set a label
709
+ # Set a single pulp_label on the object to a specific value or null.
710
+ # @param file_file_distribution_href [String]
711
+ # @param set_label [SetLabel]
712
+ # @param [Hash] opts the optional parameters
713
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
714
+ def set_label_with_http_info(file_file_distribution_href, set_label, opts = {})
715
+ if @api_client.config.debugging
716
+ @api_client.config.logger.debug 'Calling API: DistributionsFileApi.set_label ...'
717
+ end
718
+ # verify the required parameter 'file_file_distribution_href' is set
719
+ if @api_client.config.client_side_validation && file_file_distribution_href.nil?
720
+ fail ArgumentError, "Missing the required parameter 'file_file_distribution_href' when calling DistributionsFileApi.set_label"
721
+ end
722
+ # verify the required parameter 'set_label' is set
723
+ if @api_client.config.client_side_validation && set_label.nil?
724
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling DistributionsFileApi.set_label"
725
+ end
726
+ # resource path
727
+ local_var_path = '{file_file_distribution_href}set_label/'.sub('{' + 'file_file_distribution_href' + '}', CGI.escape(file_file_distribution_href.to_s).gsub('%2F', '/'))
728
+
729
+ # query parameters
730
+ query_params = opts[:query_params] || {}
731
+
732
+ # header parameters
733
+ header_params = opts[:header_params] || {}
734
+ # HTTP header 'Accept' (if needed)
735
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
736
+ # HTTP header 'Content-Type'
737
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
738
+
739
+ # form parameters
740
+ form_params = opts[:form_params] || {}
741
+
742
+ # http body (model)
743
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
744
+
745
+ # return_type
746
+ return_type = opts[:return_type] || 'SetLabelResponse'
747
+
748
+ # auth_names
749
+ auth_names = opts[:auth_names] || ['basicAuth']
750
+
751
+ new_options = opts.merge(
752
+ :header_params => header_params,
753
+ :query_params => query_params,
754
+ :form_params => form_params,
755
+ :body => post_body,
756
+ :auth_names => auth_names,
757
+ :return_type => return_type
758
+ )
759
+
760
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
761
+ if @api_client.config.debugging
762
+ @api_client.config.logger.debug "API called: DistributionsFileApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
763
+ end
764
+ return data, status_code, headers
765
+ end
766
+
767
+ # Unset a label
768
+ # Unset a single pulp_label on the object.
769
+ # @param file_file_distribution_href [String]
770
+ # @param unset_label [UnsetLabel]
771
+ # @param [Hash] opts the optional parameters
772
+ # @return [UnsetLabelResponse]
773
+ def unset_label(file_file_distribution_href, unset_label, opts = {})
774
+ data, _status_code, _headers = unset_label_with_http_info(file_file_distribution_href, unset_label, opts)
775
+ data
776
+ end
777
+
778
+ # Unset a label
779
+ # Unset a single pulp_label on the object.
780
+ # @param file_file_distribution_href [String]
781
+ # @param unset_label [UnsetLabel]
782
+ # @param [Hash] opts the optional parameters
783
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
784
+ def unset_label_with_http_info(file_file_distribution_href, unset_label, opts = {})
785
+ if @api_client.config.debugging
786
+ @api_client.config.logger.debug 'Calling API: DistributionsFileApi.unset_label ...'
787
+ end
788
+ # verify the required parameter 'file_file_distribution_href' is set
789
+ if @api_client.config.client_side_validation && file_file_distribution_href.nil?
790
+ fail ArgumentError, "Missing the required parameter 'file_file_distribution_href' when calling DistributionsFileApi.unset_label"
791
+ end
792
+ # verify the required parameter 'unset_label' is set
793
+ if @api_client.config.client_side_validation && unset_label.nil?
794
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling DistributionsFileApi.unset_label"
795
+ end
796
+ # resource path
797
+ local_var_path = '{file_file_distribution_href}unset_label/'.sub('{' + 'file_file_distribution_href' + '}', CGI.escape(file_file_distribution_href.to_s).gsub('%2F', '/'))
798
+
799
+ # query parameters
800
+ query_params = opts[:query_params] || {}
801
+
802
+ # header parameters
803
+ header_params = opts[:header_params] || {}
804
+ # HTTP header 'Accept' (if needed)
805
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
806
+ # HTTP header 'Content-Type'
807
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
808
+
809
+ # form parameters
810
+ form_params = opts[:form_params] || {}
811
+
812
+ # http body (model)
813
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
814
+
815
+ # return_type
816
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
817
+
818
+ # auth_names
819
+ auth_names = opts[:auth_names] || ['basicAuth']
820
+
821
+ new_options = opts.merge(
822
+ :header_params => header_params,
823
+ :query_params => query_params,
824
+ :form_params => form_params,
825
+ :body => post_body,
826
+ :auth_names => auth_names,
827
+ :return_type => return_type
828
+ )
829
+
830
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
831
+ if @api_client.config.debugging
832
+ @api_client.config.logger.debug "API called: DistributionsFileApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
833
+ end
834
+ return data, status_code, headers
835
+ end
836
+
674
837
  # Update a file distribution
675
838
  # Trigger an asynchronous update task
676
839
  # @param file_file_distribution_href [String]
@@ -19,6 +19,7 @@ module PulpFileClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add a role
22
23
  # Add a role for this object to users/groups.
23
24
  # @param file_file_publication_href [String]
24
25
  # @param nested_role [NestedRole]
@@ -29,6 +30,7 @@ module PulpFileClient
29
30
  data
30
31
  end
31
32
 
33
+ # Add a role
32
34
  # Add a role for this object to users/groups.
33
35
  # @param file_file_publication_href [String]
34
36
  # @param nested_role [NestedRole]
@@ -227,6 +229,7 @@ module PulpFileClient
227
229
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
228
230
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
229
231
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
232
+ # @option opts [String] :q
230
233
  # @option opts [String] :repository Repository referenced by HREF
231
234
  # @option opts [String] :repository_version Repository Version referenced by HREF
232
235
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -253,6 +256,7 @@ module PulpFileClient
253
256
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
254
257
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
255
258
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
259
+ # @option opts [String] :q
256
260
  # @option opts [String] :repository Repository referenced by HREF
257
261
  # @option opts [String] :repository_version Repository Version referenced by HREF
258
262
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -284,6 +288,7 @@ module PulpFileClient
284
288
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
285
289
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
286
290
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
291
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
287
292
  query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
288
293
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
289
294
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
@@ -322,6 +327,7 @@ module PulpFileClient
322
327
  return data, status_code, headers
323
328
  end
324
329
 
330
+ # List roles
325
331
  # List roles assigned to this object.
326
332
  # @param file_file_publication_href [String]
327
333
  # @param [Hash] opts the optional parameters
@@ -333,6 +339,7 @@ module PulpFileClient
333
339
  data
334
340
  end
335
341
 
342
+ # List roles
336
343
  # List roles assigned to this object.
337
344
  # @param file_file_publication_href [String]
338
345
  # @param [Hash] opts the optional parameters
@@ -388,6 +395,7 @@ module PulpFileClient
388
395
  return data, status_code, headers
389
396
  end
390
397
 
398
+ # List user permissions
391
399
  # List permissions available to the current user on this object.
392
400
  # @param file_file_publication_href [String]
393
401
  # @param [Hash] opts the optional parameters
@@ -399,6 +407,7 @@ module PulpFileClient
399
407
  data
400
408
  end
401
409
 
410
+ # List user permissions
402
411
  # List permissions available to the current user on this object.
403
412
  # @param file_file_publication_href [String]
404
413
  # @param [Hash] opts the optional parameters
@@ -522,6 +531,7 @@ module PulpFileClient
522
531
  return data, status_code, headers
523
532
  end
524
533
 
534
+ # Remove a role
525
535
  # Remove a role for this object from users/groups.
526
536
  # @param file_file_publication_href [String]
527
537
  # @param nested_role [NestedRole]
@@ -532,6 +542,7 @@ module PulpFileClient
532
542
  data
533
543
  end
534
544
 
545
+ # Remove a role
535
546
  # Remove a role for this object from users/groups.
536
547
  # @param file_file_publication_href [String]
537
548
  # @param nested_role [NestedRole]