pulp_maven_client 0.3.0 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +6 -7
  4. data/docs/ContentArtifactApi.md +3 -3
  5. data/docs/DistributionsMavenApi.md +3 -3
  6. data/docs/MavenMavenRemote.md +10 -8
  7. data/docs/MavenMavenRemoteResponse.md +8 -6
  8. data/docs/MavenMavenRepository.md +3 -1
  9. data/docs/MavenMavenRepositoryResponse.md +3 -1
  10. data/docs/PatchedmavenMavenRemote.md +10 -8
  11. data/docs/PatchedmavenMavenRepository.md +3 -1
  12. data/docs/RemotesMavenApi.md +3 -3
  13. data/docs/Repair.md +17 -0
  14. data/docs/RepositoriesMavenApi.md +3 -3
  15. data/docs/RepositoriesMavenVersionsApi.md +7 -7
  16. data/docs/RepositoryVersionResponse.md +2 -0
  17. data/lib/pulp_maven_client/api/content_artifact_api.rb +8 -4
  18. data/lib/pulp_maven_client/api/distributions_maven_api.rb +8 -4
  19. data/lib/pulp_maven_client/api/remotes_maven_api.rb +8 -4
  20. data/lib/pulp_maven_client/api/repositories_maven_api.rb +8 -4
  21. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +17 -13
  22. data/lib/pulp_maven_client/api_client.rb +13 -12
  23. data/lib/pulp_maven_client/api_error.rb +1 -1
  24. data/lib/pulp_maven_client/configuration.rb +11 -3
  25. data/lib/pulp_maven_client/models/async_operation_response.rb +1 -1
  26. data/lib/pulp_maven_client/models/content_summary_response.rb +1 -1
  27. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +20 -1
  28. data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +1 -1
  29. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +39 -1
  30. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +1 -1
  31. data/lib/pulp_maven_client/models/maven_maven_remote.rb +180 -10
  32. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +20 -8
  33. data/lib/pulp_maven_client/models/maven_maven_repository.rb +63 -2
  34. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +29 -2
  35. data/lib/pulp_maven_client/models/paginated_repository_version_response_list.rb +1 -1
  36. data/lib/pulp_maven_client/models/paginatedmaven_maven_artifact_response_list.rb +1 -1
  37. data/lib/pulp_maven_client/models/paginatedmaven_maven_distribution_response_list.rb +1 -1
  38. data/lib/pulp_maven_client/models/paginatedmaven_maven_remote_response_list.rb +1 -1
  39. data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +1 -1
  40. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +31 -1
  41. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +172 -10
  42. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +59 -2
  43. data/lib/pulp_maven_client/models/policy_enum.rb +1 -1
  44. data/lib/pulp_maven_client/models/{repository_version.rb → repair.rb} +14 -13
  45. data/lib/pulp_maven_client/models/repository_version_response.rb +11 -2
  46. data/lib/pulp_maven_client/version.rb +2 -2
  47. data/lib/pulp_maven_client.rb +2 -3
  48. data/pulp_maven_client.gemspec +2 -2
  49. data/spec/api/content_artifact_api_spec.rb +2 -2
  50. data/spec/api/distributions_maven_api_spec.rb +2 -2
  51. data/spec/api/remotes_maven_api_spec.rb +2 -2
  52. data/spec/api/repositories_maven_api_spec.rb +2 -2
  53. data/spec/api/repositories_maven_versions_api_spec.rb +3 -3
  54. data/spec/api_client_spec.rb +2 -2
  55. data/spec/configuration_spec.rb +4 -4
  56. data/spec/models/async_operation_response_spec.rb +1 -1
  57. data/spec/models/content_summary_response_spec.rb +1 -1
  58. data/spec/models/maven_maven_artifact_response_spec.rb +1 -1
  59. data/spec/models/maven_maven_artifact_spec.rb +1 -1
  60. data/spec/models/maven_maven_distribution_response_spec.rb +1 -1
  61. data/spec/models/maven_maven_distribution_spec.rb +1 -1
  62. data/spec/models/maven_maven_remote_response_spec.rb +7 -1
  63. data/spec/models/maven_maven_remote_spec.rb +7 -1
  64. data/spec/models/maven_maven_repository_response_spec.rb +7 -1
  65. data/spec/models/maven_maven_repository_spec.rb +7 -1
  66. data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
  67. data/spec/models/paginatedmaven_maven_artifact_response_list_spec.rb +1 -1
  68. data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +1 -1
  69. data/spec/models/paginatedmaven_maven_remote_response_list_spec.rb +1 -1
  70. data/spec/models/paginatedmaven_maven_repository_response_list_spec.rb +1 -1
  71. data/spec/models/patchedmaven_maven_distribution_spec.rb +1 -1
  72. data/spec/models/patchedmaven_maven_remote_spec.rb +7 -1
  73. data/spec/models/patchedmaven_maven_repository_spec.rb +7 -1
  74. data/spec/models/policy_enum_spec.rb +1 -1
  75. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +8 -8
  76. data/spec/models/repository_version_response_spec.rb +7 -1
  77. data/spec/spec_helper.rb +1 -1
  78. metadata +31 -141
  79. data/build/lib/pulpcore/__init__.py +0 -2
  80. data/build/lib/pulpcore/client/__init__.py +0 -2
  81. data/build/lib/pulpcore/client/pulp_maven/__init__.py +0 -58
  82. data/build/lib/pulpcore/client/pulp_maven/api/__init__.py +0 -10
  83. data/build/lib/pulpcore/client/pulp_maven/api/content_artifact_api.py +0 -445
  84. data/build/lib/pulpcore/client/pulp_maven/api/distributions_maven_api.py +0 -830
  85. data/build/lib/pulpcore/client/pulp_maven/api/remotes_maven_api.py +0 -840
  86. data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_api.py +0 -809
  87. data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +0 -614
  88. data/build/lib/pulpcore/client/pulp_maven/api_client.py +0 -667
  89. data/build/lib/pulpcore/client/pulp_maven/configuration.py +0 -427
  90. data/build/lib/pulpcore/client/pulp_maven/exceptions.py +0 -121
  91. data/build/lib/pulpcore/client/pulp_maven/models/__init__.py +0 -39
  92. data/build/lib/pulpcore/client/pulp_maven/models/async_operation_response.py +0 -124
  93. data/build/lib/pulpcore/client/pulp_maven/models/content_summary.py +0 -176
  94. data/build/lib/pulpcore/client/pulp_maven/models/content_summary_response.py +0 -176
  95. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +0 -153
  96. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +0 -290
  97. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +0 -260
  98. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +0 -342
  99. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote.py +0 -657
  100. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +0 -604
  101. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository.py +0 -202
  102. data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +0 -308
  103. data/build/lib/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +0 -197
  104. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +0 -197
  105. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +0 -197
  106. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +0 -197
  107. data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +0 -197
  108. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +0 -258
  109. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +0 -655
  110. data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +0 -201
  111. data/build/lib/pulpcore/client/pulp_maven/models/policy_enum.py +0 -101
  112. data/build/lib/pulpcore/client/pulp_maven/models/repository_version.py +0 -123
  113. data/build/lib/pulpcore/client/pulp_maven/models/repository_version_response.py +0 -231
  114. data/build/lib/pulpcore/client/pulp_maven/rest.py +0 -292
  115. data/dist/pulp_maven-client-0.3.0.tar.gz +0 -0
  116. data/dist/pulp_maven_client-0.3.0-py3-none-any.whl +0 -0
  117. data/docs/ContentSummary.md +0 -21
  118. data/docs/RepositoryVersion.md +0 -17
  119. data/lib/pulp_maven_client/models/content_summary.rb +0 -246
  120. data/pulp_maven_client.egg-info/PKG-INFO +0 -15
  121. data/pulp_maven_client.egg-info/SOURCES.txt +0 -71
  122. data/pulp_maven_client.egg-info/dependency_links.txt +0 -1
  123. data/pulp_maven_client.egg-info/requires.txt +0 -4
  124. data/pulp_maven_client.egg-info/top_level.txt +0 -1
  125. data/pulpcore/__init__.py +0 -2
  126. data/pulpcore/client/__init__.py +0 -2
  127. data/pulpcore/client/pulp_maven/__init__.py +0 -58
  128. data/pulpcore/client/pulp_maven/api/__init__.py +0 -10
  129. data/pulpcore/client/pulp_maven/api/content_artifact_api.py +0 -445
  130. data/pulpcore/client/pulp_maven/api/distributions_maven_api.py +0 -830
  131. data/pulpcore/client/pulp_maven/api/remotes_maven_api.py +0 -840
  132. data/pulpcore/client/pulp_maven/api/repositories_maven_api.py +0 -809
  133. data/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +0 -614
  134. data/pulpcore/client/pulp_maven/api_client.py +0 -667
  135. data/pulpcore/client/pulp_maven/configuration.py +0 -427
  136. data/pulpcore/client/pulp_maven/exceptions.py +0 -121
  137. data/pulpcore/client/pulp_maven/models/__init__.py +0 -39
  138. data/pulpcore/client/pulp_maven/models/async_operation_response.py +0 -124
  139. data/pulpcore/client/pulp_maven/models/content_summary.py +0 -176
  140. data/pulpcore/client/pulp_maven/models/content_summary_response.py +0 -176
  141. data/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +0 -153
  142. data/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +0 -290
  143. data/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +0 -260
  144. data/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +0 -342
  145. data/pulpcore/client/pulp_maven/models/maven_maven_remote.py +0 -657
  146. data/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +0 -604
  147. data/pulpcore/client/pulp_maven/models/maven_maven_repository.py +0 -202
  148. data/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +0 -308
  149. data/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +0 -197
  150. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +0 -197
  151. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +0 -197
  152. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +0 -197
  153. data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +0 -197
  154. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +0 -258
  155. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +0 -655
  156. data/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +0 -201
  157. data/pulpcore/client/pulp_maven/models/policy_enum.py +0 -101
  158. data/pulpcore/client/pulp_maven/models/repository_version.py +0 -123
  159. data/pulpcore/client/pulp_maven/models/repository_version_response.py +0 -231
  160. data/pulpcore/client/pulp_maven/rest.py +0 -292
  161. data/requirements.txt +0 -6
  162. data/setup.cfg +0 -2
  163. data/setup.py +0 -42
  164. data/spec/models/content_summary_spec.rb +0 -53
  165. data/test/__init__.py +0 -0
  166. data/test/test_async_operation_response.py +0 -54
  167. data/test/test_content_artifact_api.py +0 -55
  168. data/test/test_content_summary.py +0 -70
  169. data/test/test_content_summary_response.py +0 -70
  170. data/test/test_distributions_maven_api.py +0 -76
  171. data/test/test_maven_maven_artifact.py +0 -56
  172. data/test/test_maven_maven_artifact_response.py +0 -60
  173. data/test/test_maven_maven_distribution.py +0 -60
  174. data/test/test_maven_maven_distribution_response.py +0 -63
  175. data/test/test_maven_maven_remote.py +0 -76
  176. data/test/test_maven_maven_remote_response.py +0 -74
  177. data/test/test_maven_maven_repository.py +0 -57
  178. data/test/test_maven_maven_repository_response.py +0 -61
  179. data/test/test_paginated_repository_version_response_list.py +0 -63
  180. data/test/test_paginatedmaven_maven_artifact_response_list.py +0 -65
  181. data/test/test_paginatedmaven_maven_distribution_response_list.py +0 -67
  182. data/test/test_paginatedmaven_maven_remote_response_list.py +0 -78
  183. data/test/test_paginatedmaven_maven_repository_response_list.py +0 -66
  184. data/test/test_patchedmaven_maven_distribution.py +0 -58
  185. data/test/test_patchedmaven_maven_remote.py +0 -74
  186. data/test/test_patchedmaven_maven_repository.py +0 -56
  187. data/test/test_policy_enum.py +0 -52
  188. data/test/test_remotes_maven_api.py +0 -76
  189. data/test/test_repositories_maven_api.py +0 -76
  190. data/test/test_repositories_maven_versions_api.py +0 -61
  191. data/test/test_repository_version.py +0 -53
  192. data/test/test_repository_version_response.py +0 -57
  193. data/test-requirements.txt +0 -3
  194. data/tox.ini +0 -9
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -39,39 +39,42 @@ module PulpMavenClient
39
39
  # The username to authenticte to the proxy.
