pulp_rpm_client 3.22.3 → 3.22.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +42 -29
  3. data/docs/AcsRpmApi.md +19 -9
  4. data/docs/ContentAdvisoriesApi.md +3 -1
  5. data/docs/ContentDistributionTreesApi.md +3 -1
  6. data/docs/ContentModulemdDefaultsApi.md +3 -1
  7. data/docs/ContentModulemdObsoletesApi.md +3 -1
  8. data/docs/ContentModulemdsApi.md +3 -1
  9. data/docs/ContentPackagecategoriesApi.md +3 -1
  10. data/docs/ContentPackageenvironmentsApi.md +3 -1
  11. data/docs/ContentPackagegroupsApi.md +3 -1
  12. data/docs/ContentPackagelangpacksApi.md +3 -1
  13. data/docs/ContentPackagesApi.md +3 -1
  14. data/docs/ContentRepoMetadataFilesApi.md +3 -1
  15. data/docs/DistributionsRpmApi.md +132 -10
  16. data/docs/PublicationsRpmApi.md +15 -9
  17. data/docs/RemotesRpmApi.md +131 -9
  18. data/docs/RemotesUlnApi.md +131 -9
  19. data/docs/RepositoriesRpmApi.md +132 -10
  20. data/docs/RepositoriesRpmVersionsApi.md +3 -1
  21. data/docs/RpmCompsApi.md +1 -1
  22. data/docs/RpmCopyApi.md +1 -1
  23. data/docs/SetLabel.md +19 -0
  24. data/docs/SetLabelResponse.md +19 -0
  25. data/docs/UnsetLabel.md +17 -0
  26. data/docs/UnsetLabelResponse.md +19 -0
  27. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +17 -0
  28. data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -0
  29. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +3 -0
  30. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +3 -0
  31. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +3 -0
  32. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +3 -0
  33. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +3 -0
  34. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +3 -0
  35. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +3 -0
  36. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +3 -0
  37. data/lib/pulp_rpm_client/api/content_packages_api.rb +3 -0
  38. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +3 -0
  39. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +157 -0
  40. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +11 -0
  41. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +157 -0
  42. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +157 -0
  43. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +157 -0
  44. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +3 -0
  45. data/lib/pulp_rpm_client/configuration.rb +2 -2
  46. data/lib/pulp_rpm_client/models/set_label.rb +252 -0
  47. data/lib/pulp_rpm_client/models/set_label_response.rb +243 -0
  48. data/lib/pulp_rpm_client/models/unset_label.rb +242 -0
  49. data/lib/pulp_rpm_client/models/unset_label_response.rb +242 -0
  50. data/lib/pulp_rpm_client/version.rb +1 -1
  51. data/lib/pulp_rpm_client.rb +4 -0
  52. data/spec/api/acs_rpm_api_spec.rb +7 -0
  53. data/spec/api/content_advisories_api_spec.rb +1 -0
  54. data/spec/api/content_distribution_trees_api_spec.rb +1 -0
  55. data/spec/api/content_modulemd_defaults_api_spec.rb +1 -0
  56. data/spec/api/content_modulemd_obsoletes_api_spec.rb +1 -0
  57. data/spec/api/content_modulemds_api_spec.rb +1 -0
  58. data/spec/api/content_packagecategories_api_spec.rb +1 -0
  59. data/spec/api/content_packageenvironments_api_spec.rb +1 -0
  60. data/spec/api/content_packagegroups_api_spec.rb +1 -0
  61. data/spec/api/content_packagelangpacks_api_spec.rb +1 -0
  62. data/spec/api/content_packages_api_spec.rb +1 -0
  63. data/spec/api/content_repo_metadata_files_api_spec.rb +1 -0
  64. data/spec/api/distributions_rpm_api_spec.rb +33 -0
  65. data/spec/api/publications_rpm_api_spec.rb +5 -0
  66. data/spec/api/remotes_rpm_api_spec.rb +33 -0
  67. data/spec/api/remotes_uln_api_spec.rb +33 -0
  68. data/spec/api/repositories_rpm_api_spec.rb +33 -0
  69. data/spec/api/repositories_rpm_versions_api_spec.rb +1 -0
  70. data/spec/configuration_spec.rb +3 -3
  71. data/spec/models/set_label_response_spec.rb +47 -0
  72. data/spec/models/set_label_spec.rb +47 -0
  73. data/spec/models/unset_label_response_spec.rb +47 -0
  74. data/spec/models/unset_label_spec.rb +41 -0
  75. metadata +97 -81
