pulp_ansible_client 0.22.0 → 0.22.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  5. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  6. data/docs/AnsibleCollectionVersion.md +7 -5
  7. data/docs/AnsibleCollectionVersionResponse.md +11 -9
  8. data/docs/AnsibleCollectionVersionSignature.md +2 -0
  9. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  10. data/docs/AnsibleCollectionsApi.md +5 -3
  11. data/docs/AnsibleCopyApi.md +1 -1
  12. data/docs/AnsibleGitRemote.md +30 -30
  13. data/docs/AnsibleGitRemoteResponse.md +25 -23
  14. data/docs/AnsibleRole.md +3 -3
  15. data/docs/AnsibleRoleRemoteResponse.md +2 -0
  16. data/docs/AnsibleRoleResponse.md +6 -4
  17. data/docs/{PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md → ApiPluginAnsibleSearchCollectionVersionsApi.md} +18 -17
  18. data/docs/ApiRolesApi.md +1 -1
  19. data/docs/CollectionImportApi.md +1 -1
  20. data/docs/CollectionImportDetailResponse.md +2 -2
  21. data/docs/CollectionSummaryResponse.md +2 -2
  22. data/docs/CollectionVersionDocsResponse.md +1 -1
  23. data/docs/CollectionVersionResponse.md +2 -2
  24. data/docs/CollectionVersionSearchList.md +0 -2
  25. data/docs/ContentCollectionDeprecationsApi.md +11 -9
  26. data/docs/ContentCollectionMarksApi.md +11 -9
  27. data/docs/ContentCollectionSignaturesApi.md +14 -10
  28. data/docs/ContentCollectionVersionsApi.md +15 -11
  29. data/docs/ContentNamespacesApi.md +11 -9
  30. data/docs/ContentRolesApi.md +11 -9
  31. data/docs/Copy.md +1 -1
  32. data/docs/DistributionsAnsibleApi.md +5 -3
  33. data/docs/PatchedansibleGitRemote.md +30 -30
  34. data/docs/PulpAnsibleApiApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3Api.md +1 -1
  36. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +5 -3
  39. data/docs/PulpAnsibleApiV3CollectionsApi.md +5 -3
  40. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +9 -7
  41. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3NamespacesApi.md +5 -3
  43. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +5 -3
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  47. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  48. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -3
  49. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +9 -7
  50. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  51. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +5 -3
  52. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +5 -3
  58. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +5 -3
  59. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +9 -7
  60. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +5 -3
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +5 -3
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -3
  68. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +9 -7
  69. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  70. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +5 -3
  71. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +4 -3
  72. data/docs/PulpAnsibleTagsApi.md +1 -1
  73. data/docs/RemotesCollectionApi.md +5 -3
  74. data/docs/RemotesGitApi.md +5 -3
  75. data/docs/RemotesRoleApi.md +5 -3
  76. data/docs/RepositoriesAnsibleApi.md +9 -7
  77. data/docs/RepositoriesAnsibleVersionsApi.md +9 -7
  78. data/docs/RepositoryResponse.md +2 -0
  79. data/docs/RepositoryVersionResponse.md +2 -0
  80. data/docs/VersionsApi.md +1 -1
  81. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +5 -2
  82. data/lib/pulp_ansible_client/api/{pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb → api_plugin_ansible_search_collection_versions_api.rb} +26 -24
  83. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +11 -8
  84. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +11 -8
  85. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +18 -8
  86. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +22 -12
  87. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +11 -8
  88. data/lib/pulp_ansible_client/api/content_roles_api.rb +11 -8
  89. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +5 -2
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +5 -2
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +5 -2
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +9 -6
  93. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +5 -2
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +9 -6
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
  98. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +5 -2
  99. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +5 -2
  100. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +9 -6
  101. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +5 -2
  102. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
  103. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +9 -6
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +2 -0
  107. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +5 -2
  108. data/lib/pulp_ansible_client/api/remotes_git_api.rb +5 -2
  109. data/lib/pulp_ansible_client/api/remotes_role_api.rb +5 -2
  110. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +9 -6
  111. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +10 -7
  112. data/lib/pulp_ansible_client/configuration.rb +2 -2
  113. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +11 -1
  114. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  115. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  116. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +31 -21
  117. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +43 -18
  118. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +33 -23
  119. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +26 -1
  120. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  121. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +249 -249
  122. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -131
  123. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  124. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  125. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +31 -21
  126. data/lib/pulp_ansible_client/models/ansible_role_response.rb +28 -18
  127. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  128. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  129. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  130. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  131. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +1 -16
  132. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  133. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  134. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +237 -237
  135. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  136. data/lib/pulp_ansible_client/models/repository.rb +1 -1
  137. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +1 -1
  138. data/lib/pulp_ansible_client/models/repository_response.rb +12 -2
  139. data/lib/pulp_ansible_client/models/repository_version_response.rb +12 -2
  140. data/lib/pulp_ansible_client/version.rb +1 -1
  141. data/lib/pulp_ansible_client.rb +1 -1
  142. data/spec/api/ansible_collections_api_spec.rb +2 -1
  143. data/spec/api/{pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb → api_plugin_ansible_search_collection_versions_api_spec.rb} +9 -8
  144. data/spec/api/content_collection_deprecations_api_spec.rb +5 -4
  145. data/spec/api/content_collection_marks_api_spec.rb +5 -4
  146. data/spec/api/content_collection_signatures_api_spec.rb +6 -4
  147. data/spec/api/content_collection_versions_api_spec.rb +7 -5
  148. data/spec/api/content_namespaces_api_spec.rb +5 -4
  149. data/spec/api/content_roles_api_spec.rb +5 -4
  150. data/spec/api/distributions_ansible_api_spec.rb +2 -1
  151. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -1
  152. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +2 -1
  153. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -3
  154. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +2 -1
  155. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
  156. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
  157. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -3
  158. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
  159. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -1
  160. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +2 -1
  161. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -3
  162. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +2 -1
  163. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
  164. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
  165. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -3
  166. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
  167. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +1 -0
  168. data/spec/api/remotes_collection_api_spec.rb +2 -1
  169. data/spec/api/remotes_git_api_spec.rb +2 -1
  170. data/spec/api/remotes_role_api_spec.rb +2 -1
  171. data/spec/api/repositories_ansible_api_spec.rb +4 -3
  172. data/spec/api/repositories_ansible_versions_api_spec.rb +4 -3
  173. data/spec/configuration_spec.rb +3 -3
  174. data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
  175. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  176. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  177. data/spec/models/ansible_collection_version_response_spec.rb +9 -3
  178. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  179. data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
  180. data/spec/models/ansible_collection_version_spec.rb +9 -3
  181. data/spec/models/ansible_git_remote_response_spec.rb +22 -16
  182. data/spec/models/ansible_git_remote_spec.rb +18 -18
  183. data/spec/models/ansible_role_remote_response_spec.rb +6 -0
  184. data/spec/models/ansible_role_response_spec.rb +9 -3
  185. data/spec/models/ansible_role_spec.rb +2 -2
  186. data/spec/models/collection_version_search_list_spec.rb +0 -6
  187. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  188. data/spec/models/repository_response_spec.rb +6 -0
  189. data/spec/models/repository_version_response_spec.rb +6 -0
  190. metadata +140 -140
