pulp_rpm_client 3.18.20 → 3.19.0.dev1674962017

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_rpm_client might be problematic. Click here for more details.

Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -8
  3. data/docs/AcsRpmApi.md +230 -6
  4. data/docs/ContentAdvisoriesApi.md +2 -6
  5. data/docs/ContentDistributionTreesApi.md +2 -6
  6. data/docs/ContentModulemdDefaultsApi.md +2 -6
  7. data/docs/ContentModulemdObsoletesApi.md +2 -6
  8. data/docs/ContentModulemdsApi.md +2 -6
  9. data/docs/ContentPackagecategoriesApi.md +2 -6
  10. data/docs/ContentPackageenvironmentsApi.md +2 -6
  11. data/docs/ContentPackagegroupsApi.md +2 -6
  12. data/docs/ContentPackagelangpacksApi.md +2 -6
  13. data/docs/ContentPackagesApi.md +4 -8
  14. data/docs/ContentRepoMetadataFilesApi.md +2 -6
  15. data/docs/DistributionsRpmApi.md +230 -6
  16. data/docs/MyPermissionsResponse.md +17 -0
  17. data/docs/NestedRole.md +21 -0
  18. data/docs/NestedRoleResponse.md +21 -0
  19. data/docs/ObjectRolesResponse.md +17 -0
  20. data/docs/PatchedrpmRpmRemote.md +1 -1
  21. data/docs/PatchedrpmRpmRepository.md +3 -3
  22. data/docs/PatchedrpmUlnRemote.md +1 -1
  23. data/docs/PublicationsRpmApi.md +230 -6
  24. data/docs/RemotesRpmApi.md +230 -6
  25. data/docs/RemotesUlnApi.md +230 -6
  26. data/docs/RepositoriesRpmApi.md +230 -6
  27. data/docs/RepositoriesRpmVersionsApi.md +2 -4
  28. data/docs/RepositoryAddRemoveContent.md +2 -2
  29. data/docs/RpmModulemdObsolete.md +2 -2
  30. data/docs/RpmModulemdObsoleteResponse.md +2 -2
  31. data/docs/RpmRepositorySyncURL.md +1 -1
  32. data/docs/RpmRpmPublication.md +2 -2
  33. data/docs/RpmRpmPublicationResponse.md +2 -2
  34. data/docs/RpmRpmRemote.md +1 -1
  35. data/docs/RpmRpmRemoteResponse.md +1 -1
  36. data/docs/RpmRpmRepository.md +3 -3
  37. data/docs/RpmRpmRepositoryResponse.md +3 -3
  38. data/docs/RpmUlnRemote.md +1 -1
  39. data/docs/RpmUlnRemoteResponse.md +1 -1
  40. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +270 -8
  41. data/lib/pulp_rpm_client/api/content_advisories_api.rb +2 -8
  42. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +2 -8
  43. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +2 -8
  44. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +2 -8
  45. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +2 -8
  46. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +2 -8
  47. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +2 -8
  48. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +2 -8
  49. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +2 -8
  50. data/lib/pulp_rpm_client/api/content_packages_api.rb +4 -10
  51. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +2 -8
  52. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +270 -8
  53. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +270 -8
  54. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +270 -8
  55. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +270 -8
  56. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +270 -8
  57. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +2 -5
  58. data/lib/pulp_rpm_client/models/my_permissions_response.rb +213 -0
  59. data/lib/pulp_rpm_client/models/nested_role.rb +253 -0
  60. data/lib/pulp_rpm_client/models/nested_role_response.rb +234 -0
  61. data/lib/pulp_rpm_client/models/object_roles_response.rb +213 -0
  62. data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +1 -1
  63. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +3 -3
  64. data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +1 -1
  65. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +2 -2
  66. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +36 -2
  67. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +2 -2
  68. data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +1 -1
  69. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +2 -2
  70. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +2 -2
  71. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +1 -1
  72. data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +1 -1
  73. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +3 -3
  74. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +3 -3
  75. data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +1 -1
  76. data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +1 -1
  77. data/lib/pulp_rpm_client/version.rb +1 -1
  78. data/lib/pulp_rpm_client.rb +4 -0
  79. data/spec/api/acs_rpm_api_spec.rb +51 -3
  80. data/spec/api/content_advisories_api_spec.rb +1 -3
  81. data/spec/api/content_distribution_trees_api_spec.rb +1 -3
  82. data/spec/api/content_modulemd_defaults_api_spec.rb +1 -3
  83. data/spec/api/content_modulemd_obsoletes_api_spec.rb +1 -3
  84. data/spec/api/content_modulemds_api_spec.rb +1 -3
  85. data/spec/api/content_packagecategories_api_spec.rb +1 -3
  86. data/spec/api/content_packageenvironments_api_spec.rb +1 -3
  87. data/spec/api/content_packagegroups_api_spec.rb +1 -3
  88. data/spec/api/content_packagelangpacks_api_spec.rb +1 -3
  89. data/spec/api/content_packages_api_spec.rb +2 -4
  90. data/spec/api/content_repo_metadata_files_api_spec.rb +1 -3
  91. data/spec/api/distributions_rpm_api_spec.rb +51 -3
  92. data/spec/api/publications_rpm_api_spec.rb +51 -3
  93. data/spec/api/remotes_rpm_api_spec.rb +51 -3
  94. data/spec/api/remotes_uln_api_spec.rb +51 -3
  95. data/spec/api/repositories_rpm_api_spec.rb +51 -3
  96. data/spec/api/repositories_rpm_versions_api_spec.rb +1 -2
  97. data/spec/models/my_permissions_response_spec.rb +41 -0
  98. data/spec/models/nested_role_response_spec.rb +53 -0
  99. data/spec/models/nested_role_spec.rb +53 -0
  100. data/spec/models/object_roles_response_spec.rb +41 -0
  101. metadata +94 -78