@@ -19,6 +19,7 @@ module PulpRpmClient
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 rpm_rpm_distribution_href [String]
24
25
  # @param nested_role [NestedRole]
@@ -29,6 +30,7 @@ module PulpRpmClient
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 rpm_rpm_distribution_href [String]
34
36
  # @param nested_role [NestedRole]
@@ -224,13 +226,16 @@ module PulpRpmClient
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__istartswith Filter results where name starts with value
228
232
  # @option opts [String] :name__startswith Filter results where name starts with value
229
233
  # @option opts [Integer] :offset The initial index from which to return the results.
230
234
  # @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
235
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
232
236
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
233
237
  # @option opts [String] :pulp_label_select Filter labels by search string
238
+ # @option opts [String] :q
234
239
  # @option opts [String] :repository Filter results where repository matches value
235
240
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
236
241
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -253,13 +258,16 @@ module PulpRpmClient
253
258
  # @option opts [String] :name Filter results where name matches value
254
259
  # @option opts [String] :name__contains Filter results where name contains value
255
260
  # @option opts [String] :name__icontains Filter results where name contains value
261
+ # @option opts [String] :name__iexact Filter results where name matches value
256
262
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
263
+ # @option opts [String] :name__istartswith Filter results where name starts with value
257
264
  # @option opts [String] :name__startswith Filter results where name starts with value
258
265
  # @option opts [Integer] :offset The initial index from which to return the results.
259
266
  # @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
267
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
261
268
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
262
269
  # @option opts [String] :pulp_label_select Filter labels by search string
270
+ # @option opts [String] :q
263
271
  # @option opts [String] :repository Filter results where repository matches value
264
272
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
265
273
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -287,13 +295,16 @@ module PulpRpmClient
287
295
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
288
296
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
289
297
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
298
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
290
299
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
300
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
291
301
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
292
302
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
293
303
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
294
304
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
295
305
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
296
306
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
307
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
297
308
  query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
298
309
  query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
299
310
  query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
@@ -333,6 +344,7 @@ module PulpRpmClient
333
344
  return data, status_code, headers
334
345
  end
335
346
 
347
+ # List roles
336
348
  # List roles assigned to this object.
337
349
  # @param rpm_rpm_distribution_href [String]
338
350
  # @param [Hash] opts the optional parameters
@@ -344,6 +356,7 @@ module PulpRpmClient
344
356
  data
345
357
  end
346
358
 
359
+ # List roles
347
360
  # List roles assigned to this object.
348
361
  # @param rpm_rpm_distribution_href [String]
349
362
  # @param [Hash] opts the optional parameters
@@ -399,6 +412,7 @@ module PulpRpmClient
399
412
  return data, status_code, headers
400
413
  end
401
414
 
415
+ # List user permissions
402
416
  # List permissions available to the current user on this object.
403
417
  # @param rpm_rpm_distribution_href [String]
404
418
  # @param [Hash] opts the optional parameters
@@ -410,6 +424,7 @@ module PulpRpmClient
410
424
  data
411
425
  end
412
426
 
427
+ # List user permissions
413
428
  # List permissions available to the current user on this object.
414
429
  # @param rpm_rpm_distribution_href [String]
415
430
  # @param [Hash] opts the optional parameters
@@ -603,6 +618,7 @@ module PulpRpmClient
603
618
  return data, status_code, headers
604
619
  end
605
620
 
621
+ # Remove a role
606
622
  # Remove a role for this object from users/groups.
607
623
  # @param rpm_rpm_distribution_href [String]
608
624
  # @param nested_role [NestedRole]
@@ -613,6 +629,7 @@ module PulpRpmClient
613
629
  data
614
630
  end
615
631
 
632
+ # Remove a role
616
633
  # Remove a role for this object from users/groups.
617
634
  # @param rpm_rpm_distribution_href [String]
618
635
  # @param nested_role [NestedRole]
@@ -671,6 +688,146 @@ module PulpRpmClient
671
688
  return data, status_code, headers
672
689
  end
673
690
 
