pulp_ansible_client 0.2.0b15 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +88 -61
  3. data/docs/AnsibleAnsibleDistribution.md +2 -8
  4. data/docs/AnsibleAnsibleDistributionResponse.md +31 -0
  5. data/docs/AnsibleAnsibleRepository.md +4 -10
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +29 -0
  7. data/docs/AnsibleCollectionRemote.md +4 -10
  8. data/docs/AnsibleCollectionRemoteResponse.md +49 -0
  9. data/docs/{AnsibleCollection.md → AnsibleCollectionResponse.md} +2 -2
  10. data/docs/AnsibleCollectionVersion.md +5 -25
  11. data/docs/AnsibleCollectionVersionResponse.md +67 -0
  12. data/docs/AnsibleCollectionsApi.md +47 -47
  13. data/docs/AnsibleRole.md +1 -5
  14. data/docs/AnsibleRoleRemote.md +37 -0
  15. data/docs/{AnsibleAnsibleRemote.md → AnsibleRoleRemoteResponse.md} +5 -5
  16. data/docs/AnsibleRoleResponse.md +27 -0
  17. data/docs/{AnsibleTag.md → AnsibleTagResponse.md} +2 -2
  18. data/docs/CertificationEnum.md +16 -0
  19. data/docs/Collection.md +2 -12
  20. data/docs/CollectionImportApi.md +70 -0
  21. data/docs/{CollectionImportDetail.md → CollectionImportDetailResponse.md} +2 -2
  22. data/docs/CollectionMetadata.md +1 -19
  23. data/docs/CollectionMetadataResponse.md +35 -0
  24. data/docs/CollectionNamespaceResponse.md +17 -0
  25. data/docs/CollectionOneShot.md +25 -0
  26. data/docs/CollectionRef.md +1 -3
  27. data/docs/CollectionRefResponse.md +21 -0
  28. data/docs/CollectionResponse.md +31 -0
  29. data/docs/CollectionVersion.md +3 -19
  30. data/docs/CollectionVersionResponse.md +37 -0
  31. data/docs/ContentCollectionVersionsApi.md +42 -42
  32. data/docs/ContentRolesApi.md +32 -32
  33. data/docs/ContentSummary.md +3 -3
  34. data/docs/ContentSummaryResponse.md +21 -0
  35. data/docs/DistributionsAnsibleApi.md +108 -60
  36. data/docs/GalaxyCollection.md +1 -5
  37. data/docs/GalaxyCollectionListApi.md +65 -0
  38. data/docs/GalaxyCollectionResponse.md +23 -0
  39. data/docs/{GalaxyCollectionVersion.md → GalaxyCollectionVersionResponse.md} +7 -7
  40. data/docs/GalaxyDetailApi.md +61 -0
  41. data/docs/{GalaxyRole.md → GalaxyRoleResponse.md} +3 -3
  42. data/docs/{GalaxyRoleVersion.md → GalaxyRoleVersionResponse.md} +3 -3
  43. data/docs/InlineResponse200.md +3 -3
  44. data/docs/InlineResponse2001.md +3 -3
  45. data/docs/InlineResponse20010.md +3 -3
  46. data/docs/InlineResponse20011.md +3 -3
  47. data/docs/InlineResponse20012.md +3 -3
  48. data/docs/InlineResponse20013.md +3 -3
  49. data/docs/InlineResponse20014.md +23 -0
  50. data/docs/InlineResponse2002.md +3 -3
  51. data/docs/InlineResponse2003.md +3 -3
  52. data/docs/InlineResponse2004.md +3 -3
  53. data/docs/InlineResponse2005.md +3 -3
  54. data/docs/InlineResponse2006.md +3 -3
  55. data/docs/InlineResponse2007.md +3 -3
  56. data/docs/InlineResponse2008.md +3 -3
  57. data/docs/InlineResponse2009.md +3 -3
  58. data/docs/PatchedansibleAnsibleDistribution.md +25 -0
  59. data/docs/PatchedansibleAnsibleRepository.md +21 -0
  60. data/docs/PatchedansibleCollectionRemote.md +43 -0
  61. data/docs/PatchedansibleRoleRemote.md +37 -0
  62. data/docs/PolicyEnum.md +16 -0
  63. data/docs/PulpAnsibleApiApi.md +6 -12
  64. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +37 -108
  65. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +17 -22
  66. data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +1 -69
  67. data/docs/PulpAnsibleGalaxyApiV3CollectionsCertifiedApi.md +63 -0
  68. data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +172 -0
  69. data/docs/PulpAnsibleTagsApi.md +4 -4
  70. data/docs/RemotesCollectionApi.md +127 -67
  71. data/docs/RemotesRoleApi.md +428 -0
  72. data/docs/RepositoriesAnsibleApi.md +100 -76
  73. data/docs/RepositoriesAnsibleVersionsApi.md +96 -64
  74. data/docs/RepositoryAddRemoveContent.md +2 -2
  75. data/docs/RepositorySyncURL.md +1 -1
  76. data/docs/RepositoryVersion.md +1 -9
  77. data/docs/RepositoryVersionResponse.md +25 -0
  78. data/docs/{PulpAnsibleGalaxyApiV1VersionsApi.md → RoleListApi.md} +9 -17
  79. data/docs/{Tag.md → TagResponse.md} +2 -2
  80. data/docs/{PulpAnsibleGalaxyApiRolesApi.md → V1RolesApi.md} +9 -15
  81. data/docs/V2CollectionsApi.md +112 -0
  82. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +74 -90
  83. data/lib/pulp_ansible_client/api/collection_import_api.rb +93 -0
  84. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +67 -63
  85. data/lib/pulp_ansible_client/api/content_roles_api.rb +48 -48
  86. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +153 -90
  87. data/lib/pulp_ansible_client/api/galaxy_collection_list_api.rb +94 -0
  88. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +88 -0
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +9 -9
  90. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +77 -122
  91. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +38 -28
  92. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -90
  93. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_certified_api.rb +108 -0
  94. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +264 -0
  95. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
  96. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +184 -103
  97. data/lib/pulp_ansible_client/api/remotes_role_api.rb +532 -0
  98. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +151 -124
  99. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +141 -96
  100. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v1_versions_api.rb → role_list_api.rb} +15 -21
  101. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_roles_api.rb → v1_roles_api.rb} +15 -15
  102. data/lib/pulp_ansible_client/api/v2_collections_api.rb +159 -0
  103. data/lib/pulp_ansible_client/api_client.rb +2 -2
  104. data/lib/pulp_ansible_client/api_error.rb +2 -2
  105. data/lib/pulp_ansible_client/configuration.rb +3 -3
  106. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +8 -74
  107. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +290 -0
  108. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +18 -78
  109. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +271 -0
  110. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +7 -232
  111. data/lib/pulp_ansible_client/models/{ansible_ansible_remote.rb → ansible_collection_remote_response.rb} +66 -166
  112. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_response.rb} +6 -43
  113. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +55 -250
  114. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +721 -0
  115. data/lib/pulp_ansible_client/models/ansible_role.rb +4 -79
  116. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +339 -0
  117. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +368 -0
  118. data/lib/pulp_ansible_client/models/ansible_role_response.rb +274 -0
  119. data/lib/pulp_ansible_client/models/{ansible_tag.rb → ansible_tag_response.rb} +6 -20
  120. data/lib/pulp_ansible_client/models/async_operation_response.rb +3 -2
  121. data/lib/pulp_ansible_client/models/certification_enum.rb +37 -0
  122. data/lib/pulp_ansible_client/models/collection.rb +7 -81
  123. data/lib/pulp_ansible_client/models/{collection_import_detail.rb → collection_import_detail_response.rb} +6 -24
  124. data/lib/pulp_ansible_client/models/collection_metadata.rb +4 -163
  125. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +367 -0
  126. data/lib/pulp_ansible_client/models/collection_namespace.rb +3 -21
  127. data/lib/pulp_ansible_client/models/{tag.rb → collection_namespace_response.rb} +9 -18
  128. data/lib/pulp_ansible_client/models/collection_one_shot.rb +253 -0
  129. data/lib/pulp_ansible_client/models/collection_ref.rb +7 -53
  130. data/lib/pulp_ansible_client/models/collection_ref_response.rb +235 -0
  131. data/lib/pulp_ansible_client/models/collection_response.rb +285 -0
  132. data/lib/pulp_ansible_client/models/collection_version.rb +8 -143
  133. data/lib/pulp_ansible_client/models/collection_version_response.rb +307 -0
  134. data/lib/pulp_ansible_client/models/content_summary.rb +9 -15
  135. data/lib/pulp_ansible_client/models/content_summary_response.rb +240 -0
  136. data/lib/pulp_ansible_client/models/galaxy_collection.rb +7 -62
  137. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +244 -0
  138. data/lib/pulp_ansible_client/models/{galaxy_collection_version.rb → galaxy_collection_version_response.rb} +11 -29
  139. data/lib/pulp_ansible_client/models/{galaxy_role.rb → galaxy_role_response.rb} +7 -44
  140. data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_response.rb} +7 -25
  141. data/lib/pulp_ansible_client/models/inline_response200.rb +3 -13
  142. data/lib/pulp_ansible_client/models/inline_response2001.rb +3 -13
  143. data/lib/pulp_ansible_client/models/inline_response20010.rb +3 -13
  144. data/lib/pulp_ansible_client/models/inline_response20011.rb +3 -13
  145. data/lib/pulp_ansible_client/models/inline_response20012.rb +3 -13
  146. data/lib/pulp_ansible_client/models/inline_response20013.rb +3 -13
  147. data/lib/pulp_ansible_client/models/inline_response20014.rb +237 -0
  148. data/lib/pulp_ansible_client/models/inline_response2002.rb +3 -13
  149. data/lib/pulp_ansible_client/models/inline_response2003.rb +3 -13
  150. data/lib/pulp_ansible_client/models/inline_response2004.rb +3 -13
  151. data/lib/pulp_ansible_client/models/inline_response2005.rb +3 -13
  152. data/lib/pulp_ansible_client/models/inline_response2006.rb +3 -13
  153. data/lib/pulp_ansible_client/models/inline_response2007.rb +3 -13
  154. data/lib/pulp_ansible_client/models/inline_response2008.rb +3 -13
  155. data/lib/pulp_ansible_client/models/inline_response2009.rb +3 -13
  156. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +251 -0
  157. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +229 -0
  158. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +392 -0
  159. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +329 -0
  160. data/lib/pulp_ansible_client/models/policy_enum.rb +36 -0
  161. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +5 -4
  162. data/lib/pulp_ansible_client/models/repository_sync_url.rb +3 -8
  163. data/lib/pulp_ansible_client/models/repository_version.rb +7 -43
  164. data/lib/pulp_ansible_client/models/repository_version_response.rb +246 -0
  165. data/lib/pulp_ansible_client/models/tag_response.rb +207 -0
  166. data/lib/pulp_ansible_client/version.rb +3 -3
  167. data/lib/pulp_ansible_client.rb +41 -13
  168. data/pulp_ansible_client.gemspec +4 -4
  169. data/spec/api/ansible_collections_api_spec.rb +21 -21
  170. data/spec/api/collection_import_api_spec.rb +50 -0
  171. data/spec/api/content_collection_versions_api_spec.rb +18 -18
  172. data/spec/api/content_roles_api_spec.rb +13 -13
  173. data/spec/api/distributions_ansible_api_spec.rb +39 -18
  174. data/spec/api/galaxy_collection_list_api_spec.rb +50 -0
  175. data/spec/api/galaxy_detail_api_spec.rb +48 -0
  176. data/spec/api/pulp_ansible_api_api_spec.rb +4 -4
  177. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +19 -29
  178. data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +10 -9
  179. data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +2 -17
  180. data/spec/api/pulp_ansible_galaxy_api_v3_collections_certified_api_spec.rb +50 -0
  181. data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +90 -0
  182. data/spec/api/pulp_ansible_tags_api_spec.rb +3 -3
  183. data/spec/api/remotes_collection_api_spec.rb +49 -22
  184. data/spec/api/remotes_role_api_spec.rb +150 -0
  185. data/spec/api/repositories_ansible_api_spec.rb +31 -22
  186. data/spec/api/repositories_ansible_versions_api_spec.rb +40 -25
  187. data/spec/api/{pulp_ansible_galaxy_api_v1_versions_api_spec.rb → role_list_api_spec.rb} +9 -10
  188. data/spec/api/{pulp_ansible_galaxy_api_roles_api_spec.rb → v1_roles_api_spec.rb} +9 -9
  189. data/spec/api/v2_collections_api_spec.rb +61 -0
  190. data/spec/api_client_spec.rb +2 -2
  191. data/spec/configuration_spec.rb +2 -2
  192. data/spec/models/ansible_ansible_distribution_response_spec.rb +83 -0
  193. data/spec/models/ansible_ansible_distribution_spec.rb +2 -20
  194. data/spec/models/ansible_ansible_repository_response_spec.rb +77 -0
  195. data/spec/models/ansible_ansible_repository_spec.rb +5 -23
  196. data/spec/models/ansible_collection_remote_response_spec.rb +137 -0
  197. data/spec/models/ansible_collection_remote_spec.rb +2 -24
  198. data/spec/models/{ansible_collection_spec.rb → ansible_collection_response_spec.rb} +8 -8
  199. data/spec/models/ansible_collection_version_response_spec.rb +191 -0
  200. data/spec/models/ansible_collection_version_spec.rb +2 -62
  201. data/spec/models/{ansible_ansible_remote_spec.rb → ansible_role_remote_response_spec.rb} +8 -12
  202. data/spec/models/ansible_role_remote_spec.rb +101 -0
  203. data/spec/models/ansible_role_response_spec.rb +71 -0
  204. data/spec/models/ansible_role_spec.rb +2 -14
  205. data/spec/models/{ansible_tag_spec.rb → ansible_tag_response_spec.rb} +8 -8
  206. data/spec/models/async_operation_response_spec.rb +2 -2
  207. data/spec/models/certification_enum_spec.rb +35 -0
  208. data/spec/models/{collection_import_detail_spec.rb → collection_import_detail_response_spec.rb} +8 -8
  209. data/spec/models/collection_metadata_response_spec.rb +95 -0
  210. data/spec/models/collection_metadata_spec.rb +2 -56
  211. data/spec/models/collection_namespace_response_spec.rb +41 -0
  212. data/spec/models/collection_namespace_spec.rb +2 -2
  213. data/spec/models/collection_one_shot_spec.rb +65 -0
  214. data/spec/models/collection_ref_response_spec.rb +53 -0
  215. data/spec/models/collection_ref_spec.rb +2 -8
  216. data/spec/models/collection_response_spec.rb +83 -0
  217. data/spec/models/collection_spec.rb +2 -32
  218. data/spec/models/collection_version_response_spec.rb +101 -0
  219. data/spec/models/collection_version_spec.rb +2 -54
  220. data/spec/models/content_summary_response_spec.rb +53 -0
  221. data/spec/models/content_summary_spec.rb +2 -2
  222. data/spec/models/galaxy_collection_response_spec.rb +59 -0
  223. data/spec/models/galaxy_collection_spec.rb +2 -14
  224. data/spec/models/{galaxy_collection_version_spec.rb → galaxy_collection_version_response_spec.rb} +8 -8
  225. data/spec/models/{galaxy_role_spec.rb → galaxy_role_response_spec.rb} +8 -8
  226. data/spec/models/{galaxy_role_version_spec.rb → galaxy_role_version_response_spec.rb} +8 -8
  227. data/spec/models/inline_response20010_spec.rb +2 -2
  228. data/spec/models/inline_response20011_spec.rb +2 -2
  229. data/spec/models/inline_response20012_spec.rb +2 -2
  230. data/spec/models/inline_response20013_spec.rb +2 -2
  231. data/spec/models/inline_response20014_spec.rb +59 -0
  232. data/spec/models/inline_response2001_spec.rb +2 -2
  233. data/spec/models/inline_response2002_spec.rb +2 -2
  234. data/spec/models/inline_response2003_spec.rb +2 -2
  235. data/spec/models/inline_response2004_spec.rb +2 -2
  236. data/spec/models/inline_response2005_spec.rb +2 -2
  237. data/spec/models/inline_response2006_spec.rb +2 -2
  238. data/spec/models/inline_response2007_spec.rb +2 -2
  239. data/spec/models/inline_response2008_spec.rb +2 -2
  240. data/spec/models/inline_response2009_spec.rb +2 -2
  241. data/spec/models/inline_response200_spec.rb +2 -2
  242. data/spec/models/patchedansible_ansible_distribution_spec.rb +65 -0
  243. data/spec/models/patchedansible_ansible_repository_spec.rb +53 -0
  244. data/spec/models/patchedansible_collection_remote_spec.rb +119 -0
  245. data/spec/models/patchedansible_role_remote_spec.rb +101 -0
  246. data/spec/models/policy_enum_spec.rb +35 -0
  247. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  248. data/spec/models/repository_sync_url_spec.rb +2 -2
  249. data/spec/models/repository_version_response_spec.rb +65 -0
  250. data/spec/models/repository_version_spec.rb +2 -26
  251. data/spec/models/{tag_spec.rb → tag_response_spec.rb} +8 -8
  252. data/spec/spec_helper.rb +2 -2
  253. metadata +192 -80
  254. data/docs/RemotesAnsibleApi.md +0 -368
  255. data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +0 -451
  256. data/spec/api/remotes_ansible_api_spec.rb +0 -123
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -19,66 +19,66 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # List collections
23
- # Viewset for Ansible Collections.
22
+ # Upload a collection
23
+ # Create an artifact and trigger an asynchronous task to create Collection content from it.
24
+ # @param file [File] The Collection tarball.
24
25
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :ordering Which field to use when ordering the results.
26
- # @option opts [String] :namespace
27
- # @option opts [String] :name
28
- # @option opts [Integer] :limit Number of results to return per page.
29
- # @option opts [Integer] :offset The initial index from which to return the results.
30
- # @option opts [String] :fields A list of fields to include in the response.
31
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
32
- # @return [InlineResponse200]
33
- def list(opts = {})
34
- data, _status_code, _headers = list_with_http_info(opts)
26
+ # @option opts [String] :sha256 An optional sha256 checksum of the uploaded file.
27
+ # @option opts [String] :expected_namespace The expected 'namespace' of the Collection to be verified against the metadata during import.
28
+ # @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
29
+ # @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
30
+ # @return [AsyncOperationResponse]
31
+ def create(file, opts = {})
32
+ data, _status_code, _headers = create_with_http_info(file, opts)
35
33
  data