@@ -24,9 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
28
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
29
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
27
+ # @option opts [Array<String>] :ordering Ordering
30
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
31
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
32
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -43,9 +41,7 @@ module PulpRpmClient
43
41
  # @param [Hash] opts the optional parameters
44
42
  # @option opts [Integer] :limit Number of results to return per page.
45
43
  # @option opts [Integer] :offset The initial index from which to return the results.
46
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
47
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
48
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
44
+ # @option opts [Array<String>] :ordering Ordering
49
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
50
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
51
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -68,8 +64,6 @@ module PulpRpmClient
68
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
69
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
70
66
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
71
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
72
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
73
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
74
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
75
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -24,9 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
28
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
29
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
27
+ # @option opts [Array<String>] :ordering Ordering
30
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
31
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
32
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -43,9 +41,7 @@ module PulpRpmClient
43
41
  # @param [Hash] opts the optional parameters
44
42
  # @option opts [Integer] :limit Number of results to return per page.
45
43
  # @option opts [Integer] :offset The initial index from which to return the results.
46
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
47
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
48
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
44
+ # @option opts [Array<String>] :ordering Ordering
49
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
50
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
51
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -68,8 +64,6 @@ module PulpRpmClient
68
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
69
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
70
66
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
71
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
72
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
73
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
74
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
75
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -24,9 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
28
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
29
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
27
+ # @option opts [Array<String>] :ordering Ordering
30
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
31
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
32
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -43,9 +41,7 @@ module PulpRpmClient
43
41
  # @param [Hash] opts the optional parameters
44
42
  # @option opts [Integer] :limit Number of results to return per page.
45
43
  # @option opts [Integer] :offset The initial index from which to return the results.
46
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
47
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
48
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
44
+ # @option opts [Array<String>] :ordering Ordering
49
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
50
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
51
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -68,8 +64,6 @@ module PulpRpmClient
68
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
69
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
70
66
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
71
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
72
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
73
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
74
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
75
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -24,9 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
28
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
29
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
27
+ # @option opts [Array<String>] :ordering Ordering
30
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
31
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
32
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -43,9 +41,7 @@ module PulpRpmClient
43
41
  # @param [Hash] opts the optional parameters
44
42
  # @option opts [Integer] :limit Number of results to return per page.
45
43
  # @option opts [Integer] :offset The initial index from which to return the results.
46
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
47
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
48
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
44
+ # @option opts [Array<String>] :ordering Ordering
49
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
50
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
51
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -68,8 +64,6 @@ module PulpRpmClient
68
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
69
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
70
66
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
71
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
72
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
73
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
74
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
75
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -102,7 +102,7 @@ module PulpRpmClient
102
102
  # @option opts [String] :arch Filter results where arch matches value
103
103
  # @option opts [Array<String>] :arch__in Filter results where arch is in a comma-separated list of values
104
104
  # @option opts [String] :arch__ne Filter results where arch not equal to value
