pulp_ansible_client 0.16.3 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +88 -22
  3. data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
  4. data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
  5. data/docs/AnsibleAnsibleRepository.md +3 -1
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +5 -1
  7. data/docs/AnsibleCollectionRemote.md +1 -1
  8. data/docs/AnsibleCollectionRemoteResponse.md +4 -2
  9. data/docs/AnsibleCollectionVersion.md +4 -4
  10. data/docs/AnsibleCollectionVersionMark.md +19 -0
  11. data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
  12. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  13. data/docs/AnsibleCollectionsApi.md +230 -6
  14. data/docs/AnsibleGitRemote.md +30 -30
  15. data/docs/AnsibleGitRemoteResponse.md +28 -28
  16. data/docs/AnsibleRepositoryMark.md +19 -0
  17. data/docs/AnsibleRoleRemote.md +1 -1
  18. data/docs/AnsibleRoleRemoteResponse.md +1 -1
  19. data/docs/AnsibleRoleResponse.md +3 -3
  20. data/docs/CollectionNamespaceResponse.md +3 -1
  21. data/docs/CollectionRefResponse.md +1 -1
  22. data/docs/CollectionResponse.md +6 -6
  23. data/docs/CollectionSummaryResponse.md +35 -0
  24. data/docs/CollectionVersionCopyMove.md +21 -0
  25. data/docs/CollectionVersionListResponse.md +4 -2
  26. data/docs/CollectionVersionResponse.md +6 -4
  27. data/docs/CollectionVersionSearchList.md +27 -0
  28. data/docs/CollectionVersionSearchListResponse.md +29 -0
  29. data/docs/ContentCollectionDeprecationsApi.md +2 -6
  30. data/docs/ContentCollectionMarksApi.md +198 -0
  31. data/docs/ContentCollectionSignaturesApi.md +2 -6
  32. data/docs/ContentCollectionVersionsApi.md +6 -10
  33. data/docs/ContentNamespacesApi.md +220 -0
  34. data/docs/ContentRolesApi.md +2 -6
  35. data/docs/DistributionsAnsibleApi.md +230 -6
  36. data/docs/GalaxyCollectionResponse.md +4 -4
  37. data/docs/GalaxyCollectionVersionResponse.md +4 -4
  38. data/docs/GalaxyRoleResponse.md +1 -1
  39. data/docs/GalaxyRoleVersionResponse.md +1 -1
  40. data/docs/MyPermissionsResponse.md +17 -0
  41. data/docs/NamespaceLink.md +19 -0
  42. data/docs/NamespaceLinkResponse.md +19 -0
  43. data/docs/NestedRole.md +21 -0
  44. data/docs/NestedRoleResponse.md +21 -0
  45. data/docs/ObjectRolesResponse.md +17 -0
  46. data/docs/PaginatedCollectionVersionSearchListResponseList.md +21 -0
  47. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +23 -0
  48. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +23 -0
  49. data/docs/PatchedansibleAnsibleNamespaceMetadata.md +29 -0
  50. data/docs/PatchedansibleAnsibleRepository.md +3 -1
  51. data/docs/PatchedansibleCollectionRemote.md +1 -1
  52. data/docs/PatchedansibleGitRemote.md +30 -30
  53. data/docs/PatchedansibleRoleRemote.md +1 -1
  54. data/docs/ProgressReportResponse.md +27 -0
  55. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +2 -6
  56. data/docs/PulpAnsibleApiV3CollectionsApi.md +2 -6
  57. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -6
  58. data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
  59. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +6 -6
  60. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
  61. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
  62. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
  63. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
  64. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
  65. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +2 -6
  66. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +2 -6
  67. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -6
  68. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
  69. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +6 -6
  70. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
  71. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
  72. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
  73. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
  74. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
  75. data/docs/RemotesCollectionApi.md +238 -6
  76. data/docs/RemotesGitApi.md +230 -6
  77. data/docs/RemotesRoleApi.md +230 -6
  78. data/docs/RepositoriesAnsibleApi.md +450 -6
  79. data/docs/RepositoriesAnsibleVersionsApi.md +2 -4
  80. data/docs/Repository.md +25 -0
  81. data/docs/RepositoryResponse.md +33 -0
  82. data/docs/Task.md +19 -0
  83. data/docs/TaskResponse.md +45 -0
  84. data/docs/UnpaginatedCollectionVersionResponse.md +6 -4
  85. data/docs/VersionsApi.md +10 -10
  86. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +270 -8
  87. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +2 -8
  88. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
  89. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +2 -8
  90. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +8 -14
  91. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
  92. data/lib/pulp_ansible_client/api/content_roles_api.rb +2 -8
  93. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +270 -8
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +2 -8
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +2 -8
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +2 -8
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +209 -0
  98. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +8 -8
  99. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
  100. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
  101. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
  102. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +531 -0
  103. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +229 -0
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +2 -8
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +2 -8
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +2 -8
  107. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +197 -0
  108. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +7 -7
  109. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
  110. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
  112. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +501 -0
  113. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +217 -0
  114. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +283 -9
  115. data/lib/pulp_ansible_client/api/remotes_git_api.rb +270 -8
  116. data/lib/pulp_ansible_client/api/remotes_role_api.rb +270 -8
  117. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +542 -8
  118. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +2 -5
  119. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  120. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +359 -0
  121. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +402 -0
  122. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +14 -5
  123. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +23 -5
  124. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
  125. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +14 -5
  126. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  127. data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +258 -0
  128. data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +268 -0
  129. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
  130. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +243 -243
  131. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
  132. data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
  133. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
  134. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
  135. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  136. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +13 -4
  137. data/lib/pulp_ansible_client/models/collection_ref_response.rb +0 -1
  138. data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
  139. data/lib/pulp_ansible_client/models/collection_summary_response.rb +359 -0
  140. data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +242 -0
  141. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +16 -6
  142. data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -5
  143. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +279 -0
  144. data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +287 -0
  145. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -4
  146. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
  147. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
  148. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
  149. data/lib/pulp_ansible_client/models/my_permissions_response.rb +213 -0
  150. data/lib/pulp_ansible_client/models/namespace_link.rb +282 -0
  151. data/lib/pulp_ansible_client/models/namespace_link_response.rb +264 -0
  152. data/lib/pulp_ansible_client/models/nested_role.rb +253 -0
  153. data/lib/pulp_ansible_client/models/nested_role_response.rb +234 -0
  154. data/lib/pulp_ansible_client/models/object_roles_response.rb +213 -0
  155. data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +226 -0
  156. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +237 -0
  157. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +237 -0
  158. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +350 -0
  159. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +14 -5
  160. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
  161. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +234 -234
  162. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
  163. data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
  164. data/lib/pulp_ansible_client/models/repository.rb +306 -0
  165. data/lib/pulp_ansible_client/models/repository_response.rb +309 -0
  166. data/lib/pulp_ansible_client/models/task.rb +266 -0
  167. data/lib/pulp_ansible_client/models/task_response.rb +366 -0
  168. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +12 -5
  169. data/lib/pulp_ansible_client/version.rb +1 -1
  170. data/lib/pulp_ansible_client.rb +32 -0
  171. data/spec/api/ansible_collections_api_spec.rb +51 -3
  172. data/spec/api/content_collection_deprecations_api_spec.rb +1 -3
  173. data/spec/api/content_collection_marks_api_spec.rb +83 -0
  174. data/spec/api/content_collection_signatures_api_spec.rb +1 -3
  175. data/spec/api/content_collection_versions_api_spec.rb +3 -5
  176. data/spec/api/content_namespaces_api_spec.rb +93 -0
  177. data/spec/api/content_roles_api_spec.rb +1 -3
  178. data/spec/api/distributions_ansible_api_spec.rb +51 -3
  179. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -3
  180. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -3
  181. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -3
  182. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +77 -0
  183. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
  184. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
  185. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
  186. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
  187. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +131 -0
  188. data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +83 -0
  189. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -3
  190. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -3
  191. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -3
  192. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +75 -0
  193. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
  194. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
  195. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
  196. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
  197. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +126 -0
  198. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +81 -0
  199. data/spec/api/remotes_collection_api_spec.rb +55 -3
  200. data/spec/api/remotes_git_api_spec.rb +51 -3
  201. data/spec/api/remotes_role_api_spec.rb +51 -3
  202. data/spec/api/repositories_ansible_api_spec.rb +99 -3
  203. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -2
  204. data/spec/api/versions_api_spec.rb +4 -4
  205. data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +95 -0
  206. data/spec/models/ansible_ansible_namespace_metadata_spec.rb +77 -0
  207. data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
  208. data/spec/models/ansible_ansible_repository_spec.rb +6 -0
  209. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  210. data/spec/models/ansible_collection_version_mark_response_spec.rb +59 -0
  211. data/spec/models/ansible_collection_version_mark_spec.rb +47 -0
  212. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  213. data/spec/models/ansible_collection_version_spec.rb +3 -3
  214. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  215. data/spec/models/ansible_git_remote_spec.rb +19 -19
  216. data/spec/models/ansible_repository_mark_spec.rb +47 -0
  217. data/spec/models/ansible_role_response_spec.rb +3 -3
  218. data/spec/models/collection_namespace_response_spec.rb +6 -0
  219. data/spec/models/collection_summary_response_spec.rb +95 -0
  220. data/spec/models/collection_version_copy_move_spec.rb +53 -0
  221. data/spec/models/collection_version_list_response_spec.rb +6 -0
  222. data/spec/models/collection_version_response_spec.rb +6 -0
  223. data/spec/models/collection_version_search_list_response_spec.rb +77 -0
  224. data/spec/models/collection_version_search_list_spec.rb +71 -0
  225. data/spec/models/my_permissions_response_spec.rb +41 -0
  226. data/spec/models/namespace_link_response_spec.rb +47 -0
  227. data/spec/models/namespace_link_spec.rb +47 -0
  228. data/spec/models/nested_role_response_spec.rb +53 -0
  229. data/spec/models/nested_role_spec.rb +53 -0
  230. data/spec/models/object_roles_response_spec.rb +41 -0
  231. data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +53 -0
  232. data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +59 -0
  233. data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +59 -0
  234. data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +77 -0
  235. data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
  236. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  237. data/spec/models/progress_report_response_spec.rb +71 -0
  238. data/spec/models/repository_response_spec.rb +89 -0
  239. data/spec/models/repository_spec.rb +65 -0
  240. data/spec/models/task_response_spec.rb +125 -0
  241. data/spec/models/task_spec.rb +47 -0
  242. data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
  243. metadata +230 -102