691
+ # Set a label
692
+ # Set a single pulp_label on the object to a specific value or null.
693
+ # @param rpm_rpm_distribution_href [String]
694
+ # @param set_label [SetLabel]
695
+ # @param [Hash] opts the optional parameters
696
+ # @return [SetLabelResponse]
697
+ def set_label(rpm_rpm_distribution_href, set_label, opts = {})
698
+ data, _status_code, _headers = set_label_with_http_info(rpm_rpm_distribution_href, set_label, opts)
699
+ data
700
+ end
701
+
702
+ # Set a label
703
+ # Set a single pulp_label on the object to a specific value or null.
704
+ # @param rpm_rpm_distribution_href [String]
705
+ # @param set_label [SetLabel]
706
+ # @param [Hash] opts the optional parameters
707
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
708
+ def set_label_with_http_info(rpm_rpm_distribution_href, set_label, opts = {})
709
+ if @api_client.config.debugging
710
+ @api_client.config.logger.debug 'Calling API: DistributionsRpmApi.set_label ...'
711
+ end
712
+ # verify the required parameter 'rpm_rpm_distribution_href' is set
713
+ if @api_client.config.client_side_validation && rpm_rpm_distribution_href.nil?
714
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_distribution_href' when calling DistributionsRpmApi.set_label"
715
+ end
716
+ # verify the required parameter 'set_label' is set
717
+ if @api_client.config.client_side_validation && set_label.nil?
718
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling DistributionsRpmApi.set_label"
719
+ end
720
+ # resource path
721
+ local_var_path = '{rpm_rpm_distribution_href}set_label/'.sub('{' + 'rpm_rpm_distribution_href' + '}', CGI.escape(rpm_rpm_distribution_href.to_s).gsub('%2F', '/'))
722
+
723
+ # query parameters
724
+ query_params = opts[:query_params] || {}
725
+
726
+ # header parameters
727
+ header_params = opts[:header_params] || {}
728
+ # HTTP header 'Accept' (if needed)
729
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
730
+ # HTTP header 'Content-Type'
731
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
732
+
733
+ # form parameters
734
+ form_params = opts[:form_params] || {}
735
+
736
+ # http body (model)
737
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
738
+
739
+ # return_type
740
+ return_type = opts[:return_type] || 'SetLabelResponse'
741
+
742
+ # auth_names
743
+ auth_names = opts[:auth_names] || ['basicAuth']
744
+
745
+ new_options = opts.merge(
746
+ :header_params => header_params,
747
+ :query_params => query_params,
748
+ :form_params => form_params,
749
+ :body => post_body,
750
+ :auth_names => auth_names,
751
+ :return_type => return_type
752
+ )
753
+
754
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
755
+ if @api_client.config.debugging
756
+ @api_client.config.logger.debug "API called: DistributionsRpmApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
757
+ end
758
+ return data, status_code, headers
759
+ end
760
+
761
+ # Unset a label
762
+ # Unset a single pulp_label on the object.
763
+ # @param rpm_rpm_distribution_href [String]
764
+ # @param unset_label [UnsetLabel]
765
+ # @param [Hash] opts the optional parameters
766
+ # @return [UnsetLabelResponse]
767
+ def unset_label(rpm_rpm_distribution_href, unset_label, opts = {})
768
+ data, _status_code, _headers = unset_label_with_http_info(rpm_rpm_distribution_href, unset_label, opts)
769
+ data
770
+ end
771
+
772
+ # Unset a label
773
+ # Unset a single pulp_label on the object.
774
+ # @param rpm_rpm_distribution_href [String]
775
+ # @param unset_label [UnsetLabel]
776
+ # @param [Hash] opts the optional parameters
777
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
778
+ def unset_label_with_http_info(rpm_rpm_distribution_href, unset_label, opts = {})
779
+ if @api_client.config.debugging
780
+ @api_client.config.logger.debug 'Calling API: DistributionsRpmApi.unset_label ...'
781
+ end
782
+ # verify the required parameter 'rpm_rpm_distribution_href' is set
783
+ if @api_client.config.client_side_validation && rpm_rpm_distribution_href.nil?
784
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_distribution_href' when calling DistributionsRpmApi.unset_label"
785
+ end
786
+ # verify the required parameter 'unset_label' is set
787
+ if @api_client.config.client_side_validation && unset_label.nil?
788
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling DistributionsRpmApi.unset_label"
789
+ end
790
+ # resource path
791
+ local_var_path = '{rpm_rpm_distribution_href}unset_label/'.sub('{' + 'rpm_rpm_distribution_href' + '}', CGI.escape(rpm_rpm_distribution_href.to_s).gsub('%2F', '/'))
792
+
793
+ # query parameters
794
+ query_params = opts[:query_params] || {}
795
+
796
+ # header parameters
797
+ header_params = opts[:header_params] || {}
798
+ # HTTP header 'Accept' (if needed)
799
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
800
+ # HTTP header 'Content-Type'
801
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
802
+
803
+ # form parameters
804
+ form_params = opts[:form_params] || {}
805
+
806
+ # http body (model)
807
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
808
+
809
+ # return_type
810
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
811
+
812
+ # auth_names
813
+ auth_names = opts[:auth_names] || ['basicAuth']
814
+
815
+ new_options = opts.merge(
816
+ :header_params => header_params,
817
+ :query_params => query_params,
818
+ :form_params => form_params,
819
+ :body => post_body,
820
+ :auth_names => auth_names,
821
+ :return_type => return_type
822
+ )
823
+
824
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
825
+ if @api_client.config.debugging
826
+ @api_client.config.logger.debug "API called: DistributionsRpmApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
827
+ end
828
+ return data, status_code, headers
829
+ end
830
+
674
831
  # Update a rpm distribution
