pulp_ansible_client 0.15.6 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -8
  3. data/docs/AnsibleAnsibleDistribution.md +1 -1
  4. data/docs/AnsibleAnsibleDistributionResponse.md +1 -1
  5. data/docs/AnsibleAnsibleRepository.md +1 -1
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  7. data/docs/AnsibleCollectionRemote.md +1 -1
  8. data/docs/AnsibleCollectionRemoteResponse.md +1 -3
  9. data/docs/AnsibleCollectionVersion.md +10 -8
  10. data/docs/AnsibleCollectionVersionResponse.md +23 -23
  11. data/docs/AnsibleCollectionsApi.md +5 -5
  12. data/docs/AnsibleCopyApi.md +1 -1
  13. data/docs/AnsibleGitRemote.md +28 -28
  14. data/docs/AnsibleGitRemoteResponse.md +24 -26
  15. data/docs/AnsibleRoleRemote.md +1 -1
  16. data/docs/AnsibleRoleRemoteResponse.md +2 -4
  17. data/docs/AnsibleRoleResponse.md +3 -3
  18. data/docs/ApiCollectionsApi.md +5 -5
  19. data/docs/ApiRolesApi.md +5 -5
  20. data/docs/CollectionImportApi.md +5 -5
  21. data/docs/ContentCollectionDeprecationsApi.md +9 -9
  22. data/docs/ContentCollectionSignaturesApi.md +11 -11
  23. data/docs/ContentCollectionVersionsApi.md +22 -20
  24. data/docs/ContentRolesApi.md +9 -9
  25. data/docs/DistributionsAnsibleApi.md +13 -13
  26. data/docs/GalaxyDetailApi.md +5 -5
  27. data/docs/PatchedansibleAnsibleDistribution.md +1 -1
  28. data/docs/PatchedansibleAnsibleRepository.md +1 -1
  29. data/docs/PatchedansibleCollectionRemote.md +1 -1
  30. data/docs/PatchedansibleGitRemote.md +28 -28
  31. data/docs/PatchedansibleRoleRemote.md +1 -1
  32. data/docs/PulpAnsibleApiApi.md +5 -5
  33. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +5 -5
  34. data/docs/PulpAnsibleApiV3Api.md +5 -5
  35. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +5 -5
  36. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +5 -5
  37. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +5 -5
  38. data/docs/PulpAnsibleApiV3CollectionsApi.md +9 -9
  39. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +9 -9
  40. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +5 -5
  41. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +5 -5
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +5 -5
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +5 -5
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +5 -5
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +5 -5
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +9 -9
  47. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +9 -9
  48. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +5 -5
  49. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +5 -5
  53. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +5 -5
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +9 -9
  56. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +9 -9
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +5 -5
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +5 -5
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +5 -5
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +5 -5
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +5 -5
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +9 -9
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +9 -9
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +5 -5
  66. data/docs/PulpAnsibleTagsApi.md +5 -5
  67. data/docs/RemotesCollectionApi.md +13 -13
  68. data/docs/RemotesGitApi.md +13 -13
  69. data/docs/RemotesRoleApi.md +13 -13
  70. data/docs/RepositoriesAnsibleApi.md +12 -12
  71. data/docs/RepositoriesAnsibleVersionsApi.md +13 -13
  72. data/docs/VersionsApi.md +9 -9
  73. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +7 -7
  74. data/lib/pulp_ansible_client/api/api_collections_api.rb +6 -6
  75. data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -6
  76. data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -6
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +12 -12
  78. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +13 -13
  79. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +43 -52
  80. data/lib/pulp_ansible_client/api/content_roles_api.rb +13 -13
  81. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +17 -17
  82. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +6 -6
  83. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +6 -6
  84. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +6 -6
  85. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -6
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +6 -6
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -6
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +7 -7
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +13 -13
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +13 -13
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -6
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -6
  93. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +7 -7
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +13 -13
  98. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +13 -13
  99. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  100. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +6 -6
  101. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +7 -7
  102. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +13 -13
  103. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +13 -13
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -6
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +7 -7
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  107. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  108. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  109. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +13 -13
  110. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +13 -13
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  112. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
  113. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +17 -17
  114. data/lib/pulp_ansible_client/api/remotes_git_api.rb +17 -17
  115. data/lib/pulp_ansible_client/api/remotes_role_api.rb +17 -17
  116. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +15 -15
  117. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +17 -17
  118. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  119. data/lib/pulp_ansible_client/configuration.rb +3 -3
  120. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +2 -4
  121. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +2 -4
  122. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +2 -4
  123. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +2 -4
  124. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +22 -24
  125. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +23 -37
  126. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +75 -92
  127. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +52 -160
  128. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +248 -250
  129. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +145 -159
  130. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +22 -24
  131. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +27 -41
  132. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  133. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +2 -4
  134. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +2 -4
  135. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +22 -24
  136. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +236 -238
  137. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +22 -24
  138. data/lib/pulp_ansible_client/version.rb +1 -1
  139. data/lib/pulp_ansible_client.rb +0 -1
  140. data/spec/api/ansible_collections_api_spec.rb +2 -2
  141. data/spec/api/api_collections_api_spec.rb +2 -2
  142. data/spec/api/api_roles_api_spec.rb +2 -2
  143. data/spec/api/collection_import_api_spec.rb +2 -2
  144. data/spec/api/content_collection_deprecations_api_spec.rb +4 -4
  145. data/spec/api/content_collection_signatures_api_spec.rb +4 -4
  146. data/spec/api/content_collection_versions_api_spec.rb +9 -8
  147. data/spec/api/content_roles_api_spec.rb +4 -4
  148. data/spec/api/distributions_ansible_api_spec.rb +6 -6
  149. data/spec/api/galaxy_detail_api_spec.rb +2 -2
  150. data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
  151. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +2 -2
  152. data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
  153. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
  154. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
  155. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -2
  156. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +4 -4
  157. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -4
  158. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  159. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
  160. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
  161. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  162. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  163. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  164. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +4 -4
  165. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
  166. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  167. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
  168. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -2
  169. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +4 -4
  170. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -4
  171. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  172. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
  173. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  174. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  175. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  176. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +4 -4
  177. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
  178. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  179. data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
  180. data/spec/api/remotes_collection_api_spec.rb +6 -6
  181. data/spec/api/remotes_git_api_spec.rb +6 -6
  182. data/spec/api/remotes_role_api_spec.rb +6 -6
  183. data/spec/api/repositories_ansible_api_spec.rb +5 -5
  184. data/spec/api/repositories_ansible_versions_api_spec.rb +6 -6
  185. data/spec/api/versions_api_spec.rb +4 -4
  186. data/spec/configuration_spec.rb +3 -3
  187. data/spec/models/ansible_collection_remote_response_spec.rb +0 -6
  188. data/spec/models/ansible_collection_version_response_spec.rb +8 -8
  189. data/spec/models/ansible_collection_version_spec.rb +10 -4
  190. data/spec/models/ansible_git_remote_response_spec.rb +16 -22
  191. data/spec/models/ansible_git_remote_spec.rb +19 -19
  192. data/spec/models/ansible_role_remote_response_spec.rb +0 -6
  193. data/spec/models/ansible_role_response_spec.rb +2 -2
  194. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  195. metadata +111 -115
  196. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +0 -19
  197. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -225
  198. data/spec/models/ansible_collection_remote_response_hidden_fields_spec.rb +0 -47
