pulp_ansible_client 0.16.0 → 0.16.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -7
  3. data/docs/AnsibleAnsibleDistribution.md +1 -1
  4. data/docs/AnsibleAnsibleDistributionResponse.md +1 -1
  5. data/docs/AnsibleAnsibleRepository.md +2 -2
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -2
  7. data/docs/AnsibleCollectionRemote.md +2 -2
  8. data/docs/AnsibleCollectionRemoteResponse.md +4 -2
  9. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +19 -0
  10. data/docs/AnsibleCollectionVersion.md +4 -4
  11. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  12. data/docs/AnsibleCollectionsApi.md +10 -6
  13. data/docs/AnsibleGitRemote.md +25 -25
  14. data/docs/AnsibleGitRemoteResponse.md +27 -25
  15. data/docs/AnsibleRoleRemote.md +2 -2
  16. data/docs/AnsibleRoleRemoteResponse.md +5 -3
  17. data/docs/AnsibleRoleResponse.md +4 -4
  18. data/docs/ApiCollectionsApi.md +4 -4
  19. data/docs/ApiRolesApi.md +4 -4
  20. data/docs/CollectionImportApi.md +4 -4
  21. data/docs/CollectionRefResponse.md +1 -1
  22. data/docs/CollectionResponse.md +6 -6
  23. data/docs/CollectionVersionListResponse.md +1 -1
  24. data/docs/CollectionVersionResponse.md +4 -4
  25. data/docs/ContentCollectionDeprecationsApi.md +14 -10
  26. data/docs/ContentCollectionSignaturesApi.md +16 -12
  27. data/docs/ContentCollectionVersionsApi.md +18 -14
  28. data/docs/ContentRolesApi.md +14 -10
  29. data/docs/DistributionsAnsibleApi.md +22 -14
  30. data/docs/GalaxyCollectionResponse.md +4 -4
  31. data/docs/GalaxyCollectionVersionResponse.md +4 -4
  32. data/docs/GalaxyDetailApi.md +4 -4
  33. data/docs/GalaxyRoleResponse.md +1 -1
  34. data/docs/GalaxyRoleVersionResponse.md +1 -1
  35. data/docs/PatchedansibleAnsibleDistribution.md +1 -1
  36. data/docs/PatchedansibleAnsibleRepository.md +2 -2
  37. data/docs/PatchedansibleCollectionRemote.md +2 -2
  38. data/docs/PatchedansibleGitRemote.md +25 -25
  39. data/docs/PatchedansibleRoleRemote.md +2 -2
  40. data/docs/PulpAnsibleApiApi.md +4 -4
  41. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +4 -4
  42. data/docs/PulpAnsibleApiV3Api.md +4 -4
  43. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +4 -4
  44. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +4 -4
  45. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +10 -6
  46. data/docs/PulpAnsibleApiV3CollectionsApi.md +14 -10
  47. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +14 -10
  48. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +4 -4
  49. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +4 -4
  50. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +10 -6
  51. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
  52. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +4 -4
  53. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
  54. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +14 -10
  55. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +14 -10
  56. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
  57. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +4 -4
  58. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +10 -6
  59. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +14 -10
  60. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +14 -10
  61. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +4 -4
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +10 -6
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +4 -4
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +14 -10
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +14 -10
  68. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
  69. data/docs/PulpAnsibleTagsApi.md +4 -4
  70. data/docs/RemotesCollectionApi.md +18 -14
  71. data/docs/RemotesGitApi.md +18 -14
  72. data/docs/RemotesRoleApi.md +18 -14
  73. data/docs/RepositoriesAnsibleApi.md +33 -13
  74. data/docs/RepositoriesAnsibleVersionsApi.md +16 -14
  75. data/docs/RepositoryAddRemoveContent.md +2 -2
  76. data/docs/UnpaginatedCollectionVersionResponse.md +4 -4
  77. data/docs/VersionsApi.md +8 -8
  78. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +15 -9
  79. data/lib/pulp_ansible_client/api/api_collections_api.rb +6 -6
  80. data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -6
  81. data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -6
  82. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -14
  83. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +21 -15
  84. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +27 -21
  85. data/lib/pulp_ansible_client/api/content_roles_api.rb +21 -15
  86. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +31 -19
  87. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +6 -6
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +6 -6
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +6 -6
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -6
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +6 -6
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -6
  93. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +15 -9
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +21 -15
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +21 -15
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -6
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -6
  98. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +15 -9
  99. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  100. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  101. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  102. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +21 -15
  103. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +21 -15
  104. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +6 -6
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +15 -9
  107. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +21 -15
  108. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +21 -15
  109. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -6
  110. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +15 -9
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  112. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  113. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  114. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +21 -15
  115. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +21 -15
  116. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  117. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
  118. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +25 -19
  119. data/lib/pulp_ansible_client/api/remotes_git_api.rb +25 -19
  120. data/lib/pulp_ansible_client/api/remotes_role_api.rb +25 -19
  121. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +47 -17
  122. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +22 -19
  123. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  124. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +4 -2
  125. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +4 -2
  126. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +5 -3
  127. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +5 -3
  128. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +5 -3
  129. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +18 -4
  130. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +215 -0
  131. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  132. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  133. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +218 -216
  134. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -130
  135. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +5 -3
  136. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +22 -8
  137. data/lib/pulp_ansible_client/models/ansible_role_response.rb +15 -15
  138. data/lib/pulp_ansible_client/models/collection_ref_response.rb +1 -0
  139. data/lib/pulp_ansible_client/models/collection_response.rb +6 -0
  140. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +1 -0
  141. data/lib/pulp_ansible_client/models/collection_version_response.rb +4 -0
  142. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +4 -0
  143. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +4 -0
  144. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +1 -0
  145. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +1 -0
  146. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +4 -2
  147. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +5 -3
  148. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +5 -3
  149. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +218 -216
  150. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +5 -3
  151. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
  152. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +4 -0
  153. data/lib/pulp_ansible_client/version.rb +1 -1
  154. data/lib/pulp_ansible_client.rb +1 -0
  155. data/spec/api/ansible_collections_api_spec.rb +5 -3
  156. data/spec/api/api_collections_api_spec.rb +2 -2
  157. data/spec/api/api_roles_api_spec.rb +2 -2
  158. data/spec/api/collection_import_api_spec.rb +2 -2
  159. data/spec/api/content_collection_deprecations_api_spec.rb +7 -5
  160. data/spec/api/content_collection_signatures_api_spec.rb +7 -5
  161. data/spec/api/content_collection_versions_api_spec.rb +9 -7
  162. data/spec/api/content_roles_api_spec.rb +7 -5
  163. data/spec/api/distributions_ansible_api_spec.rb +11 -7
  164. data/spec/api/galaxy_detail_api_spec.rb +2 -2
  165. data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
  166. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +2 -2
  167. data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
  168. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
  169. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
  170. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +5 -3
  171. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +7 -5
  172. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +7 -5
  173. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  174. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
  175. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +5 -3
  176. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  177. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  178. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  179. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +7 -5
  180. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +7 -5
  181. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  182. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
  183. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +5 -3
  184. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +7 -5
  185. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +7 -5
  186. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  187. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +5 -3
  188. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  189. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  190. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  191. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +7 -5
  192. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +7 -5
  193. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  194. data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
  195. data/spec/api/remotes_collection_api_spec.rb +9 -7
  196. data/spec/api/remotes_git_api_spec.rb +9 -7
  197. data/spec/api/remotes_role_api_spec.rb +9 -7
  198. data/spec/api/repositories_ansible_api_spec.rb +16 -6
  199. data/spec/api/repositories_ansible_versions_api_spec.rb +8 -7
  200. data/spec/api/versions_api_spec.rb +4 -4
  201. data/spec/models/ansible_collection_remote_response_hidden_fields_spec.rb +47 -0
  202. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  203. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  204. data/spec/models/ansible_collection_version_spec.rb +3 -3
  205. data/spec/models/ansible_git_remote_response_spec.rb +24 -18
  206. data/spec/models/ansible_git_remote_spec.rb +19 -19
  207. data/spec/models/ansible_role_remote_response_spec.rb +6 -0
  208. data/spec/models/ansible_role_response_spec.rb +2 -2
  209. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  210. metadata +104 -100
@@ -15,44 +15,23 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class PatchedansibleGitRemote
18
- # The proxy URL. Format: scheme://host:port
19
- attr_accessor :proxy_url
20
-
21
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
22
- attr_accessor :ca_cert
23
-
24
- # Total number of simultaneous connections. If not set then the default value will be used.
25
- attr_accessor :download_concurrency
26
-
27
18
  # 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.
28
19
  attr_accessor :sock_connect_timeout
29
20
 
30
- # Limits requests per second for each concurrent downloader
31
- attr_accessor :rate_limit
32
-
33
- # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
34
- attr_accessor :proxy_password
35
-
36
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
37
- attr_accessor :max_retries
38
-
39
- # A PEM encoded client certificate used for authentication.
40
- attr_accessor :client_cert
41
-
42
21
  # A unique name for this remote.
43
22
  attr_accessor :name
44
23
 
45
- # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
46
- attr_accessor :password
24
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
25
+ attr_accessor :total_timeout
26
+
27
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
28
+ attr_accessor :ca_cert
47
29
 
48
30
  # Headers for aiohttp.Clientsession
49
31
  attr_accessor :headers
50
32
 
51
- # If True, TLS peer validation must be performed.
52
- attr_accessor :tls_validation
53
-
54
- # The username to be used for authentication when syncing.
55
- attr_accessor :username
33
+ # The proxy URL. Format: scheme://host:port
34
+ attr_accessor :proxy_url
56
35
 
57
36
  # A PEM encoded private key used for authentication.
58
37
  attr_accessor :client_key
@@ -63,14 +42,35 @@ module PulpAnsibleClient
63
42
  # 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.
64
43
  attr_accessor :sock_read_timeout
65
44
 
66
- attr_accessor :pulp_labels
45
+ # Total number of simultaneous connections. If not set then the default value will be used.
46
+ attr_accessor :download_concurrency
67
47
 
68
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
69
- attr_accessor :total_timeout
48
+ # The username to be used for authentication when syncing.
49
+ attr_accessor :username
50
+
51
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
52
+ attr_accessor :password
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
56
+
57
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
58
+ attr_accessor :proxy_password
59
+
60
+ # If True, TLS peer validation must be performed.
61
+ attr_accessor :tls_validation
70
62
 
71
63
  # The URL of an external content source.
72
64
  attr_accessor :url
73
65
 
66
+ # A PEM encoded client certificate used for authentication.
67
+ attr_accessor :client_cert
68
+
69
+ # Limits requests per second for each concurrent downloader
70
+ attr_accessor :rate_limit
71
+
72
+ attr_accessor :pulp_labels
73
+
74
74
  # The username to authenticte to the proxy.
75
75
  attr_accessor :proxy_username
76
76
 
@@ -83,25 +83,25 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'proxy_url' => :'proxy_url',
87
- :'ca_cert' => :'ca_cert',
88
- :'download_concurrency' => :'download_concurrency',
89
86
  :'sock_connect_timeout' => :'sock_connect_timeout',
90
- :'rate_limit' => :'rate_limit',
91
- :'proxy_password' => :'proxy_password',
92
- :'max_retries' => :'max_retries',
93
- :'client_cert' => :'client_cert',
94
87
  :'name' => :'name',
95
- :'password' => :'password',
88
+ :'total_timeout' => :'total_timeout',
89
+ :'ca_cert' => :'ca_cert',
96
90
  :'headers' => :'headers',
97
- :'tls_validation' => :'tls_validation',
98
- :'username' => :'username',
91
+ :'proxy_url' => :'proxy_url',
99
92
  :'client_key' => :'client_key',
100
93
  :'connect_timeout' => :'connect_timeout',
101
94
  :'sock_read_timeout' => :'sock_read_timeout',
102
- :'pulp_labels' => :'pulp_labels',
103
- :'total_timeout' => :'total_timeout',
95
+ :'download_concurrency' => :'download_concurrency',
96
+ :'username' => :'username',
97
+ :'password' => :'password',
98
+ :'max_retries' => :'max_retries',
99
+ :'proxy_password' => :'proxy_password',
100
+ :'tls_validation' => :'tls_validation',
104
101
  :'url' => :'url',
102
+ :'client_cert' => :'client_cert',
103
+ :'rate_limit' => :'rate_limit',
104
+ :'pulp_labels' => :'pulp_labels',
105
105
  :'proxy_username' => :'proxy_username',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
@@ -111,25 +111,25 @@ module PulpAnsibleClient
111
111
  # Attribute type mapping.
112
112
  def self.openapi_types
113
113
  {
114
- :'proxy_url' => :'String',
115
- :'ca_cert' => :'String',
116
- :'download_concurrency' => :'Integer',
117
114
  :'sock_connect_timeout' => :'Float',
118
- :'rate_limit' => :'Integer',
119
- :'proxy_password' => :'String',
120
- :'max_retries' => :'Integer',
121
- :'client_cert' => :'String',
122
115
  :'name' => :'String',
123
- :'password' => :'String',
116
+ :'total_timeout' => :'Float',
117
+ :'ca_cert' => :'String',
124
118
  :'headers' => :'Array<Object>',
125
- :'tls_validation' => :'Boolean',
126
- :'username' => :'String',
119
+ :'proxy_url' => :'String',
127
120
  :'client_key' => :'String',
128
121
  :'connect_timeout' => :'Float',
129
122
  :'sock_read_timeout' => :'Float',
130
- :'pulp_labels' => :'Object',
131
- :'total_timeout' => :'Float',
123
+ :'download_concurrency' => :'Integer',
124
+ :'username' => :'String',
125
+ :'password' => :'String',
126
+ :'max_retries' => :'Integer',
127
+ :'proxy_password' => :'String',
128
+ :'tls_validation' => :'Boolean',
132
129
  :'url' => :'String',
130
+ :'client_cert' => :'String',
131
+ :'rate_limit' => :'Integer',
132
+ :'pulp_labels' => :'Hash<String, String>',
133
133
  :'proxy_username' => :'String',
134
134
  :'metadata_only' => :'Boolean',
135
135
  :'git_ref' => :'String'
@@ -139,20 +139,20 @@ module PulpAnsibleClient
139
139
  # List of attributes with nullable: true
140
140
  def self.openapi_nullable
141
141
  Set.new([
142
- :'proxy_url',
143
- :'ca_cert',
144
- :'download_concurrency',
145
142
  :'sock_connect_timeout',
146
- :'rate_limit',
147
- :'proxy_password',
148
- :'max_retries',
149
- :'client_cert',
150
- :'password',
151
- :'username',
143
+ :'total_timeout',
144
+ :'ca_cert',
145
+ :'proxy_url',
152
146
  :'client_key',
153
147
  :'connect_timeout',
154
148
  :'sock_read_timeout',
155
- :'total_timeout',
149
+ :'download_concurrency',
150
+ :'username',
151
+ :'password',
152
+ :'max_retries',
153
+ :'proxy_password',
154
+ :'client_cert',
155
+ :'rate_limit',
156
156
  :'proxy_username',
157
157
  ])
158
158
  end
@@ -172,82 +172,84 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'proxy_url')
176
- self.proxy_url = attributes[:'proxy_url']
175
+ if attributes.key?(:'sock_connect_timeout')
176
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
177
+ end
178
+
179
+ if attributes.key?(:'name')
180
+ self.name = attributes[:'name']
181
+ end
182
+
183
+ if attributes.key?(:'total_timeout')
184
+ self.total_timeout = attributes[:'total_timeout']
177
185
  end