105
- # @option opts [String] :checksum_type Filter results where checksum_type matches value * &#x60;unknown&#x60; - unknown * &#x60;md5&#x60; - md5 * &#x60;sha1&#x60; - sha1 * &#x60;sha1&#x60; - sha1 * &#x60;sha224&#x60; - sha224 * &#x60;sha256&#x60; - sha256 * &#x60;sha384&#x60; - sha384 * &#x60;sha512&#x60; - sha512
105
+ # @option opts [String] :checksum_type Filter results where checksum_type matches value
106
106
  # @option opts [Array<String>] :checksum_type__in Filter results where checksum_type is in a comma-separated list of values
107
107
  # @option opts [String] :checksum_type__ne Filter results where checksum_type not equal to value
108
108
  # @option opts [String] :epoch Filter results where epoch matches value
@@ -113,11 +113,9 @@ module PulpRpmClient
113
113
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
114
114
  # @option opts [String] :name__ne Filter results where name not equal to value
115
115
  # @option opts [Integer] :offset The initial index from which to return the results.
116
- # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;epoch&#x60; - Epoch * &#x60;-epoch&#x60; - Epoch (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;evr&#x60; - Evr * &#x60;-evr&#x60; - Evr (descending) * &#x60;pkgId&#x60; - Pkgid * &#x60;-pkgId&#x60; - Pkgid (descending) * &#x60;checksum_type&#x60; - Checksum type * &#x60;-checksum_type&#x60; - Checksum type (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;changelogs&#x60; - Changelogs * &#x60;-changelogs&#x60; - Changelogs (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;requires&#x60; - Requires * &#x60;-requires&#x60; - Requires (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;obsoletes&#x60; - Obsoletes * &#x60;-obsoletes&#x60; - Obsoletes (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;supplements&#x60; - Supplements * &#x60;-supplements&#x60; - Supplements (descending) * &#x60;location_base&#x60; - Location base * &#x60;-location_base&#x60; - Location base (descending) * &#x60;location_href&#x60; - Location href * &#x60;-location_href&#x60; - Location href (descending) * &#x60;rpm_buildhost&#x60; - Rpm buildhost * &#x60;-rpm_buildhost&#x60; - Rpm buildhost (descending) * &#x60;rpm_group&#x60; - Rpm group * &#x60;-rpm_group&#x60; - Rpm group (descending) * &#x60;rpm_license&#x60; - Rpm license * &#x60;-rpm_license&#x60; - Rpm license (descending) * &#x60;rpm_packager&#x60; - Rpm packager * &#x60;-rpm_packager&#x60; - Rpm packager (descending) * &#x60;rpm_sourcerpm&#x60; - Rpm sourcerpm * &#x60;-rpm_sourcerpm&#x60; - Rpm sourcerpm (descending) * &#x60;rpm_vendor&#x60; - Rpm vendor * &#x60;-rpm_vendor&#x60; - Rpm vendor (descending) * &#x60;rpm_header_start&#x60; - Rpm header start * &#x60;-rpm_header_start&#x60; - Rpm header start (descending) * &#x60;rpm_header_end&#x60; - Rpm header end * &#x60;-rpm_header_end&#x60; - Rpm header end (descending) * &#x60;size_archive&#x60; - Size archive * &#x60;-size_archive&#x60; - Size archive (descending) * &#x60;size_installed&#x60; - Size installed * &#x60;-size_installed&#x60; - Size installed (descending) * &#x60;size_package&#x60; - Size package * &#x60;-size_package&#x60; - Size package (descending) * &#x60;time_build&#x60; - Time build * &#x60;-time_build&#x60; - Time build (descending) * &#x60;time_file&#x60; - Time file * &#x60;-time_file&#x60; - Time file (descending) * &#x60;is_modular&#x60; - Is modular * &#x60;-is_modular&#x60; - Is modular (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
116
+ # @option opts [Array<String>] :ordering Ordering
117
117
  # @option opts [String] :pkg_id Filter results where pkgId matches value
118
118
  # @option opts [Array<String>] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
119
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
120
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
121
119
  # @option opts [String] :release Filter results where release matches value
122
120
  # @option opts [Array<String>] :release__in Filter results where release is in a comma-separated list of values
123
121
  # @option opts [String] :release__ne Filter results where release not equal to value
@@ -142,7 +140,7 @@ module PulpRpmClient
142
140
  # @option opts [String] :arch Filter results where arch matches value