40
40
  attr_accessor :proxy_username
41
41
 
42
- # The password to authenticte to the proxy.
42
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
43
43
  attr_accessor :proxy_password
44
44
 
45
45
  # The username to be used for authentication when syncing.
46
46
  attr_accessor :username
47
47
 
48
- # The password to be used for authentication when syncing.
48
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
49
49
  attr_accessor :password
50
50
 
51
51
  attr_accessor :pulp_labels
52
52
 
53
- # Total number of simultaneous connections.
53
+ # Total number of simultaneous connections. If not set then the default value will be used.
54
54
  attr_accessor :download_concurrency
55
55
 
56
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
+ attr_accessor :max_retries
58
+
56
59
  # The policy to use when downloading content.
57
60
  attr_accessor :policy
58
61
 
59
- # aiohttp.ClientTimeout.total (q.v.) for download-connections.
62
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
60
63
  attr_accessor :total_timeout
61
64
 
62
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
65
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
63
66
  attr_accessor :connect_timeout
64
67
 
65
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
68
+ # 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.
66
69
  attr_accessor :sock_connect_timeout
67
70
 
68
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
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.
69
72
  attr_accessor :sock_read_timeout
70
73
 
71
74
  # Headers for aiohttp.Clientsession
72
75
  attr_accessor :headers