178
186
 
179
187
  if attributes.key?(:'ca_cert')
180
188
  self.ca_cert = attributes[:'ca_cert']
181
189
  end
182
190
 
183
- if attributes.key?(:'download_concurrency')
184
- self.download_concurrency = attributes[:'download_concurrency']
191
+ if attributes.key?(:'headers')
192
+ if (value = attributes[:'headers']).is_a?(Array)
193
+ self.headers = value
194
+ end
185
195
  end
186
196
 
187
- if attributes.key?(:'sock_connect_timeout')
188
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
197
+ if attributes.key?(:'proxy_url')
198
+ self.proxy_url = attributes[:'proxy_url']
189
199
  end
190
200
 
191
- if attributes.key?(:'rate_limit')
192
- self.rate_limit = attributes[:'rate_limit']
201
+ if attributes.key?(:'client_key')
202
+ self.client_key = attributes[:'client_key']
193
203
  end
194
204
 
195
- if attributes.key?(:'proxy_password')
196
- self.proxy_password = attributes[:'proxy_password']
205
+ if attributes.key?(:'connect_timeout')
206
+ self.connect_timeout = attributes[:'connect_timeout']
197
207
  end
198
208
 
199
- if attributes.key?(:'max_retries')
200
- self.max_retries = attributes[:'max_retries']
209
+ if attributes.key?(:'sock_read_timeout')
210
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
201
211
  end
202
212
 
203
- if attributes.key?(:'client_cert')
204
- self.client_cert = attributes[:'client_cert']
213
+ if attributes.key?(:'download_concurrency')
214
+ self.download_concurrency = attributes[:'download_concurrency']
205
215
  end
206
216
 
207
- if attributes.key?(:'name')
208
- self.name = attributes[:'name']
217
+ if attributes.key?(:'username')
218
+ self.username = attributes[:'username']
209
219
  end
210
220
 
211
221
  if attributes.key?(:'password')
212
222
  self.password = attributes[:'password']
213
223
  end
214
224
 
215
- if attributes.key?(:'headers')
216
- if (value = attributes[:'headers']).is_a?(Array)
217
- self.headers = value
218
- end
225
+ if attributes.key?(:'max_retries')
226
+ self.max_retries = attributes[:'max_retries']
219
227
  end
220
228
 
221
- if attributes.key?(:'tls_validation')
222
- self.tls_validation = attributes[:'tls_validation']
229
+ if attributes.key?(:'proxy_password')
230
+ self.proxy_password = attributes[:'proxy_password']
223
231
  end
224
232
 
225
- if attributes.key?(:'username')
226
- self.username = attributes[:'username']
233
+ if attributes.key?(:'tls_validation')
234
+ self.tls_validation = attributes[:'tls_validation']
227
235
  end
228
236
 
229
- if attributes.key?(:'client_key')
230
- self.client_key = attributes[:'client_key']
237
+ if attributes.key?(:'url')
238
+ self.url = attributes[:'url']
231
239
  end
232
240
 
233
- if attributes.key?(:'connect_timeout')
234
- self.connect_timeout = attributes[:'connect_timeout']
241
+ if attributes.key?(:'client_cert')
242
+ self.client_cert = attributes[:'client_cert']
235
243
  end
236
244
 
237
- if attributes.key?(:'sock_read_timeout')
238
- self.sock_read_timeout = attributes[:'sock_read_timeout']
245
+ if attributes.key?(:'rate_limit')
246
+ self.rate_limit = attributes[:'rate_limit']
239
247
  end
240
248
 
241
249
  if attributes.key?(:'pulp_labels')