143
141
  # @option opts [Array<String>] :arch__in Filter results where arch is in a comma-separated list of values
144
142
  # @option opts [String] :arch__ne Filter results where arch not equal to value
145
- # @option opts [String] :checksum_type Filter results where checksum_type matches value * &#x60;unknown&#x60; - unknown * &#x60;md5&#x60; - md5 * &#x60;sha1&#x60; - sha1 * &#x60;sha1&#x60; - sha1 * &#x60;sha224&#x60; - sha224 * &#x60;sha256&#x60; - sha256 * &#x60;sha384&#x60; - sha384 * &#x60;sha512&#x60; - sha512
143
+ # @option opts [String] :checksum_type Filter results where checksum_type matches value
146
144
  # @option opts [Array<String>] :checksum_type__in Filter results where checksum_type is in a comma-separated list of values
147
145
  # @option opts [String] :checksum_type__ne Filter results where checksum_type not equal to value
148
146
  # @option opts [String] :epoch Filter results where epoch matches value
@@ -153,11 +151,9 @@ module PulpRpmClient
153
151
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
154
152
  # @option opts [String] :name__ne Filter results where name not equal to value
155
153
  # @option opts [Integer] :offset The initial index from which to return the results.
156
- # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;epoch&#x60; - Epoch * &#x60;-epoch&#x60; - Epoch (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;evr&#x60; - Evr * &#x60;-evr&#x60; - Evr (descending) * &#x60;pkgId&#x60; - Pkgid * &#x60;-pkgId&#x60; - Pkgid (descending) * &#x60;checksum_type&#x60; - Checksum type * &#x60;-checksum_type&#x60; - Checksum type (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;changelogs&#x60; - Changelogs * &#x60;-changelogs&#x60; - Changelogs (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;requires&#x60; - Requires * &#x60;-requires&#x60; - Requires (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;obsoletes&#x60; - Obsoletes * &#x60;-obsoletes&#x60; - Obsoletes (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;supplements&#x60; - Supplements * &#x60;-supplements&#x60; - Supplements (descending) * &#x60;location_base&#x60; - Location base * &#x60;-location_base&#x60; - Location base (descending) * &#x60;location_href&#x60; - Location href * &#x60;-location_href&#x60; - Location href (descending) * &#x60;rpm_buildhost&#x60; - Rpm buildhost * &#x60;-rpm_buildhost&#x60; - Rpm buildhost (descending) * &#x60;rpm_group&#x60; - Rpm group * &#x60;-rpm_group&#x60; - Rpm group (descending) * &#x60;rpm_license&#x60; - Rpm license * &#x60;-rpm_license&#x60; - Rpm license (descending) * &#x60;rpm_packager&#x60; - Rpm packager * &#x60;-rpm_packager&#x60; - Rpm packager (descending) * &#x60;rpm_sourcerpm&#x60; - Rpm sourcerpm * &#x60;-rpm_sourcerpm&#x60; - Rpm sourcerpm (descending) * &#x60;rpm_vendor&#x60; - Rpm vendor * &#x60;-rpm_vendor&#x60; - Rpm vendor (descending) * &#x60;rpm_header_start&#x60; - Rpm header start * &#x60;-rpm_header_start&#x60; - Rpm header start (descending) * &#x60;rpm_header_end&#x60; - Rpm header end * &#x60;-rpm_header_end&#x60; - Rpm header end (descending) * &#x60;size_archive&#x60; - Size archive * &#x60;-size_archive&#x60; - Size archive (descending) * &#x60;size_installed&#x60; - Size installed * &#x60;-size_installed&#x60; - Size installed (descending) * &#x60;size_package&#x60; - Size package * &#x60;-size_package&#x60; - Size package (descending) * &#x60;time_build&#x60; - Time build * &#x60;-time_build&#x60; - Time build (descending) * &#x60;time_file&#x60; - Time file * &#x60;-time_file&#x60; - Time file (descending) * &#x60;is_modular&#x60; - Is modular * &#x60;-is_modular&#x60; - Is modular (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
154
+ # @option opts [Array<String>] :ordering Ordering
157
155
  # @option opts [String] :pkg_id Filter results where pkgId matches value
158
156
  # @option opts [Array<String>] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
159
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
160
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
161
157
  # @option opts [String] :release Filter results where release matches value
162
158
  # @option opts [Array<String>] :release__in Filter results where release is in a comma-separated list of values
163
159
  # @option opts [String] :release__ne Filter results where release not equal to value
