pulp_ansible_client 0.16.5 → 0.17.0

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