@@ -70,9 +70,6 @@ module PulpAnsibleClient
70
70
  # Limits requests per second for each concurrent downloader
71
71
  attr_accessor :rate_limit
72
72
 
73
- # List of hidden (write only) fields
74
- attr_accessor :hidden_fields
75
-
76
73
  # Attribute mapping from ruby-style variable name to JSON key.
77
74
  def self.attribute_map
78
75
  {
@@ -94,8 +91,7 @@ module PulpAnsibleClient
94
91
  :'sock_connect_timeout' => :'sock_connect_timeout',
95
92
  :'sock_read_timeout' => :'sock_read_timeout',
96
93
  :'headers' => :'headers',
97
- :'rate_limit' => :'rate_limit',
98
- :'hidden_fields' => :'hidden_fields'
94
+ :'rate_limit' => :'rate_limit'
99
95
  }
100
96
  end
101
97
 
@@ -110,7 +106,7 @@ module PulpAnsibleClient
110
106
  :'client_cert' => :'String',
111
107
  :'tls_validation' => :'Boolean',
112
108
  :'proxy_url' => :'String',
113
- :'pulp_labels' => :'Hash<String, String>',
109
+ :'pulp_labels' => :'Object',
114
110
  :'pulp_last_updated' => :'DateTime',
115
111
  :'download_concurrency' => :'Integer',