36
34
  end
37
35
 
38
- # List collections
39
- # Viewset for Ansible Collections.
36
+ # Upload a collection
37
+ # Create an artifact and trigger an asynchronous task to create Collection content from it.
38
+ # @param file [File] The Collection tarball.
40
39
  # @param [Hash] opts the optional parameters
41
- # @option opts [String] :ordering Which field to use when ordering the results.
42
- # @option opts [String] :namespace
43
- # @option opts [String] :name
44
- # @option opts [Integer] :limit Number of results to return per page.
45
- # @option opts [Integer] :offset The initial index from which to return the results.
46
- # @option opts [String] :fields A list of fields to include in the response.
47
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
48
- # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
49
- def list_with_http_info(opts = {})
40
+ # @option opts [String] :sha256 An optional sha256 checksum of the uploaded file.
41
+ # @option opts [String] :expected_namespace The expected &#39;namespace&#39; of the Collection to be verified against the metadata during import.
42
+ # @option opts [String] :expected_name The expected &#39;name&#39; of the Collection to be verified against the metadata during import.
43
+ # @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
44
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
45
+ def create_with_http_info(file, opts = {})
50
46
  if @api_client.config.debugging
51
- @api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.list ...'
47
+ @api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.create ...'
48
+ end
49
+ # verify the required parameter 'file' is set
50
+ if @api_client.config.client_side_validation && file.nil?
51
+ fail ArgumentError, "Missing the required parameter 'file' when calling AnsibleCollectionsApi.create"
52
52
  end
