pulp_maven_client 0.3.0 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
 
@@ -109,15 +109,45 @@ module PulpMavenClient
109
109
  # @return Array for valid properties with the reasons
110
110
  def list_invalid_properties
111
111
  invalid_properties = Array.new
112
+ if !@base_path.nil? && @base_path.to_s.length < 1
113
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
114
+ end
115
+
116
+ if !@name.nil? && @name.to_s.length < 1
117
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
118
+ end
119
+
112
120
  invalid_properties
113
121
  end
114
122
 
115
123
  # Check to see if the all the properties in the model are valid
116
124
  # @return true if the model is valid
117
125
  def valid?
126
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
127
+ return false if !@name.nil? && @name.to_s.length < 1
118
128
  true
119
129
  end
120
130
 
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] base_path Value to be assigned
133
+ def base_path=(base_path)
134
+ if !base_path.nil? && base_path.to_s.length < 1
135
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
136
+ end
137
+
138
+ @base_path = base_path
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] name Value to be assigned
143
+ def name=(name)
144
+ if !name.nil? && name.to_s.length < 1
145
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
146
+ end
147
+
148
+ @name = name
149
+ end
150
+
121
151
  # Checks equality by comparing each attribute.
122
152
  # @param [Object] Object to be compared
123
153
  def ==(o)
@@ -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
@@ -247,6 +258,46 @@ module PulpMavenClient
247
258
  # @return Array for valid properties with the reasons
248
259
  def list_invalid_properties
249
260
  invalid_properties = Array.new
261
+ if !@name.nil? && @name.to_s.length < 1
262
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
263
+ end
264
+
265
+ if !@url.nil? && @url.to_s.length < 1
266
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
267
+ end
268
+
269
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
270
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
271
+ end
272
+
273
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
274
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
275
+ end
276
+
277
+ if !@client_key.nil? && @client_key.to_s.length < 1
278
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
279
+ end
280
+
281
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
282
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
283
+ end
284
+
285
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
286
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
287
+ end
288
+
289
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
290
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
291
+ end
292
+
293
+ if !@username.nil? && @username.to_s.length < 1
294
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
295
+ end
296
+
297
+ if !@password.nil? && @password.to_s.length < 1
298
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
299
+ end
300
+
250
301
  if !@download_concurrency.nil? && @download_concurrency < 1
251
302
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
252
303
  end
@@ -273,6 +324,16 @@ module PulpMavenClient
273
324
  # Check to see if the all the properties in the model are valid
274
325
  # @return true if the model is valid
275
326
  def valid?
327
+ return false if !@name.nil? && @name.to_s.length < 1
328
+ return false if !@url.nil? && @url.to_s.length < 1
329
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
330
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
331
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
332
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
333
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
334
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
335
+ return false if !@username.nil? && @username.to_s.length < 1
336
+ return false if !@password.nil? && @password.to_s.length < 1
276
337
  return false if !@download_concurrency.nil? && @download_concurrency < 1
277
338
  return false if !@total_timeout.nil? && @total_timeout < 0.0
278
339
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
@@ -281,6 +342,106 @@ module PulpMavenClient
281
342
  true
282
343
  end
283
344
 
345
+ # Custom attribute writer method with validation
346
+ # @param [Object] name Value to be assigned
347
+ def name=(name)
348
+ if !name.nil? && name.to_s.length < 1
349
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
350
+ end
351
+
352
+ @name = name
353
+ end
354
+
355
+ # Custom attribute writer method with validation
356
+ # @param [Object] url Value to be assigned
357
+ def url=(url)
358
+ if !url.nil? && url.to_s.length < 1
359
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
360
+ end
361
+
362
+ @url = url
363
+ end
364
+
365
+ # Custom attribute writer method with validation
366
+ # @param [Object] ca_cert Value to be assigned
367
+ def ca_cert=(ca_cert)
368
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
369
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
370
+ end
371
+
372
+ @ca_cert = ca_cert
373
+ end
374
+
375
+ # Custom attribute writer method with validation
376
+ # @param [Object] client_cert Value to be assigned
377
+ def client_cert=(client_cert)
378
+ if !client_cert.nil? && client_cert.to_s.length < 1
379
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
380
+ end
381
+
382
+ @client_cert = client_cert
383
+ end
384
+
385
+ # Custom attribute writer method with validation
386
+ # @param [Object] client_key Value to be assigned
387
+ def client_key=(client_key)
388
+ if !client_key.nil? && client_key.to_s.length < 1
389
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
390
+ end
391
+
392
+ @client_key = client_key
393
+ end
394
+
395
+ # Custom attribute writer method with validation
396
+ # @param [Object] proxy_url Value to be assigned
397
+ def proxy_url=(proxy_url)
398
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
399
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
400
+ end
401
+
402
+ @proxy_url = proxy_url
403
+ end
404
+
405
+ # Custom attribute writer method with validation
406
+ # @param [Object] proxy_username Value to be assigned
407
+ def proxy_username=(proxy_username)
408
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
409
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
410
+ end
411
+
412
+ @proxy_username = proxy_username
413
+ end
414
+
415
+ # Custom attribute writer method with validation
416
+ # @param [Object] proxy_password Value to be assigned
417
+ def proxy_password=(proxy_password)
418
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
419
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
420
+ end
421
+
422
+ @proxy_password = proxy_password
423
+ end
424
+
425
+ # Custom attribute writer method with validation
426
+ # @param [Object] username Value to be assigned
427
+ def username=(username)
428
+ if !username.nil? && username.to_s.length < 1
429
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
430
+ end
431
+
432
+ @username = username
433
+ end
434
+
435
+ # Custom attribute writer method with validation
436
+ # @param [Object] password Value to be assigned
437
+ def password=(password)
438
+ if !password.nil? && password.to_s.length < 1
439
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
440
+ end
441
+
442
+ @password = password
443
+ end
444
+
284
445
  # Custom attribute writer method with validation