116
112
  :'max_retries' => :'Integer',
@@ -120,8 +116,7 @@ module PulpAnsibleClient
120
116
  :'sock_connect_timeout' => :'Float',
121
117
  :'sock_read_timeout' => :'Float',
122
118
  :'headers' => :'Array<Object>',
123
- :'rate_limit' => :'Integer',
124
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>'
119
+ :'rate_limit' => :'Integer'
125
120
  }
126
121
  end
127
122
 
@@ -137,7 +132,7 @@ module PulpAnsibleClient
137
132
  :'connect_timeout',
138
133
  :'sock_connect_timeout',
139
134
  :'sock_read_timeout',
140
- :'rate_limit',
135
+ :'rate_limit'
141
136
  ])
142
137
  end
143
138
 
@@ -189,9 +184,7 @@ module PulpAnsibleClient
189
184
  end
190
185
 
191
186
  if attributes.key?(:'pulp_labels')
192
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
193
- self.pulp_labels = value
194
- end
187
+ self.pulp_labels = attributes[:'pulp_labels']
195
188
  end
196
189
 
197
190
  if attributes.key?(:'pulp_last_updated')
@@ -235,12 +228,6 @@ module PulpAnsibleClient
235
228
  if attributes.key?(:'rate_limit')
236
229
  self.rate_limit = attributes[:'rate_limit']
237
230
  end
238
-
239
- if attributes.key?(:'hidden_fields')
240
- if (value = attributes[:'hidden_fields']).is_a?(Array)
241
- self.hidden_fields = value
242
- end
243
- end
244
231
  end
245
232
 
246
233
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -259,20 +246,20 @@ module PulpAnsibleClient
259
246
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
260
247
  end
261
248
 
262
- if !@total_timeout.nil? && @total_timeout < 0
263
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
249
+ if !@total_timeout.nil? && @total_timeout < 0.0
250
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
264
251
  end
265
252
 
266
- if !@connect_timeout.nil? && @connect_timeout < 0
267
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
253
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
254
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
268
255
  end
269
256
 
270
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
271
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
257
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
258
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
272
259
  end
273
260
 
274
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
275
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
261
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
262
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
276
263
  end
277
264
 
278
265
  invalid_properties
@@ -284,10 +271,10 @@ module PulpAnsibleClient
284
271
  return false if @name.nil?
285
272
  return false if @url.nil?
286
273
  return false if !@download_concurrency.nil? && @download_concurrency < 1
287
- return false if !@total_timeout.nil? && @total_timeout < 0
288
- return false if !@connect_timeout.nil? && @connect_timeout < 0
289
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
290
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
274
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
275
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
276
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
277
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
291
278
  true
292
279
  end
293
280
 
@@ -304,8 +291,8 @@ module PulpAnsibleClient
304
291
  # Custom attribute writer method with validation
305
292
  # @param [Object] total_timeout Value to be assigned
306
293
  def total_timeout=(total_timeout)
307
- if !total_timeout.nil? && total_timeout < 0
308
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
294
+ if !total_timeout.nil? && total_timeout < 0.0
295
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
309
296
  end
310
297
 
311
298
  @total_timeout = total_timeout
@@ -314,8 +301,8 @@ module PulpAnsibleClient
314
301
  # Custom attribute writer method with validation
315
302
  # @param [Object] connect_timeout Value to be assigned
316
303
  def connect_timeout=(connect_timeout)
317
- if !connect_timeout.nil? && connect_timeout < 0
318
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
304
+ if !connect_timeout.nil? && connect_timeout < 0.0
305
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
319
306
  end
320
307
 
321
308
  @connect_timeout = connect_timeout
@@ -324,8 +311,8 @@ module PulpAnsibleClient
324
311
  # Custom attribute writer method with validation
325
312
  # @param [Object] sock_connect_timeout Value to be assigned
326
313
  def sock_connect_timeout=(sock_connect_timeout)
327
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
328
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
314
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
315
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
329
316
  end
330
317
 
331
318
  @sock_connect_timeout = sock_connect_timeout