53
53
  # resource path
54
- local_var_path = '/pulp/api/v3/ansible/collections/'
54
+ local_var_path = '/ansible/collections/'
55
55
 
56
56
  # query parameters
57
57
  query_params = opts[:query_params] || {}
58
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
59
- query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
60
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
61
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
62
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
63
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
64
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
65
58
 
66
59
  # header parameters
67
60
  header_params = opts[:header_params] || {}
68
61
  # HTTP header 'Accept' (if needed)
69
62
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
63
+ # HTTP header 'Content-Type'
64
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
70
65
 
71
66
  # form parameters
72
67
  form_params = opts[:form_params] || {}
68
+ form_params['file'] = file
69
+ form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
70
+ form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
71
+ form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
72
+ form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
73
73
 
74
74
  # http body (model)
75
75
  post_body = opts[:body]
76
76
 
77
77
  # return_type
78
- return_type = opts[:return_type] || 'InlineResponse200'
78
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
79
79
 
80
80
  # auth_names
81
- auth_names = opts[:auth_names] || ['Basic']
81
+ auth_names = opts[:auth_names] || ['basicAuth']
82
82
 
83
83
  new_options = opts.merge(
84
84
  :header_params => header_params,
@@ -89,89 +89,73 @@ module PulpAnsibleClient
89
89
  :return_type => return_type
90
90
  )