242
- self.pulp_labels = attributes[:'pulp_labels']
243
- end
244
-
245
- if attributes.key?(:'total_timeout')
246
- self.total_timeout = attributes[:'total_timeout']
247
- end
248
-
249
- if attributes.key?(:'url')
250
- self.url = attributes[:'url']
250
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
251
+ self.pulp_labels = value
252
+ end
251
253
  end
252
254
 
253
255
  if attributes.key?(:'proxy_username')
@@ -267,40 +269,24 @@ module PulpAnsibleClient
267
269
  # @return Array for valid properties with the reasons
268
270
  def list_invalid_properties
269
271
  invalid_properties = Array.new
270
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
271
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
272
- end
273
-
274
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
275
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
276
- end
277
-
278
- if !@download_concurrency.nil? && @download_concurrency < 1
279
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
280
- end
281
-
282
272
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
283
273
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
284
274
  end
285
275
 
286
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
287
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
288
- end
289
-
290
- if !@client_cert.nil? && @client_cert.to_s.length < 1
291
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
292
- end
293
-
294
276
  if !@name.nil? && @name.to_s.length < 1
295
277
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
296
278
  end
297
279
 
298
- if !@password.nil? && @password.to_s.length < 1
299
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
280
+ if !@total_timeout.nil? && @total_timeout < 0.0
281
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
300
282
  end
301
283
 
302
- if !@username.nil? && @username.to_s.length < 1
303
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
284
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
285
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
286
+ end
287
+
288
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
289
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
304
290
  end
305
291
 
306
292
  if !@client_key.nil? && @client_key.to_s.length < 1
@@ -315,14 +301,30 @@ module PulpAnsibleClient
315
301
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
316
302
  end
317
303
 
318
- if !@total_timeout.nil? && @total_timeout < 0.0
319
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
304
+ if !@download_concurrency.nil? && @download_concurrency < 1
305
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
306
+ end
307
+
308
+ if !@username.nil? && @username.to_s.length < 1
309
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
310
+ end
311
+
312
+ if !@password.nil? && @password.to_s.length < 1
313
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
314
+ end
315
+
316
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
317
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
320
318
  end
321
319
 
322
320
  if !@url.nil? && @url.to_s.length < 1
323
321
  invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
324
322
  end
325
323
 
324
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
325
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
326
+ end
327
+
326
328
  if !@proxy_username.nil? && @proxy_username.to_s.length < 1
327
329
  invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
328
330
  end
@@ -337,55 +339,25 @@ module PulpAnsibleClient
337
339
  # Check to see if the all the properties in the model are valid
338
340
  # @return true if the model is valid
339
341
  def valid?
340
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
341
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
342
- return false if !@download_concurrency.nil? && @download_concurrency < 1
343
342
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
344
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
345
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
346
343
  return false if !@name.nil? && @name.to_s.length < 1
347
- return false if !@password.nil? && @password.to_s.length < 1
348
- return false if !@username.nil? && @username.to_s.length < 1
344
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
345
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
346
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
349
347
  return false if !@client_key.nil? && @client_key.to_s.length < 1
350
348
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
351
349
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
352
- return false if !@total_timeout.nil? && @total_timeout < 0.0
350
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
351
+ return false if !@username.nil? && @username.to_s.length < 1
352
+ return false if !@password.nil? && @password.to_s.length < 1
353
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
353
354
  return false if !@url.nil? && @url.to_s.length < 1
355
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
354
356
  return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
355
357
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
356
358
  true
357
359
  end
358
360
 