73
76
 
74
- # Limits total download rate in requests per second
77
+ # Limits requests per second for each concurrent downloader
75
78
  attr_accessor :rate_limit
76
79
 
77
80
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -90,6 +93,7 @@ module PulpMavenClient
90
93
  :'password' => :'password',
91
94
  :'pulp_labels' => :'pulp_labels',
92
95
  :'download_concurrency' => :'download_concurrency',
96
+ :'max_retries' => :'max_retries',
93
97
  :'policy' => :'policy',
94
98
  :'total_timeout' => :'total_timeout',
95
99
  :'connect_timeout' => :'connect_timeout',
@@ -116,6 +120,7 @@ module PulpMavenClient
116
120
  :'password' => :'String',
117
121
  :'pulp_labels' => :'Object',
118
122
  :'download_concurrency' => :'Integer',
123
+ :'max_retries' => :'Integer',
119
124
  :'policy' => :'PolicyEnum',
120
125
  :'total_timeout' => :'Float',
121
126
  :'connect_timeout' => :'Float',
@@ -137,6 +142,8 @@ module PulpMavenClient
137
142
  :'proxy_password',
138
143
  :'username',
139
144
  :'password',
145
+ :'download_concurrency',
146
+ :'max_retries',
140
147
  :'total_timeout',
