pulp_ansible_client 0.21.18 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -22
  3. data/docs/AnsibleAnsibleDistribution.md +3 -5
  4. data/docs/AnsibleAnsibleDistributionResponse.md +4 -8
  5. data/docs/AnsibleCollectionVersion.md +2 -2
  6. data/docs/AnsibleCollectionVersionResponse.md +9 -9
  7. data/docs/AnsibleCollectionsApi.md +65 -21
  8. data/docs/AnsibleCopyApi.md +3 -7
  9. data/docs/AnsibleGitRemote.md +30 -30
  10. data/docs/AnsibleGitRemoteResponse.md +28 -28
  11. data/docs/AnsibleRoleResponse.md +4 -4
  12. data/docs/ApiRolesApi.md +1 -3
  13. data/docs/CollectionImportApi.md +1 -3
  14. data/docs/CollectionImportDetailResponse.md +2 -2
  15. data/docs/CollectionSummaryResponse.md +2 -2
  16. data/docs/CollectionVersionDocsResponse.md +1 -1
  17. data/docs/CollectionVersionResponse.md +2 -2
  18. data/docs/CollectionVersionSearchList.md +2 -0
  19. data/docs/ContentCollectionDeprecationsApi.md +3 -11
  20. data/docs/ContentCollectionMarksApi.md +3 -11
  21. data/docs/ContentCollectionSignaturesApi.md +1 -7
  22. data/docs/ContentCollectionVersionsApi.md +3 -9
  23. data/docs/ContentNamespacesApi.md +1 -7
  24. data/docs/ContentRolesApi.md +3 -11
  25. data/docs/Copy.md +1 -1
  26. data/docs/DistributionsAnsibleApi.md +17 -57
  27. data/docs/PatchedansibleAnsibleDistribution.md +3 -5
  28. data/docs/PatchedansibleGitRemote.md +30 -30
  29. data/docs/PulpAnsibleApiApi.md +1 -3
  30. data/docs/PulpAnsibleApiV3Api.md +1 -3
  31. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -3
  32. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -3
  33. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -3
  34. data/docs/PulpAnsibleApiV3CollectionsApi.md +5 -17
  35. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +3 -11
  36. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -3
  37. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -5
  38. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -3
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -3
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -3
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -3
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -17
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -11
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -3
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +3 -15
  47. data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -24
  48. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -9
  49. data/docs/PulpAnsibleDefaultApiApi.md +4 -14
  50. data/docs/PulpAnsibleDefaultApiV3Api.md +4 -14
  51. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -3
  52. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +4 -14
  53. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -3
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +5 -17
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +3 -11
  56. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -3
  57. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -5
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +4 -14
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -3
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -3
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -3
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -17
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -11
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -3
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +3 -15
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +5 -12
  68. data/docs/PulpAnsibleTagsApi.md +1 -3
  69. data/docs/RemotesCollectionApi.md +17 -57
  70. data/docs/RemotesGitApi.md +17 -57
  71. data/docs/RemotesRoleApi.md +17 -57
  72. data/docs/RepositoriesAnsibleApi.md +33 -105
  73. data/docs/RepositoriesAnsibleVersionsApi.md +7 -23
  74. data/docs/VersionsApi.md +1 -60
  75. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -18
  76. data/lib/pulp_ansible_client/api/ansible_copy_api.rb +0 -3
  77. data/lib/pulp_ansible_client/api/api_roles_api.rb +0 -3
  78. data/lib/pulp_ansible_client/api/collection_import_api.rb +0 -3
  79. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +0 -9
  80. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +0 -9
  81. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +0 -9
  82. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -12
  83. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +0 -9
  84. data/lib/pulp_ansible_client/api/content_roles_api.rb +0 -9
  85. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -36
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +0 -3
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +0 -3
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +0 -3
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +0 -3
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +0 -3
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +0 -12
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +0 -9
  93. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +0 -3
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +0 -6
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +0 -3
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +0 -3
  98. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +0 -3
  99. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +0 -3
  100. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +0 -12
  101. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +0 -9
  102. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +0 -3
  103. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -17
  104. data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -32
  105. data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +0 -12
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +0 -9
  107. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +0 -9
  108. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +0 -3
  109. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +0 -9
  110. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +0 -3
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +0 -12
  112. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +0 -9
  113. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +0 -3
  114. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +0 -6
  115. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +0 -9
  116. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
  117. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +0 -3
  118. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +0 -3
  119. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +0 -3
  120. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +0 -12
  121. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +0 -9
  122. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +0 -3
  123. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -17
  124. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -8
  125. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +0 -3
  126. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -36
  127. data/lib/pulp_ansible_client/api/remotes_git_api.rb +0 -36
  128. data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -36
  129. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -60
  130. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +0 -15
  131. data/lib/pulp_ansible_client/api/versions_api.rb +0 -75
  132. data/lib/pulp_ansible_client/configuration.rb +2 -2
  133. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +16 -28
  134. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +20 -42
  135. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
  136. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
  137. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  138. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +20 -20
  139. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +230 -230
  140. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +151 -151
  141. data/lib/pulp_ansible_client/models/ansible_role_response.rb +15 -15
  142. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  143. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  144. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  145. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  146. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +16 -1
  147. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  148. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +16 -28
  149. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +3 -3
  150. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +220 -220
  151. data/lib/pulp_ansible_client/version.rb +1 -1
  152. data/lib/pulp_ansible_client.rb +1 -9
  153. data/spec/api/ansible_collections_api_spec.rb +14 -6
  154. data/spec/api/ansible_copy_api_spec.rb +0 -1
  155. data/spec/api/api_roles_api_spec.rb +0 -1
  156. data/spec/api/collection_import_api_spec.rb +0 -1
  157. data/spec/api/content_collection_deprecations_api_spec.rb +0 -3
  158. data/spec/api/content_collection_marks_api_spec.rb +0 -3
  159. data/spec/api/content_collection_signatures_api_spec.rb +0 -3
  160. data/spec/api/content_collection_versions_api_spec.rb +1 -4
  161. data/spec/api/content_namespaces_api_spec.rb +0 -3
  162. data/spec/api/content_roles_api_spec.rb +0 -3
  163. data/spec/api/distributions_ansible_api_spec.rb +0 -12
  164. data/spec/api/pulp_ansible_api_api_spec.rb +0 -1
  165. data/spec/api/pulp_ansible_api_v3_api_spec.rb +0 -1
  166. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +0 -1
  167. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +0 -1
  168. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +0 -1
  169. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +0 -4
  170. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +0 -3
  171. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +0 -1
  172. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +0 -2
  173. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +0 -1
  174. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
  175. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +0 -1
  176. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +0 -1
  177. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +0 -1
  178. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +0 -4
  179. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +0 -3
  180. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +0 -1
  181. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +0 -5
  182. data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -11
  183. data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +0 -4
  184. data/spec/api/pulp_ansible_default_api_api_spec.rb +0 -3
  185. data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +0 -3
  186. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +0 -1
  187. data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +0 -3
  188. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +0 -1
  189. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +0 -4
  190. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +0 -3
  191. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +0 -1
  192. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +0 -2
  193. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +0 -3
  194. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
  195. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +0 -1
  196. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +0 -1
  197. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +0 -1
  198. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +0 -4
  199. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +0 -3
  200. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +0 -1
  201. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +0 -5
  202. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -3
  203. data/spec/api/pulp_ansible_tags_api_spec.rb +0 -1
  204. data/spec/api/remotes_collection_api_spec.rb +0 -12
  205. data/spec/api/remotes_git_api_spec.rb +0 -12
  206. data/spec/api/remotes_role_api_spec.rb +0 -12
  207. data/spec/api/repositories_ansible_api_spec.rb +0 -20
  208. data/spec/api/repositories_ansible_versions_api_spec.rb +0 -5
  209. data/spec/api/versions_api_spec.rb +0 -16
  210. data/spec/configuration_spec.rb +3 -3
  211. data/spec/models/ansible_ansible_distribution_response_spec.rb +4 -16
  212. data/spec/models/ansible_ansible_distribution_spec.rb +4 -10
  213. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  214. data/spec/models/ansible_collection_version_spec.rb +3 -3
  215. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  216. data/spec/models/ansible_git_remote_spec.rb +18 -18
  217. data/spec/models/ansible_role_response_spec.rb +2 -2
  218. data/spec/models/collection_version_search_list_spec.rb +6 -0
  219. data/spec/models/patchedansible_ansible_distribution_spec.rb +4 -10
  220. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  221. metadata +148 -180
  222. data/docs/ApiCollectionsApi.md +0 -118
  223. data/docs/GalaxyCollection.md +0 -23
  224. data/docs/GalaxyCollectionResponse.md +0 -31
  225. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  226. data/docs/GalaxyDetailApi.md +0 -63
  227. data/docs/PaginatedGalaxyCollectionResponseList.md +0 -23
  228. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  229. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -68
  230. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -165
  231. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -91
  232. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -107
  233. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  234. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  235. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -266
  236. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +0 -247
  237. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +0 -247
  238. data/spec/api/api_collections_api_spec.rb +0 -63
  239. data/spec/api/galaxy_detail_api_spec.rb +0 -49
  240. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -52
  241. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  242. data/spec/models/galaxy_collection_spec.rb +0 -59
  243. data/spec/models/galaxy_collection_version_response_spec.rb +0 -71
  244. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
  245. data/spec/models/paginated_galaxy_collection_version_response_list_spec.rb +0 -59