@@ -15,61 +15,61 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # Headers for aiohttp.Clientsession
19
- attr_accessor :headers
20
-
21
- attr_accessor :pulp_labels
22
-
23
- # Limits requests per second for each concurrent downloader
24
- attr_accessor :rate_limit
18
+ attr_accessor :pulp_href
25
19
 
26
- # The proxy URL. Format: scheme://host:port
27
- attr_accessor :proxy_url
20
+ # 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.
21
+ attr_accessor :sock_read_timeout
28
22
 
29
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
30
- attr_accessor :total_timeout
23
+ # List of hidden (write only) fields
24
+ attr_accessor :hidden_fields
31
25
 
32
- # The URL of an external content source.
33
- attr_accessor :url
26
+ # Timestamp of creation.
27
+ attr_accessor :pulp_created
34
28
 
35
29
  # If True, TLS peer validation must be performed.
36
30
  attr_accessor :tls_validation
37
31
 
38
- # 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.
39
- attr_accessor :sock_connect_timeout
32
+ # Timestamp of the most recent update of the remote.
33
+ attr_accessor :pulp_last_updated
34
+
35
+ # A unique name for this remote.
36
+ attr_accessor :name
40
37
 
41
38
  # A PEM encoded client certificate used for authentication.
42
39
  attr_accessor :client_cert