@@ -334,8 +321,8 @@ module PulpAnsibleClient
334
321
  # Custom attribute writer method with validation
335
322
  # @param [Object] sock_read_timeout Value to be assigned
336
323
  def sock_read_timeout=(sock_read_timeout)
337
- if !sock_read_timeout.nil? && sock_read_timeout < 0
338
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
324
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
325
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
339
326
  end
340
327
 
341
328
  @sock_read_timeout = sock_read_timeout
@@ -364,8 +351,7 @@ module PulpAnsibleClient
364
351
  sock_connect_timeout == o.sock_connect_timeout &&
365
352
  sock_read_timeout == o.sock_read_timeout &&
366
353
  headers == o.headers &&
367
- rate_limit == o.rate_limit &&
368
- hidden_fields == o.hidden_fields
354
+ rate_limit == o.rate_limit
369
355
  end
370
356
 
371
357
  # @see the `==` method
@@ -377,7 +363,7 @@ module PulpAnsibleClient
377
363
  # Calculates hash code according to all attributes.
378
364
  # @return [Integer] Hash code
379
365
  def hash
380
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
366
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
381
367
  end
382
368
 
383
369
  # Builds the object from hash
@@ -15,11 +15,11 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- attr_accessor :pulp_href
19
-
20
18
  # Timestamp of creation.
21
19
  attr_accessor :pulp_created
22
20
 
21
+ attr_accessor :pulp_href
22
+
23
23
  # Artifact file representing the physical content
24
24
  attr_accessor :artifact
25
25
 
@@ -32,8 +32,8 @@ module PulpAnsibleClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'pulp_href' => :'pulp_href',
36
35
  :'pulp_created' => :'pulp_created',
36
+ :'pulp_href' => :'pulp_href',
37
37
  :'artifact' => :'artifact',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
@@ -44,8 +44,8 @@ module PulpAnsibleClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'pulp_href' => :'String',
48
47
  :'pulp_created' => :'DateTime',
48
+ :'pulp_href' => :'String',
49
49
  :'artifact' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
@@ -74,14 +74,14 @@ module PulpAnsibleClient
74
74
  h[k.to_sym] = v
75
75
  }
76
76
 
77
- if attributes.key?(:'pulp_href')
78
- self.pulp_href = attributes[:'pulp_href']
79
- end
80
-
81
77
  if attributes.key?(:'pulp_created')
82
78
  self.pulp_created = attributes[:'pulp_created']
83
79
  end
84
80
 
81
+ if attributes.key?(:'pulp_href')
82
+ self.pulp_href = attributes[:'pulp_href']
83
+ end
84
+
85
85
  if attributes.key?(:'artifact')
86
86
  self.artifact = attributes[:'artifact']
87
87
  end
@@ -137,8 +137,8 @@ module PulpAnsibleClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
- pulp_href == o.pulp_href &&
141
140
  pulp_created == o.pulp_created &&
141
+ pulp_href == o.pulp_href &&
142
142
  artifact == o.artifact &&
143
143
  version == o.version &&
144
144
  name == o.name &&
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [pulp_href, pulp_created, artifact, version, name, namespace].hash
157
+ [pulp_created, pulp_href, artifact, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash
@@ -52,7 +52,7 @@ module PulpAnsibleClient
52
52
  :'name' => :'String',
53
53
  :'repository' => :'String',
54
54
  :'repository_version' => :'String',
55
- :'pulp_labels' => :'Hash<String, String>'
55
+ :'pulp_labels' => :'Object'
56
56
  }
57
57
  end
58
58
 
@@ -101,9 +101,7 @@ module PulpAnsibleClient
101
101
  end
102
102
 
103
103
  if attributes.key?(:'pulp_labels')
104
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
105
- self.pulp_labels = value
106
- end
104
+ self.pulp_labels = attributes[:'pulp_labels']
107
105
  end
108
106
  end
109
107
 
@@ -51,7 +51,7 @@ module PulpAnsibleClient
51
51
  # Attribute type mapping.
52
52
  def self.openapi_types
53
53
  {
54
- :'pulp_labels' => :'Hash<String, String>',
54
+ :'pulp_labels' => :'Object',
55
55
  :'name' => :'String',
56
56
  :'description' => :'String',
57
57
  :'retain_repo_versions' => :'Integer',
@@ -88,9 +88,7 @@ module PulpAnsibleClient
88
88
  }