141
148
  :'connect_timeout',
142
149
  :'sock_connect_timeout',
@@ -212,6 +219,10 @@ module PulpMavenClient
212
219
  self.download_concurrency = attributes[:'download_concurrency']
213
220
  end
214
221
 
222
+ if attributes.key?(:'max_retries')
223
+ self.max_retries = attributes[:'max_retries']
224
+ end
225
+
215
226
  if attributes.key?(:'policy')
216
227
  self.policy = attributes[:'policy']
217
228
  end
@@ -251,10 +262,50 @@ module PulpMavenClient
251
262
  invalid_properties.push('invalid value for "name", name cannot be nil.')
252
263
  end
253
264
 
265
+ if @name.to_s.length < 1
266
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
267
+ end
268
+
254
269
  if @url.nil?
255
270
  invalid_properties.push('invalid value for "url", url cannot be nil.')
256
271
  end
257
272
 
273
+ if @url.to_s.length < 1
274
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
275
+ end
276
+
277
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
278
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
279
+ end
280
+
281
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
282
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
283
+ end
284
+
285
+ if !@client_key.nil? && @client_key.to_s.length < 1
286
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
287
+ end
288
+
289
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
290
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
291
+ end
292
+
293
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
294
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
295
+ end
296
+
297
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
298
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
299
+ end
300
+
301
+ if !@username.nil? && @username.to_s.length < 1
302
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
303
+ end
304
+
305
+ if !@password.nil? && @password.to_s.length < 1
306
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
307
+ end
308
+
258
309
  if !@download_concurrency.nil? && @download_concurrency < 1