43
40
 
44
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
45
- attr_accessor :connect_timeout
46
-
47
- # 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.
48
- attr_accessor :sock_read_timeout
41
+ # The proxy URL. Format: scheme://host:port
42
+ attr_accessor :proxy_url
49
43
 
50
- # Timestamp of the most recent update of the remote.
51
- attr_accessor :pulp_last_updated
44
+ # The URL of an external content source.
45
+ attr_accessor :url
52
46
 
53
47
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
54
48
  attr_accessor :max_retries
55
49
 
56
- # Timestamp of creation.
57
- attr_accessor :pulp_created
50
+ attr_accessor :pulp_labels
58
51
 
59
- attr_accessor :pulp_href
52
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
+ attr_accessor :total_timeout
60
54
 
61
- # A unique name for this remote.
62
- attr_accessor :name
55
+ # Headers for aiohttp.Clientsession
56
+ attr_accessor :headers
63
57
 
64
- # List of hidden (write only) fields
65
- attr_accessor :hidden_fields
58
+ # 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.
59
+ attr_accessor :sock_connect_timeout
66
60
 
67
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
68
- attr_accessor :ca_cert
61
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
+ attr_accessor :connect_timeout
69
63
 
70
64
  # Total number of simultaneous connections. If not set then the default value will be used.
71
65
  attr_accessor :download_concurrency
72
66
 