@@ -205,8 +201,6 @@ module PulpRpmClient
205
201
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
206
202
  query_params[:'pkgId'] = opts[:'pkg_id'] if !opts[:'pkg_id'].nil?
207
203
  query_params[:'pkgId__in'] = @api_client.build_collection_param(opts[:'pkg_id__in'], :csv) if !opts[:'pkg_id__in'].nil?
208
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
209
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
210
204
  query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
211
205
  query_params[:'release__in'] = @api_client.build_collection_param(opts[:'release__in'], :csv) if !opts[:'release__in'].nil?
212
206
  query_params[:'release__ne'] = opts[:'release__ne'] if !opts[:'release__ne'].nil?
@@ -24,9 +24,7 @@ module PulpRpmClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
28
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
29
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
27
+ # @option opts [Array<String>] :ordering Ordering
30
28
  # @option opts [String] :repository_version Repository Version referenced by HREF
31
29
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
32
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -43,9 +41,7 @@ module PulpRpmClient
43
41
  # @param [Hash] opts the optional parameters
44
42
  # @option opts [Integer] :limit Number of results to return per page.
45
43
  # @option opts [Integer] :offset The initial index from which to return the results.
46
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
47
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
48
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
44
+ # @option opts [Array<String>] :ordering Ordering
49
45
  # @option opts [String] :repository_version Repository Version referenced by HREF
