pulp_ansible_client 0.23.1 → 0.24.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (475) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -10
  3. data/docs/AnsibleAnsibleCollectionDeprecated.md +12 -11
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +18 -17
  5. data/docs/AnsibleAnsibleDistribution.md +18 -17
  6. data/docs/AnsibleAnsibleDistributionResponse.md +24 -23
  7. data/docs/AnsibleAnsibleNamespaceMetadata.md +20 -19
  8. data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +26 -25
  9. data/docs/AnsibleAnsibleRepository.md +22 -21
  10. data/docs/AnsibleAnsibleRepositoryResponse.md +36 -35
  11. data/docs/AnsibleCollectionRemote.md +58 -57
  12. data/docs/AnsibleCollectionRemoteResponse.md +58 -57
  13. data/docs/AnsibleCollectionRemoteResponseHiddenFieldsInner.md +20 -0
  14. data/docs/AnsibleCollectionResponse.md +10 -9
  15. data/docs/AnsibleCollectionVersionMark.md +10 -9
  16. data/docs/AnsibleCollectionVersionMarkResponse.md +14 -13
  17. data/docs/AnsibleCollectionVersionResponse.md +64 -63
  18. data/docs/AnsibleCollectionVersionSignatureResponse.md +20 -19
  19. data/docs/AnsibleCollectionsApi.md +228 -110
  20. data/docs/AnsibleCopyApi.md +30 -14
  21. data/docs/AnsibleGitRemote.md +50 -49
  22. data/docs/AnsibleGitRemoteResponse.md +50 -49
  23. data/docs/AnsibleRepositoryMark.md +10 -9
  24. data/docs/AnsibleRepositoryRebuild.md +12 -11
  25. data/docs/AnsibleRepositorySignature.md +10 -9
  26. data/docs/AnsibleRepositorySyncURL.md +12 -11
  27. data/docs/AnsibleRole.md +16 -15
  28. data/docs/AnsibleRoleRemote.md +48 -47
  29. data/docs/AnsibleRoleRemoteResponse.md +48 -47
  30. data/docs/AnsibleRoleResponse.md +22 -21
  31. data/docs/AnsibleTagResponse.md +8 -7
  32. data/docs/ApiPluginAnsibleSearchCollectionVersionsApi.md +90 -56
  33. data/docs/ApiRolesApi.md +35 -18
  34. data/docs/ArtifactRefResponse.md +12 -11
  35. data/docs/AsyncOperationResponse.md +8 -7
  36. data/docs/ClientConfigurationResponse.md +8 -7
  37. data/docs/CollectionImportApi.md +34 -18
  38. data/docs/CollectionImportDetailResponse.md +22 -21
  39. data/docs/CollectionMetadataResponse.md +26 -25
  40. data/docs/CollectionNamespaceResponse.md +10 -9
  41. data/docs/CollectionRefResponse.md +12 -11
  42. data/docs/CollectionResponse.md +24 -23
  43. data/docs/CollectionSummaryResponse.md +26 -25
  44. data/docs/CollectionVersionCopyMove.md +12 -11
  45. data/docs/CollectionVersionDocsResponse.md +8 -7
  46. data/docs/CollectionVersionListResponse.md +18 -17
  47. data/docs/CollectionVersionResponse.md +40 -39
  48. data/docs/CollectionVersionSearchList.md +16 -15
  49. data/docs/CollectionVersionSearchListResponse.md +20 -19
  50. data/docs/CollectionVersionSignatureResponse.md +14 -13
  51. data/docs/ContentCollectionDeprecationsApi.md +107 -57
  52. data/docs/ContentCollectionMarksApi.md +112 -62
  53. data/docs/ContentCollectionSignaturesApi.md +118 -68
  54. data/docs/ContentCollectionVersionsApi.md +120 -70
  55. data/docs/ContentNamespacesApi.md +132 -81
  56. data/docs/ContentRolesApi.md +110 -60
  57. data/docs/ContentSummaryResponse.md +12 -11
  58. data/docs/Copy.md +8 -7
  59. data/docs/DistributionsAnsibleApi.md +385 -182
  60. data/docs/GalaxyRoleResponse.md +12 -11
  61. data/docs/GalaxyRoleVersionResponse.md +10 -9
  62. data/docs/MyPermissionsResponse.md +8 -7
  63. data/docs/NamespaceLink.md +10 -9
  64. data/docs/NamespaceLinkResponse.md +10 -9
  65. data/docs/NestedRole.md +12 -11
  66. data/docs/NestedRoleResponse.md +12 -11
  67. data/docs/ObjectRolesResponse.md +8 -7
  68. data/docs/PaginatedCollectionResponseList.md +12 -11
  69. data/docs/PaginatedCollectionResponseListLinks.md +14 -13
  70. data/docs/PaginatedCollectionResponseListMeta.md +8 -7
  71. data/docs/PaginatedCollectionVersionListResponseList.md +12 -11
  72. data/docs/PaginatedCollectionVersionSearchListResponseList.md +12 -11
  73. data/docs/PaginatedGalaxyRoleResponseList.md +14 -13
  74. data/docs/PaginatedGalaxyRoleVersionResponseList.md +14 -13
  75. data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
  76. data/docs/PaginatedTagResponseList.md +14 -13
  77. data/docs/PaginatedansibleAnsibleCollectionDeprecatedResponseList.md +14 -13
  78. data/docs/PaginatedansibleAnsibleDistributionResponseList.md +14 -13
  79. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +14 -13
  80. data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +14 -13
  81. data/docs/PaginatedansibleCollectionRemoteResponseList.md +14 -13
  82. data/docs/PaginatedansibleCollectionResponseList.md +14 -13
  83. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +14 -13
  84. data/docs/PaginatedansibleCollectionVersionResponseList.md +14 -13
  85. data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +14 -13
  86. data/docs/PaginatedansibleGitRemoteResponseList.md +14 -13
  87. data/docs/PaginatedansibleRoleRemoteResponseList.md +14 -13
  88. data/docs/PaginatedansibleRoleResponseList.md +14 -13
  89. data/docs/PatchedCollection.md +8 -7
  90. data/docs/PatchedansibleAnsibleDistribution.md +18 -17
  91. data/docs/PatchedansibleAnsibleRepository.md +22 -21
  92. data/docs/PatchedansibleCollectionRemote.md +58 -57
  93. data/docs/PatchedansibleGitRemote.md +50 -49
  94. data/docs/PatchedansibleRoleRemote.md +48 -47
  95. data/docs/PolicyEnum.md +4 -5
  96. data/docs/PulpAnsibleApiApi.md +32 -15
  97. data/docs/PulpAnsibleApiV3Api.md +33 -16
  98. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +33 -16
  99. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +33 -16
  100. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +45 -28
  101. data/docs/PulpAnsibleApiV3CollectionsApi.md +139 -68
  102. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +119 -66
  103. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +36 -19
  104. data/docs/PulpAnsibleApiV3NamespacesApi.md +99 -64
  105. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +33 -16
  106. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +46 -29
  107. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +34 -17
  108. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +34 -17
  109. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +34 -17
  110. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +143 -72
  111. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +122 -69
  112. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +37 -20
  113. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +206 -117
  114. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +134 -67
  115. data/docs/PulpAnsibleDefaultApiApi.md +25 -7
  116. data/docs/PulpAnsibleDefaultApiV3Api.md +26 -8
  117. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +33 -16
  118. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +26 -8
  119. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +44 -27
  120. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +135 -64
  121. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +116 -63
  122. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +35 -18
  123. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +97 -62
  124. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +26 -8
  125. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +45 -28
  126. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +33 -16
  127. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +33 -16
  128. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +33 -16
  129. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +139 -68
  130. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +119 -66
  131. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +36 -19
  132. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +201 -112
  133. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +88 -54
  134. data/docs/PulpAnsibleTagsApi.md +34 -18
  135. data/docs/RemotesCollectionApi.md +394 -189
  136. data/docs/RemotesGitApi.md +389 -184
  137. data/docs/RemotesRoleApi.md +389 -184
  138. data/docs/Repair.md +8 -7
  139. data/docs/RepoMetadataResponse.md +8 -7
  140. data/docs/RepositoriesAnsibleApi.md +617 -271
  141. data/docs/RepositoriesAnsibleVersionsApi.md +180 -92
  142. data/docs/Repository.md +16 -15
  143. data/docs/RepositoryAddRemoveContent.md +12 -11
  144. data/docs/RepositoryResponse.md +28 -27
  145. data/docs/RepositoryVersionResponse.md +22 -21
  146. data/docs/SetLabel.md +10 -9
  147. data/docs/SetLabelResponse.md +10 -9
  148. data/docs/TagResponse.md +10 -9
  149. data/docs/UnpaginatedCollectionVersionResponse.md +36 -35
  150. data/docs/UnsetLabel.md +8 -7
  151. data/docs/UnsetLabelResponse.md +10 -9
  152. data/docs/VersionsApi.md +35 -18
  153. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +48 -32
  154. data/lib/pulp_ansible_client/api/ansible_copy_api.rb +10 -6
  155. data/lib/pulp_ansible_client/api/api_plugin_ansible_search_collection_versions_api.rb +15 -10
  156. data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -5
  157. data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -5
  158. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -14
  159. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +20 -14
  160. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +20 -14
  161. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +26 -20
  162. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +16 -13
  163. data/lib/pulp_ansible_client/api/content_roles_api.rb +20 -14
  164. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +89 -56
  165. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +5 -4
  166. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -5
  167. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +5 -4
  168. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -5
  169. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +6 -5
  170. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +25 -18
  171. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +16 -13
  172. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -5
  173. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +11 -9
  174. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -5
  175. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +6 -5
  176. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -5
  177. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -5
  178. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +5 -4
  179. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +25 -18
  180. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +16 -13
  181. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -5
  182. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +43 -32
  183. data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +37 -21
  184. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +5 -4
  185. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +6 -5
  186. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +5 -4
  187. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +6 -5
  188. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +6 -5
  189. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +25 -18
  190. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +16 -13
  191. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -5
  192. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +11 -9
  193. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +6 -5
  194. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +6 -5
  195. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -5
  196. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -5
  197. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +5 -4
  198. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +25 -18
  199. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +16 -13
  200. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -5
  201. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +43 -32
  202. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +15 -10
  203. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -5
  204. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +104 -68
  205. data/lib/pulp_ansible_client/api/remotes_git_api.rb +104 -68
  206. data/lib/pulp_ansible_client/api/remotes_role_api.rb +104 -68
  207. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +161 -96
  208. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +49 -35
  209. data/lib/pulp_ansible_client/api/versions_api.rb +6 -5
  210. data/lib/pulp_ansible_client/api_client.rb +137 -102
  211. data/lib/pulp_ansible_client/api_error.rb +2 -1
  212. data/lib/pulp_ansible_client/configuration.rb +162 -21
  213. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +34 -22
  214. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +36 -24
  215. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +34 -22
  216. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +35 -23
  217. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +47 -25
  218. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +52 -26
  219. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +33 -23
  220. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +37 -26
  221. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +77 -47
  222. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +80 -50
  223. data/lib/pulp_ansible_client/models/{ansible_collection_remote_response_hidden_fields.rb → ansible_collection_remote_response_hidden_fields_inner.rb} +37 -25
  224. data/lib/pulp_ansible_client/models/ansible_collection_response.rb +34 -22
  225. data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +34 -22
  226. data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +35 -23
  227. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +94 -56
  228. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +34 -24
  229. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +283 -267
  230. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +195 -183
  231. data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +35 -23
  232. data/lib/pulp_ansible_client/models/ansible_repository_rebuild.rb +30 -22
  233. data/lib/pulp_ansible_client/models/ansible_repository_signature.rb +35 -23
  234. data/lib/pulp_ansible_client/models/ansible_repository_sync_url.rb +30 -22
  235. data/lib/pulp_ansible_client/models/ansible_role.rb +38 -22
  236. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +77 -43
  237. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +80 -46
  238. data/lib/pulp_ansible_client/models/ansible_role_response.rb +56 -40
  239. data/lib/pulp_ansible_client/models/ansible_tag_response.rb +30 -22
  240. data/lib/pulp_ansible_client/models/artifact_ref_response.rb +36 -22
  241. data/lib/pulp_ansible_client/models/async_operation_response.rb +32 -22
  242. data/lib/pulp_ansible_client/models/client_configuration_response.rb +32 -22
  243. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +46 -26
  244. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +36 -24
  245. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +34 -22
  246. data/lib/pulp_ansible_client/models/collection_ref_response.rb +34 -22
  247. data/lib/pulp_ansible_client/models/collection_response.rb +36 -25
  248. data/lib/pulp_ansible_client/models/collection_summary_response.rb +50 -28
  249. data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +34 -22
  250. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +32 -22
  251. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +38 -24
  252. data/lib/pulp_ansible_client/models/collection_version_response.rb +40 -24
  253. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +40 -22
  254. data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +42 -22
  255. data/lib/pulp_ansible_client/models/collection_version_signature_response.rb +33 -23
  256. data/lib/pulp_ansible_client/models/content_summary_response.rb +36 -22
  257. data/lib/pulp_ansible_client/models/copy.rb +32 -22
  258. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +34 -22
  259. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +32 -22
  260. data/lib/pulp_ansible_client/models/my_permissions_response.rb +32 -22
  261. data/lib/pulp_ansible_client/models/namespace_link.rb +34 -22
  262. data/lib/pulp_ansible_client/models/namespace_link_response.rb +34 -22
  263. data/lib/pulp_ansible_client/models/nested_role.rb +32 -22
  264. data/lib/pulp_ansible_client/models/nested_role_response.rb +32 -22
  265. data/lib/pulp_ansible_client/models/object_roles_response.rb +32 -22
  266. data/lib/pulp_ansible_client/models/paginated_collection_response_list.rb +30 -22
  267. data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +30 -22
  268. data/lib/pulp_ansible_client/models/paginated_collection_response_list_meta.rb +30 -22
  269. data/lib/pulp_ansible_client/models/paginated_collection_version_list_response_list.rb +30 -22
  270. data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +30 -22
  271. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +34 -22
  272. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +34 -22
  273. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +34 -22
  274. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +34 -22
  275. data/lib/pulp_ansible_client/models/paginatedansible_ansible_collection_deprecated_response_list.rb +34 -22
  276. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +34 -22
  277. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +34 -22
  278. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +34 -22
  279. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +34 -22
  280. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +34 -22
  281. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +34 -22
  282. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +34 -22
  283. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +34 -22
  284. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +34 -22
  285. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +34 -22
  286. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +34 -22
  287. data/lib/pulp_ansible_client/models/patched_collection.rb +30 -22
  288. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +40 -24
  289. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +36 -24
  290. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +83 -49
  291. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +280 -260
  292. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +83 -45
  293. data/lib/pulp_ansible_client/models/policy_enum.rb +8 -5
  294. data/lib/pulp_ansible_client/models/repair.rb +30 -22
  295. data/lib/pulp_ansible_client/models/repo_metadata_response.rb +33 -23
  296. data/lib/pulp_ansible_client/models/repository.rb +32 -22
  297. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +30 -22
  298. data/lib/pulp_ansible_client/models/repository_response.rb +34 -24
  299. data/lib/pulp_ansible_client/models/repository_version_response.rb +32 -24
  300. data/lib/pulp_ansible_client/models/set_label.rb +34 -22
  301. data/lib/pulp_ansible_client/models/set_label_response.rb +34 -22
  302. data/lib/pulp_ansible_client/models/tag_response.rb +30 -22
  303. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +40 -24
  304. data/lib/pulp_ansible_client/models/unset_label.rb +32 -22
  305. data/lib/pulp_ansible_client/models/unset_label_response.rb +32 -22
  306. data/lib/pulp_ansible_client/version.rb +2 -2
  307. data/lib/pulp_ansible_client.rb +2 -6
  308. data/pulp_ansible_client.gemspec +9 -6
  309. data/spec/api/ansible_collections_api_spec.rb +8 -8
  310. data/spec/api/ansible_copy_api_spec.rb +2 -2
  311. data/spec/api/api_plugin_ansible_search_collection_versions_api_spec.rb +3 -3
  312. data/spec/api/api_roles_api_spec.rb +2 -2
  313. data/spec/api/collection_import_api_spec.rb +2 -2
  314. data/spec/api/content_collection_deprecations_api_spec.rb +4 -4
  315. data/spec/api/content_collection_marks_api_spec.rb +4 -4
  316. data/spec/api/content_collection_signatures_api_spec.rb +4 -4
  317. data/spec/api/content_collection_versions_api_spec.rb +6 -6
  318. data/spec/api/content_namespaces_api_spec.rb +4 -4
  319. data/spec/api/content_roles_api_spec.rb +4 -4
  320. data/spec/api/distributions_ansible_api_spec.rb +13 -13
  321. data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
  322. data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
  323. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
  324. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
  325. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -2
  326. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +5 -5
  327. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -4
  328. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  329. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +3 -3
  330. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
  331. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
  332. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  333. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  334. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  335. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -5
  336. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
  337. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  338. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +7 -7
  339. data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +5 -5
  340. data/spec/api/pulp_ansible_default_api_api_spec.rb +2 -2
  341. data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +2 -2
  342. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
  343. data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +2 -2
  344. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -2
  345. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +5 -5
  346. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -4
  347. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  348. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +3 -3
  349. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
  350. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
  351. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  352. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  353. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  354. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -5
  355. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
  356. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  357. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +7 -7
  358. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +3 -3
  359. data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
  360. data/spec/api/remotes_collection_api_spec.rb +20 -19
  361. data/spec/api/remotes_git_api_spec.rb +20 -19
  362. data/spec/api/remotes_role_api_spec.rb +20 -19
  363. data/spec/api/repositories_ansible_api_spec.rb +21 -21
  364. data/spec/api/repositories_ansible_versions_api_spec.rb +13 -12
  365. data/spec/api/versions_api_spec.rb +2 -2
  366. data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +12 -17
  367. data/spec/models/ansible_ansible_collection_deprecated_spec.rb +9 -14
  368. data/spec/models/ansible_ansible_distribution_response_spec.rb +15 -20
  369. data/spec/models/ansible_ansible_distribution_spec.rb +12 -17
  370. data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +16 -21
  371. data/spec/models/ansible_ansible_namespace_metadata_spec.rb +13 -18
  372. data/spec/models/ansible_ansible_repository_response_spec.rb +21 -26
  373. data/spec/models/ansible_ansible_repository_spec.rb +14 -19
  374. data/spec/models/{ansible_collection_remote_response_hidden_fields_spec.rb → ansible_collection_remote_response_hidden_fields_inner_spec.rb} +11 -16
  375. data/spec/models/ansible_collection_remote_response_spec.rb +32 -37
  376. data/spec/models/ansible_collection_remote_spec.rb +32 -37
  377. data/spec/models/ansible_collection_response_spec.rb +8 -13
  378. data/spec/models/ansible_collection_version_mark_response_spec.rb +10 -15
  379. data/spec/models/ansible_collection_version_mark_spec.rb +8 -13
  380. data/spec/models/ansible_collection_version_response_spec.rb +39 -44
  381. data/spec/models/ansible_collection_version_signature_response_spec.rb +13 -18
  382. data/spec/models/ansible_git_remote_response_spec.rb +48 -53
  383. data/spec/models/ansible_git_remote_spec.rb +47 -52
  384. data/spec/models/ansible_repository_mark_spec.rb +8 -13
  385. data/spec/models/ansible_repository_rebuild_spec.rb +9 -14
  386. data/spec/models/ansible_repository_signature_spec.rb +8 -13
  387. data/spec/models/ansible_repository_sync_url_spec.rb +9 -14
  388. data/spec/models/ansible_role_remote_response_spec.rb +27 -32
  389. data/spec/models/ansible_role_remote_spec.rb +27 -32
  390. data/spec/models/ansible_role_response_spec.rb +17 -22
  391. data/spec/models/ansible_role_spec.rb +11 -16
  392. data/spec/models/ansible_tag_response_spec.rb +7 -12
  393. data/spec/models/artifact_ref_response_spec.rb +9 -14
  394. data/spec/models/async_operation_response_spec.rb +7 -12
  395. data/spec/models/client_configuration_response_spec.rb +7 -12
  396. data/spec/models/collection_import_detail_response_spec.rb +14 -19
  397. data/spec/models/collection_metadata_response_spec.rb +16 -21
  398. data/spec/models/collection_namespace_response_spec.rb +8 -13
  399. data/spec/models/collection_ref_response_spec.rb +9 -14
  400. data/spec/models/collection_response_spec.rb +15 -20
  401. data/spec/models/collection_summary_response_spec.rb +16 -21
  402. data/spec/models/collection_version_copy_move_spec.rb +9 -14
  403. data/spec/models/collection_version_docs_response_spec.rb +7 -12
  404. data/spec/models/collection_version_list_response_spec.rb +12 -17
  405. data/spec/models/collection_version_response_spec.rb +23 -28
  406. data/spec/models/collection_version_search_list_response_spec.rb +13 -18
  407. data/spec/models/collection_version_search_list_spec.rb +11 -16
  408. data/spec/models/collection_version_signature_response_spec.rb +10 -15
  409. data/spec/models/content_summary_response_spec.rb +9 -14
  410. data/spec/models/copy_spec.rb +7 -12
  411. data/spec/models/galaxy_role_response_spec.rb +9 -14
  412. data/spec/models/galaxy_role_version_response_spec.rb +8 -13
  413. data/spec/models/my_permissions_response_spec.rb +7 -12
  414. data/spec/models/namespace_link_response_spec.rb +8 -13
  415. data/spec/models/namespace_link_spec.rb +8 -13
  416. data/spec/models/nested_role_response_spec.rb +9 -14
  417. data/spec/models/nested_role_spec.rb +9 -14
  418. data/spec/models/object_roles_response_spec.rb +7 -12
  419. data/spec/models/paginated_collection_response_list_links_spec.rb +10 -15
  420. data/spec/models/paginated_collection_response_list_meta_spec.rb +7 -12
  421. data/spec/models/paginated_collection_response_list_spec.rb +9 -14
  422. data/spec/models/paginated_collection_version_list_response_list_spec.rb +9 -14
  423. data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +9 -14
  424. data/spec/models/paginated_galaxy_role_response_list_spec.rb +10 -15
  425. data/spec/models/paginated_galaxy_role_version_response_list_spec.rb +10 -15
  426. data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
  427. data/spec/models/paginated_tag_response_list_spec.rb +10 -15
  428. data/spec/models/paginatedansible_ansible_collection_deprecated_response_list_spec.rb +10 -15
  429. data/spec/models/paginatedansible_ansible_distribution_response_list_spec.rb +10 -15
  430. data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +10 -15
  431. data/spec/models/paginatedansible_ansible_repository_response_list_spec.rb +10 -15
  432. data/spec/models/paginatedansible_collection_remote_response_list_spec.rb +10 -15
  433. data/spec/models/paginatedansible_collection_response_list_spec.rb +10 -15
  434. data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +10 -15
  435. data/spec/models/paginatedansible_collection_version_response_list_spec.rb +10 -15
  436. data/spec/models/paginatedansible_collection_version_signature_response_list_spec.rb +10 -15
  437. data/spec/models/paginatedansible_git_remote_response_list_spec.rb +10 -15
  438. data/spec/models/paginatedansible_role_remote_response_list_spec.rb +10 -15
  439. data/spec/models/paginatedansible_role_response_list_spec.rb +10 -15
  440. data/spec/models/patched_collection_spec.rb +7 -12
  441. data/spec/models/patchedansible_ansible_distribution_spec.rb +12 -17
  442. data/spec/models/patchedansible_ansible_repository_spec.rb +14 -19
  443. data/spec/models/patchedansible_collection_remote_spec.rb +32 -37
  444. data/spec/models/patchedansible_git_remote_spec.rb +47 -52
  445. data/spec/models/patchedansible_role_remote_spec.rb +27 -32
  446. data/spec/models/policy_enum_spec.rb +6 -11
  447. data/spec/models/repair_spec.rb +7 -12
  448. data/spec/models/repo_metadata_response_spec.rb +7 -12
  449. data/spec/models/repository_add_remove_content_spec.rb +9 -14
  450. data/spec/models/repository_response_spec.rb +17 -22
  451. data/spec/models/repository_spec.rb +11 -16
  452. data/spec/models/repository_version_response_spec.rb +14 -19
  453. data/spec/models/set_label_response_spec.rb +8 -13
  454. data/spec/models/set_label_spec.rb +8 -13
  455. data/spec/models/tag_response_spec.rb +8 -13
  456. data/spec/models/unpaginated_collection_version_response_spec.rb +21 -26
  457. data/spec/models/unset_label_response_spec.rb +8 -13
  458. data/spec/models/unset_label_spec.rb +7 -12
  459. data/spec/spec_helper.rb +1 -1
  460. metadata +168 -160
  461. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +0 -19
  462. data/docs/AnsibleCollectionVersion.md +0 -31
  463. data/docs/AnsibleCollectionVersionSignature.md +0 -25
  464. data/docs/CollectionOneShot.md +0 -25
  465. data/docs/PatchedansibleAnsibleNamespaceMetadata.md +0 -29
  466. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +0 -365
  467. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +0 -268
  468. data/lib/pulp_ansible_client/models/collection_one_shot.rb +0 -313
  469. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +0 -350
  470. data/spec/api_client_spec.rb +0 -188
  471. data/spec/configuration_spec.rb +0 -42
  472. data/spec/models/ansible_collection_version_signature_spec.rb +0 -65
  473. data/spec/models/ansible_collection_version_spec.rb +0 -83
  474. data/spec/models/collection_one_shot_spec.rb +0 -65
  475. data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +0 -77