67
+ # Limits requests per second for each concurrent downloader
68
+ attr_accessor :rate_limit
69
+
70
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
71
+ attr_accessor :ca_cert
72
+
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
75
75
 
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
- :'headers' => :'headers',
83
- :'pulp_labels' => :'pulp_labels',
84
- :'rate_limit' => :'rate_limit',
82
+ :'pulp_href' => :'pulp_href',
83
+ :'sock_read_timeout' => :'sock_read_timeout',
84
+ :'hidden_fields' => :'hidden_fields',
85
+ :'pulp_created' => :'pulp_created',
86
+ :'tls_validation' => :'tls_validation',
87
+ :'pulp_last_updated' => :'pulp_last_updated',
88
+ :'name' => :'name',
89
+ :'client_cert' => :'client_cert',
85
90
  :'proxy_url' => :'proxy_url',
86
- :'total_timeout' => :'total_timeout',
87
91
  :'url' => :'url',
88
- :'tls_validation' => :'tls_validation',
92
+ :'max_retries' => :'max_retries',
93
+ :'pulp_labels' => :'pulp_labels',
94
+ :'total_timeout' => :'total_timeout',
95
+ :'headers' => :'headers',
89
96
  :'sock_connect_timeout' => :'sock_connect_timeout',
90
- :'client_cert' => :'client_cert',
91
97
  :'connect_timeout' => :'connect_timeout',
92
- :'sock_read_timeout' => :'sock_read_timeout',
93
- :'pulp_last_updated' => :'pulp_last_updated',
94
- :'max_retries' => :'max_retries',
95
- :'pulp_created' => :'pulp_created',
96
- :'pulp_href' => :'pulp_href',
97
- :'name' => :'name',
98
- :'hidden_fields' => :'hidden_fields',
99
- :'ca_cert' => :'ca_cert',
100
98
  :'download_concurrency' => :'download_concurrency',
99
+ :'rate_limit' => :'rate_limit',
100
+ :'ca_cert' => :'ca_cert',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
- :'headers' => :'Array<Object>',
110
- :'pulp_labels' => :'Hash<String, String>',
111
- :'rate_limit' => :'Integer',
109
+ :'pulp_href' => :'String',
110
+ :'sock_read_timeout' => :'Float',
111
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
112
+ :'pulp_created' => :'DateTime',
113
+ :'tls_validation' => :'Boolean',
114
+ :'pulp_last_updated' => :'DateTime',
115
+ :'name' => :'String',
116
+ :'client_cert' => :'String',
112
117
  :'proxy_url' => :'String',
113
- :'total_timeout' => :'Float',
114
118
  :'url' => :'String',
115
- :'tls_validation' => :'Boolean',
119
+ :'max_retries' => :'Integer',
120
+ :'pulp_labels' => :'Hash<String, String>',
121
+ :'total_timeout' => :'Float',
122
+ :'headers' => :'Array<Object>',
116
123
  :'sock_connect_timeout' => :'Float',
117
- :'client_cert' => :'String',
118
124
  :'connect_timeout' => :'Float',
119
- :'sock_read_timeout' => :'Float',
120
- :'pulp_last_updated' => :'DateTime',
121
- :'max_retries' => :'Integer',
122
- :'pulp_created' => :'DateTime',
123
- :'pulp_href' => :'String',
124
- :'name' => :'String',
125
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
126
- :'ca_cert' => :'String',
127
125
  :'download_concurrency' => :'Integer',
126
+ :'rate_limit' => :'Integer',
127
+ :'ca_cert' => :'String',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'rate_limit',
136
+ :'sock_read_timeout',
137
+ :'client_cert',
137
138
  :'proxy_url',
139
+ :'max_retries',
138
140
  :'total_timeout',
139
141
  :'sock_connect_timeout',
140
- :'client_cert',
141
142
  :'connect_timeout',
142
- :'sock_read_timeout',
143
- :'max_retries',
144
- :'ca_cert',
145
143
  :'download_concurrency',
144
+ :'rate_limit',
145
+ :'ca_cert',
146
146
  ])
147
147
  end
148
148
 
@@ -161,88 +161,88 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'headers')
165
- if (value = attributes[:'headers']).is_a?(Array)
166
- self.headers = value
167
- end
168
- end
169
-
170
- if attributes.key?(:'pulp_labels')
171
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
172
- self.pulp_labels = value
173
- end
174
- end
175
-
176
- if attributes.key?(:'rate_limit')
177
- self.rate_limit = attributes[:'rate_limit']
164
+ if attributes.key?(:'pulp_href')
165
+ self.pulp_href = attributes[:'pulp_href']
178
166
  end