@@ -1,266 +0,0 @@
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 'date'
14
-
15
- module PulpAnsibleClient
16
- # A serializer for a CollectionVersion.
17
- class GalaxyCollectionVersionResponse
18
- attr_accessor :version
19
-
20
- # Get href.
21
- attr_accessor :href
22
-
23
- # Create a namespace dict.
24
- attr_accessor :namespace
25
-
26
- # Create a collection dict.
27
- attr_accessor :collection
28
-
29
- # Create an artifact dict.
30
- attr_accessor :artifact
31
-
32
- attr_accessor :metadata
33
-
34
- # Attribute mapping from ruby-style variable name to JSON key.
35
- def self.attribute_map
36
- {
37
- :'version' => :'version',
38
- :'href' => :'href',
39
- :'namespace' => :'namespace',
40
- :'collection' => :'collection',
41
- :'artifact' => :'artifact',
42
- :'metadata' => :'metadata'
43
- }
44
- end
45
-
46
- # Attribute type mapping.
47
- def self.openapi_types
48
- {
49
- :'version' => :'String',
50
- :'href' => :'String',
51
- :'namespace' => :'Object',
52
- :'collection' => :'Object',
53
- :'artifact' => :'Object',
54
- :'metadata' => :'CollectionMetadataResponse'
55
- }
56
- end
57
-
58
- # List of attributes with nullable: true
59
- def self.openapi_nullable
60
- Set.new([
61
- ])
62
- end
63
-
64
- # Initializes the object
65
- # @param [Hash] attributes Model attributes in the form of hash
66
- def initialize(attributes = {})
67
- if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyCollectionVersionResponse` initialize method"
69
- end
70
-
71
- # check to see if the attribute exists and convert string to symbol for hash key
72
- attributes = attributes.each_with_object({}) { |(k, v), h|
73
- if (!self.class.attribute_map.key?(k.to_sym))
74
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyCollectionVersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
75
- end
76
- h[k.to_sym] = v
77
- }
78
-
79
- if attributes.key?(:'version')
80
- self.version = attributes[:'version']
81
- end
82
-
83
- if attributes.key?(:'href')
84
- self.href = attributes[:'href']
85
- end
86
-
87
- if attributes.key?(:'namespace')
88
- self.namespace = attributes[:'namespace']
89
- end
90
-
91
- if attributes.key?(:'collection')
92
- self.collection = attributes[:'collection']
93
- end
94
-
95
- if attributes.key?(:'artifact')
96
- self.artifact = attributes[:'artifact']
97
- end
98
-
99
- if attributes.key?(:'metadata')
100
- self.metadata = attributes[:'metadata']
101
- end
102
- end
103
-
104
- # Show invalid properties with the reasons. Usually used together with valid?
105
- # @return Array for valid properties with the reasons
106
- def list_invalid_properties
107
- invalid_properties = Array.new
108
- if @version.nil?
109
- invalid_properties.push('invalid value for "version", version cannot be nil.')
110
- end
111
-
112
- if @metadata.nil?
113
- invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
114
- end
115
-
116
- invalid_properties
117
- end
118
-
119
- # Check to see if the all the properties in the model are valid
120
- # @return true if the model is valid
121
- def valid?
122
- return false if @version.nil?
123
- return false if @metadata.nil?
124
- true
125
- end
126
-
127
- # Checks equality by comparing each attribute.
128
- # @param [Object] Object to be compared
129
- def ==(o)
130
- return true if self.equal?(o)
131
- self.class == o.class &&
132
- version == o.version &&
133
- href == o.href &&
134
- namespace == o.namespace &&
135
- collection == o.collection &&
136
- artifact == o.artifact &&
137
- metadata == o.metadata
138
- end
139
-
140
- # @see the `==` method
141
- # @param [Object] Object to be compared
142
- def eql?(o)
143
- self == o
144
- end
145
-
146
- # Calculates hash code according to all attributes.
147
- # @return [Integer] Hash code
148
- def hash
149
- [version, href, namespace, collection, artifact, metadata].hash
150
- end
151
-
152
- # Builds the object from hash
153
- # @param [Hash] attributes Model attributes in the form of hash
154
- # @return [Object] Returns the model itself
155
- def self.build_from_hash(attributes)
156
- new.build_from_hash(attributes)
157
- end
158
-
159
- # Builds the object from hash
160
- # @param [Hash] attributes Model attributes in the form of hash
161
- # @return [Object] Returns the model itself
162
- def build_from_hash(attributes)
163
- return nil unless attributes.is_a?(Hash)
164
- self.class.openapi_types.each_pair do |key, type|
165
- if type =~ /\AArray<(.*)>/i
166
- # check to ensure the input is an array given that the attribute
167
- # is documented as an array but the input is not
168
- if attributes[self.class.attribute_map[key]].is_a?(Array)
169
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
170
- end
171
- elsif !attributes[self.class.attribute_map[key]].nil?
172
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
173
- end # or else data not found in attributes(hash), not an issue as the data can be optional
174
- end
175
-
176
- self
177
- end
178
-
179
- # Deserializes the data based on type
180
- # @param string type Data type
181
- # @param string value Value to be deserialized
182
- # @return [Object] Deserialized data
183
- def _deserialize(type, value)
184
- case type.to_sym
185
- when :DateTime
186
- DateTime.parse(value)
187
- when :Date
188
- Date.parse(value)
189
- when :String
190
- value.to_s
191
- when :Integer
192
- value.to_i
193
- when :Float
194
- value.to_f
195
- when :Boolean
196
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
197
- true
198
- else
199
- false
200
- end
201
- when :Object
202
- # generic object (usually a Hash), return directly
203
- value
204
- when /\AArray<(?<inner_type>.+)>\z/
205
- inner_type = Regexp.last_match[:inner_type]
206
- value.map { |v| _deserialize(inner_type, v) }
207
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
208
- k_type = Regexp.last_match[:k_type]
209
- v_type = Regexp.last_match[:v_type]
210
- {}.tap do |hash|
211
- value.each do |k, v|
212
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
213
- end
214
- end
215
- else # model
216
- PulpAnsibleClient.const_get(type).build_from_hash(value)
217
- end
218
- end
219
-
220
- # Returns the string representation of the object
221
- # @return [String] String presentation of the object
222
- def to_s
223
- to_hash.to_s
224
- end
225
-
226
- # to_body is an alias to to_hash (backward compatibility)
227
- # @return [Hash] Returns the object in the form of hash
228
- def to_body
229
- to_hash
230
- end
231
-
232
- # Returns the object in the form of hash
233
- # @return [Hash] Returns the object in the form of hash
234
- def to_hash
235
- hash = {}
236
- self.class.attribute_map.each_pair do |attr, param|
237
- value = self.send(attr)
238
- if value.nil?
239
- is_nullable = self.class.openapi_nullable.include?(attr)
240
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
241
- end
242
-
243
- hash[param] = _to_hash(value)
244
- end
245
- hash
246
- end
247
-
248
- # Outputs non-array value in the form of hash
249
- # For object, use to_hash. Otherwise, just return the value
250
- # @param [Object] value Any valid value
251
- # @return [Hash] Returns the value in the form of hash
252
- def _to_hash(value)
253
- if value.is_a?(Array)
254
- value.compact.map { |v| _to_hash(v) }
255
- elsif value.is_a?(Hash)
256
- {}.tap do |hash|
257
- value.each { |k, v| hash[k] = _to_hash(v) }
258
- end
259
- elsif value.respond_to? :to_hash
260
- value.to_hash
261
- else
262
- value
263
- end
264
- end
265
- end
266
- end
@@ -1,247 +0,0 @@
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 'date'
14
-
15
- module PulpAnsibleClient
16
- class PaginatedGalaxyCollectionResponseList
17
- attr_accessor :count
18
-
19
- attr_accessor :_next
20
-
21
- attr_accessor :previous
22
-
23
- attr_accessor :results
24
-
25
- # Attribute mapping from ruby-style variable name to JSON key.
26
- def self.attribute_map
27
- {
28
- :'count' => :'count',
29
- :'_next' => :'next',
30
- :'previous' => :'previous',
31
- :'results' => :'results'
32
- }
33
- end
34
-
35
- # Attribute type mapping.
36
- def self.openapi_types
37
- {
38
- :'count' => :'Integer',
39
- :'_next' => :'String',
40
- :'previous' => :'String',
41
- :'results' => :'Array<GalaxyCollectionResponse>'
42
- }
43
- end
44
-
45
- # List of attributes with nullable: true
46
- def self.openapi_nullable
47
- Set.new([
48
- :'_next',
49
- :'previous',
50
- ])
51
- end
52
-
53
- # Initializes the object
54
- # @param [Hash] attributes Model attributes in the form of hash
55
- def initialize(attributes = {})
56
- if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::PaginatedGalaxyCollectionResponseList` initialize method"
58
- end
59
-
60
- # check to see if the attribute exists and convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}) { |(k, v), h|
62
- if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::PaginatedGalaxyCollectionResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
- end
65
- h[k.to_sym] = v
66
- }
67
-
68
- if attributes.key?(:'count')
69
- self.count = attributes[:'count']
70
- end
71
-
72
- if attributes.key?(:'_next')
73
- self._next = attributes[:'_next']
74
- end
75
-
76
- if attributes.key?(:'previous')
77
- self.previous = attributes[:'previous']
78
- end
79
-
80
- if attributes.key?(:'results')
81
- if (value = attributes[:'results']).is_a?(Array)
82
- self.results = value
83
- end
84
- end
85
- end
86
-
87
- # Show invalid properties with the reasons. Usually used together with valid?
88
- # @return Array for valid properties with the reasons
89
- def list_invalid_properties
90
- invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
- invalid_properties
100
- end
101
-
102
- # Check to see if the all the properties in the model are valid
103
- # @return true if the model is valid
104
- def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
- true
108
- end
109
-
110
- # Checks equality by comparing each attribute.
111
- # @param [Object] Object to be compared
112
- def ==(o)
113
- return true if self.equal?(o)
114
- self.class == o.class &&
115
- count == o.count &&
116
- _next == o._next &&
117
- previous == o.previous &&
118
- results == o.results
119
- end
120
-
121
- # @see the `==` method
122
- # @param [Object] Object to be compared
123
- def eql?(o)
124
- self == o
125
- end
126
-
127
- # Calculates hash code according to all attributes.
128
- # @return [Integer] Hash code
129
- def hash
130
- [count, _next, previous, results].hash
131
- end
132
-
133
- # Builds the object from hash
134
- # @param [Hash] attributes Model attributes in the form of hash
135
- # @return [Object] Returns the model itself
136
- def self.build_from_hash(attributes)
137
- new.build_from_hash(attributes)
138
- end
139
-
140
- # Builds the object from hash
141
- # @param [Hash] attributes Model attributes in the form of hash
142
- # @return [Object] Returns the model itself
143
- def build_from_hash(attributes)
144
- return nil unless attributes.is_a?(Hash)
145
- self.class.openapi_types.each_pair do |key, type|
146
- if type =~ /\AArray<(.*)>/i
147
- # check to ensure the input is an array given that the attribute
148
- # is documented as an array but the input is not
149
- if attributes[self.class.attribute_map[key]].is_a?(Array)
150
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
151
- end
152
- elsif !attributes[self.class.attribute_map[key]].nil?
153
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
154
- end # or else data not found in attributes(hash), not an issue as the data can be optional
155
- end
156
-
157
- self
158
- end
159
-
160
- # Deserializes the data based on type
161
- # @param string type Data type
162
- # @param string value Value to be deserialized
163
- # @return [Object] Deserialized data
164
- def _deserialize(type, value)
165
- case type.to_sym
166
- when :DateTime
167
- DateTime.parse(value)
168
- when :Date
169
- Date.parse(value)
170
- when :String
171
- value.to_s
172
- when :Integer
173
- value.to_i
174
- when :Float
175
- value.to_f
176
- when :Boolean
177
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
178
- true
179
- else
180
- false
181
- end
182
- when :Object
183
- # generic object (usually a Hash), return directly
184
- value
185
- when /\AArray<(?<inner_type>.+)>\z/
186
- inner_type = Regexp.last_match[:inner_type]
187
- value.map { |v| _deserialize(inner_type, v) }
188
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
189
- k_type = Regexp.last_match[:k_type]
190
- v_type = Regexp.last_match[:v_type]
191
- {}.tap do |hash|
192
- value.each do |k, v|
193
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
194
- end
195
- end
196
- else # model
197
- PulpAnsibleClient.const_get(type).build_from_hash(value)
198
- end
199
- end
200
-
201
- # Returns the string representation of the object
202
- # @return [String] String presentation of the object
203
- def to_s
204
- to_hash.to_s
205
- end
206
-
207
- # to_body is an alias to to_hash (backward compatibility)
208
- # @return [Hash] Returns the object in the form of hash
209
- def to_body
210
- to_hash
211
- end
212
-
213
- # Returns the object in the form of hash
214
- # @return [Hash] Returns the object in the form of hash
215
- def to_hash
216
- hash = {}
217
- self.class.attribute_map.each_pair do |attr, param|
218
- value = self.send(attr)
219
- if value.nil?
220
- is_nullable = self.class.openapi_nullable.include?(attr)
221
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
222
- end
223
-
224
- hash[param] = _to_hash(value)
225
- end
226
- hash
227
- end
228
-
229
- # Outputs non-array value in the form of hash
230
- # For object, use to_hash. Otherwise, just return the value
231
- # @param [Object] value Any valid value
232
- # @return [Hash] Returns the value in the form of hash
233
- def _to_hash(value)
234
- if value.is_a?(Array)
235
- value.compact.map { |v| _to_hash(v) }
236
- elsif value.is_a?(Hash)
237
- {}.tap do |hash|
238
- value.each { |k, v| hash[k] = _to_hash(v) }
239
- end
240
- elsif value.respond_to? :to_hash
241
- value.to_hash
242
- else
243
- value
244
- end
245
- end
246
- end
247
- end