@@ -6,73 +6,74 @@
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
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module PulpAnsibleClient
16
17
  # A serializer for Git Collection Remotes.
17
18
  class AnsibleGitRemote
18
- # Limits requests per second for each concurrent downloader
19
- attr_accessor :rate_limit
20
-
21
- # The username to authenticte to the proxy.
22
- attr_accessor :proxy_username
19
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
20
+ attr_accessor :password
23
21
 
24
- # A PEM encoded client certificate used for authentication.
25
- attr_accessor :client_cert
22
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
23
+ attr_accessor :max_retries
26
24
 
27
25
  # A unique name for this remote.
28
26
  attr_accessor :name
29
27
 
28
+ attr_accessor :pulp_labels
29
+
30
+ # The username to authenticte to the proxy.
31
+ attr_accessor :proxy_username
32
+
30
33
  # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
31
34
  attr_accessor :sock_connect_timeout
32
35
 
36
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
37
+ attr_accessor :connect_timeout
38
+
33
39
  # If True, TLS peer validation must be performed.
34
40
  attr_accessor :tls_validation
35
41
 
36
- # The URL of an external content source.
37
- attr_accessor :url
38
-
39
- # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
40
- attr_accessor :proxy_password
41
-
42
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
43
- attr_accessor :ca_cert
42
+ # Headers for aiohttp.Clientsession
43
+ attr_accessor :headers
44
44
 