179
167
 
180
- if attributes.key?(:'proxy_url')
181
- self.proxy_url = attributes[:'proxy_url']
168
+ if attributes.key?(:'sock_read_timeout')
169
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
182
170
  end
183
171
 
184
- if attributes.key?(:'total_timeout')
185
- self.total_timeout = attributes[:'total_timeout']
172
+ if attributes.key?(:'hidden_fields')
173
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
174
+ self.hidden_fields = value
175
+ end
186
176
  end
187
177
 
188
- if attributes.key?(:'url')
189
- self.url = attributes[:'url']
178
+ if attributes.key?(:'pulp_created')
179
+ self.pulp_created = attributes[:'pulp_created']
190
180
  end
191
181
 
192
182
  if attributes.key?(:'tls_validation')
193
183
  self.tls_validation = attributes[:'tls_validation']
194
184
  end
195
185
 
196
- if attributes.key?(:'sock_connect_timeout')
197
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
186
+ if attributes.key?(:'pulp_last_updated')
187
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
198
188
  end
199
189
 
200
- if attributes.key?(:'client_cert')
201
- self.client_cert = attributes[:'client_cert']
190
+ if attributes.key?(:'name')
191
+ self.name = attributes[:'name']
202
192
  end
203
193
 
204
- if attributes.key?(:'connect_timeout')
205
- self.connect_timeout = attributes[:'connect_timeout']
194
+ if attributes.key?(:'client_cert')
195
+ self.client_cert = attributes[:'client_cert']
206
196
  end
207
197
 
208
- if attributes.key?(:'sock_read_timeout')
209
- self.sock_read_timeout = attributes[:'sock_read_timeout']
198
+ if attributes.key?(:'proxy_url')
199
+ self.proxy_url = attributes[:'proxy_url']
210
200
  end
211
201
 
212
- if attributes.key?(:'pulp_last_updated')
213
- self.pulp_last_updated = attributes[:'pulp_last_updated']
202
+ if attributes.key?(:'url')
203
+ self.url = attributes[:'url']
214
204
  end
215
205
 
216
206
  if attributes.key?(:'max_retries')
217
207
  self.max_retries = attributes[:'max_retries']
218
208
  end
219
209
 
220
- if attributes.key?(:'pulp_created')
221
- self.pulp_created = attributes[:'pulp_created']
210
+ if attributes.key?(:'pulp_labels')
211
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
+ self.pulp_labels = value
213
+ end
222
214
  end
223
215
 
224
- if attributes.key?(:'pulp_href')
225
- self.pulp_href = attributes[:'pulp_href']
216
+ if attributes.key?(:'total_timeout')
217
+ self.total_timeout = attributes[:'total_timeout']
226
218
  end
227
219
 
228
- if attributes.key?(:'name')
229
- self.name = attributes[:'name']
220
+ if attributes.key?(:'headers')
221
+ if (value = attributes[:'headers']).is_a?(Array)
222
+ self.headers = value
223
+ end
230
224
  end
231
225
 
232
- if attributes.key?(:'hidden_fields')
233
- if (value = attributes[:'hidden_fields']).is_a?(Array)
234
- self.hidden_fields = value
235
- end
226
+ if attributes.key?(:'sock_connect_timeout')
227
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
236
228
  end
237
229
 
238
- if attributes.key?(:'ca_cert')
239
- self.ca_cert = attributes[:'ca_cert']
230
+ if attributes.key?(:'connect_timeout')
231
+ self.connect_timeout = attributes[:'connect_timeout']
240
232
  end
241
233
 
242
234
  if attributes.key?(:'download_concurrency')
243
235
  self.download_concurrency = attributes[:'download_concurrency']
244
236
  end
245
237
 
238
+ if attributes.key?(:'rate_limit')
239
+ self.rate_limit = attributes[:'rate_limit']
240
+ end
241
+
242
+ if attributes.key?(:'ca_cert')
243
+ self.ca_cert = attributes[:'ca_cert']
244
+ end
245
+
246
246
  if attributes.key?(:'metadata_only')
247
247
  self.metadata_only = attributes[:'metadata_only']
248
248
  end
@@ -256,14 +256,22 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if !@total_timeout.nil? && @total_timeout < 0.0
260
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
259
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
260
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
261
+ end
262
+
263
+ if @name.nil?
264
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
261
265
  end
262
266
 