259
310
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
260
311
  end
@@ -282,7 +333,17 @@ module PulpMavenClient
282
333
  # @return true if the model is valid
283
334
  def valid?
284
335
  return false if @name.nil?
336
+ return false if @name.to_s.length < 1
285
337
  return false if @url.nil?
338
+ return false if @url.to_s.length < 1
339
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
340
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
341
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
342
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
343
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
344
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
345
+ return false if !@username.nil? && @username.to_s.length < 1
346
+ return false if !@password.nil? && @password.to_s.length < 1
286
347
  return false if !@download_concurrency.nil? && @download_concurrency < 1
287
348
  return false if !@total_timeout.nil? && @total_timeout < 0.0
288
349
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
@@ -291,6 +352,114 @@ module PulpMavenClient
291
352
  true
292
353
  end
293
354
 
355
+ # Custom attribute writer method with validation
356
+ # @param [Object] name Value to be assigned
357
+ def name=(name)
358
+ if name.nil?
359
+ fail ArgumentError, 'name cannot be nil'
360
+ end
361
+
362
+ if name.to_s.length < 1
363
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
364
+ end
365
+
366
+ @name = name
367
+ end
368
+
369
+ # Custom attribute writer method with validation
370
+ # @param [Object] url Value to be assigned
371
+ def url=(url)
372
+ if url.nil?
373
+ fail ArgumentError, 'url cannot be nil'
374
+ end
375
+
376
+ if url.to_s.length < 1
377
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
378
+ end
379
+
380
+ @url = url
381
+ end
382
+
383
+ # Custom attribute writer method with validation
384
+ # @param [Object] ca_cert Value to be assigned
385
+ def ca_cert=(ca_cert)
386
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
387
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
388
+ end
389
+
390
+ @ca_cert = ca_cert
391
+ end
392
+
393
+ # Custom attribute writer method with validation
394
+ # @param [Object] client_cert Value to be assigned
395
+ def client_cert=(client_cert)
396
+ if !client_cert.nil? && client_cert.to_s.length < 1
397
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
398
+ end
399
+
400
+ @client_cert = client_cert
401
+ end
402
+
403
+ # Custom attribute writer method with validation
404
+ # @param [Object] client_key Value to be assigned
405
+ def client_key=(client_key)
406
+ if !client_key.nil? && client_key.to_s.length < 1
407
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
408
+ end
409
+
410
+ @client_key = client_key
411
+ end
412
+
413
+ # Custom attribute writer method with validation
414
+ # @param [Object] proxy_url Value to be assigned
415
+ def proxy_url=(proxy_url)
416
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
417
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
418
+ end
419
+
420
+ @proxy_url = proxy_url
421
+ end
422
+
423
+ # Custom attribute writer method with validation
424
+ # @param [Object] proxy_username Value to be assigned
425
+ def proxy_username=(proxy_username)
426
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
427
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
428
+ end
429
+
430
+ @proxy_username = proxy_username
431
+ end
432
+
433
+ # Custom attribute writer method with validation
434
+ # @param [Object] proxy_password Value to be assigned
435
+ def proxy_password=(proxy_password)
436
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
437
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
438
+ end
439
+
440
+ @proxy_password = proxy_password
441
+ end
442
+
443
+ # Custom attribute writer method with validation
444
+ # @param [Object] username Value to be assigned
445
+ def username=(username)
446
+ if !username.nil? && username.to_s.length < 1
447
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
448
+ end
449
+
450
+ @username = username
451
+ end
452
+
453
+ # Custom attribute writer method with validation
454
+ # @param [Object] password Value to be assigned
455
+ def password=(password)
456
+ if !password.nil? && password.to_s.length < 1
457
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
458
+ end
459
+
460
+ @password = password
461
+ end
462
+
294
463
  # Custom attribute writer method with validation