45
45
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
46
46
  attr_accessor :total_timeout
47
47
 
48
- # The proxy URL. Format: scheme://host:port
49
- attr_accessor :proxy_url
48
+ # A PEM encoded private key used for authentication.
49
+ attr_accessor :client_key
50
50
 
51
- # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
52
- attr_accessor :password
51
+ # A PEM encoded client certificate used for authentication.
52
+ attr_accessor :client_cert
53
53
 
54
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
55
- attr_accessor :max_retries
54
+ # Total number of simultaneous connections. If not set then the default value will be used.
55
+ attr_accessor :download_concurrency
56
56
 
57
- attr_accessor :pulp_labels
57
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
58
+ attr_accessor :sock_read_timeout
58
59
 
59
- # Headers for aiohttp.Clientsession
60
- attr_accessor :headers
60
+ # The URL of an external content source.
61
+ attr_accessor :url
61
62
 
62
- # The username to be used for authentication when syncing.
63
- attr_accessor :username
63
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
64
+ attr_accessor :ca_cert
64
65
 
65
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
66
- attr_accessor :sock_read_timeout
66
+ # The proxy URL. Format: scheme://host:port
67
+ attr_accessor :proxy_url
67
68
 
68
- # Total number of simultaneous connections. If not set then the default value will be used.
69
- attr_accessor :download_concurrency
69
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
70
+ attr_accessor :proxy_password
70
71
 