50
46
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
51
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -68,8 +64,6 @@ module PulpRpmClient
68
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
69
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
70
66
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
71
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
72
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
73
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
74
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
75
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -19,6 +19,74 @@ module PulpRpmClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add a role for this object to users/groups.
23
+ # @param rpm_rpm_distribution_href [String]
24
+ # @param nested_role [NestedRole]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [NestedRoleResponse]
27
+ def add_role(rpm_rpm_distribution_href, nested_role, opts = {})
28
+ data, _status_code, _headers = add_role_with_http_info(rpm_rpm_distribution_href, nested_role, opts)
29
+ data
30
+ end
31
+
32
+ # Add a role for this object to users/groups.
33
+ # @param rpm_rpm_distribution_href [String]
34
+ # @param nested_role [NestedRole]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
37
+ def add_role_with_http_info(rpm_rpm_distribution_href, nested_role, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: DistributionsRpmApi.add_role ...'
40
+ end
41
+ # verify the required parameter 'rpm_rpm_distribution_href' is set
42
+ if @api_client.config.client_side_validation && rpm_rpm_distribution_href.nil?
43
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_distribution_href' when calling DistributionsRpmApi.add_role"
44
+ end
45
+ # verify the required parameter 'nested_role' is set
46
+ if @api_client.config.client_side_validation && nested_role.nil?
47
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsRpmApi.add_role"
48
+ end
49
+ # resource path
50
+ local_var_path = '{rpm_rpm_distribution_href}add_role/'.sub('{' + 'rpm_rpm_distribution_href' + '}', CGI.escape(rpm_rpm_distribution_href.to_s).gsub('%2F', '/'))
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+ # HTTP header 'Content-Type'
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
61
+
62
+ # form parameters
63
+ form_params = opts[:form_params] || {}
64
+
65
+ # http body (model)
66
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
67
+
68
+ # return_type
69
+ return_type = opts[:return_type] || 'NestedRoleResponse'
70
+
71
+ # auth_names
72
+ auth_names = opts[:auth_names] || ['basicAuth']
73
+
74
+ new_options = opts.merge(
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: DistributionsRpmApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
22
90
  # Create a rpm distribution
23
91
  # Trigger an asynchronous create task
24
92
  # @param rpm_rpm_distribution [RpmRpmDistribution]
@@ -159,9 +227,7 @@ module PulpRpmClient
159
227
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
160
228
  # @option opts [String] :name__startswith Filter results where name starts with value
161
229
  # @option opts [Integer] :offset The initial index from which to return the results.
162
- # @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;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
163
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
164
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
230
+ # @option opts [Array<String>] :ordering Ordering
165
231
  # @option opts [String] :pulp_label_select Filter labels by search string
166
232
  # @option opts [String] :repository Filter results where repository matches value
167
233
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
@@ -188,9 +254,7 @@ module PulpRpmClient
188
254
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
189
255
  # @option opts [String] :name__startswith Filter results where name starts with value
190
256
  # @option opts [Integer] :offset The initial index from which to return the results.
191
- # @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;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
192
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
193
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
257
+ # @option opts [Array<String>] :ordering Ordering
194
258
  # @option opts [String] :pulp_label_select Filter labels by search string
195
259
  # @option opts [String] :repository Filter results where repository matches value
196
260
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
@@ -223,8 +287,6 @@ module PulpRpmClient
223
287
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
224
288
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
225
289
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
226
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
227
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
228
290
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
229
291
  query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
230
292
  query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
@@ -265,6 +327,138 @@ module PulpRpmClient
265
327
  return data, status_code, headers
266
328
  end
267
329
 
330
+ # List roles assigned to this object.
331
+ # @param rpm_rpm_distribution_href [String]
332
+ # @param [Hash] opts the optional parameters
333
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
334
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
335
+ # @return [ObjectRolesResponse]
336
+ def list_roles(rpm_rpm_distribution_href, opts = {})
337
+ data, _status_code, _headers = list_roles_with_http_info(rpm_rpm_distribution_href, opts)
338
+ data
339
+ end
340
+
341
+ # List roles assigned to this object.
342
+ # @param rpm_rpm_distribution_href [String]
343
+ # @param [Hash] opts the optional parameters
344
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
345
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
346
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
347
+ def list_roles_with_http_info(rpm_rpm_distribution_href, opts = {})
348
+ if @api_client.config.debugging
349
+ @api_client.config.logger.debug 'Calling API: DistributionsRpmApi.list_roles ...'
350
+ end
351
+ # verify the required parameter 'rpm_rpm_distribution_href' is set
352
+ if @api_client.config.client_side_validation && rpm_rpm_distribution_href.nil?
353
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_distribution_href' when calling DistributionsRpmApi.list_roles"
354
+ end
355
+ # resource path
356
+ local_var_path = '{rpm_rpm_distribution_href}list_roles/'.sub('{' + 'rpm_rpm_distribution_href' + '}', CGI.escape(rpm_rpm_distribution_href.to_s).gsub('%2F', '/'))
357
+
358
+ # query parameters
359
+ query_params = opts[:query_params] || {}
360
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
361
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
362
+
363
+ # header parameters
364
+ header_params = opts[:header_params] || {}
365
+ # HTTP header 'Accept' (if needed)
366
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
367
+
368
+ # form parameters
369
+ form_params = opts[:form_params] || {}
370
+
371
+ # http body (model)
372
+ post_body = opts[:body]
373
+
374
+ # return_type
375
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
376
+
377
+ # auth_names
378
+ auth_names = opts[:auth_names] || ['basicAuth']
379
+
380
+ new_options = opts.merge(
381
+ :header_params => header_params,
382
+ :query_params => query_params,
383
+ :form_params => form_params,
384
+ :body => post_body,
385
+ :auth_names => auth_names,
386
+ :return_type => return_type
387
+ )
388
+
389
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
390
+ if @api_client.config.debugging
391
+ @api_client.config.logger.debug "API called: DistributionsRpmApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
+ end
393
+ return data, status_code, headers
394
+ end
395
+
396
+ # List permissions available to the current user on this object.
397
+ # @param rpm_rpm_distribution_href [String]
398
+ # @param [Hash] opts the optional parameters
399
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
400
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
401
+ # @return [MyPermissionsResponse]
402
+ def my_permissions(rpm_rpm_distribution_href, opts = {})
403
+ data, _status_code, _headers = my_permissions_with_http_info(rpm_rpm_distribution_href, opts)
404
+ data
405
+ end
406
+
407
+ # List permissions available to the current user on this object.
408
+ # @param rpm_rpm_distribution_href [String]
409
+ # @param [Hash] opts the optional parameters
410
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
411
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
412
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
413
+ def my_permissions_with_http_info(rpm_rpm_distribution_href, opts = {})
414
+ if @api_client.config.debugging
415
+ @api_client.config.logger.debug 'Calling API: DistributionsRpmApi.my_permissions ...'
416
+ end
417
+ # verify the required parameter 'rpm_rpm_distribution_href' is set
418
+ if @api_client.config.client_side_validation && rpm_rpm_distribution_href.nil?
419
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_distribution_href' when calling DistributionsRpmApi.my_permissions"
420
+ end
421
+ # resource path
422
+ local_var_path = '{rpm_rpm_distribution_href}my_permissions/'.sub('{' + 'rpm_rpm_distribution_href' + '}', CGI.escape(rpm_rpm_distribution_href.to_s).gsub('%2F', '/'))
423
+
424
+ # query parameters
425
+ query_params = opts[:query_params] || {}
426
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
427
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
428
+
429
+ # header parameters
430
+ header_params = opts[:header_params] || {}
431
+ # HTTP header 'Accept' (if needed)
432
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
433
+
434
+ # form parameters
435
+ form_params = opts[:form_params] || {}
436
+
437
+ # http body (model)
438
+ post_body = opts[:body]
439
+
440
+ # return_type
441
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
442
+
443
+ # auth_names
444
+ auth_names = opts[:auth_names] || ['basicAuth']
445
+
446
+ new_options = opts.merge(
447
+ :header_params => header_params,
448
+ :query_params => query_params,
449
+ :form_params => form_params,
450
+ :body => post_body,
451
+ :auth_names => auth_names,
452
+ :return_type => return_type
453
+ )
454
+
455
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
456
+ if @api_client.config.debugging
457
+ @api_client.config.logger.debug "API called: DistributionsRpmApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
458
+ end
459
+ return data, status_code, headers
460
+ end
461
+
268
462
  # Update a rpm distribution
269
463
  # Trigger an asynchronous partial update task
270
464
  # @param rpm_rpm_distribution_href [String]
@@ -403,6 +597,74 @@ module PulpRpmClient
403
597
  return data, status_code, headers
404
598
  end
405
599
 
600
+ # Remove a role for this object from users/groups.
601
+ # @param rpm_rpm_distribution_href [String]
602
+ # @param nested_role [NestedRole]
603
+ # @param [Hash] opts the optional parameters
604
+ # @return [NestedRoleResponse]
605
+ def remove_role(rpm_rpm_distribution_href, nested_role, opts = {})
606
+ data, _status_code, _headers = remove_role_with_http_info(rpm_rpm_distribution_href, nested_role, opts)
607
+ data
608
+ end
609
+
610
+ # Remove a role for this object from users/groups.
611
+ # @param rpm_rpm_distribution_href [String]
612
+ # @param nested_role [NestedRole]
613
+ # @param [Hash] opts the optional parameters
614
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
615
+ def remove_role_with_http_info(rpm_rpm_distribution_href, nested_role, opts = {})
616
+ if @api_client.config.debugging
617
+ @api_client.config.logger.debug 'Calling API: DistributionsRpmApi.remove_role ...'
618
+ end
619
+ # verify the required parameter 'rpm_rpm_distribution_href' is set
620
+ if @api_client.config.client_side_validation && rpm_rpm_distribution_href.nil?
621
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_distribution_href' when calling DistributionsRpmApi.remove_role"
622
+ end
623
+ # verify the required parameter 'nested_role' is set
624
+ if @api_client.config.client_side_validation && nested_role.nil?
625
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsRpmApi.remove_role"
626
+ end
627
+ # resource path
628
+ local_var_path = '{rpm_rpm_distribution_href}remove_role/'.sub('{' + 'rpm_rpm_distribution_href' + '}', CGI.escape(rpm_rpm_distribution_href.to_s).gsub('%2F', '/'))
629
+
630
+ # query parameters
631
+ query_params = opts[:query_params] || {}
632
+
633
+ # header parameters
634
+ header_params = opts[:header_params] || {}
635
+ # HTTP header 'Accept' (if needed)
636
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
637
+ # HTTP header 'Content-Type'
638
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
639
+
640
+ # form parameters
641
+ form_params = opts[:form_params] || {}
642
+
643
+ # http body (model)
644
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
645
+
646
+ # return_type
647
+ return_type = opts[:return_type] || 'NestedRoleResponse'
648
+
649
+ # auth_names
650
+ auth_names = opts[:auth_names] || ['basicAuth']
651
+
652
+ new_options = opts.merge(
653
+ :header_params => header_params,
654
+ :query_params => query_params,
655
+ :form_params => form_params,
656
+ :body => post_body,
657
+ :auth_names => auth_names,
658
+ :return_type => return_type
659
+ )
660
+
661
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
662
+ if @api_client.config.debugging
663
+ @api_client.config.logger.debug "API called: DistributionsRpmApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
664
+ end
665
+ return data, status_code, headers
666
+ end
667
+
406
668
  # Update a rpm distribution
407
669
  # Trigger an asynchronous update task
408
670
  # @param rpm_rpm_distribution_href [String]