pulp_ansible_client 0.16.2 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +88 -22
  3. data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
  4. data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
  5. data/docs/AnsibleAnsibleRepository.md +3 -1
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +5 -1
  7. data/docs/AnsibleCollectionRemote.md +1 -1
  8. data/docs/AnsibleCollectionRemoteResponse.md +4 -2
  9. data/docs/AnsibleCollectionVersion.md +5 -5
  10. data/docs/AnsibleCollectionVersionMark.md +19 -0
  11. data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
  12. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  13. data/docs/AnsibleCollectionsApi.md +230 -6
  14. data/docs/AnsibleGitRemote.md +26 -26
  15. data/docs/AnsibleGitRemoteResponse.md +26 -26
  16. data/docs/AnsibleRepositoryMark.md +19 -0
  17. data/docs/AnsibleRoleRemote.md +1 -1
  18. data/docs/AnsibleRoleRemoteResponse.md +1 -1
  19. data/docs/AnsibleRoleResponse.md +3 -3
  20. data/docs/CollectionNamespaceResponse.md +3 -1
  21. data/docs/CollectionRefResponse.md +1 -1
  22. data/docs/CollectionResponse.md +6 -6
  23. data/docs/CollectionSummaryResponse.md +35 -0
  24. data/docs/CollectionVersionCopyMove.md +21 -0
  25. data/docs/CollectionVersionListResponse.md +4 -2
  26. data/docs/CollectionVersionResponse.md +6 -4
  27. data/docs/CollectionVersionSearchList.md +27 -0
  28. data/docs/CollectionVersionSearchListResponse.md +29 -0
  29. data/docs/ContentCollectionDeprecationsApi.md +2 -6
  30. data/docs/ContentCollectionMarksApi.md +198 -0
  31. data/docs/ContentCollectionSignaturesApi.md +2 -6
  32. data/docs/ContentCollectionVersionsApi.md +6 -10
  33. data/docs/ContentNamespacesApi.md +220 -0
  34. data/docs/ContentRolesApi.md +2 -6
  35. data/docs/DistributionsAnsibleApi.md +230 -6
  36. data/docs/GalaxyCollectionResponse.md +4 -4
  37. data/docs/GalaxyCollectionVersionResponse.md +4 -4
  38. data/docs/GalaxyRoleResponse.md +1 -1
  39. data/docs/GalaxyRoleVersionResponse.md +1 -1
  40. data/docs/MyPermissionsResponse.md +17 -0
  41. data/docs/NamespaceLink.md +19 -0
  42. data/docs/NamespaceLinkResponse.md +19 -0
  43. data/docs/NestedRole.md +21 -0
  44. data/docs/NestedRoleResponse.md +21 -0
  45. data/docs/ObjectRolesResponse.md +17 -0
  46. data/docs/PaginatedCollectionVersionSearchListResponseList.md +21 -0
  47. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +23 -0
  48. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +23 -0
  49. data/docs/PatchedansibleAnsibleNamespaceMetadata.md +29 -0
  50. data/docs/PatchedansibleAnsibleRepository.md +3 -1
  51. data/docs/PatchedansibleCollectionRemote.md +1 -1
  52. data/docs/PatchedansibleGitRemote.md +26 -26
  53. data/docs/PatchedansibleRoleRemote.md +1 -1
  54. data/docs/ProgressReportResponse.md +27 -0
  55. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +2 -6
  56. data/docs/PulpAnsibleApiV3CollectionsApi.md +2 -6
  57. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -6
  58. data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
  59. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +6 -6
  60. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
  61. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
  62. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
  63. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
  64. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
  65. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +2 -6
  66. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +2 -6
  67. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -6
  68. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
  69. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +6 -6
  70. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
  71. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
  72. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
  73. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
  74. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
  75. data/docs/RemotesCollectionApi.md +238 -6
  76. data/docs/RemotesGitApi.md +230 -6
  77. data/docs/RemotesRoleApi.md +230 -6
  78. data/docs/RepositoriesAnsibleApi.md +450 -6
  79. data/docs/RepositoriesAnsibleVersionsApi.md +2 -4
  80. data/docs/Repository.md +25 -0
  81. data/docs/RepositoryResponse.md +33 -0
  82. data/docs/Task.md +19 -0
  83. data/docs/TaskResponse.md +45 -0
  84. data/docs/UnpaginatedCollectionVersionResponse.md +6 -4
  85. data/docs/VersionsApi.md +10 -10
  86. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +270 -8
  87. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +2 -8
  88. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
  89. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +2 -8
  90. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +8 -14
  91. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
  92. data/lib/pulp_ansible_client/api/content_roles_api.rb +2 -8
  93. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +270 -8
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +2 -8
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +2 -8
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +2 -8
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +209 -0
  98. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +8 -8
  99. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
  100. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
  101. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
  102. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +531 -0
  103. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +229 -0
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +2 -8
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +2 -8
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +2 -8
  107. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +197 -0
  108. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +7 -7
  109. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
  110. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
  112. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +501 -0
  113. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +217 -0
  114. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +283 -9
  115. data/lib/pulp_ansible_client/api/remotes_git_api.rb +270 -8
  116. data/lib/pulp_ansible_client/api/remotes_role_api.rb +270 -8
  117. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +542 -8
  118. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +2 -5
  119. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  120. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +359 -0
  121. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +402 -0
  122. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +14 -5
  123. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +23 -5
  124. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
  125. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +14 -5
  126. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  127. data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +258 -0
  128. data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +268 -0
  129. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  130. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +249 -249
  131. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
  132. data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
  133. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
  134. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
  135. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  136. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +13 -4
  137. data/lib/pulp_ansible_client/models/collection_ref_response.rb +0 -1
  138. data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
  139. data/lib/pulp_ansible_client/models/collection_summary_response.rb +359 -0
  140. data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +242 -0
  141. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +16 -6
  142. data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -5
  143. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +279 -0
  144. data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +287 -0
  145. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -4
  146. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
  147. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
  148. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
  149. data/lib/pulp_ansible_client/models/my_permissions_response.rb +213 -0
  150. data/lib/pulp_ansible_client/models/namespace_link.rb +282 -0
  151. data/lib/pulp_ansible_client/models/namespace_link_response.rb +264 -0
  152. data/lib/pulp_ansible_client/models/nested_role.rb +253 -0
  153. data/lib/pulp_ansible_client/models/nested_role_response.rb +234 -0
  154. data/lib/pulp_ansible_client/models/object_roles_response.rb +213 -0
  155. data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +226 -0
  156. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +237 -0
  157. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +237 -0
  158. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +350 -0
  159. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +14 -5
  160. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
  161. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +244 -244
  162. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
  163. data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
  164. data/lib/pulp_ansible_client/models/repository.rb +306 -0
  165. data/lib/pulp_ansible_client/models/repository_response.rb +309 -0
  166. data/lib/pulp_ansible_client/models/task.rb +266 -0
  167. data/lib/pulp_ansible_client/models/task_response.rb +366 -0
  168. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +12 -5
  169. data/lib/pulp_ansible_client/version.rb +1 -1
  170. data/lib/pulp_ansible_client.rb +32 -0
  171. data/spec/api/ansible_collections_api_spec.rb +51 -3
  172. data/spec/api/content_collection_deprecations_api_spec.rb +1 -3
  173. data/spec/api/content_collection_marks_api_spec.rb +83 -0
  174. data/spec/api/content_collection_signatures_api_spec.rb +1 -3
  175. data/spec/api/content_collection_versions_api_spec.rb +3 -5
  176. data/spec/api/content_namespaces_api_spec.rb +93 -0
  177. data/spec/api/content_roles_api_spec.rb +1 -3
  178. data/spec/api/distributions_ansible_api_spec.rb +51 -3
  179. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -3
  180. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -3
  181. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -3
  182. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +77 -0
  183. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
  184. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
  185. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
  186. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
  187. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +131 -0
  188. data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +83 -0
  189. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -3
  190. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -3
  191. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -3
  192. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +75 -0
  193. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
  194. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
  195. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
  196. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
  197. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +126 -0
  198. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +81 -0
  199. data/spec/api/remotes_collection_api_spec.rb +55 -3
  200. data/spec/api/remotes_git_api_spec.rb +51 -3
  201. data/spec/api/remotes_role_api_spec.rb +51 -3
  202. data/spec/api/repositories_ansible_api_spec.rb +99 -3
  203. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -2
  204. data/spec/api/versions_api_spec.rb +4 -4
  205. data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +95 -0
  206. data/spec/models/ansible_ansible_namespace_metadata_spec.rb +77 -0
  207. data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
  208. data/spec/models/ansible_ansible_repository_spec.rb +6 -0
  209. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  210. data/spec/models/ansible_collection_version_mark_response_spec.rb +59 -0
  211. data/spec/models/ansible_collection_version_mark_spec.rb +47 -0
  212. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  213. data/spec/models/ansible_collection_version_spec.rb +3 -3
  214. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  215. data/spec/models/ansible_git_remote_spec.rb +20 -20
  216. data/spec/models/ansible_repository_mark_spec.rb +47 -0
  217. data/spec/models/ansible_role_response_spec.rb +3 -3
  218. data/spec/models/collection_namespace_response_spec.rb +6 -0
  219. data/spec/models/collection_summary_response_spec.rb +95 -0
  220. data/spec/models/collection_version_copy_move_spec.rb +53 -0
  221. data/spec/models/collection_version_list_response_spec.rb +6 -0
  222. data/spec/models/collection_version_response_spec.rb +6 -0
  223. data/spec/models/collection_version_search_list_response_spec.rb +77 -0
  224. data/spec/models/collection_version_search_list_spec.rb +71 -0
  225. data/spec/models/my_permissions_response_spec.rb +41 -0
  226. data/spec/models/namespace_link_response_spec.rb +47 -0
  227. data/spec/models/namespace_link_spec.rb +47 -0
  228. data/spec/models/nested_role_response_spec.rb +53 -0
  229. data/spec/models/nested_role_spec.rb +53 -0
  230. data/spec/models/object_roles_response_spec.rb +41 -0
  231. data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +53 -0
  232. data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +59 -0
  233. data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +59 -0
  234. data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +77 -0
  235. data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
  236. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  237. data/spec/models/progress_report_response_spec.rb +71 -0
  238. data/spec/models/repository_response_spec.rb +89 -0
  239. data/spec/models/repository_spec.rb +65 -0
  240. data/spec/models/task_response_spec.rb +125 -0
  241. data/spec/models/task_spec.rb +47 -0
  242. data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
  243. metadata +231 -103
@@ -0,0 +1,217 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpAnsibleClient
16
+ class PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # A viewset for cross-repo searches.
23
+ # @param [Hash] opts the optional parameters
24
+ # @option opts [String] :dependency
25
+ # @option opts [Boolean] :deprecated
26
+ # @option opts [Array<String>] :distribution Filter collectionversions that are in these distrubtion ids.
27
+ # @option opts [Array<String>] :distribution_base_path Filter collectionversions that are in these base paths.
28
+ # @option opts [Boolean] :highest
29
+ # @option opts [Boolean] :is_deprecated
30
+ # @option opts [Boolean] :is_highest
31
+ # @option opts [Boolean] :is_signed
32
+ # @option opts [String] :keywords
33
+ # @option opts [Integer] :limit Number of results to return per page.
34
+ # @option opts [String] :name
35
+ # @option opts [String] :namespace
36
+ # @option opts [Integer] :offset The initial index from which to return the results.
37
+ # @option opts [Array<String>] :order_by Ordering
38
+ # @option opts [String] :q
39
+ # @option opts [Array<String>] :repository Filter collectionversions that are in these repository ids.
40
+ # @option opts [String] :repository_label Filter labels by search string
41
+ # @option opts [Array<String>] :repository_name Filter collectionversions that are in these repositories.
42
+ # @option opts [String] :repository_version
43
+ # @option opts [Boolean] :signed
44
+ # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
45
+ # @option opts [String] :version
46
+ # @option opts [String] :version_range
47
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
48
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
49
+ # @return [PaginatedCollectionVersionSearchListResponseList]
50
+ def list(opts = {})
51
+ data, _status_code, _headers = list_with_http_info(opts)
52
+ data
53
+ end
54
+
55
+ # A viewset for cross-repo searches.
56
+ # @param [Hash] opts the optional parameters
57
+ # @option opts [String] :dependency
58
+ # @option opts [Boolean] :deprecated
59
+ # @option opts [Array<String>] :distribution Filter collectionversions that are in these distrubtion ids.
60
+ # @option opts [Array<String>] :distribution_base_path Filter collectionversions that are in these base paths.
61
+ # @option opts [Boolean] :highest
62
+ # @option opts [Boolean] :is_deprecated
63
+ # @option opts [Boolean] :is_highest
64
+ # @option opts [Boolean] :is_signed
65
+ # @option opts [String] :keywords
66
+ # @option opts [Integer] :limit Number of results to return per page.
67
+ # @option opts [String] :name
68
+ # @option opts [String] :namespace
69
+ # @option opts [Integer] :offset The initial index from which to return the results.
70
+ # @option opts [Array<String>] :order_by Ordering
71
+ # @option opts [String] :q
72
+ # @option opts [Array<String>] :repository Filter collectionversions that are in these repository ids.
73
+ # @option opts [String] :repository_label Filter labels by search string
74
+ # @option opts [Array<String>] :repository_name Filter collectionversions that are in these repositories.
75
+ # @option opts [String] :repository_version
76
+ # @option opts [Boolean] :signed
77
+ # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
78
+ # @option opts [String] :version
79
+ # @option opts [String] :version_range
80
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
81
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
82
+ # @return [Array<(PaginatedCollectionVersionSearchListResponseList, Integer, Hash)>] PaginatedCollectionVersionSearchListResponseList data, response status code and response headers
83
+ def list_with_http_info(opts = {})
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.list ...'
86
+ end
87
+ allowable_values = ["-name", "-namespace", "-pulp_created", "-version", "name", "namespace", "pulp_created", "version"]
88
+ if @api_client.config.client_side_validation && opts[:'order_by'] && !opts[:'order_by'].all? { |item| allowable_values.include?(item) }
89
+ fail ArgumentError, "invalid value for \"order_by\", must include one of #{allowable_values}"
90
+ end
91
+ # resource path
92
+ local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/'
93
+
94
+ # query parameters
95
+ query_params = opts[:query_params] || {}
96
+ query_params[:'dependency'] = opts[:'dependency'] if !opts[:'dependency'].nil?
97
+ query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
98
+ query_params[:'distribution'] = @api_client.build_collection_param(opts[:'distribution'], :multi) if !opts[:'distribution'].nil?
99
+ query_params[:'distribution_base_path'] = @api_client.build_collection_param(opts[:'distribution_base_path'], :multi) if !opts[:'distribution_base_path'].nil?
100
+ query_params[:'highest'] = opts[:'highest'] if !opts[:'highest'].nil?
101
+ query_params[:'is_deprecated'] = opts[:'is_deprecated'] if !opts[:'is_deprecated'].nil?
102
+ query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
103
+ query_params[:'is_signed'] = opts[:'is_signed'] if !opts[:'is_signed'].nil?
104
+ query_params[:'keywords'] = opts[:'keywords'] if !opts[:'keywords'].nil?
105
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
106
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
107
+ query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
108
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
109
+ query_params[:'order_by'] = @api_client.build_collection_param(opts[:'order_by'], :csv) if !opts[:'order_by'].nil?
110
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
111
+ query_params[:'repository'] = @api_client.build_collection_param(opts[:'repository'], :multi) if !opts[:'repository'].nil?
112
+ query_params[:'repository_label'] = opts[:'repository_label'] if !opts[:'repository_label'].nil?
113
+ query_params[:'repository_name'] = @api_client.build_collection_param(opts[:'repository_name'], :multi) if !opts[:'repository_name'].nil?
114
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
115
+ query_params[:'signed'] = opts[:'signed'] if !opts[:'signed'].nil?
116
+ query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
117
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
118
+ query_params[:'version_range'] = opts[:'version_range'] if !opts[:'version_range'].nil?
119
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
120
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
121
+
122
+ # header parameters
123
+ header_params = opts[:header_params] || {}
124
+ # HTTP header 'Accept' (if needed)
125
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
126
+
127
+ # form parameters
128
+ form_params = opts[:form_params] || {}
129
+
130
+ # http body (model)
131
+ post_body = opts[:body]
132
+
133
+ # return_type
134
+ return_type = opts[:return_type] || 'PaginatedCollectionVersionSearchListResponseList'
135
+
136
+ # auth_names
137
+ auth_names = opts[:auth_names] || ['basicAuth']
138
+
139
+ new_options = opts.merge(
140
+ :header_params => header_params,
141
+ :query_params => query_params,
142
+ :form_params => form_params,
143
+ :body => post_body,
144
+ :auth_names => auth_names,
145
+ :return_type => return_type
146
+ )
147
+
148
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
149
+ if @api_client.config.debugging
150
+ @api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
+ end
152
+ return data, status_code, headers
153
+ end
154
+
155
+ # A viewset for cross-repo searches.
156
+ # @param collection_version_search_list [CollectionVersionSearchList]
157
+ # @param [Hash] opts the optional parameters
158
+ # @return [CollectionVersionSearchListResponse]
159
+ def rebuild(collection_version_search_list, opts = {})
160
+ data, _status_code, _headers = rebuild_with_http_info(collection_version_search_list, opts)
161
+ data
162
+ end
163
+
164
+ # A viewset for cross-repo searches.
165
+ # @param collection_version_search_list [CollectionVersionSearchList]
166
+ # @param [Hash] opts the optional parameters
167
+ # @return [Array<(CollectionVersionSearchListResponse, Integer, Hash)>] CollectionVersionSearchListResponse data, response status code and response headers
168
+ def rebuild_with_http_info(collection_version_search_list, opts = {})
169
+ if @api_client.config.debugging
170
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild ...'
171
+ end
172
+ # verify the required parameter 'collection_version_search_list' is set
173
+ if @api_client.config.client_side_validation && collection_version_search_list.nil?
174
+ fail ArgumentError, "Missing the required parameter 'collection_version_search_list' when calling PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild"
175
+ end
176
+ # resource path
177
+ local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/'
178
+
179
+ # query parameters
180
+ query_params = opts[:query_params] || {}
181
+
182
+ # header parameters
183
+ header_params = opts[:header_params] || {}
184
+ # HTTP header 'Accept' (if needed)
185
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
186
+ # HTTP header 'Content-Type'
187
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
188
+
189
+ # form parameters
190
+ form_params = opts[:form_params] || {}
191
+
192
+ # http body (model)
193
+ post_body = opts[:body] || @api_client.object_to_http_body(collection_version_search_list)
194
+
195
+ # return_type
196
+ return_type = opts[:return_type] || 'CollectionVersionSearchListResponse'
197
+
198
+ # auth_names
199
+ auth_names = opts[:auth_names] || ['basicAuth']
200
+
201
+ new_options = opts.merge(
202
+ :header_params => header_params,
203
+ :query_params => query_params,
204
+ :form_params => form_params,
205
+ :body => post_body,
206
+ :auth_names => auth_names,
207
+ :return_type => return_type
208
+ )
209
+
210
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
211
+ if @api_client.config.debugging
212
+ @api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi#rebuild\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
+ end
214
+ return data, status_code, headers
215
+ end
216
+ end
217
+ end
@@ -19,6 +19,74 @@ module PulpAnsibleClient
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 ansible_collection_remote_href [String]
24
+ # @param nested_role [NestedRole]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [NestedRoleResponse]
27
+ def add_role(ansible_collection_remote_href, nested_role, opts = {})
28
+ data, _status_code, _headers = add_role_with_http_info(ansible_collection_remote_href, nested_role, opts)
29
+ data
30
+ end
31
+
32
+ # Add a role for this object to users/groups.
33
+ # @param ansible_collection_remote_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(ansible_collection_remote_href, nested_role, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.add_role ...'
40
+ end
41
+ # verify the required parameter 'ansible_collection_remote_href' is set
42
+ if @api_client.config.client_side_validation && ansible_collection_remote_href.nil?
43
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.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 RemotesCollectionApi.add_role"
48
+ end
49
+ # resource path
50
+ local_var_path = '{ansible_collection_remote_href}add_role/'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_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: RemotesCollectionApi#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 collection remote
23
91
  # ViewSet for Collection Remotes.
24
92
  # @param ansible_collection_remote [AnsibleCollectionRemote]
@@ -155,9 +223,7 @@ module PulpAnsibleClient
155
223
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
224
  # @option opts [String] :name__startswith Filter results where name starts with value
157
225
  # @option opts [Integer] :offset The initial index from which to return the results.
158
- # @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)
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.
226
+ # @option opts [Array<String>] :ordering Ordering
161
227
  # @option opts [String] :pulp_label_select Filter labels by search string
162
228
  # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
163
229
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
@@ -165,6 +231,10 @@ module PulpAnsibleClient
165
231
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
166
232
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
167
233
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
234
+ # @option opts [String] :url Filter results where url matches value
235
+ # @option opts [String] :url__contains Filter results where url contains value
236
+ # @option opts [String] :url__icontains Filter results where url contains value
237
+ # @option opts [Array<String>] :url__in Filter results where url is in a comma-separated list of values
168
238
  # @option opts [Array<String>] :fields A list of fields to include in the response.
169
239
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
170
240
  # @return [PaginatedansibleCollectionRemoteResponseList]
@@ -183,9 +253,7 @@ module PulpAnsibleClient
183
253
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
184
254
  # @option opts [String] :name__startswith Filter results where name starts with value
185
255
  # @option opts [Integer] :offset The initial index from which to return the results.