71
- # A PEM encoded private key used for authentication.
72
- attr_accessor :client_key
72
+ # The username to be used for authentication when syncing.
73
+ attr_accessor :username
73
74
 
74
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
75
- attr_accessor :connect_timeout
75
+ # Limits requests per second for each concurrent downloader
76
+ attr_accessor :rate_limit
76
77
 
77
78
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
79
  attr_accessor :metadata_only
@@ -83,54 +84,59 @@ module PulpAnsibleClient
83
84
  # Attribute mapping from ruby-style variable name to JSON key.
84
85
  def self.attribute_map
85
86
  {
86
- :'rate_limit' => :'rate_limit',
87
- :'proxy_username' => :'proxy_username',
88
- :'client_cert' => :'client_cert',
87
+ :'password' => :'password',
88
+ :'max_retries' => :'max_retries',
89
89
  :'name' => :'name',
90
+ :'pulp_labels' => :'pulp_labels',
91
+ :'proxy_username' => :'proxy_username',
90
92
  :'sock_connect_timeout' => :'sock_connect_timeout',
93
+ :'connect_timeout' => :'connect_timeout',
91
94
  :'tls_validation' => :'tls_validation',
95
+ :'headers' => :'headers',
96
+ :'total_timeout' => :'total_timeout',
97
+ :'client_key' => :'client_key',
98
+ :'client_cert' => :'client_cert',
99
+ :'download_concurrency' => :'download_concurrency',
100
+ :'sock_read_timeout' => :'sock_read_timeout',
92
101
  :'url' => :'url',
93
- :'proxy_password' => :'proxy_password',
94
102
  :'ca_cert' => :'ca_cert',
95
- :'total_timeout' => :'total_timeout',
96
103
  :'proxy_url' => :'proxy_url',
97
- :'password' => :'password',
98
- :'max_retries' => :'max_retries',
99
- :'pulp_labels' => :'pulp_labels',
100
- :'headers' => :'headers',
104
+ :'proxy_password' => :'proxy_password',
101
105
  :'username' => :'username',
102
- :'sock_read_timeout' => :'sock_read_timeout',
103
- :'download_concurrency' => :'download_concurrency',
104
- :'client_key' => :'client_key',
105
- :'connect_timeout' => :'connect_timeout',
106
+ :'rate_limit' => :'rate_limit',
106
107
  :'metadata_only' => :'metadata_only',
107
108
  :'git_ref' => :'git_ref'
108
109
  }