263
267
  if @url.nil?
264
268
  invalid_properties.push('invalid value for "url", url cannot be nil.')
265
269
  end
266
270
 
271
+ if !@total_timeout.nil? && @total_timeout < 0.0
272
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
273
+ end
274
+
267
275
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
268
276
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
269
277
  end
@@ -272,14 +280,6 @@ module PulpAnsibleClient
272
280
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
273
281
  end
274
282
 
275
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
276
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
277
- end
278
-
279
- if @name.nil?
280
- invalid_properties.push('invalid value for "name", name cannot be nil.')
281
- end
282
-
283
283
  if !@download_concurrency.nil? && @download_concurrency < 1
284
284
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
285
285
  end
@@ -290,16 +290,26 @@ module PulpAnsibleClient
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
- return false if !@total_timeout.nil? && @total_timeout < 0.0
293
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
294
+ return false if @name.nil?
294
295
  return false if @url.nil?
296
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
295
297
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
298
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
297
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
- return false if @name.nil?
299
299
  return false if !@download_concurrency.nil? && @download_concurrency < 1
300
300
  true
301
301
  end
302
302
 
303
+ # Custom attribute writer method with validation
304
+ # @param [Object] sock_read_timeout Value to be assigned
305
+ def sock_read_timeout=(sock_read_timeout)
306
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
307
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
308
+ end
309
+
310
+ @sock_read_timeout = sock_read_timeout
311
+ end
312
+
303
313
  # Custom attribute writer method with validation
304
314
  # @param [Object] total_timeout Value to be assigned
305
315
  def total_timeout=(total_timeout)
@@ -330,16 +340,6 @@ module PulpAnsibleClient
330
340
  @connect_timeout = connect_timeout
331
341
  end
332
342
 
333
- # Custom attribute writer method with validation
334
- # @param [Object] sock_read_timeout Value to be assigned
335
- def sock_read_timeout=(sock_read_timeout)
336
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
337
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
338
- end
339
-
340
- @sock_read_timeout = sock_read_timeout
341
- end
342
-
343
343
  # Custom attribute writer method with validation
344
344
  # @param [Object] download_concurrency Value to be assigned
345
345
  def download_concurrency=(download_concurrency)
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- headers == o.headers &&
359
- pulp_labels == o.pulp_labels &&
360
- rate_limit == o.rate_limit &&
358
+ pulp_href == o.pulp_href &&
359
+ sock_read_timeout == o.sock_read_timeout &&
360
+ hidden_fields == o.hidden_fields &&
361
+ pulp_created == o.pulp_created &&
362
+ tls_validation == o.tls_validation &&
363
+ pulp_last_updated == o.pulp_last_updated &&
364
+ name == o.name &&
365
+ client_cert == o.client_cert &&
361
366
  proxy_url == o.proxy_url &&
362
- total_timeout == o.total_timeout &&
363
367
  url == o.url &&
364
- tls_validation == o.tls_validation &&
368
+ max_retries == o.max_retries &&
369
+ pulp_labels == o.pulp_labels &&
370
+ total_timeout == o.total_timeout &&
371
+ headers == o.headers &&
365
372
  sock_connect_timeout == o.sock_connect_timeout &&
366
- client_cert == o.client_cert &&
367
373
  connect_timeout == o.connect_timeout &&
368
- sock_read_timeout == o.sock_read_timeout &&
369
- pulp_last_updated == o.pulp_last_updated &&
370
- max_retries == o.max_retries &&
371
- pulp_created == o.pulp_created &&
372
- pulp_href == o.pulp_href &&
373
- name == o.name &&
374
- hidden_fields == o.hidden_fields &&
375
- ca_cert == o.ca_cert &&
376
374
  download_concurrency == o.download_concurrency &&
375
+ rate_limit == o.rate_limit &&
376
+ ca_cert == o.ca_cert &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [headers, pulp_labels, rate_limit, proxy_url, total_timeout, url, tls_validation, sock_connect_timeout, client_cert, connect_timeout, sock_read_timeout, pulp_last_updated, max_retries, pulp_created, pulp_href, name, hidden_fields, ca_cert, download_concurrency, metadata_only, git_ref].hash
390
+ [pulp_href, sock_read_timeout, hidden_fields, pulp_created, tls_validation, pulp_last_updated, name, client_cert, proxy_url, url, max_retries, pulp_labels, total_timeout, headers, sock_connect_timeout, connect_timeout, download_concurrency, rate_limit, ca_cert, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash