pulp_ansible_client 0.16.3 → 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 +4 -4
  10. data/docs/AnsibleCollectionVersionMark.md +19 -0
  11. data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
  12. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  13. data/docs/AnsibleCollectionsApi.md +230 -6
  14. data/docs/AnsibleGitRemote.md +30 -30
  15. data/docs/AnsibleGitRemoteResponse.md +28 -28
  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 +30 -30
  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 +14 -14
  130. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +243 -243
  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 +10 -10
  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 +234 -234
  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 +19 -19
  215. data/spec/models/ansible_git_remote_spec.rb +19 -19
  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 +19 -19
  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 +230 -102
@@ -0,0 +1,247 @@
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 ContentCollectionMarksApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a collection version mark
23
+ # ViewSet for looking at mark objects for CollectionVersion content.
24
+ # @param ansible_collection_version_mark [AnsibleCollectionVersionMark]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AnsibleCollectionVersionMarkResponse]
27
+ def create(ansible_collection_version_mark, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(ansible_collection_version_mark, opts)
29
+ data
30
+ end
31
+
32
+ # Create a collection version mark
33
+ # ViewSet for looking at mark objects for CollectionVersion content.
34
+ # @param ansible_collection_version_mark [AnsibleCollectionVersionMark]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(AnsibleCollectionVersionMarkResponse, Integer, Hash)>] AnsibleCollectionVersionMarkResponse data, response status code and response headers
37
+ def create_with_http_info(ansible_collection_version_mark, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ContentCollectionMarksApi.create ...'
40
+ end
41
+ # verify the required parameter 'ansible_collection_version_mark' is set
42
+ if @api_client.config.client_side_validation && ansible_collection_version_mark.nil?
43
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_version_mark' when calling ContentCollectionMarksApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/content/ansible/collection_marks/'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(ansible_collection_version_mark)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'AnsibleCollectionVersionMarkResponse'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: ContentCollectionMarksApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # List collection version marks
87
+ # ViewSet for looking at mark objects for CollectionVersion content.
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [Integer] :limit Number of results to return per page.
90
+ # @option opts [String] :marked_collection Filter marks for collection version
91
+ # @option opts [Integer] :offset The initial index from which to return the results.
92
+ # @option opts [Array<String>] :ordering Ordering
93
+ # @option opts [String] :repository_version Repository Version referenced by HREF
94
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
95
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
96
+ # @option opts [String] :value Filter marks by value
97
+ # @option opts [Array<String>] :value__in Filter results where value is in a comma-separated list of values
98
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
99
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
100
+ # @return [PaginatedansibleCollectionVersionMarkResponseList]
101
+ def list(opts = {})
102
+ data, _status_code, _headers = list_with_http_info(opts)
103
+ data
104
+ end
105
+
106
+ # List collection version marks
107
+ # ViewSet for looking at mark objects for CollectionVersion content.
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [Integer] :limit Number of results to return per page.
110
+ # @option opts [String] :marked_collection Filter marks for collection version
111
+ # @option opts [Integer] :offset The initial index from which to return the results.
112
+ # @option opts [Array<String>] :ordering Ordering
113
+ # @option opts [String] :repository_version Repository Version referenced by HREF
114
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
115
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
116
+ # @option opts [String] :value Filter marks by value
117
+ # @option opts [Array<String>] :value__in Filter results where value is in a comma-separated list of values
118
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
119
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
120
+ # @return [Array<(PaginatedansibleCollectionVersionMarkResponseList, Integer, Hash)>] PaginatedansibleCollectionVersionMarkResponseList data, response status code and response headers
121
+ def list_with_http_info(opts = {})
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug 'Calling API: ContentCollectionMarksApi.list ...'
124
+ end
125
+ allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "-value", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id", "value"]
126
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
127
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
128
+ end
129
+ # resource path
130
+ local_var_path = '/pulp/api/v3/content/ansible/collection_marks/'
131
+
132
+ # query parameters
133
+ query_params = opts[:query_params] || {}
134
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
135
+ query_params[:'marked_collection'] = opts[:'marked_collection'] if !opts[:'marked_collection'].nil?
136
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
137
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
138
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
139
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
140
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
141
+ query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
142
+ query_params[:'value__in'] = @api_client.build_collection_param(opts[:'value__in'], :csv) if !opts[:'value__in'].nil?
143
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
144
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
145
+
146
+ # header parameters
147
+ header_params = opts[:header_params] || {}
148
+ # HTTP header 'Accept' (if needed)
149
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
150
+
151
+ # form parameters
152
+ form_params = opts[:form_params] || {}
153
+
154
+ # http body (model)
155
+ post_body = opts[:body]
156
+
157
+ # return_type
158
+ return_type = opts[:return_type] || 'PaginatedansibleCollectionVersionMarkResponseList'
159
+
160
+ # auth_names
161
+ auth_names = opts[:auth_names] || ['basicAuth']
162
+
163
+ new_options = opts.merge(
164
+ :header_params => header_params,
165
+ :query_params => query_params,
166
+ :form_params => form_params,
167
+ :body => post_body,
168
+ :auth_names => auth_names,
169
+ :return_type => return_type
170
+ )
171
+
172
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
173
+ if @api_client.config.debugging
174
+ @api_client.config.logger.debug "API called: ContentCollectionMarksApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
175
+ end
176
+ return data, status_code, headers
177
+ end
178
+
179
+ # Inspect a collection version mark
180
+ # ViewSet for looking at mark objects for CollectionVersion content.
181
+ # @param ansible_collection_version_mark_href [String]
182
+ # @param [Hash] opts the optional parameters
183
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
184
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
185
+ # @return [AnsibleCollectionVersionMarkResponse]
186
+ def read(ansible_collection_version_mark_href, opts = {})
187
+ data, _status_code, _headers = read_with_http_info(ansible_collection_version_mark_href, opts)
188
+ data
189
+ end
190
+
191
+ # Inspect a collection version mark
192
+ # ViewSet for looking at mark objects for CollectionVersion content.
193
+ # @param ansible_collection_version_mark_href [String]
194
+ # @param [Hash] opts the optional parameters
195
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
196
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
197
+ # @return [Array<(AnsibleCollectionVersionMarkResponse, Integer, Hash)>] AnsibleCollectionVersionMarkResponse data, response status code and response headers
198
+ def read_with_http_info(ansible_collection_version_mark_href, opts = {})
199
+ if @api_client.config.debugging
200
+ @api_client.config.logger.debug 'Calling API: ContentCollectionMarksApi.read ...'
201
+ end
202
+ # verify the required parameter 'ansible_collection_version_mark_href' is set
203
+ if @api_client.config.client_side_validation && ansible_collection_version_mark_href.nil?
204
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_version_mark_href' when calling ContentCollectionMarksApi.read"
205
+ end
206
+ # resource path
207
+ local_var_path = '{ansible_collection_version_mark_href}'.sub('{' + 'ansible_collection_version_mark_href' + '}', CGI.escape(ansible_collection_version_mark_href.to_s).gsub('%2F', '/'))
208
+
209
+ # query parameters
210
+ query_params = opts[:query_params] || {}
211
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
212
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
213
+
214
+ # header parameters
215
+ header_params = opts[:header_params] || {}
216
+ # HTTP header 'Accept' (if needed)
217
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
218
+
219
+ # form parameters
220
+ form_params = opts[:form_params] || {}
221
+
222
+ # http body (model)
223
+ post_body = opts[:body]
224
+
225
+ # return_type
226
+ return_type = opts[:return_type] || 'AnsibleCollectionVersionMarkResponse'
227
+
228
+ # auth_names
229
+ auth_names = opts[:auth_names] || ['basicAuth']
230
+
231
+ new_options = opts.merge(
232
+ :header_params => header_params,
233
+ :query_params => query_params,
234
+ :form_params => form_params,
235
+ :body => post_body,
236
+ :auth_names => auth_names,
237
+ :return_type => return_type
238
+ )
239
+
240
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
241
+ if @api_client.config.debugging
242
+ @api_client.config.logger.debug "API called: ContentCollectionMarksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
243
+ end
244
+ return data, status_code, headers
245
+ end
246
+ end
247
+ end
@@ -99,11 +99,9 @@ module PulpAnsibleClient
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @option opts [Integer] :limit Number of results to return per page.
101
101
  # @option opts [Integer] :offset The initial index from which to return the results.
102
- # @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;data&#x60; - Data * &#x60;-data&#x60; - Data (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pubkey_fingerprint&#x60; - Pubkey fingerprint * &#x60;-pubkey_fingerprint&#x60; - Pubkey fingerprint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
102
+ # @option opts [Array<String>] :ordering Ordering
103
103
  # @option opts [String] :pubkey_fingerprint Filter results where pubkey_fingerprint matches value
104
104
  # @option opts [Array<String>] :pubkey_fingerprint__in Filter results where pubkey_fingerprint is in a comma-separated list of values
105
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
107
105
  # @option opts [String] :repository_version Repository Version referenced by HREF
108
106
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
109
107
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -122,11 +120,9 @@ module PulpAnsibleClient
122
120
  # @param [Hash] opts the optional parameters
123
121
  # @option opts [Integer] :limit Number of results to return per page.
124
122
  # @option opts [Integer] :offset The initial index from which to return the results.
125
- # @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;data&#x60; - Data * &#x60;-data&#x60; - Data (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pubkey_fingerprint&#x60; - Pubkey fingerprint * &#x60;-pubkey_fingerprint&#x60; - Pubkey fingerprint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
123
+ # @option opts [Array<String>] :ordering Ordering
126
124
  # @option opts [String] :pubkey_fingerprint Filter results where pubkey_fingerprint matches value
127
125
  # @option opts [Array<String>] :pubkey_fingerprint__in Filter results where pubkey_fingerprint is in a comma-separated list of values
128
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
129
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
130
126
  # @option opts [String] :repository_version Repository Version referenced by HREF
131
127
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
132
128
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -153,8 +149,6 @@ module PulpAnsibleClient
153
149
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
154
150
  query_params[:'pubkey_fingerprint'] = opts[:'pubkey_fingerprint'] if !opts[:'pubkey_fingerprint'].nil?
155
151
  query_params[:'pubkey_fingerprint__in'] = @api_client.build_collection_param(opts[:'pubkey_fingerprint__in'], :csv) if !opts[:'pubkey_fingerprint__in'].nil?
156
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
157
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
158
152
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
159
153
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
160
154
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -22,10 +22,10 @@ module PulpAnsibleClient
22
22
  # Create a collection version
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
25
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
26
26
  # @option opts [String] :artifact Artifact file representing the physical content
27
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
27
28
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
28
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
29
29
  # @option opts [String] :expected_name The name of the collection.
30
30
  # @option opts [String] :expected_namespace The namespace of the collection.
31
31
  # @option opts [String] :expected_version The version of the collection.
@@ -38,10 +38,10 @@ module PulpAnsibleClient
38
38
  # Create a collection version
39
39
  # Trigger an asynchronous task to create content,optionally create new repository version.
40
40
  # @param [Hash] opts the optional parameters
41
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
41
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
42
42
  # @option opts [String] :artifact Artifact file representing the physical content
43
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
43
44
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
44
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
45
45
  # @option opts [String] :expected_name The name of the collection.
46
46
  # @option opts [String] :expected_namespace The namespace of the collection.
47
47
  # @option opts [String] :expected_version The version of the collection.
@@ -89,10 +89,10 @@ module PulpAnsibleClient
89
89
 
90
90
  # form parameters
91
91
  form_params = opts[:form_params] || {}
92
- form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
92
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
93
93
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
94
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
94
95
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
95
- form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
96
96
  form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
97
97
  form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
98
98
  form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
@@ -130,9 +130,7 @@ module PulpAnsibleClient
130
130
  # @option opts [String] :name
131
131
  # @option opts [String] :namespace
132
132
  # @option opts [Integer] :offset The initial index from which to return the results.
133
- # @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;authors&#x60; - Authors * &#x60;-authors&#x60; - Authors (descending) * &#x60;contents&#x60; - Contents * &#x60;-contents&#x60; - Contents (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;docs_blob&#x60; - Docs blob * &#x60;-docs_blob&#x60; - Docs blob (descending) * &#x60;manifest&#x60; - Manifest * &#x60;-manifest&#x60; - Manifest (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;documentation&#x60; - Documentation * &#x60;-documentation&#x60; - Documentation (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;issues&#x60; - Issues * &#x60;-issues&#x60; - Issues (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;namespace&#x60; - Namespace * &#x60;-namespace&#x60; - Namespace (descending) * &#x60;repository&#x60; - Repository * &#x60;-repository&#x60; - Repository (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;requires_ansible&#x60; - Requires ansible * &#x60;-requires_ansible&#x60; - Requires ansible (descending) * &#x60;is_highest&#x60; - Is highest * &#x60;-is_highest&#x60; - Is highest (descending) * &#x60;search_vector&#x60; - Search vector * &#x60;-search_vector&#x60; - Search vector (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
134
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
135
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
133
+ # @option opts [Array<String>] :ordering Ordering
136
134
  # @option opts [String] :q
137
135
  # @option opts [String] :repository_version Repository Version referenced by HREF
138
136
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -155,9 +153,7 @@ module PulpAnsibleClient
155
153
  # @option opts [String] :name
156
154
  # @option opts [String] :namespace
157
155
  # @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;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;authors&#x60; - Authors * &#x60;-authors&#x60; - Authors (descending) * &#x60;contents&#x60; - Contents * &#x60;-contents&#x60; - Contents (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;docs_blob&#x60; - Docs blob * &#x60;-docs_blob&#x60; - Docs blob (descending) * &#x60;manifest&#x60; - Manifest * &#x60;-manifest&#x60; - Manifest (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;documentation&#x60; - Documentation * &#x60;-documentation&#x60; - Documentation (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;issues&#x60; - Issues * &#x60;-issues&#x60; - Issues (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;namespace&#x60; - Namespace * &#x60;-namespace&#x60; - Namespace (descending) * &#x60;repository&#x60; - Repository * &#x60;-repository&#x60; - Repository (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;requires_ansible&#x60; - Requires ansible * &#x60;-requires_ansible&#x60; - Requires ansible (descending) * &#x60;is_highest&#x60; - Is highest * &#x60;-is_highest&#x60; - Is highest (descending) * &#x60;search_vector&#x60; - Search vector * &#x60;-search_vector&#x60; - Search vector (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.
156
+ # @option opts [Array<String>] :ordering Ordering
161
157
  # @option opts [String] :q
162
158
  # @option opts [String] :repository_version Repository Version referenced by HREF
163
159
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -186,8 +182,6 @@ module PulpAnsibleClient
186
182
  query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
187
183
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
188
184
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
189
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
190
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
191
185
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
192
186
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
193
187
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -0,0 +1,276 @@
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 ContentNamespacesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get the logo for the this namespace.
23
+ # @param ansible_ansible_namespace_metadata_href [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
26
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
27
+ # @return [nil]
28
+ def avatar(ansible_ansible_namespace_metadata_href, opts = {})
29
+ avatar_with_http_info(ansible_ansible_namespace_metadata_href, opts)
30
+ nil
31
+ end
32
+
33
+ # Get the logo for the this namespace.
34
+ # @param ansible_ansible_namespace_metadata_href [String]
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
37
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
38
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
+ def avatar_with_http_info(ansible_ansible_namespace_metadata_href, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: ContentNamespacesApi.avatar ...'
42
+ end
43
+ # verify the required parameter 'ansible_ansible_namespace_metadata_href' is set
44
+ if @api_client.config.client_side_validation && ansible_ansible_namespace_metadata_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'ansible_ansible_namespace_metadata_href' when calling ContentNamespacesApi.avatar"
46
+ end
47
+ # resource path
48
+ local_var_path = '{ansible_ansible_namespace_metadata_href}avatar/'.sub('{' + 'ansible_ansible_namespace_metadata_href' + '}', CGI.escape(ansible_ansible_namespace_metadata_href.to_s).gsub('%2F', '/'))
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
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
+
60
+ # form parameters
61
+ form_params = opts[:form_params] || {}
62
+
63
+ # http body (model)
64
+ post_body = opts[:body]
65
+
66
+ # return_type
67
+ return_type = opts[:return_type]
68
+
69
+ # auth_names
70
+ auth_names = opts[:auth_names] || ['basicAuth']
71
+
72
+ new_options = opts.merge(
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: ContentNamespacesApi#avatar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+
88
+ # List ansible namespace metadatas
89
+ # ViewSet for AnsibleNamespace.
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [String] :company Filter results where company matches value
92
+ # @option opts [String] :company__contains Filter results where company contains value
93
+ # @option opts [String] :company__icontains Filter results where company contains value
94
+ # @option opts [Array<String>] :company__in Filter results where company is in a comma-separated list of values
95
+ # @option opts [String] :company__startswith Filter results where company starts with value
96
+ # @option opts [Integer] :limit Number of results to return per page.
97
+ # @option opts [String] :metadata_sha256 Filter results where metadata_sha256 matches value
98
+ # @option opts [Array<String>] :metadata_sha256__in Filter results where metadata_sha256 is in a comma-separated list of values
99
+ # @option opts [String] :name Filter results where name matches value
100
+ # @option opts [String] :name__contains Filter results where name contains value
101
+ # @option opts [String] :name__icontains Filter results where name contains value
102
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
103
+ # @option opts [String] :name__startswith Filter results where name starts with value
104
+ # @option opts [Integer] :offset The initial index from which to return the results.
105
+ # @option opts [Array<String>] :ordering Ordering
106
+ # @option opts [String] :repository_version Repository Version referenced by HREF
107
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
108
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
109
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
110
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
111
+ # @return [PaginatedansibleAnsibleNamespaceMetadataResponseList]
112
+ def list(opts = {})
113
+ data, _status_code, _headers = list_with_http_info(opts)
114
+ data
115
+ end
116
+
117
+ # List ansible namespace metadatas
118
+ # ViewSet for AnsibleNamespace.
119
+ # @param [Hash] opts the optional parameters
120
+ # @option opts [String] :company Filter results where company matches value
121
+ # @option opts [String] :company__contains Filter results where company contains value
122
+ # @option opts [String] :company__icontains Filter results where company contains value
123
+ # @option opts [Array<String>] :company__in Filter results where company is in a comma-separated list of values
124
+ # @option opts [String] :company__startswith Filter results where company starts with value
125
+ # @option opts [Integer] :limit Number of results to return per page.
126
+ # @option opts [String] :metadata_sha256 Filter results where metadata_sha256 matches value
127
+ # @option opts [Array<String>] :metadata_sha256__in Filter results where metadata_sha256 is in a comma-separated list of values
128
+ # @option opts [String] :name Filter results where name matches value
129
+ # @option opts [String] :name__contains Filter results where name contains value
130
+ # @option opts [String] :name__icontains Filter results where name contains value
131
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
132
+ # @option opts [String] :name__startswith Filter results where name starts with value
133
+ # @option opts [Integer] :offset The initial index from which to return the results.
134
+ # @option opts [Array<String>] :ordering Ordering
135
+ # @option opts [String] :repository_version Repository Version referenced by HREF
136
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
137
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
138
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
139
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
140
+ # @return [Array<(PaginatedansibleAnsibleNamespaceMetadataResponseList, Integer, Hash)>] PaginatedansibleAnsibleNamespaceMetadataResponseList data, response status code and response headers
141
+ def list_with_http_info(opts = {})
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug 'Calling API: ContentNamespacesApi.list ...'
144
+ end
145
+ allowable_values = ["-avatar_sha256", "-company", "-description", "-email", "-links", "-metadata_sha256", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-resources", "-timestamp_of_interest", "-upstream_id", "avatar_sha256", "company", "description", "email", "links", "metadata_sha256", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "resources", "timestamp_of_interest", "upstream_id"]
146
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
+ end
149
+ # resource path
150
+ local_var_path = '/pulp/api/v3/content/ansible/namespaces/'
151
+
152
+ # query parameters
153
+ query_params = opts[:query_params] || {}
154
+ query_params[:'company'] = opts[:'company'] if !opts[:'company'].nil?
155
+ query_params[:'company__contains'] = opts[:'company__contains'] if !opts[:'company__contains'].nil?
156
+ query_params[:'company__icontains'] = opts[:'company__icontains'] if !opts[:'company__icontains'].nil?
157
+ query_params[:'company__in'] = @api_client.build_collection_param(opts[:'company__in'], :csv) if !opts[:'company__in'].nil?
158
+ query_params[:'company__startswith'] = opts[:'company__startswith'] if !opts[:'company__startswith'].nil?
159
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
160
+ query_params[:'metadata_sha256'] = opts[:'metadata_sha256'] if !opts[:'metadata_sha256'].nil?
161
+ query_params[:'metadata_sha256__in'] = @api_client.build_collection_param(opts[:'metadata_sha256__in'], :csv) if !opts[:'metadata_sha256__in'].nil?
162
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
163
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
164
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
165
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
166
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
167
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
168
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
169
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
170
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
171
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
172
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
173
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
174
+
175
+ # header parameters
176
+ header_params = opts[:header_params] || {}
177
+ # HTTP header 'Accept' (if needed)
178
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
179
+
180
+ # form parameters
181
+ form_params = opts[:form_params] || {}
182
+
183
+ # http body (model)
184
+ post_body = opts[:body]
185
+
186
+ # return_type
187
+ return_type = opts[:return_type] || 'PaginatedansibleAnsibleNamespaceMetadataResponseList'
188
+
189
+ # auth_names
190
+ auth_names = opts[:auth_names] || ['basicAuth']
191
+
192
+ new_options = opts.merge(
193
+ :header_params => header_params,
194
+ :query_params => query_params,
195
+ :form_params => form_params,
196
+ :body => post_body,
197
+ :auth_names => auth_names,
198
+ :return_type => return_type
199
+ )
200
+
201
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
202
+ if @api_client.config.debugging
203
+ @api_client.config.logger.debug "API called: ContentNamespacesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
+ end
205
+ return data, status_code, headers
206
+ end
207
+
208
+ # Inspect an ansible namespace metadata
209
+ # ViewSet for AnsibleNamespace.
210
+ # @param ansible_ansible_namespace_metadata_href [String]
211
+ # @param [Hash] opts the optional parameters
212
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
213
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
214
+ # @return [AnsibleAnsibleNamespaceMetadataResponse]
215
+ def read(ansible_ansible_namespace_metadata_href, opts = {})
216
+ data, _status_code, _headers = read_with_http_info(ansible_ansible_namespace_metadata_href, opts)
217
+ data
218
+ end
219
+
220
+ # Inspect an ansible namespace metadata
221
+ # ViewSet for AnsibleNamespace.
222
+ # @param ansible_ansible_namespace_metadata_href [String]
223
+ # @param [Hash] opts the optional parameters
224
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
225
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
226
+ # @return [Array<(AnsibleAnsibleNamespaceMetadataResponse, Integer, Hash)>] AnsibleAnsibleNamespaceMetadataResponse data, response status code and response headers
227
+ def read_with_http_info(ansible_ansible_namespace_metadata_href, opts = {})
228
+ if @api_client.config.debugging
229
+ @api_client.config.logger.debug 'Calling API: ContentNamespacesApi.read ...'
230
+ end
231
+ # verify the required parameter 'ansible_ansible_namespace_metadata_href' is set
232
+ if @api_client.config.client_side_validation && ansible_ansible_namespace_metadata_href.nil?
233
+ fail ArgumentError, "Missing the required parameter 'ansible_ansible_namespace_metadata_href' when calling ContentNamespacesApi.read"
234
+ end
235
+ # resource path
236
+ local_var_path = '{ansible_ansible_namespace_metadata_href}'.sub('{' + 'ansible_ansible_namespace_metadata_href' + '}', CGI.escape(ansible_ansible_namespace_metadata_href.to_s).gsub('%2F', '/'))
237
+
238
+ # query parameters
239
+ query_params = opts[:query_params] || {}
240
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
241
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
242
+
243
+ # header parameters
244
+ header_params = opts[:header_params] || {}
245
+ # HTTP header 'Accept' (if needed)
246
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
247
+
248
+ # form parameters
249
+ form_params = opts[:form_params] || {}
250
+
251
+ # http body (model)
252
+ post_body = opts[:body]
253
+
254
+ # return_type
255
+ return_type = opts[:return_type] || 'AnsibleAnsibleNamespaceMetadataResponse'
256
+
257
+ # auth_names
258
+ auth_names = opts[:auth_names] || ['basicAuth']
259
+
260
+ new_options = opts.merge(
261
+ :header_params => header_params,
262
+ :query_params => query_params,
263
+ :form_params => form_params,
264
+ :body => post_body,
265
+ :auth_names => auth_names,
266
+ :return_type => return_type
267
+ )
268
+
269
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
270
+ if @api_client.config.debugging
271
+ @api_client.config.logger.debug "API called: ContentNamespacesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
+ end
273
+ return data, status_code, headers
274
+ end
275
+ end
276
+ end