109
110
  end
110
111
 
112
+ # Returns all the JSON keys this model knows about
113
+ def self.acceptable_attributes
114
+ attribute_map.values
115
+ end
116
+
111
117
  # Attribute type mapping.
112
118
  def self.openapi_types
113
119
  {
114
- :'rate_limit' => :'Integer',
115
- :'proxy_username' => :'String',
116
- :'client_cert' => :'String',
120
+ :'password' => :'String',
121
+ :'max_retries' => :'Integer',
117
122
  :'name' => :'String',
123
+ :'pulp_labels' => :'Hash<String, String>',
124
+ :'proxy_username' => :'String',
118
125
  :'sock_connect_timeout' => :'Float',
126
+ :'connect_timeout' => :'Float',
119
127
  :'tls_validation' => :'Boolean',
128
+ :'headers' => :'Array<Object>',
129
+ :'total_timeout' => :'Float',
130
+ :'client_key' => :'String',
131
+ :'client_cert' => :'String',
132
+ :'download_concurrency' => :'Integer',
133
+ :'sock_read_timeout' => :'Float',
120
134
  :'url' => :'String',
121
- :'proxy_password' => :'String',
122
135
  :'ca_cert' => :'String',
123
- :'total_timeout' => :'Float',
124
136
  :'proxy_url' => :'String',
125
- :'password' => :'String',
126
- :'max_retries' => :'Integer',
127
- :'pulp_labels' => :'Hash<String, String>',
128
- :'headers' => :'Array<Object>',
137
+ :'proxy_password' => :'String',
129
138
  :'username' => :'String',
130
- :'sock_read_timeout' => :'Float',
131
- :'download_concurrency' => :'Integer',
132
- :'client_key' => :'String',
133
- :'connect_timeout' => :'Float',
139
+ :'rate_limit' => :'Integer',
134
140
  :'metadata_only' => :'Boolean',
135
141
  :'git_ref' => :'String'
136
142
  }
@@ -139,21 +145,21 @@ module PulpAnsibleClient
139
145
  # List of attributes with nullable: true
140
146
  def self.openapi_nullable
141
147
  Set.new([
142
- :'rate_limit',
148
+ :'password',
149
+ :'max_retries',
143
150
  :'proxy_username',
144
- :'client_cert',
145
151
  :'sock_connect_timeout',
146
- :'proxy_password',
147
- :'ca_cert',
152
+ :'connect_timeout',
148
153
  :'total_timeout',
154
+ :'client_key',
155
+ :'client_cert',
156
+ :'download_concurrency',
157
+ :'sock_read_timeout',
158
+ :'ca_cert',
149
159
  :'proxy_url',
150
- :'password',
151
- :'max_retries',
160
+ :'proxy_password',
152
161
  :'username',
153
- :'sock_read_timeout',
154
- :'download_concurrency',
155
- :'client_key',
156
- :'connect_timeout',
162
+ :'rate_limit',
157
163
  ])
158
164
  end
159
165
 
@@ -172,88 +178,92 @@ module PulpAnsibleClient
172
178
  h[k.to_sym] = v
173
179
  }
174
180
 
175
- if attributes.key?(:'rate_limit')
176
- self.rate_limit = attributes[:'rate_limit']
177
- end
178
-
179
- if attributes.key?(:'proxy_username')
180
- self.proxy_username = attributes[:'proxy_username']
181
+ if attributes.key?(:'password')
182
+ self.password = attributes[:'password']
181
183
  end
182
184
 
183
- if attributes.key?(:'client_cert')
184
- self.client_cert = attributes[:'client_cert']
185
+ if attributes.key?(:'max_retries')
186
+ self.max_retries = attributes[:'max_retries']
185
187
  end
186
188
 
187
189
  if attributes.key?(:'name')
188
190
  self.name = attributes[:'name']
191
+ else
192
+ self.name = nil
189
193
  end
