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_uln_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_uln_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 [PaginatedrpmUlnRemoteResponseList]
@@ -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<(PaginatedrpmUlnRemoteResponseList, Integer, Hash)>] PaginatedrpmUlnRemoteResponseList 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_uln_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_uln_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_uln_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_uln_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_uln_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_uln_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_uln_remote_href [String]
691
+ # @param set_label [SetLabel]
692
+ # @param [Hash] opts the optional parameters
693
+ # @return [SetLabelResponse]
694
+ def set_label(rpm_uln_remote_href, set_label, opts = {})
695
+ data, _status_code, _headers = set_label_with_http_info(rpm_uln_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_uln_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_uln_remote_href, set_label, opts = {})
706
+ if @api_client.config.debugging
707
+ @api_client.config.logger.debug 'Calling API: RemotesUlnApi.set_label ...'
708
+ end
709
+ # verify the required parameter 'rpm_uln_remote_href' is set
710
+ if @api_client.config.client_side_validation && rpm_uln_remote_href.nil?
711
+ fail ArgumentError, "Missing the required parameter 'rpm_uln_remote_href' when calling RemotesUlnApi.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 RemotesUlnApi.set_label"
716
+ end
717
+ # resource path
718
+ local_var_path = '{rpm_uln_remote_href}set_label/'.sub('{' + 'rpm_uln_remote_href' + '}', CGI.escape(rpm_uln_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: RemotesUlnApi#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_uln_remote_href [String]
761
+ # @param unset_label [UnsetLabel]
762
+ # @param [Hash] opts the optional parameters
763
+ # @return [UnsetLabelResponse]
764
+ def unset_label(rpm_uln_remote_href, unset_label, opts = {})
765
+ data, _status_code, _headers = unset_label_with_http_info(rpm_uln_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_uln_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_uln_remote_href, unset_label, opts = {})
776
+ if @api_client.config.debugging
777
+ @api_client.config.logger.debug 'Calling API: RemotesUlnApi.unset_label ...'
778
+ end
779
+ # verify the required parameter 'rpm_uln_remote_href' is set
780
+ if @api_client.config.client_side_validation && rpm_uln_remote_href.nil?
781
+ fail ArgumentError, "Missing the required parameter 'rpm_uln_remote_href' when calling RemotesUlnApi.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 RemotesUlnApi.unset_label"
786
+ end
787
+ # resource path
788
+ local_var_path = '{rpm_uln_remote_href}unset_label/'.sub('{' + 'rpm_uln_remote_href' + '}', CGI.escape(rpm_uln_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: RemotesUlnApi#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 an uln remote
672
829
  # Trigger an asynchronous update task
673
830
  # @param rpm_uln_remote_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_repository_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_repository_href [String]
34
36
  # @param nested_role [NestedRole]
@@ -221,13 +223,16 @@ module PulpRpmClient
221
223
  # @option opts [String] :name Filter results where name matches value
222
224
  # @option opts [String] :name__contains Filter results where name contains value
223
225
  # @option opts [String] :name__icontains Filter results where name contains value
226
+ # @option opts [String] :name__iexact Filter results where name matches value
224
227
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
228
+ # @option opts [String] :name__istartswith Filter results where name starts with value
225
229
  # @option opts [String] :name__startswith Filter results where name starts with value
226
230
  # @option opts [Integer] :offset The initial index from which to return the results.
227
231
  # @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;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
228
232
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
229
233
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
230
234
  # @option opts [String] :pulp_label_select Filter labels by search string
235
+ # @option opts [String] :q
231
236
  # @option opts [String] :remote Foreign Key referenced by HREF
232
237
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
233
238
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -254,13 +259,16 @@ module PulpRpmClient
254
259
  # @option opts [String] :name Filter results where name matches value
255
260
  # @option opts [String] :name__contains Filter results where name contains value
256
261
  # @option opts [String] :name__icontains Filter results where name contains value
262
+ # @option opts [String] :name__iexact Filter results where name matches value
257
263
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
264
+ # @option opts [String] :name__istartswith Filter results where name starts with value
258
265
  # @option opts [String] :name__startswith Filter results where name starts with value
259
266
  # @option opts [Integer] :offset The initial index from which to return the results.
260
267
  # @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;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
261
268
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
262
269
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
263
270
  # @option opts [String] :pulp_label_select Filter labels by search string
271
+ # @option opts [String] :q
264
272
  # @option opts [String] :remote Foreign Key referenced by HREF
265
273
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
266
274
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -292,13 +300,16 @@ module PulpRpmClient
292
300
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
293
301
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
294
302
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
303
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
295
304
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
305
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
296
306
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
297
307
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
298
308
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
299
309
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
300
310
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
301
311
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
312
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
302
313
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
303
314
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
304
315
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
@@ -345,6 +356,7 @@ module PulpRpmClient
345
356
  return data, status_code, headers
346
357
  end
347
358
 
359
+ # List roles
348
360
  # List roles assigned to this object.
349
361
  # @param rpm_rpm_repository_href [String]
350
362
  # @param [Hash] opts the optional parameters
@@ -356,6 +368,7 @@ module PulpRpmClient
356
368
  data
357
369
  end
358
370
 
371
+ # List roles
359
372
  # List roles assigned to this object.
360
373
  # @param rpm_rpm_repository_href [String]
361
374
  # @param [Hash] opts the optional parameters
@@ -481,6 +494,7 @@ module PulpRpmClient
481
494
  return data, status_code, headers
482
495
  end
483
496
 
497
+ # List user permissions
484
498
  # List permissions available to the current user on this object.
485
499
  # @param rpm_rpm_repository_href [String]
486
500
  # @param [Hash] opts the optional parameters
@@ -492,6 +506,7 @@ module PulpRpmClient
492
506
  data
493
507
  end
494
508
 
509
+ # List user permissions
495
510
  # List permissions available to the current user on this object.
496
511
  # @param rpm_rpm_repository_href [String]
497
512
  # @param [Hash] opts the optional parameters
@@ -685,6 +700,7 @@ module PulpRpmClient
685
700
  return data, status_code, headers
686
701
  end
687
702
 
703
+ # Remove a role
688
704
  # Remove a role for this object from users/groups.
689
705
  # @param rpm_rpm_repository_href [String]
690
706
  # @param nested_role [NestedRole]
@@ -695,6 +711,7 @@ module PulpRpmClient
695
711
  data
696
712
  end
697
713
 
714
+ # Remove a role
698
715
  # Remove a role for this object from users/groups.
699
716
  # @param rpm_rpm_repository_href [String]
700
717
  # @param nested_role [NestedRole]
@@ -753,6 +770,76 @@ module PulpRpmClient
753
770
  return data, status_code, headers
754
771
  end
755
772
 
773
+ # Set a label
774
+ # Set a single pulp_label on the object to a specific value or null.
775
+ # @param rpm_rpm_repository_href [String]
776
+ # @param set_label [SetLabel]
777
+ # @param [Hash] opts the optional parameters
778
+ # @return [SetLabelResponse]
779
+ def set_label(rpm_rpm_repository_href, set_label, opts = {})
780
+ data, _status_code, _headers = set_label_with_http_info(rpm_rpm_repository_href, set_label, opts)
781
+ data
782
+ end
783
+
784
+ # Set a label
785
+ # Set a single pulp_label on the object to a specific value or null.
786
+ # @param rpm_rpm_repository_href [String]
787
+ # @param set_label [SetLabel]
788
+ # @param [Hash] opts the optional parameters
789
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
790
+ def set_label_with_http_info(rpm_rpm_repository_href, set_label, opts = {})
791
+ if @api_client.config.debugging
792
+ @api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.set_label ...'
793
+ end
794
+ # verify the required parameter 'rpm_rpm_repository_href' is set
795
+ if @api_client.config.client_side_validation && rpm_rpm_repository_href.nil?
796
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_repository_href' when calling RepositoriesRpmApi.set_label"
797
+ end
798
+ # verify the required parameter 'set_label' is set
799
+ if @api_client.config.client_side_validation && set_label.nil?
800
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesRpmApi.set_label"
801
+ end
802
+ # resource path
803
+ local_var_path = '{rpm_rpm_repository_href}set_label/'.sub('{' + 'rpm_rpm_repository_href' + '}', CGI.escape(rpm_rpm_repository_href.to_s).gsub('%2F', '/'))
804
+
805
+ # query parameters
806
+ query_params = opts[:query_params] || {}
807
+
808
+ # header parameters
809
+ header_params = opts[:header_params] || {}
810
+ # HTTP header 'Accept' (if needed)
811
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
812
+ # HTTP header 'Content-Type'
813
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
814
+
815
+ # form parameters
816
+ form_params = opts[:form_params] || {}
817
+
818
+ # http body (model)
819
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
820
+
821
+ # return_type
822
+ return_type = opts[:return_type] || 'SetLabelResponse'
823
+
824
+ # auth_names
825
+ auth_names = opts[:auth_names] || ['basicAuth']
826
+
827
+ new_options = opts.merge(
828
+ :header_params => header_params,
829
+ :query_params => query_params,
830
+ :form_params => form_params,
831
+ :body => post_body,
832
+ :auth_names => auth_names,
833
+ :return_type => return_type
834
+ )
835
+
836
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
837
+ if @api_client.config.debugging
838
+ @api_client.config.logger.debug "API called: RepositoriesRpmApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
839
+ end
840
+ return data, status_code, headers
841
+ end
842
+
756
843
  # Sync from remote
757
844
  # Trigger an asynchronous task to sync RPM content.
758
845
  # @param rpm_rpm_repository_href [String]
@@ -823,6 +910,76 @@ module PulpRpmClient
823
910
  return data, status_code, headers
824
911
  end
825
912
 
913
+ # Unset a label
914
+ # Unset a single pulp_label on the object.
915
+ # @param rpm_rpm_repository_href [String]
916
+ # @param unset_label [UnsetLabel]
917
+ # @param [Hash] opts the optional parameters
918
+ # @return [UnsetLabelResponse]
919
+ def unset_label(rpm_rpm_repository_href, unset_label, opts = {})
920
+ data, _status_code, _headers = unset_label_with_http_info(rpm_rpm_repository_href, unset_label, opts)
921
+ data
922
+ end
923
+
924
+ # Unset a label
925
+ # Unset a single pulp_label on the object.
926
+ # @param rpm_rpm_repository_href [String]
927
+ # @param unset_label [UnsetLabel]
928
+ # @param [Hash] opts the optional parameters
929
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
930
+ def unset_label_with_http_info(rpm_rpm_repository_href, unset_label, opts = {})
931
+ if @api_client.config.debugging
932
+ @api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.unset_label ...'
933
+ end
934
+ # verify the required parameter 'rpm_rpm_repository_href' is set
935
+ if @api_client.config.client_side_validation && rpm_rpm_repository_href.nil?
936
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_repository_href' when calling RepositoriesRpmApi.unset_label"
937
+ end
938
+ # verify the required parameter 'unset_label' is set
939
+ if @api_client.config.client_side_validation && unset_label.nil?
940
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesRpmApi.unset_label"
941
+ end
942
+ # resource path
943
+ local_var_path = '{rpm_rpm_repository_href}unset_label/'.sub('{' + 'rpm_rpm_repository_href' + '}', CGI.escape(rpm_rpm_repository_href.to_s).gsub('%2F', '/'))
944
+
945
+ # query parameters
946
+ query_params = opts[:query_params] || {}
947
+
948
+ # header parameters
949
+ header_params = opts[:header_params] || {}
950
+ # HTTP header 'Accept' (if needed)
951
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
952
+ # HTTP header 'Content-Type'
953
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
954
+
955
+ # form parameters
956
+ form_params = opts[:form_params] || {}
957
+
958
+ # http body (model)
959
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
960
+
961
+ # return_type
962
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
963
+
964
+ # auth_names
965
+ auth_names = opts[:auth_names] || ['basicAuth']
966
+
967
+ new_options = opts.merge(
968
+ :header_params => header_params,
969
+ :query_params => query_params,
970
+ :form_params => form_params,
971
+ :body => post_body,
972
+ :auth_names => auth_names,
973
+ :return_type => return_type
974
+ )
975
+
976
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
977
+ if @api_client.config.debugging
978
+ @api_client.config.logger.debug "API called: RepositoriesRpmApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
979
+ end
980
+ return data, status_code, headers
981
+ end
982
+
826
983
  # Update a rpm repository
827
984
  # Trigger an asynchronous update task
828
985
  # @param rpm_rpm_repository_href [String]
@@ -103,6 +103,7 @@ module PulpRpmClient
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
105
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
+ # @option opts [String] :q
106
107
  # @option opts [Array<String>] :fields A list of fields to include in the response.
107
108
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
108
109
  # @return [PaginatedRepositoryVersionResponseList]
@@ -133,6 +134,7 @@ module PulpRpmClient
133
134
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
134
135
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
135
136
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
137
+ # @option opts [String] :q
136
138
  # @option opts [Array<String>] :fields A list of fields to include in the response.
137
139
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
138
140
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -171,6 +173,7 @@ module PulpRpmClient
171
173
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
172
174
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
173
175
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
176
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
174
177
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
175
178
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
176
179
 
@@ -127,7 +127,7 @@ module PulpRpmClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'https'
130
+ @scheme = 'http'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -210,7 +210,7 @@ module PulpRpmClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "https://pulp/",
213
+ url: "http://pulp/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]