359
- # Custom attribute writer method with validation
360
- # @param [Object] proxy_url Value to be assigned
361
- def proxy_url=(proxy_url)
362
- if !proxy_url.nil? && proxy_url.to_s.length < 1
363
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
364
- end
365
-
366
- @proxy_url = proxy_url
367
- end
368
-
369
- # Custom attribute writer method with validation
370
- # @param [Object] ca_cert Value to be assigned
371
- def ca_cert=(ca_cert)
372
- if !ca_cert.nil? && ca_cert.to_s.length < 1
373
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
374
- end
375
-
376
- @ca_cert = ca_cert
377
- end
378
-
379
- # Custom attribute writer method with validation
380
- # @param [Object] download_concurrency Value to be assigned
381
- def download_concurrency=(download_concurrency)
382
- if !download_concurrency.nil? && download_concurrency < 1
383
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
384
- end
385
-
386
- @download_concurrency = download_concurrency
387
- end
388
-
389
361
  # Custom attribute writer method with validation
390
362
  # @param [Object] sock_connect_timeout Value to be assigned
391
363
  def sock_connect_timeout=(sock_connect_timeout)
@@ -396,26 +368,6 @@ module PulpAnsibleClient
396
368
  @sock_connect_timeout = sock_connect_timeout
397
369
  end
398
370
 
399
- # Custom attribute writer method with validation
400
- # @param [Object] proxy_password Value to be assigned
401
- def proxy_password=(proxy_password)
402
- if !proxy_password.nil? && proxy_password.to_s.length < 1
403
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
404
- end
405
-
406
- @proxy_password = proxy_password
407
- end
408
-
409
- # Custom attribute writer method with validation
410
- # @param [Object] client_cert Value to be assigned
411
- def client_cert=(client_cert)
412
- if !client_cert.nil? && client_cert.to_s.length < 1
413
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
414
- end
415
-
416
- @client_cert = client_cert
417
- end
418
-
419
371
  # Custom attribute writer method with validation
420
372
  # @param [Object] name Value to be assigned
421
373
  def name=(name)
@@ -427,23 +379,33 @@ module PulpAnsibleClient
427
379
  end
428
380
 
429
381
  # Custom attribute writer method with validation
430
- # @param [Object] password Value to be assigned
431
- def password=(password)
432
- if !password.nil? && password.to_s.length < 1
433
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
382
+ # @param [Object] total_timeout Value to be assigned
383
+ def total_timeout=(total_timeout)
384
+ if !total_timeout.nil? && total_timeout < 0.0
385
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
434
386
  end
435
387
 
436
- @password = password
388
+ @total_timeout = total_timeout
437
389
  end
438
390
 
439
391
  # Custom attribute writer method with validation
440
- # @param [Object] username Value to be assigned
441
- def username=(username)
442
- if !username.nil? && username.to_s.length < 1
443
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
392
+ # @param [Object] ca_cert Value to be assigned
393
+ def ca_cert=(ca_cert)
394
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
395
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
444
396
  end
445
397
 
446
- @username = username
398
+ @ca_cert = ca_cert
399
+ end
400
+
401
+ # Custom attribute writer method with validation
402
+ # @param [Object] proxy_url Value to be assigned
403
+ def proxy_url=(proxy_url)
404
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
405
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
406
+ end
407
+
408
+ @proxy_url = proxy_url
447
409
  end
448
410
 
449
411
  # Custom attribute writer method with validation
@@ -477,13 +439,43 @@ module PulpAnsibleClient
477
439
  end
478
440
 
479
441
  # Custom attribute writer method with validation
480
- # @param [Object] total_timeout Value to be assigned
481
- def total_timeout=(total_timeout)
482
- if !total_timeout.nil? && total_timeout < 0.0
483
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
442
+ # @param [Object] download_concurrency Value to be assigned
443
+ def download_concurrency=(download_concurrency)
444
+ if !download_concurrency.nil? && download_concurrency < 1
445
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
484
446
  end
485
447
 