190
194
 
191
- if attributes.key?(:'sock_connect_timeout')
192
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
195
+ if attributes.key?(:'pulp_labels')
196
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
197
+ self.pulp_labels = value
198
+ end
193
199
  end
194
200
 
195
- if attributes.key?(:'tls_validation')
196
- self.tls_validation = attributes[:'tls_validation']
201
+ if attributes.key?(:'proxy_username')
202
+ self.proxy_username = attributes[:'proxy_username']
197
203
  end
198
204
 
199
- if attributes.key?(:'url')
200
- self.url = attributes[:'url']
205
+ if attributes.key?(:'sock_connect_timeout')
206
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
201
207
  end
202
208
 
203
- if attributes.key?(:'proxy_password')
204
- self.proxy_password = attributes[:'proxy_password']
209
+ if attributes.key?(:'connect_timeout')
210
+ self.connect_timeout = attributes[:'connect_timeout']
205
211
  end
206
212
 
207
- if attributes.key?(:'ca_cert')
208
- self.ca_cert = attributes[:'ca_cert']
213
+ if attributes.key?(:'tls_validation')
214
+ self.tls_validation = attributes[:'tls_validation']
215
+ end
216
+
217
+ if attributes.key?(:'headers')
218
+ if (value = attributes[:'headers']).is_a?(Array)
219
+ self.headers = value
220
+ end
209
221
  end
210
222
 
211
223
  if attributes.key?(:'total_timeout')
212
224
  self.total_timeout = attributes[:'total_timeout']
213
225
  end
214
226
 
215
- if attributes.key?(:'proxy_url')
216
- self.proxy_url = attributes[:'proxy_url']
227
+ if attributes.key?(:'client_key')
228
+ self.client_key = attributes[:'client_key']
217
229
  end
218
230
 
219
- if attributes.key?(:'password')
220
- self.password = attributes[:'password']
231
+ if attributes.key?(:'client_cert')
232
+ self.client_cert = attributes[:'client_cert']
221
233
  end
222
234
 
223
- if attributes.key?(:'max_retries')
224
- self.max_retries = attributes[:'max_retries']
235
+ if attributes.key?(:'download_concurrency')
236
+ self.download_concurrency = attributes[:'download_concurrency']
225
237
  end
226
238
 
227
- if attributes.key?(:'pulp_labels')
228
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
229
- self.pulp_labels = value
230
- end
239
+ if attributes.key?(:'sock_read_timeout')
240
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
231
241
  end
232
242
 
233
- if attributes.key?(:'headers')
234
- if (value = attributes[:'headers']).is_a?(Array)
235
- self.headers = value
236
- end
243
+ if attributes.key?(:'url')
244
+ self.url = attributes[:'url']
245
+ else
246
+ self.url = nil
237
247
  end
238
248
 
239
- if attributes.key?(:'username')
240
- self.username = attributes[:'username']
249
+ if attributes.key?(:'ca_cert')
250
+ self.ca_cert = attributes[:'ca_cert']
241
251
  end
242
252
 
243
- if attributes.key?(:'sock_read_timeout')
244
- self.sock_read_timeout = attributes[:'sock_read_timeout']
253
+ if attributes.key?(:'proxy_url')
254
+ self.proxy_url = attributes[:'proxy_url']
245
255
  end
246
256
 
247
- if attributes.key?(:'download_concurrency')
248
- self.download_concurrency = attributes[:'download_concurrency']
257
+ if attributes.key?(:'proxy_password')
258
+ self.proxy_password = attributes[:'proxy_password']
249
259
  end
250
260
 
251
- if attributes.key?(:'client_key')
252
- self.client_key = attributes[:'client_key']
261
+ if attributes.key?(:'username')
262
+ self.username = attributes[:'username']
253
263
  end
254
264
 
255
- if attributes.key?(:'connect_timeout')
256
- self.connect_timeout = attributes[:'connect_timeout']
265
+ if attributes.key?(:'rate_limit')
266
+ self.rate_limit = attributes[:'rate_limit']
257
267
  end
258
268
 
259
269
  if attributes.key?(:'metadata_only')
@@ -268,13 +278,10 @@ module PulpAnsibleClient
268
278
  # Show invalid properties with the reasons. Usually used together with valid?
269
279
  # @return Array for valid properties with the reasons
270
280
  def list_invalid_properties
281
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
271
282
  invalid_properties = Array.new
272
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
273
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
274
- end
275
-
276
- if !@client_cert.nil? && @client_cert.to_s.length < 1
277
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
283
+ if !@password.nil? && @password.to_s.length < 1
284
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
278
285
  end
279
286
 
280
287
  if @name.nil?
@@ -285,56 +292,60 @@ module PulpAnsibleClient
285
292
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
286
293
  end
287
294
 
288
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
289
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
295
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
296
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
290
297
  end
291
298
 
292
- if @url.nil?
293
- invalid_properties.push('invalid value for "url", url cannot be nil.')
299
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
300
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
294
301
  end
295
302
 
296
- if @url.to_s.length < 1
297
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
303
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
304
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
298
305
  end
299
306
 
300
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
301
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
307
+ if !@total_timeout.nil? && @total_timeout < 0.0
308
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
302
309
  end
303
310
 
304
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
305
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
311
+ if !@client_key.nil? && @client_key.to_s.length < 1
312
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
306
313
  end
307
314
 
308
- if !@total_timeout.nil? && @total_timeout < 0
309
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
315
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
316
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
310
317
  end
311
318
 
312
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
313
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
319
+ if !@download_concurrency.nil? && @download_concurrency < 1
320
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
314
321
  end
315
322
 
316
- if !@password.nil? && @password.to_s.length < 1
317
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
323
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
324
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
318
325
  end
319
326
 
320
- if !@username.nil? && @username.to_s.length < 1
321
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
327
+ if @url.nil?
328
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
322
329
  end
323
330
 
324
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
325
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
331
+ if @url.to_s.length < 1
332
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
326
333
  end
327
334
 
328
- if !@download_concurrency.nil? && @download_concurrency < 1
329
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
335
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
336
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
330
337
  end
331
338
 
332
- if !@client_key.nil? && @client_key.to_s.length < 1
333
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
339
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
340
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
334
341
  end
335
342
 
336
- if !@connect_timeout.nil? && @connect_timeout < 0
337
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
343
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
344
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
345
+ end
346
+
347
+ if !@username.nil? && @username.to_s.length < 1
348
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
338
349
  end
339
350
 
340
351
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -347,45 +358,36 @@ module PulpAnsibleClient
347
358
  # Check to see if the all the properties in the model are valid
348
359
  # @return true if the model is valid
349
360
  def valid?
350
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
351
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
361
+ warn '[DEPRECATED] the `valid?` method is obsolete'
362
+ return false if !@password.nil? && @password.to_s.length < 1
352
363
  return false if @name.nil?
353
364
  return false if @name.to_s.length < 1
354
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
365
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
366
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
367
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
368
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
369
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
370
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
371
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
372
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
355
373
  return false if @url.nil?
356
374
  return false if @url.to_s.length < 1