285
446
  # @param [Object] download_concurrency Value to be assigned
286
447
  def download_concurrency=(download_concurrency)
@@ -349,6 +510,7 @@ module PulpMavenClient
349
510
  password == o.password &&
350
511
  pulp_labels == o.pulp_labels &&
351
512
  download_concurrency == o.download_concurrency &&
513
+ max_retries == o.max_retries &&
352
514
  policy == o.policy &&
353
515
  total_timeout == o.total_timeout &&
354
516
  connect_timeout == o.connect_timeout &&
@@ -367,7 +529,7 @@ module PulpMavenClient
367
529
  # Calculates hash code according to all attributes.
368
530
  # @return [Integer] Hash code
369
531
  def hash
370
- [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
532
+ [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
371
533
  end
372
534
 
373
535
  # 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
@@ -89,15 +100,60 @@ module PulpMavenClient
89
100
  # @return Array for valid properties with the reasons
90
101
  def list_invalid_properties
91
102
  invalid_properties = Array.new
103
+ if !@name.nil? && @name.to_s.length < 1
104
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
105
+ end
106
+
107
+ if !@description.nil? && @description.to_s.length < 1
108
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
109
+ end
110
+
111
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
112
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
113
+ end
114
+
92
115
  invalid_properties
93
116
  end
94
117
 
95
118
  # Check to see if the all the properties in the model are valid
96
119
  # @return true if the model is valid
97
120
  def valid?
121
+ return false if !@name.nil? && @name.to_s.length < 1
122
+ return false if !@description.nil? && @description.to_s.length < 1
123
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
98
124
  true
99
125
  end
100
126
 
127
+ # Custom attribute writer method with validation
128
+ # @param [Object] name Value to be assigned
129
+ def name=(name)
130
+ if !name.nil? && name.to_s.length < 1
131
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
132
+ end
133
+
134
+ @name = name
135
+ end
136
+
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] description Value to be assigned
139
+ def description=(description)
140
+ if !description.nil? && description.to_s.length < 1
141
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
142
+ end
143
+
144
+ @description = description
145
+ end
146
+
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] retain_repo_versions Value to be assigned
149
+ def retain_repo_versions=(retain_repo_versions)
150
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
151
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
152
+ end
153
+
154
+ @retain_repo_versions = retain_repo_versions
155
+ end
156
+
101
157
  # Checks equality by comparing each attribute.
102
158
  # @param [Object] Object to be compared
103
159
  def ==(o)
@@ -106,6 +162,7 @@ module PulpMavenClient
106
162
  pulp_labels == o.pulp_labels &&
107
163
  name == o.name &&
108
164
  description == o.description &&
165
+ retain_repo_versions == o.retain_repo_versions &&
109
166
  remote == o.remote
110
167
  end
111
168
 
@@ -118,7 +175,7 @@ module PulpMavenClient
118
175
  # Calculates hash code according to all attributes.
119
176
  # @return [Integer] Hash code
120
177
  def hash
121
- [pulp_labels, name, description, remote].hash
178
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
122
179
  end
123
180
 
124
181
  # 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,29 +6,28 @@
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
 
13
13
  require 'date'
14
14
 
15
15
  module PulpMavenClient
16
- # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
- class RepositoryVersion
18
- # A repository version whose content was used as the initial set of content for this repository version
19
- attr_accessor :base_version
16
+ class Repair
17
+ # Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
18
+ attr_accessor :verify_checksums
20
19
 
21
20
  # Attribute mapping from ruby-style variable name to JSON key.
22
21
  def self.attribute_map
23
22
  {
24
- :'base_version' => :'base_version'
23
+ :'verify_checksums' => :'verify_checksums'
25
24
  }
26
25
  end
27
26
 
28
27
  # Attribute type mapping.
29
28
  def self.openapi_types
30
29
  {
31
- :'base_version' => :'String'
30
+ :'verify_checksums' => :'Boolean'
32
31
  }
33
32
  end
34
33
 
@@ -42,19 +41,21 @@ module PulpMavenClient
42
41
  # @param [Hash] attributes Model attributes in the form of hash
43
42
  def initialize(attributes = {})
44
43
  if (!attributes.is_a?(Hash))