295
464
  # @param [Object] download_concurrency Value to be assigned
296
465
  def download_concurrency=(download_concurrency)
@@ -359,6 +528,7 @@ module PulpMavenClient
359
528
  password == o.password &&
360
529
  pulp_labels == o.pulp_labels &&
361
530
  download_concurrency == o.download_concurrency &&
531
+ max_retries == o.max_retries &&
362
532
  policy == o.policy &&
363
533
  total_timeout == o.total_timeout &&
364
534
  connect_timeout == o.connect_timeout &&
@@ -377,7 +547,7 @@ module PulpMavenClient
377
547
  # Calculates hash code according to all attributes.
378
548
  # @return [Integer] Hash code
379
549
  def hash
380
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
550
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
381
551
  end
382
552
 
383
553
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -43,28 +43,31 @@ module PulpMavenClient
43
43
  # Timestamp of the most recent update of the remote.
44
44
  attr_accessor :pulp_last_updated
45
45
 
46
- # Total number of simultaneous connections.
46
+ # Total number of simultaneous connections. If not set then the default value will be used.
47
47
  attr_accessor :download_concurrency
48
48
 
49
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
+ attr_accessor :max_retries
51
+
49
52
  # The policy to use when downloading content.
50
53
  attr_accessor :policy
51
54
 
52
- # aiohttp.ClientTimeout.total (q.v.) for download-connections.
55
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
56
  attr_accessor :total_timeout
54
57
 
55
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
58
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
56
59
  attr_accessor :connect_timeout
57
60
 
58
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
61
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
59
62
  attr_accessor :sock_connect_timeout
60
63
 
61
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
64
+ # 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.
62
65
  attr_accessor :sock_read_timeout
63
66
 
64
67
  # Headers for aiohttp.Clientsession
65
68
  attr_accessor :headers
66
69
 
67
- # Limits total download rate in requests per second
70
+ # Limits requests per second for each concurrent downloader
68
71
  attr_accessor :rate_limit
69
72
 
70
73
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -81,6 +84,7 @@ module PulpMavenClient
81
84
  :'pulp_labels' => :'pulp_labels',
82
85
  :'pulp_last_updated' => :'pulp_last_updated',
83
86
  :'download_concurrency' => :'download_concurrency',
87
+ :'max_retries' => :'max_retries',
84
88
  :'policy' => :'policy',
85
89
  :'total_timeout' => :'total_timeout',
86
90
  :'connect_timeout' => :'connect_timeout',
@@ -105,6 +109,7 @@ module PulpMavenClient
105
109
  :'pulp_labels' => :'Object',
106
110
  :'pulp_last_updated' => :'DateTime',
107
111
  :'download_concurrency' => :'Integer',
112
+ :'max_retries' => :'Integer',
108
113
  :'policy' => :'PolicyEnum',
109
114
  :'total_timeout' => :'Float',
110
115
  :'connect_timeout' => :'Float',
@@ -121,6 +126,8 @@ module PulpMavenClient
121
126
  :'ca_cert',
122
127
  :'client_cert',
123
128
  :'proxy_url',