357
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
358
375
  return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
359
- return false if !@total_timeout.nil? && @total_timeout < 0
360
376
  return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
361
- return false if !@password.nil? && @password.to_s.length < 1
377
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
362
378
  return false if !@username.nil? && @username.to_s.length < 1
363
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
364
- return false if !@download_concurrency.nil? && @download_concurrency < 1
365
- return false if !@client_key.nil? && @client_key.to_s.length < 1
366
- return false if !@connect_timeout.nil? && @connect_timeout < 0
367
379
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
368
380
  true
369
381
  end
370
382
 
371
383
  # Custom attribute writer method with validation
372
- # @param [Object] proxy_username Value to be assigned
373
- def proxy_username=(proxy_username)
374
- if !proxy_username.nil? && proxy_username.to_s.length < 1
375
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
376
- end
377
-
378
- @proxy_username = proxy_username
379
- end
380
-
381
- # Custom attribute writer method with validation
382
- # @param [Object] client_cert Value to be assigned
383
- def client_cert=(client_cert)
384
- if !client_cert.nil? && client_cert.to_s.length < 1
385
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
384
+ # @param [Object] password Value to be assigned
385
+ def password=(password)
386
+ if !password.nil? && password.to_s.length < 1
387
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
386
388
  end
387
389
 
388
- @client_cert = client_cert
390
+ @password = password
389
391
  end
390
392
 
391
393
  # Custom attribute writer method with validation
@@ -402,134 +404,148 @@ module PulpAnsibleClient
402
404
  @name = name
403
405
  end
404
406
 
407
+ # Custom attribute writer method with validation
408
+ # @param [Object] proxy_username Value to be assigned
409
+ def proxy_username=(proxy_username)
410
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
411
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
412
+ end
413
+
414
+ @proxy_username = proxy_username
415
+ end
416
+
405
417
  # Custom attribute writer method with validation
406
418
  # @param [Object] sock_connect_timeout Value to be assigned
407
419
  def sock_connect_timeout=(sock_connect_timeout)
408
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
409
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
420
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
421
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
410
422
  end
411
423
 
412
424
  @sock_connect_timeout = sock_connect_timeout
413
425
  end
414
426
 
415
427
  # Custom attribute writer method with validation
416
- # @param [Object] url Value to be assigned
417
- def url=(url)
418
- if url.nil?
419
- fail ArgumentError, 'url cannot be nil'
420
- end
421
-
422
- if url.to_s.length < 1
423
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
428
+ # @param [Object] connect_timeout Value to be assigned
429
+ def connect_timeout=(connect_timeout)
430
+ if !connect_timeout.nil? && connect_timeout < 0.0
431
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
424
432
  end
425
433
 
426
- @url = url
434
+ @connect_timeout = connect_timeout
427
435
  end
428
436
 
429
437
  # Custom attribute writer method with validation
430
- # @param [Object] proxy_password Value to be assigned
431
- def proxy_password=(proxy_password)
432
- if !proxy_password.nil? && proxy_password.to_s.length < 1
433
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
438
+ # @param [Object] total_timeout Value to be assigned
439
+ def total_timeout=(total_timeout)
440
+ if !total_timeout.nil? && total_timeout < 0.0
441
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
434
442
  end
435
443
 
436
- @proxy_password = proxy_password
444
+ @total_timeout = total_timeout
437
445
  end
438
446
 
439
447
  # Custom attribute writer method with validation
440
- # @param [Object] ca_cert Value to be assigned
441
- def ca_cert=(ca_cert)
442
- if !ca_cert.nil? && ca_cert.to_s.length < 1
443
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
448
+ # @param [Object] client_key Value to be assigned
449
+ def client_key=(client_key)
450
+ if !client_key.nil? && client_key.to_s.length < 1
451
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
444
452
  end
445
453
 
446
- @ca_cert = ca_cert
454
+ @client_key = client_key
447
455
  end
448
456
 
449
457
  # Custom attribute writer method with validation
450
- # @param [Object] total_timeout Value to be assigned
451
- def total_timeout=(total_timeout)
452
- if !total_timeout.nil? && total_timeout < 0
453
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
458
+ # @param [Object] client_cert Value to be assigned
459
+ def client_cert=(client_cert)
460
+ if !client_cert.nil? && client_cert.to_s.length < 1
461
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
454
462
  end
455
463
 
456
- @total_timeout = total_timeout
464
+ @client_cert = client_cert
457
465
  end
458
466
 
459
467
  # Custom attribute writer method with validation
460
- # @param [Object] proxy_url Value to be assigned
461
- def proxy_url=(proxy_url)
462
- if !proxy_url.nil? && proxy_url.to_s.length < 1
463
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
468
+ # @param [Object] download_concurrency Value to be assigned
469
+ def download_concurrency=(download_concurrency)
470
+ if !download_concurrency.nil? && download_concurrency < 1
471
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
464
472
  end
465
473
 
466
- @proxy_url = proxy_url
474
+ @download_concurrency = download_concurrency
467
475
  end
468
476
 
469
477
  # Custom attribute writer method with validation
470
- # @param [Object] password Value to be assigned
471
- def password=(password)
472
- if !password.nil? && password.to_s.length < 1
473
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
478
+ # @param [Object] sock_read_timeout Value to be assigned
479
+ def sock_read_timeout=(sock_read_timeout)
480
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
481
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
474
482
  end
475
483
 
476
- @password = password
484
+ @sock_read_timeout = sock_read_timeout
477
485
  end
478
486
 
479
487
  # Custom attribute writer method with validation
480
- # @param [Object] username Value to be assigned
481
- def username=(username)
482
- if !username.nil? && username.to_s.length < 1
483
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
488
+ # @param [Object] url Value to be assigned
489
+ def url=(url)
490
+ if url.nil?
491
+ fail ArgumentError, 'url cannot be nil'
484
492
  end
485
493
 
486
- @username = username
494
+ if url.to_s.length < 1
495
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
496
+ end
497
+
498
+ @url = url
487
499
  end
488
500
 
489
501
  # Custom attribute writer method with validation
490
- # @param [Object] sock_read_timeout Value to be assigned
491
- def sock_read_timeout=(sock_read_timeout)
492
- if !sock_read_timeout.nil? && sock_read_timeout < 0
493
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
502
+ # @param [Object] ca_cert Value to be assigned
503
+ def ca_cert=(ca_cert)
504
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
505
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
494
506
  end
495
507
 
496
- @sock_read_timeout = sock_read_timeout
508
+ @ca_cert = ca_cert
497
509
  end
498
510
 
499
511
  # Custom attribute writer method with validation
500
- # @param [Object] download_concurrency Value to be assigned
501
- def download_concurrency=(download_concurrency)
502
- if !download_concurrency.nil? && download_concurrency < 1
503
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
512
+ # @param [Object] proxy_url Value to be assigned
513
+ def proxy_url=(proxy_url)
514
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
515
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
504
516
  end
505
517
 
506
- @download_concurrency = download_concurrency
518
+ @proxy_url = proxy_url
507
519
  end