486
- @total_timeout = total_timeout
448
+ @download_concurrency = download_concurrency
449
+ end
450
+
451
+ # Custom attribute writer method with validation
452
+ # @param [Object] username Value to be assigned
453
+ def username=(username)
454
+ if !username.nil? && username.to_s.length < 1
455
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
456
+ end
457
+
458
+ @username = username
459
+ end
460
+
461
+ # Custom attribute writer method with validation
462
+ # @param [Object] password Value to be assigned
463
+ def password=(password)
464
+ if !password.nil? && password.to_s.length < 1
465
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
466
+ end
467
+
468
+ @password = password
469
+ end
470
+
471
+ # Custom attribute writer method with validation
472
+ # @param [Object] proxy_password Value to be assigned
473
+ def proxy_password=(proxy_password)
474
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
475
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
476
+ end
477
+
478
+ @proxy_password = proxy_password
487
479
  end
488
480
 
489
481
  # Custom attribute writer method with validation
@@ -496,6 +488,16 @@ module PulpAnsibleClient
496
488
  @url = url
497
489
  end
498
490
 
491
+ # Custom attribute writer method with validation
492
+ # @param [Object] client_cert Value to be assigned
493
+ def client_cert=(client_cert)
494
+ if !client_cert.nil? && client_cert.to_s.length < 1
495
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
496
+ end
497
+
498
+ @client_cert = client_cert
499
+ end
500
+
499
501
  # Custom attribute writer method with validation
500
502
  # @param [Object] proxy_username Value to be assigned
501
503
  def proxy_username=(proxy_username)
@@ -521,25 +523,25 @@ module PulpAnsibleClient
521
523
  def ==(o)
522
524
  return true if self.equal?(o)
523
525
  self.class == o.class &&
524
- proxy_url == o.proxy_url &&
525
- ca_cert == o.ca_cert &&
526
- download_concurrency == o.download_concurrency &&
527
526
  sock_connect_timeout == o.sock_connect_timeout &&
528
- rate_limit == o.rate_limit &&
529
- proxy_password == o.proxy_password &&
530
- max_retries == o.max_retries &&
531
- client_cert == o.client_cert &&
532
527
  name == o.name &&
533
- password == o.password &&
528
+ total_timeout == o.total_timeout &&
529
+ ca_cert == o.ca_cert &&
534
530
  headers == o.headers &&
535
- tls_validation == o.tls_validation &&
536
- username == o.username &&
531
+ proxy_url == o.proxy_url &&
537
532
  client_key == o.client_key &&
538
533
  connect_timeout == o.connect_timeout &&
539
534
  sock_read_timeout == o.sock_read_timeout &&
540
- pulp_labels == o.pulp_labels &&
541
- total_timeout == o.total_timeout &&
535
+ download_concurrency == o.download_concurrency &&
536
+ username == o.username &&
537
+ password == o.password &&
538
+ max_retries == o.max_retries &&
539
+ proxy_password == o.proxy_password &&
540
+ tls_validation == o.tls_validation &&
542
541
  url == o.url &&
542
+ client_cert == o.client_cert &&
543
+ rate_limit == o.rate_limit &&
544
+ pulp_labels == o.pulp_labels &&
543
545
  proxy_username == o.proxy_username &&
544
546
  metadata_only == o.metadata_only &&
545
547
  git_ref == o.git_ref
@@ -554,7 +556,7 @@ module PulpAnsibleClient
554
556
  # Calculates hash code according to all attributes.
555
557
  # @return [Integer] Hash code
556
558
  def hash
557
- [proxy_url, ca_cert, download_concurrency, sock_connect_timeout, rate_limit, proxy_password, max_retries, client_cert, name, password, headers, tls_validation, username, client_key, connect_timeout, sock_read_timeout, pulp_labels, total_timeout, url, proxy_username, metadata_only, git_ref].hash
559
+ [sock_connect_timeout, name, total_timeout, ca_cert, headers, proxy_url, client_key, connect_timeout, sock_read_timeout, download_concurrency, username, password, max_retries, proxy_password, tls_validation, url, client_cert, rate_limit, pulp_labels, proxy_username, metadata_only, git_ref].hash
558
560
  end
559
561
 
560
562
  # Builds the object from hash