91
91
 
92
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
92
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
93
93
  if @api_client.config.debugging
94
- @api_client.config.logger.debug "API called: AnsibleCollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ @api_client.config.logger.debug "API called: AnsibleCollectionsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
95
95
  end
96
96
  return data, status_code, headers
97
97
  end
98
98
 
99
- # Upload a collection
100
- # Create an artifact and trigger an asynchronous task to create Collection content from it.
101
- # @param file [File] The Collection tarball.
99
+ # List collections
100
+ # Viewset for Ansible Collections.
102
101
  # @param [Hash] opts the optional parameters
103
- # @option opts [String] :sha256 An optional sha256 checksum of the uploaded file.
104
- # @option opts [String] :expected_namespace The expected &#39;namespace&#39; of the Collection to be verified against the metadata during import.
105
- # @option opts [String] :expected_name The expected &#39;name&#39; of the Collection to be verified against the metadata during import.
106
- # @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
107
- # @return [AsyncOperationResponse]
108
- def upload_collection(file, opts = {})
109
- data, _status_code, _headers = upload_collection_with_http_info(file, opts)
102
+ # @option opts [Integer] :limit Number of results to return per page.
103
+ # @option opts [String] :name name
104
+ # @option opts [String] :namespace namespace
105
+ # @option opts [Integer] :offset The initial index from which to return the results.
106
+ # @option opts [String] :ordering Which field to use when ordering the results.
107
+ # @option opts [String] :fields A list of fields to include in the response.
108
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
109
+ # @return [InlineResponse200]
110
+ def list(opts = {})
111
+ data, _status_code, _headers = list_with_http_info(opts)
110
112
  data