@@ -15,32 +15,32 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # Timestamp of the most recent update of the remote.
19
- attr_accessor :pulp_last_updated
20
-
21
- # The URL of an external content source.
22
- attr_accessor :url
23
-
24
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
25
- attr_accessor :max_retries
26
-
27
- # A PEM encoded client certificate used for authentication.
28
- attr_accessor :client_cert
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
29
20
 
30
- # If True, TLS peer validation must be performed.
31
- attr_accessor :tls_validation
21
+ # The proxy URL. Format: scheme://host:port
22
+ attr_accessor :proxy_url
32
23
 
33
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.
34
25
  attr_accessor :total_timeout
35
26
 
27
+ # The Pulp Resource Name (PRN).
28
+ attr_accessor :prn
29
+
36
30
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
37
31
  attr_accessor :connect_timeout
38
32
 
39
- # Limits requests per second for each concurrent downloader
40
- attr_accessor :rate_limit
33
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
34
+ attr_accessor :sock_connect_timeout
41
35
 
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.
43
- attr_accessor :sock_read_timeout
36
+ # Timestamp of the most recent update of the remote.
37
+ attr_accessor :pulp_last_updated
38
+
39
+ # The URL of an external content source.
40
+ attr_accessor :url
41
+
42
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
43
+ attr_accessor :max_retries
44
44
 
45
45
  # Total number of simultaneous connections. If not set then the default value will be used.
46
46
  attr_accessor :download_concurrency
@@ -48,27 +48,30 @@ module PulpAnsibleClient
48
48
  # Headers for aiohttp.Clientsession
49
49
  attr_accessor :headers
50
50
 
51
- # The proxy URL. Format: scheme://host:port
52
- attr_accessor :proxy_url
53
-
54
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
55
- attr_accessor :ca_cert
51
+ # A unique name for this remote.
52
+ attr_accessor :name
56
53
 
57
- # 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.
58
- attr_accessor :sock_connect_timeout
54
+ # Limits requests per second for each concurrent downloader
55
+ attr_accessor :rate_limit
59
56
 
60
57
  attr_accessor :pulp_labels
61
58
 
59
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
60
+ attr_accessor :ca_cert
61
+
62
62
  # List of hidden (write only) fields
63
63
  attr_accessor :hidden_fields
64
64
 
65
- # A unique name for this remote.
66
- attr_accessor :name
65
+ # A PEM encoded client certificate used for authentication.
66
+ attr_accessor :client_cert
67
67
 
68
- attr_accessor :pulp_href
68
+ # If True, TLS peer validation must be performed.
69
+ attr_accessor :tls_validation
69
70
 
70
- # Timestamp of creation.
71
- attr_accessor :pulp_created
71
+ # 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.
72
+ attr_accessor :sock_read_timeout
73
+
74
+ attr_accessor :pulp_href
72
75
 
73
76
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
77
  attr_accessor :metadata_only
@@ -79,25 +82,26 @@ module PulpAnsibleClient
79
82
  # Attribute mapping from ruby-style variable name to JSON key.
80
83
  def self.attribute_map
81
84
  {
85
+ :'pulp_created' => :'pulp_created',
86
+ :'proxy_url' => :'proxy_url',
87
+ :'total_timeout' => :'total_timeout',
88
+ :'prn' => :'prn',
89
+ :'connect_timeout' => :'connect_timeout',
90
+ :'sock_connect_timeout' => :'sock_connect_timeout',
82
91
  :'pulp_last_updated' => :'pulp_last_updated',
83
92
  :'url' => :'url',
84
93
  :'max_retries' => :'max_retries',
85
- :'client_cert' => :'client_cert',
86
- :'tls_validation' => :'tls_validation',
87
- :'total_timeout' => :'total_timeout',
88
- :'connect_timeout' => :'connect_timeout',
89
- :'rate_limit' => :'rate_limit',
90
- :'sock_read_timeout' => :'sock_read_timeout',
91
94
  :'download_concurrency' => :'download_concurrency',
92
95
  :'headers' => :'headers',
93
- :'proxy_url' => :'proxy_url',
94
- :'ca_cert' => :'ca_cert',
95
- :'sock_connect_timeout' => :'sock_connect_timeout',
96
+ :'name' => :'name',
97
+ :'rate_limit' => :'rate_limit',
96
98
  :'pulp_labels' => :'pulp_labels',
99
+ :'ca_cert' => :'ca_cert',
97
100
  :'hidden_fields' => :'hidden_fields',
98
- :'name' => :'name',
101
+ :'client_cert' => :'client_cert',
102
+ :'tls_validation' => :'tls_validation',
103
+ :'sock_read_timeout' => :'sock_read_timeout',
99
104
  :'pulp_href' => :'pulp_href',
100
- :'pulp_created' => :'pulp_created',
101
105
  :'metadata_only' => :'metadata_only',
102
106
  :'git_ref' => :'git_ref'
103
107
  }
@@ -106,25 +110,26 @@ module PulpAnsibleClient
106
110
  # Attribute type mapping.
107
111
  def self.openapi_types
108
112
  {
113
+ :'pulp_created' => :'DateTime',
114
+ :'proxy_url' => :'String',
115
+ :'total_timeout' => :'Float',
116
+ :'prn' => :'String',
117
+ :'connect_timeout' => :'Float',
118
+ :'sock_connect_timeout' => :'Float',
109
119
  :'pulp_last_updated' => :'DateTime',
110
120
  :'url' => :'String',
111
121
  :'max_retries' => :'Integer',
112
- :'client_cert' => :'String',
113
- :'tls_validation' => :'Boolean',
114
- :'total_timeout' => :'Float',
115
- :'connect_timeout' => :'Float',
116
- :'rate_limit' => :'Integer',
117
- :'sock_read_timeout' => :'Float',
118
122
  :'download_concurrency' => :'Integer',
119
123
  :'headers' => :'Array<Object>',
120
- :'proxy_url' => :'String',
121
- :'ca_cert' => :'String',
122
- :'sock_connect_timeout' => :'Float',
124
+ :'name' => :'String',
125
+ :'rate_limit' => :'Integer',
123
126
  :'pulp_labels' => :'Hash<String, String>',
127
+ :'ca_cert' => :'String',
124
128
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
125
- :'name' => :'String',
129
+ :'client_cert' => :'String',
130
+ :'tls_validation' => :'Boolean',
131
+ :'sock_read_timeout' => :'Float',
126
132
  :'pulp_href' => :'String',
127
- :'pulp_created' => :'DateTime',
128
133
  :'metadata_only' => :'Boolean',
129
134
  :'git_ref' => :'String'
130
135
  }
@@ -133,16 +138,16 @@ module PulpAnsibleClient
133
138
  # List of attributes with nullable: true
134
139
  def self.openapi_nullable
135
140
  Set.new([
136
- :'max_retries',
137
- :'client_cert',
141
+ :'proxy_url',
138
142
  :'total_timeout',
139
143
  :'connect_timeout',
140
- :'rate_limit',
141
- :'sock_read_timeout',
144
+ :'sock_connect_timeout',
145
+ :'max_retries',
142
146
  :'download_concurrency',
143
- :'proxy_url',
147
+ :'rate_limit',
144
148
  :'ca_cert',
145
- :'sock_connect_timeout',
149
+ :'client_cert',
150
+ :'sock_read_timeout',
146
151
  ])
147
152
  end
148
153
 
@@ -161,40 +166,40 @@ module PulpAnsibleClient
161
166
  h[k.to_sym] = v
162
167
  }
163
168
 
164
- if attributes.key?(:'pulp_last_updated')
165
- self.pulp_last_updated = attributes[:'pulp_last_updated']
169
+ if attributes.key?(:'pulp_created')
170
+ self.pulp_created = attributes[:'pulp_created']
166
171
  end
167
172
 
168
- if attributes.key?(:'url')
169
- self.url = attributes[:'url']
173
+ if attributes.key?(:'proxy_url')
174
+ self.proxy_url = attributes[:'proxy_url']
170
175
  end
171
176
 
172
- if attributes.key?(:'max_retries')
173
- self.max_retries = attributes[:'max_retries']
177
+ if attributes.key?(:'total_timeout')
178
+ self.total_timeout = attributes[:'total_timeout']
174
179
  end