89
89
 
90
90
  if attributes.key?(:'pulp_labels')
91
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
92
- self.pulp_labels = value
93
- end
91
+ self.pulp_labels = attributes[:'pulp_labels']
94
92
  end
95
93
 
96
94
  if attributes.key?(:'name')
@@ -138,7 +138,7 @@ module PulpAnsibleClient
138
138
  :'proxy_password' => :'String',
139
139
  :'username' => :'String',
140
140
  :'password' => :'String',
141
- :'pulp_labels' => :'Hash<String, String>',
141
+ :'pulp_labels' => :'Object',
142
142
  :'download_concurrency' => :'Integer',
143
143
  :'max_retries' => :'Integer',
144
144
  :'policy' => :'PolicyEnum',
@@ -240,9 +240,7 @@ module PulpAnsibleClient
240
240
  end
241
241
 
242
242
  if attributes.key?(:'pulp_labels')
243
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
244
- self.pulp_labels = value
245
- end
243
+ self.pulp_labels = attributes[:'pulp_labels']
246
244
  end
247
245
 
248
246
  if attributes.key?(:'download_concurrency')
@@ -356,20 +354,20 @@ module PulpAnsibleClient
356
354
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
357
355
  end
358
356
 
359
- if !@total_timeout.nil? && @total_timeout < 0
360
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
357
+ if !@total_timeout.nil? && @total_timeout < 0.0
358
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
361
359
  end
362
360
 
363
- if !@connect_timeout.nil? && @connect_timeout < 0
364
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
361
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
362
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
365
363
  end
366
364
 
367
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
368
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
365
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
366
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
369
367
  end
370
368
 
371
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
372
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
369
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
370
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
373
371
  end
374
372
 
375
373
  if !@requirements_file.nil? && @requirements_file.to_s.length < 1
@@ -409,10 +407,10 @@ module PulpAnsibleClient
409
407
  return false if !@username.nil? && @username.to_s.length < 1
410
408
  return false if !@password.nil? && @password.to_s.length < 1
411
409
  return false if !@download_concurrency.nil? && @download_concurrency < 1
412
- return false if !@total_timeout.nil? && @total_timeout < 0
413
- return false if !@connect_timeout.nil? && @connect_timeout < 0
414
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
415
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
410
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
411
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
412
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
413
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
416
414
  return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
417
415
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
418
416
  return false if !@auth_url.nil? && @auth_url.to_s.length < 1
@@ -534,8 +532,8 @@ module PulpAnsibleClient
534
532
  # Custom attribute writer method with validation
535
533
  # @param [Object] total_timeout Value to be assigned
536
534
  def total_timeout=(total_timeout)
537
- if !total_timeout.nil? && total_timeout < 0
538
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
535
+ if !total_timeout.nil? && total_timeout < 0.0
536
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
539
537
  end
540
538
 
541
539
  @total_timeout = total_timeout
@@ -544,8 +542,8 @@ module PulpAnsibleClient
544
542
  # Custom attribute writer method with validation
545
543
  # @param [Object] connect_timeout Value to be assigned
546
544
  def connect_timeout=(connect_timeout)
547
- if !connect_timeout.nil? && connect_timeout < 0
548
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
545
+ if !connect_timeout.nil? && connect_timeout < 0.0
546
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
549
547
  end
550
548
 
551
549
  @connect_timeout = connect_timeout
@@ -554,8 +552,8 @@ module PulpAnsibleClient
554
552
  # Custom attribute writer method with validation
555
553
  # @param [Object] sock_connect_timeout Value to be assigned
556
554
  def sock_connect_timeout=(sock_connect_timeout)
557
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
558
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
555
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
556
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
559
557
  end
560
558
 
561
559
  @sock_connect_timeout = sock_connect_timeout
@@ -564,8 +562,8 @@ module PulpAnsibleClient
564
562
  # Custom attribute writer method with validation
565
563
  # @param [Object] sock_read_timeout Value to be assigned
566
564
  def sock_read_timeout=(sock_read_timeout)
567
- if !sock_read_timeout.nil? && sock_read_timeout < 0
568
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
565
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
566
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
569
567
  end
570
568
 
571
569
  @sock_read_timeout = sock_read_timeout