111
113
  end
112
114
 
113
- # Upload a collection
114
- # Create an artifact and trigger an asynchronous task to create Collection content from it.
115
- # @param file [File] The Collection tarball.
115
+ # List collections
116
+ # Viewset for Ansible Collections.
116
117
  # @param [Hash] opts the optional parameters
117
- # @option opts [String] :sha256 An optional sha256 checksum of the uploaded file.
118
- # @option opts [String] :expected_namespace The expected &#39;namespace&#39; of the Collection to be verified against the metadata during import.
119
- # @option opts [String] :expected_name The expected &#39;name&#39; of the Collection to be verified against the metadata during import.
120
- # @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
121
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
122
- def upload_collection_with_http_info(file, opts = {})
118
+ # @option opts [Integer] :limit Number of results to return per page.
119
+ # @option opts [String] :name name
120
+ # @option opts [String] :namespace namespace
121
+ # @option opts [Integer] :offset The initial index from which to return the results.
122
+ # @option opts [String] :ordering Which field to use when ordering the results.
123
+ # @option opts [String] :fields A list of fields to include in the response.
124
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
125
+ # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
126
+ def list_with_http_info(opts = {})
123
127
  if @api_client.config.debugging
124
- @api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.upload_collection ...'
125
- end
126
- # verify the required parameter 'file' is set
127
- if @api_client.config.client_side_validation && file.nil?
128
- fail ArgumentError, "Missing the required parameter 'file' when calling AnsibleCollectionsApi.upload_collection"
129
- end
130
- if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
131
- fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
132
- end
133
-
134
- if @api_client.config.client_side_validation && !opts[:'expected_namespace'].nil? && opts[:'expected_namespace'].to_s.length < 1
135
- fail ArgumentError, 'invalid value for "opts[:"expected_namespace"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
136
- end
137
-
138
- if @api_client.config.client_side_validation && !opts[:'expected_name'].nil? && opts[:'expected_name'].to_s.length < 1
139
- fail ArgumentError, 'invalid value for "opts[:"expected_name"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
140
- end
141
-
142
- if @api_client.config.client_side_validation && !opts[:'expected_version'].nil? && opts[:'expected_version'].to_s.length < 1
143
- fail ArgumentError, 'invalid value for "opts[:"expected_version"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
128
+ @api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.list ...'
144
129
  end