508
520
 
509
521
  # Custom attribute writer method with validation
510
- # @param [Object] client_key Value to be assigned
511
- def client_key=(client_key)
512
- if !client_key.nil? && client_key.to_s.length < 1
513
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
522
+ # @param [Object] proxy_password Value to be assigned
523
+ def proxy_password=(proxy_password)
524
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
525
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
514
526
  end
515
527
 
516
- @client_key = client_key
528
+ @proxy_password = proxy_password
517
529
  end
518
530
 
519
531
  # Custom attribute writer method with validation
520
- # @param [Object] connect_timeout Value to be assigned
521
- def connect_timeout=(connect_timeout)
522
- if !connect_timeout.nil? && connect_timeout < 0
523
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
532
+ # @param [Object] username Value to be assigned
533
+ def username=(username)
534
+ if !username.nil? && username.to_s.length < 1
535
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
524
536
  end
525
537
 
526
- @connect_timeout = connect_timeout
538
+ @username = username
527
539
  end
528
540
 
529
541
  # Custom attribute writer method with validation
530
542
  # @param [Object] git_ref Value to be assigned
531
543
  def git_ref=(git_ref)
532
- if !git_ref.nil? && git_ref.to_s.length < 1
544
+ if git_ref.nil?
545
+ fail ArgumentError, 'git_ref cannot be nil'
546
+ end
547
+
548
+ if git_ref.to_s.length < 1
533
549
  fail ArgumentError, 'invalid value for "git_ref", the character length must be great than or equal to 1.'
534
550
  end
535
551
 
@@ -541,26 +557,26 @@ module PulpAnsibleClient
541
557
  def ==(o)
542
558
  return true if self.equal?(o)
543
559
  self.class == o.class &&
544
- rate_limit == o.rate_limit &&
545
- proxy_username == o.proxy_username &&
546
- client_cert == o.client_cert &&
560
+ password == o.password &&
561
+ max_retries == o.max_retries &&
547
562
  name == o.name &&
563
+ pulp_labels == o.pulp_labels &&
564
+ proxy_username == o.proxy_username &&
548
565
  sock_connect_timeout == o.sock_connect_timeout &&
566
+ connect_timeout == o.connect_timeout &&
549
567
  tls_validation == o.tls_validation &&
568
+ headers == o.headers &&
569
+ total_timeout == o.total_timeout &&
570
+ client_key == o.client_key &&
571
+ client_cert == o.client_cert &&
572
+ download_concurrency == o.download_concurrency &&
573
+ sock_read_timeout == o.sock_read_timeout &&
550
574
  url == o.url &&
551
- proxy_password == o.proxy_password &&
552
575
  ca_cert == o.ca_cert &&
553
- total_timeout == o.total_timeout &&
554
576
  proxy_url == o.proxy_url &&
555
- password == o.password &&
556
- max_retries == o.max_retries &&
557
- pulp_labels == o.pulp_labels &&
558
- headers == o.headers &&
577
+ proxy_password == o.proxy_password &&
559
578
  username == o.username &&
560
- sock_read_timeout == o.sock_read_timeout &&
561
- download_concurrency == o.download_concurrency &&
562
- client_key == o.client_key &&
563
- connect_timeout == o.connect_timeout &&
579
+ rate_limit == o.rate_limit &&
564
580
  metadata_only == o.metadata_only &&
565
581
  git_ref == o.git_ref
566
582
  end
@@ -574,44 +590,40 @@ module PulpAnsibleClient
574
590
  # Calculates hash code according to all attributes.
575
591
  # @return [Integer] Hash code
576
592
  def hash
577
- [rate_limit, proxy_username, client_cert, name, sock_connect_timeout, tls_validation, url, proxy_password, ca_cert, total_timeout, proxy_url, password, max_retries, pulp_labels, headers, username, sock_read_timeout, download_concurrency, client_key, connect_timeout, metadata_only, git_ref].hash
593
+ [password, max_retries, name, pulp_labels, proxy_username, sock_connect_timeout, connect_timeout, tls_validation, headers, total_timeout, client_key, client_cert, download_concurrency, sock_read_timeout, url, ca_cert, proxy_url, proxy_password, username, rate_limit, metadata_only, git_ref].hash
578
594
  end
579
595
 
580
596
  # Builds the object from hash
581
597
  # @param [Hash] attributes Model attributes in the form of hash
582
598
  # @return [Object] Returns the model itself
583
599
  def self.build_from_hash(attributes)
584
- new.build_from_hash(attributes)
585
- end
586
-
587
- # Builds the object from hash
588
- # @param [Hash] attributes Model attributes in the form of hash
589
- # @return [Object] Returns the model itself
590
- def build_from_hash(attributes)
591
600
  return nil unless attributes.is_a?(Hash)
592
- self.class.openapi_types.each_pair do |key, type|
593
- if type =~ /\AArray<(.*)>/i
601
+ attributes = attributes.transform_keys(&:to_sym)
602
+ transformed_hash = {}
603
+ openapi_types.each_pair do |key, type|
604
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
605
+ transformed_hash["#{key}"] = nil
606
+ elsif type =~ /\AArray<(.*)>/i
594
607
  # check to ensure the input is an array given that the attribute
595
608
  # is documented as an array but the input is not
596
- if attributes[self.class.attribute_map[key]].is_a?(Array)
597
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
609
+ if attributes[attribute_map[key]].is_a?(Array)
610
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
598
611
  end
599
- elsif !attributes[self.class.attribute_map[key]].nil?
600
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
601
- end # or else data not found in attributes(hash), not an issue as the data can be optional
612
+ elsif !attributes[attribute_map[key]].nil?
613
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
614
+ end
602
615
  end
603
-
604
- self
616
+ new(transformed_hash)
605
617
  end
606
618
 
607
619
  # Deserializes the data based on type
608
620
  # @param string type Data type
609
621
  # @param string value Value to be deserialized
610
622
  # @return [Object] Deserialized data
611
- def _deserialize(type, value)
623
+ def self._deserialize(type, value)
612
624
  case type.to_sym
613
- when :DateTime
614
- DateTime.parse(value)
625
+ when :Time
626
+ Time.parse(value)
615
627
  when :Date
616
628
  Date.parse(value)
617
629
  when :String
@@ -641,7 +653,9 @@ module PulpAnsibleClient
641
653
  end
642
654
  end
643
655
  else # model
644
- PulpAnsibleClient.const_get(type).build_from_hash(value)
656
+ # models (e.g. Pet) or oneOf
657
+ klass = PulpAnsibleClient.const_get(type)
658
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
645
659
  end
646
660
  end
647
661
 
@@ -667,7 +681,7 @@ module PulpAnsibleClient
667
681
  is_nullable = self.class.openapi_nullable.include?(attr)
668
682
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
669
683
  end
670
-
684
+
671
685
  hash[param] = _to_hash(value)
672
686
  end
673
687
  hash
@@ -690,5 +704,7 @@ module PulpAnsibleClient
690
704
  value
691
705
  end
692
706
  end
707
+
693
708
  end
709
+
694
710
  end