129
+ :'download_concurrency',
130
+ :'max_retries',
124
131
  :'total_timeout',
125
132
  :'connect_timeout',
126
133
  :'sock_connect_timeout',
@@ -188,6 +195,10 @@ module PulpMavenClient
188
195
  self.download_concurrency = attributes[:'download_concurrency']
189
196
  end
190
197
 
198
+ if attributes.key?(:'max_retries')
199
+ self.max_retries = attributes[:'max_retries']
200
+ end
201
+
191
202
  if attributes.key?(:'policy')
192
203
  self.policy = attributes[:'policy']
193
204
  end
@@ -333,6 +344,7 @@ module PulpMavenClient
333
344
  pulp_labels == o.pulp_labels &&
334
345
  pulp_last_updated == o.pulp_last_updated &&
335
346
  download_concurrency == o.download_concurrency &&
347
+ max_retries == o.max_retries &&
336
348
  policy == o.policy &&
337
349
  total_timeout == o.total_timeout &&
338
350
  connect_timeout == o.connect_timeout &&
@@ -351,7 +363,7 @@ module PulpMavenClient
351
363
  # Calculates hash code according to all attributes.
352
364
  # @return [Integer] Hash code
353
365
  def hash
354
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].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
355
367
  end
356
368
 
357
369
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -23,6 +23,10 @@ module PulpMavenClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
+ attr_accessor :retain_repo_versions
28
+
29
+ # An optional remote to use by default when syncing.
26
30
  attr_accessor :remote
27
31
 
28
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,6 +35,7 @@ module PulpMavenClient
31
35
  :'pulp_labels' => :'pulp_labels',
32
36
  :'name' => :'name',
33
37
  :'description' => :'description',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
34
39
  :'remote' => :'remote'
35
40
  }
36
41
  end
@@ -41,6 +46,7 @@ module PulpMavenClient
41
46
  :'pulp_labels' => :'Object',
42
47
  :'name' => :'String',
43
48
  :'description' => :'String',
49
+ :'retain_repo_versions' => :'Integer',
44
50
  :'remote' => :'String'
45
51
  }
46
52
  end
@@ -49,6 +55,7 @@ module PulpMavenClient
49
55
  def self.openapi_nullable
50
56
  Set.new([
51
57
  :'description',
58
+ :'retain_repo_versions',
52
59
  :'remote'
53
60
  ])
54
61
  end
@@ -80,6 +87,10 @@ module PulpMavenClient
80
87
  self.description = attributes[:'description']
81
88
  end
82
89
 
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
92
+ end
93
+
83
94
  if attributes.key?(:'remote')
84
95
  self.remote = attributes[:'remote']
85
96
  end
@@ -93,6 +104,18 @@ module PulpMavenClient
93
104
  invalid_properties.push('invalid value for "name", name cannot be nil.')
94
105
  end
95
106
 
107
+ if @name.to_s.length < 1
108
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
109
+ end
110
+
111
+ if !@description.nil? && @description.to_s.length < 1
112
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
113
+ end
114
+
115
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
116
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
117
+ end
118
+
96
119
  invalid_properties
97
120
  end
98
121
 
@@ -100,9 +123,46 @@ module PulpMavenClient
100
123
  # @return true if the model is valid
101
124
  def valid?
102
125
  return false if @name.nil?
126
+ return false if @name.to_s.length < 1
127
+ return false if !@description.nil? && @description.to_s.length < 1
128
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
103
129
  true
104
130
  end
105
131
 
132
+ # Custom attribute writer method with validation
133
+ # @param [Object] name Value to be assigned
134
+ def name=(name)
135
+ if name.nil?
136
+ fail ArgumentError, 'name cannot be nil'
137
+ end
138
+
139
+ if name.to_s.length < 1
140
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
141
+ end
142
+
143
+ @name = name
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] description Value to be assigned
148
+ def description=(description)
149
+ if !description.nil? && description.to_s.length < 1
150
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
151
+ end
152
+
153
+ @description = description
154
+ end
155
+
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] retain_repo_versions Value to be assigned
158
+ def retain_repo_versions=(retain_repo_versions)
159
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
160
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
161
+ end
162
+
163
+ @retain_repo_versions = retain_repo_versions
164
+ end
165
+
106
166
  # Checks equality by comparing each attribute.