145
-
146
130
  # resource path
147
- local_var_path = '/ansible/collections/'
131
+ local_var_path = '/pulp/api/v3/ansible/collections/'
148
132
 
149
133
  # query parameters
150
134
  query_params = opts[:query_params] || {}
135
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
136
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
137
+ query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
138
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
139
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
140
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
141
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
151
142
 
152
143
  # header parameters
153
144
  header_params = opts[:header_params] || {}
154
145
  # HTTP header 'Accept' (if needed)
155
146
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
156
- # HTTP header 'Content-Type'
157
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
158
147
 
159
148
  # form parameters
160
149
  form_params = opts[:form_params] || {}
161
- form_params['file'] = file
162
- form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
163
- form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
164
- form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
165
- form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
166
150
 
167
151
  # http body (model)
168
152
  post_body = opts[:body]
169
153
 
170
154
  # return_type
171
- return_type = opts[:return_type] || 'AsyncOperationResponse'
155
+ return_type = opts[:return_type] || 'InlineResponse200'
172
156
 
173
157
  # auth_names
174
- auth_names = opts[:auth_names] || ['Basic']
158
+ auth_names = opts[:auth_names] || ['basicAuth']
175
159
 
176
160
  new_options = opts.merge(
177
161
  :header_params => header_params,
@@ -182,9 +166,9 @@ module PulpAnsibleClient
182
166
  :return_type => return_type
183
167
  )
184
168
 
185
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
169
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
186
170
  if @api_client.config.debugging
187
- @api_client.config.logger.debug "API called: AnsibleCollectionsApi#upload_collection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
171
+ @api_client.config.logger.debug "API called: AnsibleCollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
188
172
  end
189
173
  return data, status_code, headers
190
174
  end