186
- # @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)
187
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
188
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
256
+ # @option opts [Array<String>] :ordering Ordering
189
257
  # @option opts [String] :pulp_label_select Filter labels by search string
190
258
  # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
191
259
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
@@ -193,6 +261,10 @@ module PulpAnsibleClient
193
261
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
194
262
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
195
263
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
264
+ # @option opts [String] :url Filter results where url matches value
265
+ # @option opts [String] :url__contains Filter results where url contains value
266
+ # @option opts [String] :url__icontains Filter results where url contains value
267
+ # @option opts [Array<String>] :url__in Filter results where url is in a comma-separated list of values
196
268
  # @option opts [Array<String>] :fields A list of fields to include in the response.
197
269
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
198
270
  # @return [Array<(PaginatedansibleCollectionRemoteResponseList, Integer, Hash)>] PaginatedansibleCollectionRemoteResponseList data, response status code and response headers
@@ -200,7 +272,7 @@ module PulpAnsibleClient
200
272
  if @api_client.config.debugging
201
273
  @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.list ...'
202
274
  end
203
- allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
275
+ allowable_values = ["-auth_url", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-requirements_file", "-signed_only", "-sock_connect_timeout", "-sock_read_timeout", "-sync_dependencies", "-tls_validation", "-token", "-total_timeout", "-url", "-username", "auth_url", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "requirements_file", "signed_only", "sock_connect_timeout", "sock_read_timeout", "sync_dependencies", "tls_validation", "token", "total_timeout", "url", "username"]
204
276
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
205
277
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
206
278
  end
@@ -217,8 +289,6 @@ module PulpAnsibleClient
217
289
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
218
290
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
219
291
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
220
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
221
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
222
292
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
223
293
  query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
224
294
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
@@ -226,6 +296,10 @@ module PulpAnsibleClient
226
296
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
227
297
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
228
298
  query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
299
+ query_params[:'url'] = opts[:'url'] if !opts[:'url'].nil?
300
+ query_params[:'url__contains'] = opts[:'url__contains'] if !opts[:'url__contains'].nil?
301
+ query_params[:'url__icontains'] = opts[:'url__icontains'] if !opts[:'url__icontains'].nil?
302
+ query_params[:'url__in'] = @api_client.build_collection_param(opts[:'url__in'], :csv) if !opts[:'url__in'].nil?
229
303
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
230
304
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
231
305
 
@@ -262,6 +336,138 @@ module PulpAnsibleClient
262
336
  return data, status_code, headers
263
337
  end
264
338
 
339
+ # List roles assigned to this object.
340
+ # @param ansible_collection_remote_href [String]
341
+ # @param [Hash] opts the optional parameters
342
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
343
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
344
+ # @return [ObjectRolesResponse]
345
+ def list_roles(ansible_collection_remote_href, opts = {})
346
+ data, _status_code, _headers = list_roles_with_http_info(ansible_collection_remote_href, opts)
347
+ data
348
+ end
349
+
350
+ # List roles assigned to this object.
351
+ # @param ansible_collection_remote_href [String]
352
+ # @param [Hash] opts the optional parameters
353
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
354
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
355
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
356
+ def list_roles_with_http_info(ansible_collection_remote_href, opts = {})
357
+ if @api_client.config.debugging
358
+ @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.list_roles ...'
359
+ end
360
+ # verify the required parameter 'ansible_collection_remote_href' is set
361
+ if @api_client.config.client_side_validation && ansible_collection_remote_href.nil?
362
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.list_roles"
363
+ end
364
+ # resource path
365
+ local_var_path = '{ansible_collection_remote_href}list_roles/'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_href.to_s).gsub('%2F', '/'))
366
+
367
+ # query parameters
368
+ query_params = opts[:query_params] || {}
369
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
370
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
371
+
372
+ # header parameters
373
+ header_params = opts[:header_params] || {}
374
+ # HTTP header 'Accept' (if needed)
375
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
376
+
377
+ # form parameters
378
+ form_params = opts[:form_params] || {}
379
+
380
+ # http body (model)
381
+ post_body = opts[:body]
382
+
383
+ # return_type
384
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
385
+
386
+ # auth_names
387
+ auth_names = opts[:auth_names] || ['basicAuth']
388
+
389
+ new_options = opts.merge(
390
+ :header_params => header_params,
391
+ :query_params => query_params,
392
+ :form_params => form_params,
393
+ :body => post_body,
394
+ :auth_names => auth_names,
395
+ :return_type => return_type
396
+ )
397
+
398
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
399
+ if @api_client.config.debugging
400
+ @api_client.config.logger.debug "API called: RemotesCollectionApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
401
+ end
402
+ return data, status_code, headers
403
+ end
404
+
405
+ # List permissions available to the current user on this object.
406
+ # @param ansible_collection_remote_href [String]
407
+ # @param [Hash] opts the optional parameters
408
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
409
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
410
+ # @return [MyPermissionsResponse]
411
+ def my_permissions(ansible_collection_remote_href, opts = {})
412
+ data, _status_code, _headers = my_permissions_with_http_info(ansible_collection_remote_href, opts)
413
+ data
414
+ end
415
+
416
+ # List permissions available to the current user on this object.
417
+ # @param ansible_collection_remote_href [String]
418
+ # @param [Hash] opts the optional parameters
419
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
420
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
421
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
422
+ def my_permissions_with_http_info(ansible_collection_remote_href, opts = {})
423
+ if @api_client.config.debugging
424
+ @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.my_permissions ...'
425
+ end
426
+ # verify the required parameter 'ansible_collection_remote_href' is set
427
+ if @api_client.config.client_side_validation && ansible_collection_remote_href.nil?
428
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.my_permissions"
429
+ end
430
+ # resource path
431
+ local_var_path = '{ansible_collection_remote_href}my_permissions/'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_href.to_s).gsub('%2F', '/'))
432
+
433
+ # query parameters
434
+ query_params = opts[:query_params] || {}
435
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
436
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
437
+
438
+ # header parameters
439
+ header_params = opts[:header_params] || {}
440
+ # HTTP header 'Accept' (if needed)
441
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
442
+
443
+ # form parameters
444
+ form_params = opts[:form_params] || {}
445
+
446
+ # http body (model)
447
+ post_body = opts[:body]
448
+
449
+ # return_type
450
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
451
+
452
+ # auth_names
453
+ auth_names = opts[:auth_names] || ['basicAuth']
454
+
455
+ new_options = opts.merge(
456
+ :header_params => header_params,
457
+ :query_params => query_params,
458
+ :form_params => form_params,
459
+ :body => post_body,
460
+ :auth_names => auth_names,
461
+ :return_type => return_type
462
+ )
463
+
464
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
465
+ if @api_client.config.debugging
466
+ @api_client.config.logger.debug "API called: RemotesCollectionApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
467
+ end
468
+ return data, status_code, headers
469
+ end
470
+
265
471
  # Update a collection remote