107
167
  # @param [Object] Object to be compared
108
168
  def ==(o)
@@ -111,6 +171,7 @@ module PulpMavenClient
111
171
  pulp_labels == o.pulp_labels &&
112
172
  name == o.name &&
113
173
  description == o.description &&
174
+ retain_repo_versions == o.retain_repo_versions &&
114
175
  remote == o.remote
115
176
  end
116
177
 
@@ -123,7 +184,7 @@ module PulpMavenClient
123
184
  # Calculates hash code according to all attributes.
124
185
  # @return [Integer] Hash code
125
186
  def hash
126
- [pulp_labels, name, description, remote].hash
187
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
127
188
  end
128
189
 
129
190
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -32,6 +32,10 @@ module PulpMavenClient
32
32
  # An optional description.
33
33
  attr_accessor :description
34
34
 
35
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
36
+ attr_accessor :retain_repo_versions
37
+
38
+ # An optional remote to use by default when syncing.
35
39
  attr_accessor :remote
36
40
 
37
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -44,6 +48,7 @@ module PulpMavenClient
44
48
  :'latest_version_href' => :'latest_version_href',
45
49
  :'name' => :'name',
46
50
  :'description' => :'description',
51
+ :'retain_repo_versions' => :'retain_repo_versions',
47
52
  :'remote' => :'remote'
48
53
  }
49
54
  end
@@ -58,6 +63,7 @@ module PulpMavenClient
58
63
  :'latest_version_href' => :'String',
59
64
  :'name' => :'String',
60
65
  :'description' => :'String',
66
+ :'retain_repo_versions' => :'Integer',
61
67
  :'remote' => :'String'
62
68
  }
63
69
  end
@@ -66,6 +72,7 @@ module PulpMavenClient
66
72
  def self.openapi_nullable
67
73
  Set.new([
68
74
  :'description',
75
+ :'retain_repo_versions',
69
76
  :'remote'
70
77
  ])
71
78
  end
@@ -113,6 +120,10 @@ module PulpMavenClient
113
120
  self.description = attributes[:'description']
114
121
  end
115
122
 
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
125
+ end
126
+
116
127
  if attributes.key?(:'remote')
117
128
  self.remote = attributes[:'remote']
118
129
  end
@@ -126,6 +137,10 @@ module PulpMavenClient
126
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
127
138
  end
128
139
 
140
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
142
+ end
143
+
129
144
  invalid_properties
130
145
  end
131
146
 
@@ -133,9 +148,20 @@ module PulpMavenClient
133
148
  # @return true if the model is valid
134
149
  def valid?
135
150
  return false if @name.nil?
151
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
136
152
  true
137
153
  end
138
154
 
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] retain_repo_versions Value to be assigned
157
+ def retain_repo_versions=(retain_repo_versions)
158
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
159
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
160
+ end
161
+
162
+ @retain_repo_versions = retain_repo_versions
163
+ end
164
+
139
165
  # Checks equality by comparing each attribute.
140
166
  # @param [Object] Object to be compared
141
167
  def ==(o)
@@ -148,6 +174,7 @@ module PulpMavenClient
148
174
  latest_version_href == o.latest_version_href &&
149
175
  name == o.name &&
150
176
  description == o.description &&
177
+ retain_repo_versions == o.retain_repo_versions &&
151
178
  remote == o.remote
152
179
  end
153
180
 
@@ -160,7 +187,7 @@ module PulpMavenClient
160
187
  # Calculates hash code according to all attributes.
161
188
  # @return [Integer] Hash code
162
189
  def hash
163
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
190
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
164
191
  end
165
192
 
166
193
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12