@@ -0,0 +1,93 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpAnsibleClient
16
+ class CollectionImportApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Inspect a collection import
23
+ # Returns a CollectionImport object.
24
+ # @param ansible_collection_import_href [String]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :since Filter messages since a given timestamp
27
+ # @option opts [String] :fields A list of fields to include in the response.
28
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
29
+ # @return [CollectionImportDetailResponse]
30
+ def read(ansible_collection_import_href, opts = {})
31
+ data, _status_code, _headers = read_with_http_info(ansible_collection_import_href, opts)
32
+ data
33
+ end
34
+
35
+ # Inspect a collection import
36
+ # Returns a CollectionImport object.
37
+ # @param ansible_collection_import_href [String]
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :since Filter messages since a given timestamp
40
+ # @option opts [String] :fields A list of fields to include in the response.
41
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
42
+ # @return [Array<(CollectionImportDetailResponse, Integer, Hash)>] CollectionImportDetailResponse data, response status code and response headers
43
+ def read_with_http_info(ansible_collection_import_href, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: CollectionImportApi.read ...'
46
+ end
47
+ # verify the required parameter 'ansible_collection_import_href' is set
48
+ if @api_client.config.client_side_validation && ansible_collection_import_href.nil?
49
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_import_href' when calling CollectionImportApi.read"
50
+ end
51
+ # resource path
52
+ local_var_path = '{ansible_collection_import_href}'.sub('{' + 'ansible_collection_import_href' + '}', CGI.escape(ansible_collection_import_href.to_s).gsub('%2F', '/'))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
57
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
58
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
59
+
60
+ # header parameters
61
+ header_params = opts[:header_params] || {}
62
+ # HTTP header 'Accept' (if needed)
63
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
64
+
65
+ # form parameters
66
+ form_params = opts[:form_params] || {}
67
+
68
+ # http body (model)
69
+ post_body = opts[:body]
70
+
71
+ # return_type
72
+ return_type = opts[:return_type] || 'CollectionImportDetailResponse'
73
+
74
+ # auth_names
75
+ auth_names = opts[:auth_names] || ['basicAuth']
76
+
77
+ new_options = opts.merge(
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => return_type
84
+ )
85
+
86
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: CollectionImportApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+ end
93
+ end
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -21,26 +21,26 @@ module PulpAnsibleClient
21
21
  end
22
22
  # Create a collection version
23
23
  # ViewSet for Ansible Collection.
24
- # @param data [AnsibleCollectionVersion]
24
+ # @param ansible_collection_version [AnsibleCollectionVersion]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [AnsibleCollectionVersion]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
26
+ # @return [AnsibleCollectionVersionResponse]
27
+ def create(ansible_collection_version, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(ansible_collection_version, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a collection version
33
33
  # ViewSet for Ansible Collection.
34
- # @param data [AnsibleCollectionVersion]
34
+ # @param ansible_collection_version [AnsibleCollectionVersion]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(AnsibleCollectionVersion, Integer, Hash)>] AnsibleCollectionVersion data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
36
+ # @return [Array<(AnsibleCollectionVersionResponse, Integer, Hash)>] AnsibleCollectionVersionResponse data, response status code and response headers
37
+ def create_with_http_info(ansible_collection_version, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.create ...'
40
40
  end
41
- # verify the required parameter 'data' is set
42
- if @api_client.config.client_side_validation && data.nil?
43
- fail ArgumentError, "Missing the required parameter 'data' when calling ContentCollectionVersionsApi.create"
41
+ # verify the required parameter 'ansible_collection_version' is set
42
+ if @api_client.config.client_side_validation && ansible_collection_version.nil?
43
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_version' when calling ContentCollectionVersionsApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/content/ansible/collection_versions/'
@@ -53,19 +53,19 @@ module PulpAnsibleClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
57
 
58
58
  # form parameters
59
59
  form_params = opts[:form_params] || {}
60
60
 
61
61
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(data)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(ansible_collection_version)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'AnsibleCollectionVersion'
65
+ return_type = opts[:return_type] || 'AnsibleCollectionVersionResponse'
66
66
 
67
67
  # auth_names
68
- auth_names = opts[:auth_names] || ['Basic']
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
69
 
70
70
  new_options = opts.merge(
71
71
  :header_params => header_params,
@@ -86,20 +86,20 @@ module PulpAnsibleClient
86
86
  # List collection versions
87
87
  # ViewSet for Ansible Collection.
88
88
  # @param [Hash] opts the optional parameters
89
- # @option opts [String] :ordering Which field to use when ordering the results.
90
- # @option opts [String] :namespace
91
- # @option opts [String] :name
92
- # @option opts [String] :version Filter results where version matches value
93
- # @option opts [String] :q
94
- # @option opts [String] :is_highest
95
- # @option opts [String] :certification
96
- # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
97
- # @option opts [String] :repository_version Repository Version referenced by HREF
98
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
99
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
100
- # @option opts [String] :deprecated
89
+ # @option opts [String] :certification certification
90
+ # @option opts [String] :deprecated deprecated
91
+ # @option opts [String] :is_highest is_highest
101
92
  # @option opts [Integer] :limit Number of results to return per page.
93
+ # @option opts [String] :name name
94
+ # @option opts [String] :namespace namespace
102
95
  # @option opts [Integer] :offset The initial index from which to return the results.
96
+ # @option opts [String] :ordering Which field to use when ordering the results.
97
+ # @option opts [String] :q q
98
+ # @option opts [String] :repository_version repository_version
99
+ # @option opts [String] :repository_version_added repository_version_added
100
+ # @option opts [String] :repository_version_removed repository_version_removed
101
+ # @option opts [String] :tags tags
102
+ # @option opts [String] :version version
103
103
  # @option opts [String] :fields A list of fields to include in the response.
104
104
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
105
105
  # @return [InlineResponse2001]
@@ -111,20 +111,20 @@ module PulpAnsibleClient
111
111
  # List collection versions
112
112
  # ViewSet for Ansible Collection.
113
113
  # @param [Hash] opts the optional parameters
114
- # @option opts [String] :ordering Which field to use when ordering the results.
115
- # @option opts [String] :namespace
116
- # @option opts [String] :name
117
- # @option opts [String] :version Filter results where version matches value
118
- # @option opts [String] :q
119
- # @option opts [String] :is_highest
120
- # @option opts [String] :certification
121
- # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
122
- # @option opts [String] :repository_version Repository Version referenced by HREF
123
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
124
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
125
- # @option opts [String] :deprecated
114
+ # @option opts [String] :certification certification
115
+ # @option opts [String] :deprecated deprecated
116
+ # @option opts [String] :is_highest is_highest
126
117
  # @option opts [Integer] :limit Number of results to return per page.
118
+ # @option opts [String] :name name
119
+ # @option opts [String] :namespace namespace
127
120
  # @option opts [Integer] :offset The initial index from which to return the results.
121
+ # @option opts [String] :ordering Which field to use when ordering the results.
122
+ # @option opts [String] :q q
123
+ # @option opts [String] :repository_version repository_version
124
+ # @option opts [String] :repository_version_added repository_version_added
125
+ # @option opts [String] :repository_version_removed repository_version_removed
126
+ # @option opts [String] :tags tags
127
+ # @option opts [String] :version version
128
128
  # @option opts [String] :fields A list of fields to include in the response.
129
129
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
130
130
  # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
@@ -132,25 +132,29 @@ module PulpAnsibleClient
132
132
  if @api_client.config.debugging
133
133
  @api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.list ...'
134
134
  end
135
+ allowable_values = ["certified", "not_certified", "needs_review"]
136
+ if @api_client.config.client_side_validation && opts[:'certification'] && !allowable_values.include?(opts[:'certification'])
137
+ fail ArgumentError, "invalid value for \"certification\", must be one of #{allowable_values}"
138
+ end
135
139
  # resource path
136
140
  local_var_path = '/pulp/api/v3/content/ansible/collection_versions/'
137
141
 
138
142
  # query parameters
139
143
  query_params = opts[:query_params] || {}
140
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
141
- query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
144
+ query_params[:'certification'] = opts[:'certification'] if !opts[:'certification'].nil?
145
+ query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
146
+ query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
147
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
142
148
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
143
- query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
149
+ query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
150
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
151
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
144
152
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
145
- query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
146
- query_params[:'certification'] = opts[:'certification'] if !opts[:'certification'].nil?
147
- query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
148
153
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
149
154
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
150
155
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
151
- query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
152
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
153
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
156
+ query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
157
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
154
158
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
155
159
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
156
160
 
@@ -169,7 +173,7 @@ module PulpAnsibleClient
169
173
  return_type = opts[:return_type] || 'InlineResponse2001'
170
174
 
171
175
  # auth_names
172
- auth_names = opts[:auth_names] || ['Basic']
176
+ auth_names = opts[:auth_names] || ['basicAuth']
173
177
 
174
178
  new_options = opts.merge(
175
179
  :header_params => header_params,
@@ -189,33 +193,33 @@ module PulpAnsibleClient
189
193
 
190
194
  # Inspect a collection version
191
195
  # ViewSet for Ansible Collection.
192
- # @param collection_version_href [String] URI of Collection Version. e.g.: /pulp/api/v3/content/ansible/collection_versions/1/
196
+ # @param ansible_collection_version_href [String]
193
197
  # @param [Hash] opts the optional parameters
194
198
  # @option opts [String] :fields A list of fields to include in the response.
195
199
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
196
- # @return [AnsibleCollectionVersion]
197
- def read(collection_version_href, opts = {})
198
- data, _status_code, _headers = read_with_http_info(collection_version_href, opts)
200
+ # @return [AnsibleCollectionVersionResponse]
201
+ def read(ansible_collection_version_href, opts = {})
202
+ data, _status_code, _headers = read_with_http_info(ansible_collection_version_href, opts)
199
203
  data
200
204
  end
201
205
 
202
206
  # Inspect a collection version
203
207
  # ViewSet for Ansible Collection.
204
- # @param collection_version_href [String] URI of Collection Version. e.g.: /pulp/api/v3/content/ansible/collection_versions/1/
208
+ # @param ansible_collection_version_href [String]
205
209
  # @param [Hash] opts the optional parameters
206
210
  # @option opts [String] :fields A list of fields to include in the response.
207
211
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
208
- # @return [Array<(AnsibleCollectionVersion, Integer, Hash)>] AnsibleCollectionVersion data, response status code and response headers
209
- def read_with_http_info(collection_version_href, opts = {})
212
+ # @return [Array<(AnsibleCollectionVersionResponse, Integer, Hash)>] AnsibleCollectionVersionResponse data, response status code and response headers
213
+ def read_with_http_info(ansible_collection_version_href, opts = {})
210
214
  if @api_client.config.debugging
211
215
  @api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.read ...'
212
216
  end
213
- # verify the required parameter 'collection_version_href' is set
214
- if @api_client.config.client_side_validation && collection_version_href.nil?
215
- fail ArgumentError, "Missing the required parameter 'collection_version_href' when calling ContentCollectionVersionsApi.read"
217
+ # verify the required parameter 'ansible_collection_version_href' is set
218
+ if @api_client.config.client_side_validation && ansible_collection_version_href.nil?
219
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling ContentCollectionVersionsApi.read"
216
220
  end
217
221
  # resource path
218
- local_var_path = '{collection_version_href}'.sub('{' + 'collection_version_href' + '}', CGI.escape(collection_version_href.to_s).gsub('%2F', '/'))
222
+ local_var_path = '{ansible_collection_version_href}'.sub('{' + 'ansible_collection_version_href' + '}', CGI.escape(ansible_collection_version_href.to_s).gsub('%2F', '/'))
219
223
 
220
224
  # query parameters
221
225
  query_params = opts[:query_params] || {}
@@ -234,10 +238,10 @@ module PulpAnsibleClient
234
238
  post_body = opts[:body]
235
239
 
236
240
  # return_type
237
- return_type = opts[:return_type] || 'AnsibleCollectionVersion'
241
+ return_type = opts[:return_type] || 'AnsibleCollectionVersionResponse'
238
242
 
239
243
  # auth_names
240
- auth_names = opts[:auth_names] || ['Basic']
244
+ auth_names = opts[:auth_names] || ['basicAuth']
241
245
 
242
246
  new_options = opts.merge(
243
247
  :header_params => header_params,