675
832
  # Trigger an asynchronous update task
676
833
  # @param rpm_rpm_distribution_href [String]
@@ -19,6 +19,7 @@ module PulpRpmClient
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 rpm_rpm_publication_href [String]
24
25
  # @param nested_role [NestedRole]
@@ -29,6 +30,7 @@ module PulpRpmClient
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 rpm_rpm_publication_href [String]
34
36
  # @param nested_role [NestedRole]
@@ -227,6 +229,7 @@ module PulpRpmClient
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 PulpRpmClient
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 PulpRpmClient
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 PulpRpmClient
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 rpm_rpm_publication_href [String]
327
333
  # @param [Hash] opts the optional parameters
@@ -333,6 +339,7 @@ module PulpRpmClient
333
339
  data
334
340
  end
335
341
 
342
+ # List roles
336
343
  # List roles assigned to this object.
337
344
  # @param rpm_rpm_publication_href [String]
338
345
  # @param [Hash] opts the optional parameters
@@ -388,6 +395,7 @@ module PulpRpmClient
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 rpm_rpm_publication_href [String]
393
401
  # @param [Hash] opts the optional parameters
@@ -399,6 +407,7 @@ module PulpRpmClient
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 rpm_rpm_publication_href [String]
404
413
  # @param [Hash] opts the optional parameters
@@ -522,6 +531,7 @@ module PulpRpmClient
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 rpm_rpm_publication_href [String]
527
537
  # @param nested_role [NestedRole]
@@ -532,6 +542,7 @@ module PulpRpmClient
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 rpm_rpm_publication_href [String]
537
548
  # @param nested_role [NestedRole]
@@ -19,6 +19,7 @@ module PulpRpmClient
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 rpm_rpm_remote_href [String]
24
25
  # @param nested_role [NestedRole]
@@ -29,6 +30,7 @@ module PulpRpmClient
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 rpm_rpm_remote_href [String]
34
36
  # @param nested_role [NestedRole]
@@ -220,7 +222,9 @@ module PulpRpmClient
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__istartswith Filter results where name starts with value
224
228
  # @option opts [String] :name__startswith Filter results where name starts with value
225
229
  # @option opts [Integer] :offset The initial index from which to return the results.
226
230
  # @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;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -233,6 +237,7 @@ module PulpRpmClient
233
237
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
234
238
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
235
239
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
240
+ # @option opts [String] :q
236
241
  # @option opts [Array<String>] :fields A list of fields to include in the response.
237
242
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
238
243
  # @return [PaginatedrpmRpmRemoteResponseList]
@@ -248,7 +253,9 @@ module PulpRpmClient
248
253
  # @option opts [String] :name Filter results where name matches value
249
254
  # @option opts [String] :name__contains Filter results where name contains value
250
255
  # @option opts [String] :name__icontains Filter results where name contains value
256
+ # @option opts [String] :name__iexact Filter results where name matches value
251
257
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
258
+ # @option opts [String] :name__istartswith Filter results where name starts with value
252
259
  # @option opts [String] :name__startswith Filter results where name starts with value
253
260
  # @option opts [Integer] :offset The initial index from which to return the results.
254
261
  # @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;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -261,6 +268,7 @@ module PulpRpmClient
261
268
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
262
269
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
263
270
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
271
+ # @option opts [String] :q
264
272
  # @option opts [Array<String>] :fields A list of fields to include in the response.
265
273
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
266
274
  # @return [Array<(PaginatedrpmRpmRemoteResponseList, Integer, Hash)>] PaginatedrpmRpmRemoteResponseList data, response status code and response headers
@@ -281,7 +289,9 @@ module PulpRpmClient
281
289
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
282
290
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
283
291
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
292
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
284
293
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
294
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
285
295
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
286
296
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
287
297
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
@@ -294,6 +304,7 @@ module PulpRpmClient
294
304
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
295
305
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
296
306
  query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
307
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
297
308
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
298
309
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
299
310
 
@@ -330,6 +341,7 @@ module PulpRpmClient
330
341
  return data, status_code, headers
331
342
  end
332
343
 
344
+ # List roles
333
345
  # List roles assigned to this object.
334
346
  # @param rpm_rpm_remote_href [String]
335
347
  # @param [Hash] opts the optional parameters
@@ -341,6 +353,7 @@ module PulpRpmClient
341
353
  data
342
354
  end
343
355
 
356
+ # List roles
344
357
  # List roles assigned to this object.
345
358
  # @param rpm_rpm_remote_href [String]
346
359
  # @param [Hash] opts the optional parameters
@@ -396,6 +409,7 @@ module PulpRpmClient
396
409
  return data, status_code, headers
397
410
  end
398
411
 
412
+ # List user permissions
399
413
  # List permissions available to the current user on this object.
400
414
  # @param rpm_rpm_remote_href [String]
401
415
  # @param [Hash] opts the optional parameters
@@ -407,6 +421,7 @@ module PulpRpmClient
407
421
  data
408
422
  end
409
423
 
424
+ # List user permissions
410
425
  # List permissions available to the current user on this object.
411
426
  # @param rpm_rpm_remote_href [String]
412
427
  # @param [Hash] opts the optional parameters
@@ -600,6 +615,7 @@ module PulpRpmClient
600
615
  return data, status_code, headers
601
616
  end
602
617
 
618
+ # Remove a role
603
619
  # Remove a role for this object from users/groups.
604
620
  # @param rpm_rpm_remote_href [String]
605
621
  # @param nested_role [NestedRole]
@@ -610,6 +626,7 @@ module PulpRpmClient
610
626
  data
611
627
  end
612
628
 
629
+ # Remove a role
613
630
  # Remove a role for this object from users/groups.
614
631
  # @param rpm_rpm_remote_href [String]
615
632
  # @param nested_role [NestedRole]
@@ -668,6 +685,146 @@ module PulpRpmClient
668
685
  return data, status_code, headers
669
686
  end
670
687
 