45
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::RepositoryVersion` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::Repair` initialize method"
46
45
  end
47
46
 
48
47
  # check to see if the attribute exists and convert string to symbol for hash key
49
48
  attributes = attributes.each_with_object({}) { |(k, v), h|
50
49
  if (!self.class.attribute_map.key?(k.to_sym))
51
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::RepositoryVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
51
  end
53
52
  h[k.to_sym] = v
54
53
  }
55
54
 
56
- if attributes.key?(:'base_version')
57
- self.base_version = attributes[:'base_version']
55
+ if attributes.key?(:'verify_checksums')
56
+ self.verify_checksums = attributes[:'verify_checksums']
57
+ else
58
+ self.verify_checksums = true
58
59
  end
59
60
  end
60
61
 
@@ -76,7 +77,7 @@ module PulpMavenClient
76
77
  def ==(o)
77
78
  return true if self.equal?(o)
78
79
  self.class == o.class &&
79
- base_version == o.base_version
80
+ verify_checksums == o.verify_checksums
80
81
  end
81
82
 
82
83
  # @see the `==` method
@@ -88,7 +89,7 @@ module PulpMavenClient
88
89
  # Calculates hash code according to all attributes.
89
90
  # @return [Integer] Hash code
90
91
  def hash
91
- [base_version].hash
92
+ [verify_checksums].hash
92
93
  end
93
94
 
94
95
  # 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
 
@@ -22,6 +22,8 @@ module PulpMavenClient
22
22
 
23
23
  attr_accessor :number
24
24
 
25
+ attr_accessor :repository
26
+
25
27
  # A repository version whose content was used as the initial set of content for this repository version
26
28
  attr_accessor :base_version
27
29
 
@@ -34,6 +36,7 @@ module PulpMavenClient
34
36
  :'pulp_href' => :'pulp_href',
35
37
  :'pulp_created' => :'pulp_created',
36
38
  :'number' => :'number',
39
+ :'repository' => :'repository',
37
40
  :'base_version' => :'base_version',
38
41
  :'content_summary' => :'content_summary'
39
42
  }
@@ -45,6 +48,7 @@ module PulpMavenClient
45
48
  :'pulp_href' => :'String',
46
49
  :'pulp_created' => :'DateTime',
47
50
  :'number' => :'Integer',
51
+ :'repository' => :'String',
48
52
  :'base_version' => :'String',
49
53
  :'content_summary' => :'ContentSummaryResponse'
50
54
  }
@@ -83,6 +87,10 @@ module PulpMavenClient
83
87
  self.number = attributes[:'number']
84
88
  end
85
89
 
90
+ if attributes.key?(:'repository')
91
+ self.repository = attributes[:'repository']
92
+ end
93
+
86
94
  if attributes.key?(:'base_version')
87
95
  self.base_version = attributes[:'base_version']
88
96
  end
@@ -113,6 +121,7 @@ module PulpMavenClient
113
121
  pulp_href == o.pulp_href &&
114
122
  pulp_created == o.pulp_created &&
115
123
  number == o.number &&
124
+ repository == o.repository &&
116
125
  base_version == o.base_version &&
117
126
  content_summary == o.content_summary
118
127
  end
@@ -126,7 +135,7 @@ module PulpMavenClient
126
135
  # Calculates hash code according to all attributes.
127
136
  # @return [Integer] Hash code
128
137
  def hash
129
- [pulp_href, pulp_created, number, base_version, content_summary].hash
138
+ [pulp_href, pulp_created, number, repository, base_version, content_summary].hash
130
139
  end
131
140
 
132
141
  # Builds the object from hash
@@ -6,10 +6,10 @@
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
 
13
13
  module PulpMavenClient
14
- VERSION = '0.3.0'
14
+ VERSION = '0.3.3'
15
15
  end
@@ -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
 
@@ -18,7 +18,6 @@ require 'pulp_maven_client/configuration'
18
18
 
19
19
  # Models
20
20
  require 'pulp_maven_client/models/async_operation_response'
21
- require 'pulp_maven_client/models/content_summary'
22
21
  require 'pulp_maven_client/models/content_summary_response'
23
22
  require 'pulp_maven_client/models/maven_maven_artifact'
24
23
  require 'pulp_maven_client/models/maven_maven_artifact_response'
@@ -37,7 +36,7 @@ require 'pulp_maven_client/models/patchedmaven_maven_distribution'
37
36
  require 'pulp_maven_client/models/patchedmaven_maven_remote'
38
37
  require 'pulp_maven_client/models/patchedmaven_maven_repository'
39
38
  require 'pulp_maven_client/models/policy_enum'
40
- require 'pulp_maven_client/models/repository_version'
39
+ require 'pulp_maven_client/models/repair'
41
40
  require 'pulp_maven_client/models/repository_version_response'
42
41
 
43
42
  # APIs
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: v3
9
9
  Contact: pulp-list@redhat.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.2.3
11
+ OpenAPI Generator version: 4.3.1
12
12
 
13
13
  =end
14
14
 
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.license = 'GPL-2.0+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '>= 0.14.0'
30
+ s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'