266
472
  # Trigger an asynchronous partial update task
267
473
  # @param ansible_collection_remote_href [String]
@@ -400,6 +606,74 @@ module PulpAnsibleClient
400
606
  return data, status_code, headers
401
607
  end
402
608
 
609
+ # Remove a role for this object from users/groups.
610
+ # @param ansible_collection_remote_href [String]
611
+ # @param nested_role [NestedRole]
612
+ # @param [Hash] opts the optional parameters
613
+ # @return [NestedRoleResponse]
614
+ def remove_role(ansible_collection_remote_href, nested_role, opts = {})
615
+ data, _status_code, _headers = remove_role_with_http_info(ansible_collection_remote_href, nested_role, opts)
616
+ data
617
+ end
618
+
619
+ # Remove a role for this object from users/groups.
620
+ # @param ansible_collection_remote_href [String]
621
+ # @param nested_role [NestedRole]
622
+ # @param [Hash] opts the optional parameters
623
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
624
+ def remove_role_with_http_info(ansible_collection_remote_href, nested_role, opts = {})
625
+ if @api_client.config.debugging
626
+ @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.remove_role ...'
627
+ end
628
+ # verify the required parameter 'ansible_collection_remote_href' is set
629
+ if @api_client.config.client_side_validation && ansible_collection_remote_href.nil?
630
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.remove_role"
631
+ end
632
+ # verify the required parameter 'nested_role' is set
633
+ if @api_client.config.client_side_validation && nested_role.nil?
634
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling RemotesCollectionApi.remove_role"
635
+ end
636
+ # resource path
637
+ local_var_path = '{ansible_collection_remote_href}remove_role/'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_href.to_s).gsub('%2F', '/'))
638
+
639
+ # query parameters
640
+ query_params = opts[:query_params] || {}
641
+
642
+ # header parameters
643
+ header_params = opts[:header_params] || {}
644
+ # HTTP header 'Accept' (if needed)
645
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
646
+ # HTTP header 'Content-Type'
647
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
648
+
649
+ # form parameters
650
+ form_params = opts[:form_params] || {}
651
+
652
+ # http body (model)
653
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
654
+
655
+ # return_type
656
+ return_type = opts[:return_type] || 'NestedRoleResponse'
657
+
658
+ # auth_names
659
+ auth_names = opts[:auth_names] || ['basicAuth']
660
+
661
+ new_options = opts.merge(
662
+ :header_params => header_params,
663
+ :query_params => query_params,
664
+ :form_params => form_params,
665
+ :body => post_body,
666
+ :auth_names => auth_names,
667
+ :return_type => return_type
668
+ )
669
+
670
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
671
+ if @api_client.config.debugging
672
+ @api_client.config.logger.debug "API called: RemotesCollectionApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
673
+ end
674
+ return data, status_code, headers
675
+ end
676
+
403
677
  # Update a collection remote
404
678
  # Trigger an asynchronous update task
405
679
  # @param ansible_collection_remote_href [String]