688
+ # Set a label
689
+ # Set a single pulp_label on the object to a specific value or null.
690
+ # @param rpm_rpm_remote_href [String]
691
+ # @param set_label [SetLabel]
692
+ # @param [Hash] opts the optional parameters
693
+ # @return [SetLabelResponse]
694
+ def set_label(rpm_rpm_remote_href, set_label, opts = {})
695
+ data, _status_code, _headers = set_label_with_http_info(rpm_rpm_remote_href, set_label, opts)
696
+ data
697
+ end
698
+
699
+ # Set a label
700
+ # Set a single pulp_label on the object to a specific value or null.
701
+ # @param rpm_rpm_remote_href [String]
702
+ # @param set_label [SetLabel]
703
+ # @param [Hash] opts the optional parameters
704
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
705
+ def set_label_with_http_info(rpm_rpm_remote_href, set_label, opts = {})
706
+ if @api_client.config.debugging
707
+ @api_client.config.logger.debug 'Calling API: RemotesRpmApi.set_label ...'
708
+ end
709
+ # verify the required parameter 'rpm_rpm_remote_href' is set
710
+ if @api_client.config.client_side_validation && rpm_rpm_remote_href.nil?
711
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_remote_href' when calling RemotesRpmApi.set_label"
712
+ end
713
+ # verify the required parameter 'set_label' is set
714
+ if @api_client.config.client_side_validation && set_label.nil?
715
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesRpmApi.set_label"
716
+ end
717
+ # resource path
718
+ local_var_path = '{rpm_rpm_remote_href}set_label/'.sub('{' + 'rpm_rpm_remote_href' + '}', CGI.escape(rpm_rpm_remote_href.to_s).gsub('%2F', '/'))
719
+
720
+ # query parameters
721
+ query_params = opts[:query_params] || {}
722
+
723
+ # header parameters
724
+ header_params = opts[:header_params] || {}
725
+ # HTTP header 'Accept' (if needed)
726
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
727
+ # HTTP header 'Content-Type'
728
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
729
+
730
+ # form parameters
731
+ form_params = opts[:form_params] || {}
732
+
733
+ # http body (model)
734
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
735
+
736
+ # return_type
737
+ return_type = opts[:return_type] || 'SetLabelResponse'
738
+
739
+ # auth_names
740
+ auth_names = opts[:auth_names] || ['basicAuth']
741
+
742
+ new_options = opts.merge(
743
+ :header_params => header_params,
744
+ :query_params => query_params,
745
+ :form_params => form_params,
746
+ :body => post_body,
747
+ :auth_names => auth_names,
748
+ :return_type => return_type
749
+ )
750
+
751
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
752
+ if @api_client.config.debugging
753
+ @api_client.config.logger.debug "API called: RemotesRpmApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
754
+ end
755
+ return data, status_code, headers
756
+ end
757
+
758
+ # Unset a label
759
+ # Unset a single pulp_label on the object.
760
+ # @param rpm_rpm_remote_href [String]
761
+ # @param unset_label [UnsetLabel]
762
+ # @param [Hash] opts the optional parameters
763
+ # @return [UnsetLabelResponse]
764
+ def unset_label(rpm_rpm_remote_href, unset_label, opts = {})
765
+ data, _status_code, _headers = unset_label_with_http_info(rpm_rpm_remote_href, unset_label, opts)
766
+ data
767
+ end
768
+
769
+ # Unset a label
770
+ # Unset a single pulp_label on the object.
771
+ # @param rpm_rpm_remote_href [String]
772
+ # @param unset_label [UnsetLabel]
773
+ # @param [Hash] opts the optional parameters
774
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
775
+ def unset_label_with_http_info(rpm_rpm_remote_href, unset_label, opts = {})
776
+ if @api_client.config.debugging
777
+ @api_client.config.logger.debug 'Calling API: RemotesRpmApi.unset_label ...'
778
+ end
779
+ # verify the required parameter 'rpm_rpm_remote_href' is set
780
+ if @api_client.config.client_side_validation && rpm_rpm_remote_href.nil?
781
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_remote_href' when calling RemotesRpmApi.unset_label"
782
+ end
783
+ # verify the required parameter 'unset_label' is set
784
+ if @api_client.config.client_side_validation && unset_label.nil?
785
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesRpmApi.unset_label"
786
+ end
787
+ # resource path
788
+ local_var_path = '{rpm_rpm_remote_href}unset_label/'.sub('{' + 'rpm_rpm_remote_href' + '}', CGI.escape(rpm_rpm_remote_href.to_s).gsub('%2F', '/'))
789
+
790
+ # query parameters
791
+ query_params = opts[:query_params] || {}
792
+
793
+ # header parameters
794
+ header_params = opts[:header_params] || {}
795
+ # HTTP header 'Accept' (if needed)
796
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
797
+ # HTTP header 'Content-Type'
798
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
799
+
800
+ # form parameters
801
+ form_params = opts[:form_params] || {}
802
+
803
+ # http body (model)
804
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
805
+
806
+ # return_type
807
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
808
+
809
+ # auth_names
810
+ auth_names = opts[:auth_names] || ['basicAuth']
811
+
812
+ new_options = opts.merge(
813
+ :header_params => header_params,
814
+ :query_params => query_params,
815
+ :form_params => form_params,
816
+ :body => post_body,
817
+ :auth_names => auth_names,
818
+ :return_type => return_type
819
+ )
820
+
821
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
822
+ if @api_client.config.debugging
823
+ @api_client.config.logger.debug "API called: RemotesRpmApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
824
+ end
825
+ return data, status_code, headers
826
+ end
827
+
671
828
  # Update a rpm remote
672
829
  # Trigger an asynchronous update task
673
830
  # @param rpm_rpm_remote_href [String]