175
180
 
176
- if attributes.key?(:'client_cert')
177
- self.client_cert = attributes[:'client_cert']
181
+ if attributes.key?(:'prn')
182
+ self.prn = attributes[:'prn']
178
183
  end
179
184
 
180
- if attributes.key?(:'tls_validation')
181
- self.tls_validation = attributes[:'tls_validation']
185
+ if attributes.key?(:'connect_timeout')
186
+ self.connect_timeout = attributes[:'connect_timeout']
182
187
  end
183
188
 
184
- if attributes.key?(:'total_timeout')
185
- self.total_timeout = attributes[:'total_timeout']
189
+ if attributes.key?(:'sock_connect_timeout')
190
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
186
191
  end
187
192
 
188
- if attributes.key?(:'connect_timeout')
189
- self.connect_timeout = attributes[:'connect_timeout']
193
+ if attributes.key?(:'pulp_last_updated')
194
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
190
195
  end
191
196
 
192
- if attributes.key?(:'rate_limit')
193
- self.rate_limit = attributes[:'rate_limit']
197
+ if attributes.key?(:'url')
198
+ self.url = attributes[:'url']
194
199
  end
195
200
 
196
- if attributes.key?(:'sock_read_timeout')
197
- self.sock_read_timeout = attributes[:'sock_read_timeout']
201
+ if attributes.key?(:'max_retries')
202
+ self.max_retries = attributes[:'max_retries']
198
203
  end
199
204
 
200
205
  if attributes.key?(:'download_concurrency')
@@ -207,16 +212,12 @@ module PulpAnsibleClient
207
212
  end
208
213
  end
209
214
 
210
- if attributes.key?(:'proxy_url')
211
- self.proxy_url = attributes[:'proxy_url']
212
- end
213
-
214
- if attributes.key?(:'ca_cert')
215
- self.ca_cert = attributes[:'ca_cert']
215
+ if attributes.key?(:'name')
216
+ self.name = attributes[:'name']
216
217
  end
217
218
 
218
- if attributes.key?(:'sock_connect_timeout')
219
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
219
+ if attributes.key?(:'rate_limit')
220
+ self.rate_limit = attributes[:'rate_limit']
220
221
  end
221
222
 
222
223
  if attributes.key?(:'pulp_labels')
@@ -225,22 +226,30 @@ module PulpAnsibleClient
225
226
  end
226
227
  end
227
228
 
229
+ if attributes.key?(:'ca_cert')
230
+ self.ca_cert = attributes[:'ca_cert']
231
+ end
232
+
228
233
  if attributes.key?(:'hidden_fields')
229
234
  if (value = attributes[:'hidden_fields']).is_a?(Array)
230
235
  self.hidden_fields = value
231
236
  end
232
237
  end
233
238
 
234
- if attributes.key?(:'name')
235
- self.name = attributes[:'name']
239
+ if attributes.key?(:'client_cert')
240
+ self.client_cert = attributes[:'client_cert']
236
241
  end
237
242
 
238
- if attributes.key?(:'pulp_href')
239
- self.pulp_href = attributes[:'pulp_href']
243
+ if attributes.key?(:'tls_validation')
244
+ self.tls_validation = attributes[:'tls_validation']
240
245
  end
241
246
 
242
- if attributes.key?(:'pulp_created')
243
- self.pulp_created = attributes[:'pulp_created']
247
+ if attributes.key?(:'sock_read_timeout')
248
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
249
+ end
250
+
251
+ if attributes.key?(:'pulp_href')
252
+ self.pulp_href = attributes[:'pulp_href']
244
253
  end
245
254
 
246
255
  if attributes.key?(:'metadata_only')
@@ -256,55 +265,55 @@ module PulpAnsibleClient
256
265
  # @return Array for valid properties with the reasons
257
266
  def list_invalid_properties
258
267
  invalid_properties = Array.new
259
- if @url.nil?
260
- invalid_properties.push('invalid value for "url", url cannot be nil.')
268
+ if !@total_timeout.nil? && @total_timeout < 0
269
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
261
270
  end
262
271
 
263
- if !@total_timeout.nil? && @total_timeout < 0.0
264
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
272
+ if !@connect_timeout.nil? && @connect_timeout < 0
273
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
265
274
  end
266
275
 
267
- if !@connect_timeout.nil? && @connect_timeout < 0.0
268
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
276
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
277
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
269
278
  end
270
279
 
271
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
272
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
280
+ if @url.nil?
281
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
273
282
  end
274
283
 
275
284
  if !@download_concurrency.nil? && @download_concurrency < 1
276
285
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
277
286
  end
278
287
 
279
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
280
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
281
- end
282
-
283
288
  if @name.nil?
284
289
  invalid_properties.push('invalid value for "name", name cannot be nil.')
285
290
  end
286
291
 
292
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
293
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
294
+ end
295
+
287
296
  invalid_properties
288
297
  end
289
298
 
290
299
  # Check to see if the all the properties in the model are valid
291
300
  # @return true if the model is valid
292
301
  def valid?
302
+ return false if !@total_timeout.nil? && @total_timeout < 0
303
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
304
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
293
305
  return false if @url.nil?
294
- return false if !@total_timeout.nil? && @total_timeout < 0.0
295
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
297
306
  return false if !@download_concurrency.nil? && @download_concurrency < 1
298
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
307
  return false if @name.nil?
308
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
300
309
  true
301
310
  end
302
311
 
303
312
  # Custom attribute writer method with validation
304
313
  # @param [Object] total_timeout Value to be assigned
305
314
  def total_timeout=(total_timeout)
306
- if !total_timeout.nil? && total_timeout < 0.0
307
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
315
+ if !total_timeout.nil? && total_timeout < 0
316
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
308
317
  end
309
318
 
310
319
  @total_timeout = total_timeout
@@ -313,21 +322,21 @@ module PulpAnsibleClient
313
322
  # Custom attribute writer method with validation
314
323
  # @param [Object] connect_timeout Value to be assigned
315
324
  def connect_timeout=(connect_timeout)
316
- if !connect_timeout.nil? && connect_timeout < 0.0
317
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
325
+ if !connect_timeout.nil? && connect_timeout < 0
326
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
318
327
  end
319
328
 
320
329
  @connect_timeout = connect_timeout
321
330
  end
322
331
 
323
332
  # Custom attribute writer method with validation
324
- # @param [Object] sock_read_timeout Value to be assigned
325
- def sock_read_timeout=(sock_read_timeout)
326
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
327
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
333
+ # @param [Object] sock_connect_timeout Value to be assigned
334
+ def sock_connect_timeout=(sock_connect_timeout)
335
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
336
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
328
337
  end
329
338
 
330
- @sock_read_timeout = sock_read_timeout
339
+ @sock_connect_timeout = sock_connect_timeout
331
340
  end
332
341
 
333
342
  # Custom attribute writer method with validation
@@ -341,13 +350,13 @@ module PulpAnsibleClient
341
350
  end
342
351
 
343
352
  # Custom attribute writer method with validation
344
- # @param [Object] sock_connect_timeout Value to be assigned
345
- def sock_connect_timeout=(sock_connect_timeout)
346
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
347
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
353
+ # @param [Object] sock_read_timeout Value to be assigned
354
+ def sock_read_timeout=(sock_read_timeout)
355
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
356
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
348
357
  end
349
358
 
350
- @sock_connect_timeout = sock_connect_timeout
359
+ @sock_read_timeout = sock_read_timeout
351
360
  end
352
361
 
353
362
  # Checks equality by comparing each attribute.
@@ -355,25 +364,26 @@ module PulpAnsibleClient
355
364
  def ==(o)
356
365
  return true if self.equal?(o)
357
366
  self.class == o.class &&
367
+ pulp_created == o.pulp_created &&
368
+ proxy_url == o.proxy_url &&
369
+ total_timeout == o.total_timeout &&
370
+ prn == o.prn &&
371
+ connect_timeout == o.connect_timeout &&
372
+ sock_connect_timeout == o.sock_connect_timeout &&
358
373
  pulp_last_updated == o.pulp_last_updated &&
359
374
  url == o.url &&
360
375
  max_retries == o.max_retries &&
361
- client_cert == o.client_cert &&
362
- tls_validation == o.tls_validation &&
363
- total_timeout == o.total_timeout &&
364
- connect_timeout == o.connect_timeout &&
365
- rate_limit == o.rate_limit &&
366
- sock_read_timeout == o.sock_read_timeout &&
367
376
  download_concurrency == o.download_concurrency &&
368
377
  headers == o.headers &&
369
- proxy_url == o.proxy_url &&
370
- ca_cert == o.ca_cert &&
371
- sock_connect_timeout == o.sock_connect_timeout &&
378
+ name == o.name &&
379
+ rate_limit == o.rate_limit &&
372
380
  pulp_labels == o.pulp_labels &&
381
+ ca_cert == o.ca_cert &&
373
382
  hidden_fields == o.hidden_fields &&
374
- name == o.name &&
383
+ client_cert == o.client_cert &&
384
+ tls_validation == o.tls_validation &&
385
+ sock_read_timeout == o.sock_read_timeout &&
375
386
  pulp_href == o.pulp_href &&
376
- pulp_created == o.pulp_created &&
377
387
  metadata_only == o.metadata_only &&
378
388
  git_ref == o.git_ref
379
389
  end
@@ -387,7 +397,7 @@ module PulpAnsibleClient
387
397
  # Calculates hash code according to all attributes.
388
398
  # @return [Integer] Hash code
389
399
  def hash
390
- [pulp_last_updated, url, max_retries, client_cert, tls_validation, total_timeout, connect_timeout, rate_limit, sock_read_timeout, download_concurrency, headers, proxy_url, ca_cert, sock_connect_timeout, pulp_labels, hidden_fields, name, pulp_href, pulp_created, metadata_only, git_ref].hash
400
+ [pulp_created, proxy_url, total_timeout, prn, connect_timeout, sock_connect_timeout, pulp_last_updated, url, max_retries, download_concurrency, headers, name, rate_limit, pulp_labels, ca_cert, hidden_fields, client_cert, tls_validation, sock_read_timeout, pulp_href, metadata_only, git_ref].hash
391
401
  end
392
402
 
393
403
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRole
18
- # Artifact file representing the physical content
19
- attr_accessor :artifact
20
-
21
18
  # A URI of a repository the new content unit should be associated with.
22
19
  attr_accessor :repository
23
20
 
21
+ # Artifact file representing the physical content
22
+ attr_accessor :artifact
23
+
24
24
  attr_accessor :version
25
25
 
26
26
  attr_accessor :name
@@ -30,8 +30,8 @@ module PulpAnsibleClient
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
- :'artifact' => :'artifact',
34
33
  :'repository' => :'repository',
34
+ :'artifact' => :'artifact',
35
35
  :'version' => :'version',
36
36
  :'name' => :'name',
37
37
  :'namespace' => :'namespace'
@@ -41,8 +41,8 @@ module PulpAnsibleClient
41
41
  # Attribute type mapping.
42
42
  def self.openapi_types
43
43
  {
44
- :'artifact' => :'String',
45
44
  :'repository' => :'String',
45
+ :'artifact' => :'String',
46
46
  :'version' => :'String',
47
47
  :'name' => :'String',
48
48
  :'namespace' => :'String'
@@ -70,14 +70,14 @@ module PulpAnsibleClient
70
70
  h[k.to_sym] = v
71
71
  }
72
72
 
73
- if attributes.key?(:'artifact')
74
- self.artifact = attributes[:'artifact']
75
- end
76
-
77
73
  if attributes.key?(:'repository')
78
74
  self.repository = attributes[:'repository']
79
75
  end
80
76
 
77
+ if attributes.key?(:'artifact')
78
+ self.artifact = attributes[:'artifact']
79
+ end
80
+
81
81
  if attributes.key?(:'version')
82
82
  self.version = attributes[:'version']
83
83
  end
@@ -186,8 +186,8 @@ module PulpAnsibleClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- artifact == o.artifact &&
190
189
  repository == o.repository &&
190
+ artifact == o.artifact &&
191
191
  version == o.version &&
192
192
  name == o.name &&
193
193
  namespace == o.namespace
@@ -202,7 +202,7 @@ module PulpAnsibleClient
202
202
  # Calculates hash code according to all attributes.
203
203
  # @return [Integer] Hash code
204
204
  def hash
205
- [artifact, repository, version, name, namespace].hash
205
+ [repository, artifact, version, name, namespace].hash
206
206
  end
207
207
 
208
208
  # Builds the object from hash
@@ -312,20 +312,20 @@ module PulpAnsibleClient
312
312
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
313
313
  end
314
314
 
315
- if !@total_timeout.nil? && @total_timeout < 0.0
316
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
315
+ if !@total_timeout.nil? && @total_timeout < 0
316
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
317
317
  end
318
318
 
319
- if !@connect_timeout.nil? && @connect_timeout < 0.0
320
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
319
+ if !@connect_timeout.nil? && @connect_timeout < 0
320
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
321
321
  end
322
322
 
323
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
324
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
323
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
324
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
325
325
  end
326
326
 
327
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
328
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
327
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
328
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
329
329
  end
330
330
 
331
331
  invalid_properties
@@ -347,10 +347,10 @@ module PulpAnsibleClient
347
347
  return false if !@username.nil? && @username.to_s.length < 1
348
348
  return false if !@password.nil? && @password.to_s.length < 1
349
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
350
- return false if !@total_timeout.nil? && @total_timeout < 0.0
351
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
352
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
353
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
350
+ return false if !@total_timeout.nil? && @total_timeout < 0
351
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
352
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
353
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
354
354
  true
355
355
  end
356
356
 
@@ -475,8 +475,8 @@ module PulpAnsibleClient
475
475
  # Custom attribute writer method with validation
476
476
  # @param [Object] total_timeout Value to be assigned
477
477
  def total_timeout=(total_timeout)
478
- if !total_timeout.nil? && total_timeout < 0.0
479
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
478
+ if !total_timeout.nil? && total_timeout < 0
479
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
480
480
  end
481
481
 
482
482
  @total_timeout = total_timeout
@@ -485,8 +485,8 @@ module PulpAnsibleClient
485
485
  # Custom attribute writer method with validation
486
486
  # @param [Object] connect_timeout Value to be assigned
487
487
  def connect_timeout=(connect_timeout)
488
- if !connect_timeout.nil? && connect_timeout < 0.0
489
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
488
+ if !connect_timeout.nil? && connect_timeout < 0
489
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
490
490
  end
491
491
 
492
492
  @connect_timeout = connect_timeout
@@ -495,8 +495,8 @@ module PulpAnsibleClient
495
495
  # Custom attribute writer method with validation
496
496
  # @param [Object] sock_connect_timeout Value to be assigned
497
497
  def sock_connect_timeout=(sock_connect_timeout)
498
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
499
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
498
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
499
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
500
500
  end
501
501
 
502
502
  @sock_connect_timeout = sock_connect_timeout
@@ -505,8 +505,8 @@ module PulpAnsibleClient
505
505
  # Custom attribute writer method with validation
506
506
  # @param [Object] sock_read_timeout Value to be assigned
507
507
  def sock_read_timeout=(sock_read_timeout)
508
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
509
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
508
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
509
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
510
510
  end
511
511
 
512
512
  @sock_read_timeout = sock_read_timeout