pulp_maven_client 0.12.0 → 0.14.0
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.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ContentArtifactApi.md +6 -6
- data/docs/DistributionsMavenApi.md +4 -4
- data/docs/MavenMavenArtifact.md +2 -0
- data/docs/MavenMavenDistribution.md +2 -0
- data/docs/MavenMavenDistributionResponse.md +4 -0
- data/docs/MavenMavenRemote.md +6 -6
- data/docs/MavenMavenRemoteResponse.md +9 -9
- data/docs/MavenMavenRepository.md +2 -0
- data/docs/MavenMavenRepositoryResponse.md +2 -0
- data/docs/PatchedmavenMavenDistribution.md +2 -0
- data/docs/PatchedmavenMavenRemote.md +6 -6
- data/docs/PatchedmavenMavenRepository.md +2 -0
- data/docs/RepositoriesMavenApi.md +97 -4
- data/docs/RepositoryAddRemoveContent.md +24 -0
- data/lib/pulp_maven_client/api/content_artifact_api.rb +6 -6
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +4 -4
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +106 -5
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +11 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +12 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +22 -1
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +48 -33
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +64 -49
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +42 -1
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +42 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +12 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +48 -33
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +42 -1
- data/lib/pulp_maven_client/models/repository_add_remove_content.rb +252 -0
- data/lib/pulp_maven_client/models/set_label.rb +0 -11
- data/lib/pulp_maven_client/models/set_label_response.rb +0 -21
- data/lib/pulp_maven_client/models/unset_label.rb +0 -11
- data/lib/pulp_maven_client/models/unset_label_response.rb +0 -21
- data/lib/pulp_maven_client/version.rb +1 -1
- data/lib/pulp_maven_client.rb +1 -0
- data/spec/api/content_artifact_api_spec.rb +3 -3
- data/spec/api/distributions_maven_api_spec.rb +2 -2
- data/spec/api/repositories_maven_api_spec.rb +24 -2
- data/spec/models/maven_maven_artifact_spec.rb +6 -0
- data/spec/models/maven_maven_distribution_response_spec.rb +12 -0
- data/spec/models/maven_maven_distribution_spec.rb +6 -0
- data/spec/models/maven_maven_remote_response_spec.rb +10 -10
- data/spec/models/maven_maven_remote_spec.rb +17 -17
- data/spec/models/maven_maven_repository_response_spec.rb +6 -0
- data/spec/models/maven_maven_repository_spec.rb +6 -0
- data/spec/models/patchedmaven_maven_distribution_spec.rb +6 -0
- data/spec/models/patchedmaven_maven_remote_spec.rb +17 -17
- data/spec/models/patchedmaven_maven_repository_spec.rb +6 -0
- data/spec/models/repository_add_remove_content_spec.rb +54 -0
- metadata +28 -24
|
@@ -33,6 +33,14 @@ module PulpMavenClient
|
|
|
33
33
|
# The URL of an external content source.
|
|
34
34
|
attr_accessor :url
|
|
35
35
|
|
|
36
|
+
attr_accessor :pulp_labels
|
|
37
|
+
|
|
38
|
+
# The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.
|
|
39
|
+
attr_accessor :policy
|
|
40
|
+
|
|
41
|
+
# List of hidden (write only) fields
|
|
42
|
+
attr_accessor :hidden_fields
|
|
43
|
+
|
|
36
44
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
37
45
|
attr_accessor :ca_cert
|
|
38
46
|
|
|
@@ -45,17 +53,9 @@ module PulpMavenClient
|
|
|
45
53
|
# The proxy URL. Format: scheme://host:port
|
|
46
54
|
attr_accessor :proxy_url
|
|
47
55
|
|
|
48
|
-
attr_accessor :pulp_labels
|
|
49
|
-
|
|
50
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
51
|
-
attr_accessor :download_concurrency
|
|
52
|
-
|
|
53
56
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
54
57
|
attr_accessor :max_retries
|
|
55
58
|
|
|
56
|
-
# The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.
|
|
57
|
-
attr_accessor :policy
|
|
58
|
-
|
|
59
59
|
# 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
60
|
attr_accessor :total_timeout
|
|
61
61
|
|
|
@@ -71,12 +71,12 @@ module PulpMavenClient
|
|
|
71
71
|
# Headers for aiohttp.Clientsession
|
|
72
72
|
attr_accessor :headers
|
|
73
73
|
|
|
74
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
75
|
+
attr_accessor :download_concurrency
|
|
76
|
+
|
|
74
77
|
# Limits requests per second for each concurrent downloader
|
|
75
78
|
attr_accessor :rate_limit
|
|
76
79
|
|
|
77
|
-
# List of hidden (write only) fields
|
|
78
|
-
attr_accessor :hidden_fields
|
|
79
|
-
|
|
80
80
|
class EnumAttributeValidator
|
|
81
81
|
attr_reader :datatype
|
|
82
82
|
attr_reader :allowable_values
|
|
@@ -108,21 +108,21 @@ module PulpMavenClient
|
|
|
108
108
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
109
109
|
:'name' => :'name',
|
|
110
110
|
:'url' => :'url',
|
|
111
|
+
:'pulp_labels' => :'pulp_labels',
|
|
112
|
+
:'policy' => :'policy',
|
|
113
|
+
:'hidden_fields' => :'hidden_fields',
|
|
111
114
|
:'ca_cert' => :'ca_cert',
|
|
112
115
|
:'client_cert' => :'client_cert',
|
|
113
116
|
:'tls_validation' => :'tls_validation',
|
|
114
117
|
:'proxy_url' => :'proxy_url',
|
|
115
|
-
:'pulp_labels' => :'pulp_labels',
|
|
116
|
-
:'download_concurrency' => :'download_concurrency',
|
|
117
118
|
:'max_retries' => :'max_retries',
|
|
118
|
-
:'policy' => :'policy',
|
|
119
119
|
:'total_timeout' => :'total_timeout',
|
|
120
120
|
:'connect_timeout' => :'connect_timeout',
|
|
121
121
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
122
122
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
123
123
|
:'headers' => :'headers',
|
|
124
|
-
:'
|
|
125
|
-
:'
|
|
124
|
+
:'download_concurrency' => :'download_concurrency',
|
|
125
|
+
:'rate_limit' => :'rate_limit'
|
|
126
126
|
}
|
|
127
127
|
end
|
|
128
128
|
|
|
@@ -140,21 +140,21 @@ module PulpMavenClient
|
|
|
140
140
|
:'pulp_last_updated' => :'Time',
|
|
141
141
|
:'name' => :'String',
|
|
142
142
|
:'url' => :'String',
|
|
143
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
144
|
+
:'policy' => :'PolicyEnum',
|
|
145
|
+
:'hidden_fields' => :'Array<MavenMavenRemoteResponseHiddenFieldsInner>',
|
|
143
146
|
:'ca_cert' => :'String',
|
|
144
147
|
:'client_cert' => :'String',
|
|
145
148
|
:'tls_validation' => :'Boolean',
|
|
146
149
|
:'proxy_url' => :'String',
|
|
147
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
148
|
-
:'download_concurrency' => :'Integer',
|
|
149
150
|
:'max_retries' => :'Integer',
|
|
150
|
-
:'policy' => :'PolicyEnum',
|
|
151
151
|
:'total_timeout' => :'Float',
|
|
152
152
|
:'connect_timeout' => :'Float',
|
|
153
153
|
:'sock_connect_timeout' => :'Float',
|
|
154
154
|
:'sock_read_timeout' => :'Float',
|
|
155
155
|
:'headers' => :'Array<Object>',
|
|
156
|
-
:'
|
|
157
|
-
:'
|
|
156
|
+
:'download_concurrency' => :'Integer',
|
|
157
|
+
:'rate_limit' => :'Integer'
|
|
158
158
|
}
|
|
159
159
|
end
|
|
160
160
|
|
|
@@ -164,13 +164,13 @@ module PulpMavenClient
|
|
|
164
164
|
:'ca_cert',
|
|
165
165
|
:'client_cert',
|
|
166
166
|
:'proxy_url',
|
|
167
|
-
:'download_concurrency',
|
|
168
167
|
:'max_retries',
|
|
169
168
|
:'total_timeout',
|
|
170
169
|
:'connect_timeout',
|
|
171
170
|
:'sock_connect_timeout',
|
|
172
171
|
:'sock_read_timeout',
|
|
173
|
-
:'
|
|
172
|
+
:'download_concurrency',
|
|
173
|
+
:'rate_limit'
|
|
174
174
|
])
|
|
175
175
|
end
|
|
176
176
|
|
|
@@ -217,6 +217,22 @@ module PulpMavenClient
|
|
|
217
217
|
self.url = nil
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
+
if attributes.key?(:'pulp_labels')
|
|
221
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
222
|
+
self.pulp_labels = value
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'policy')
|
|
227
|
+
self.policy = attributes[:'policy']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'hidden_fields')
|
|
231
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
232
|
+
self.hidden_fields = value
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
220
236
|
if attributes.key?(:'ca_cert')
|
|
221
237
|
self.ca_cert = attributes[:'ca_cert']
|
|
222
238
|
end
|
|
@@ -233,24 +249,10 @@ module PulpMavenClient
|
|
|
233
249
|
self.proxy_url = attributes[:'proxy_url']
|
|
234
250
|
end
|
|
235
251
|
|
|
236
|
-
if attributes.key?(:'pulp_labels')
|
|
237
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
238
|
-
self.pulp_labels = value
|
|
239
|
-
end
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
if attributes.key?(:'download_concurrency')
|
|
243
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
|
244
|
-
end
|
|
245
|
-
|
|
246
252
|
if attributes.key?(:'max_retries')
|
|
247
253
|
self.max_retries = attributes[:'max_retries']
|
|
248
254
|
end
|
|
249
255
|
|
|
250
|
-
if attributes.key?(:'policy')
|
|
251
|
-
self.policy = attributes[:'policy']
|
|
252
|
-
end
|
|
253
|
-
|
|
254
256
|
if attributes.key?(:'total_timeout')
|
|
255
257
|
self.total_timeout = attributes[:'total_timeout']
|
|
256
258
|
end
|
|
@@ -273,14 +275,12 @@ module PulpMavenClient
|
|
|
273
275
|
end
|
|
274
276
|
end
|
|
275
277
|
|
|
276
|
-
if attributes.key?(:'
|
|
277
|
-
self.
|
|
278
|
+
if attributes.key?(:'download_concurrency')
|
|
279
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
278
280
|
end
|
|
279
281
|
|
|
280
|
-
if attributes.key?(:'
|
|
281
|
-
|
|
282
|
-
self.hidden_fields = value
|
|
283
|
-
end
|
|
282
|
+
if attributes.key?(:'rate_limit')
|
|
283
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
284
284
|
end
|
|
285
285
|
end
|
|
286
286
|
|
|
@@ -313,6 +313,10 @@ module PulpMavenClient
|
|
|
313
313
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
314
314
|
end
|
|
315
315
|
|
|
316
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
317
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
318
|
+
end
|
|
319
|
+
|
|
316
320
|
invalid_properties
|
|
317
321
|
end
|
|
318
322
|
|
|
@@ -326,6 +330,7 @@ module PulpMavenClient
|
|
|
326
330
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
327
331
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
328
332
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
333
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
329
334
|
true
|
|
330
335
|
end
|
|
331
336
|
|
|
@@ -369,6 +374,16 @@ module PulpMavenClient
|
|
|
369
374
|
@sock_read_timeout = sock_read_timeout
|
|
370
375
|
end
|
|
371
376
|
|
|
377
|
+
# Custom attribute writer method with validation
|
|
378
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
379
|
+
def download_concurrency=(download_concurrency)
|
|
380
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
381
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
@download_concurrency = download_concurrency
|
|
385
|
+
end
|
|
386
|
+
|
|
372
387
|
# Checks equality by comparing each attribute.
|
|
373
388
|
# @param [Object] Object to be compared
|
|
374
389
|
def ==(o)
|
|
@@ -380,21 +395,21 @@ module PulpMavenClient
|
|
|
380
395
|
pulp_last_updated == o.pulp_last_updated &&
|
|
381
396
|
name == o.name &&
|
|
382
397
|
url == o.url &&
|
|
398
|
+
pulp_labels == o.pulp_labels &&
|
|
399
|
+
policy == o.policy &&
|
|
400
|
+
hidden_fields == o.hidden_fields &&
|
|
383
401
|
ca_cert == o.ca_cert &&
|
|
384
402
|
client_cert == o.client_cert &&
|
|
385
403
|
tls_validation == o.tls_validation &&
|
|
386
404
|
proxy_url == o.proxy_url &&
|
|
387
|
-
pulp_labels == o.pulp_labels &&
|
|
388
|
-
download_concurrency == o.download_concurrency &&
|
|
389
405
|
max_retries == o.max_retries &&
|
|
390
|
-
policy == o.policy &&
|
|
391
406
|
total_timeout == o.total_timeout &&
|
|
392
407
|
connect_timeout == o.connect_timeout &&
|
|
393
408
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
394
409
|
sock_read_timeout == o.sock_read_timeout &&
|
|
395
410
|
headers == o.headers &&
|
|
396
|
-
|
|
397
|
-
|
|
411
|
+
download_concurrency == o.download_concurrency &&
|
|
412
|
+
rate_limit == o.rate_limit
|
|
398
413
|
end
|
|
399
414
|
|
|
400
415
|
# @see the `==` method
|
|
@@ -406,7 +421,7 @@ module PulpMavenClient
|
|
|
406
421
|
# Calculates hash code according to all attributes.
|
|
407
422
|
# @return [Integer] Hash code
|
|
408
423
|
def hash
|
|
409
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name, url,
|
|
424
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit].hash
|
|
410
425
|
end
|
|
411
426
|
|
|
412
427
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module PulpMavenClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
@@ -37,6 +40,7 @@ module PulpMavenClient
|
|
|
37
40
|
:'name' => :'name',
|
|
38
41
|
:'description' => :'description',
|
|
39
42
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
43
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
40
44
|
:'remote' => :'remote'
|
|
41
45
|
}
|
|
42
46
|
end
|
|
@@ -53,6 +57,7 @@ module PulpMavenClient
|
|
|
53
57
|
:'name' => :'String',
|
|
54
58
|
:'description' => :'String',
|
|
55
59
|
:'retain_repo_versions' => :'Integer',
|
|
60
|
+
:'retain_checkpoints' => :'Integer',
|
|
56
61
|
:'remote' => :'String'
|
|
57
62
|
}
|
|
58
63
|
end
|
|
@@ -62,6 +67,7 @@ module PulpMavenClient
|
|
|
62
67
|
Set.new([
|
|
63
68
|
:'description',
|
|
64
69
|
:'retain_repo_versions',
|
|
70
|
+
:'retain_checkpoints',
|
|
65
71
|
:'remote'
|
|
66
72
|
])
|
|
67
73
|
end
|
|
@@ -101,6 +107,10 @@ module PulpMavenClient
|
|
|
101
107
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
102
108
|
end
|
|
103
109
|
|
|
110
|
+
if attributes.key?(:'retain_checkpoints')
|
|
111
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
112
|
+
end
|
|
113
|
+
|
|
104
114
|
if attributes.key?(:'remote')
|
|
105
115
|
self.remote = attributes[:'remote']
|
|
106
116
|
end
|
|
@@ -123,6 +133,14 @@ module PulpMavenClient
|
|
|
123
133
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
124
134
|
end
|
|
125
135
|
|
|
136
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
137
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
141
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
142
|
+
end
|
|
143
|
+
|
|
126
144
|
invalid_properties
|
|
127
145
|
end
|
|
128
146
|
|
|
@@ -133,6 +151,8 @@ module PulpMavenClient
|
|
|
133
151
|
return false if @name.nil?
|
|
134
152
|
return false if @name.to_s.length < 1
|
|
135
153
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
154
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
155
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
136
156
|
true
|
|
137
157
|
end
|
|
138
158
|
|
|
@@ -160,6 +180,26 @@ module PulpMavenClient
|
|
|
160
180
|
@description = description
|
|
161
181
|
end
|
|
162
182
|
|
|
183
|
+
# Custom attribute writer method with validation
|
|
184
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
185
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
186
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
187
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
@retain_repo_versions = retain_repo_versions
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Custom attribute writer method with validation
|
|
194
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
195
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
196
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
@retain_checkpoints = retain_checkpoints
|
|
201
|
+
end
|
|
202
|
+
|
|
163
203
|
# Checks equality by comparing each attribute.
|
|
164
204
|
# @param [Object] Object to be compared
|
|
165
205
|
def ==(o)
|
|
@@ -169,6 +209,7 @@ module PulpMavenClient
|
|
|
169
209
|
name == o.name &&
|
|
170
210
|
description == o.description &&
|
|
171
211
|
retain_repo_versions == o.retain_repo_versions &&
|
|
212
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
172
213
|
remote == o.remote
|
|
173
214
|
end
|
|
174
215
|
|
|
@@ -181,7 +222,7 @@ module PulpMavenClient
|
|
|
181
222
|
# Calculates hash code according to all attributes.
|
|
182
223
|
# @return [Integer] Hash code
|
|
183
224
|
def hash
|
|
184
|
-
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
|
225
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote].hash
|
|
185
226
|
end
|
|
186
227
|
|
|
187
228
|
# Builds the object from hash
|
|
@@ -42,6 +42,9 @@ module PulpMavenClient
|
|
|
42
42
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
43
43
|
attr_accessor :retain_repo_versions
|
|
44
44
|
|
|
45
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
46
|
+
attr_accessor :retain_checkpoints
|
|
47
|
+
|
|
45
48
|
# An optional remote to use by default when syncing.
|
|
46
49
|
attr_accessor :remote
|
|
47
50
|
|
|
@@ -58,6 +61,7 @@ module PulpMavenClient
|
|
|
58
61
|
:'name' => :'name',
|
|
59
62
|
:'description' => :'description',
|
|
60
63
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
64
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
61
65
|
:'remote' => :'remote'
|
|
62
66
|
}
|
|
63
67
|
end
|
|
@@ -80,6 +84,7 @@ module PulpMavenClient
|
|
|
80
84
|
:'name' => :'String',
|
|
81
85
|
:'description' => :'String',
|
|
82
86
|
:'retain_repo_versions' => :'Integer',
|
|
87
|
+
:'retain_checkpoints' => :'Integer',
|
|
83
88
|
:'remote' => :'String'
|
|
84
89
|
}
|
|
85
90
|
end
|
|
@@ -89,6 +94,7 @@ module PulpMavenClient
|
|
|
89
94
|
Set.new([
|
|
90
95
|
:'description',
|
|
91
96
|
:'retain_repo_versions',
|
|
97
|
+
:'retain_checkpoints',
|
|
92
98
|
:'remote'
|
|
93
99
|
])
|
|
94
100
|
end
|
|
@@ -152,6 +158,10 @@ module PulpMavenClient
|
|
|
152
158
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
153
159
|
end
|
|
154
160
|
|
|
161
|
+
if attributes.key?(:'retain_checkpoints')
|
|
162
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
163
|
+
end
|
|
164
|
+
|
|
155
165
|
if attributes.key?(:'remote')
|
|
156
166
|
self.remote = attributes[:'remote']
|
|
157
167
|
end
|
|
@@ -166,6 +176,14 @@ module PulpMavenClient
|
|
|
166
176
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
167
177
|
end
|
|
168
178
|
|
|
179
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
180
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
184
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
185
|
+
end
|
|
186
|
+
|
|
169
187
|
invalid_properties
|
|
170
188
|
end
|
|
171
189
|
|
|
@@ -174,9 +192,31 @@ module PulpMavenClient
|
|
|
174
192
|
def valid?
|
|
175
193
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
176
194
|
return false if @name.nil?
|
|
195
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
196
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
177
197
|
true
|
|
178
198
|
end
|
|
179
199
|
|
|
200
|
+
# Custom attribute writer method with validation
|
|
201
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
202
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
203
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
204
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
@retain_repo_versions = retain_repo_versions
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Custom attribute writer method with validation
|
|
211
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
212
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
213
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
214
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@retain_checkpoints = retain_checkpoints
|
|
218
|
+
end
|
|
219
|
+
|
|
180
220
|
# Checks equality by comparing each attribute.
|
|
181
221
|
# @param [Object] Object to be compared
|
|
182
222
|
def ==(o)
|
|
@@ -192,6 +232,7 @@ module PulpMavenClient
|
|
|
192
232
|
name == o.name &&
|
|
193
233
|
description == o.description &&
|
|
194
234
|
retain_repo_versions == o.retain_repo_versions &&
|
|
235
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
195
236
|
remote == o.remote
|
|
196
237
|
end
|
|
197
238
|
|
|
@@ -204,7 +245,7 @@ module PulpMavenClient
|
|
|
204
245
|
# Calculates hash code according to all attributes.
|
|
205
246
|
# @return [Integer] Hash code
|
|
206
247
|
def hash
|
|
207
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
|
|
248
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote].hash
|
|
208
249
|
end
|
|
209
250
|
|
|
210
251
|
# Builds the object from hash
|
|
@@ -33,6 +33,9 @@ module PulpMavenClient
|
|
|
33
33
|
# The latest RepositoryVersion for this Repository will be served.
|
|
34
34
|
attr_accessor :repository
|
|
35
35
|
|
|
36
|
+
# RepositoryVersion to be served
|
|
37
|
+
attr_accessor :repository_version
|
|
38
|
+
|
|
36
39
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
37
40
|
attr_accessor :remote
|
|
38
41
|
|
|
@@ -45,6 +48,7 @@ module PulpMavenClient
|
|
|
45
48
|
:'pulp_labels' => :'pulp_labels',
|
|
46
49
|
:'name' => :'name',
|
|
47
50
|
:'repository' => :'repository',
|
|
51
|
+
:'repository_version' => :'repository_version',
|
|
48
52
|
:'remote' => :'remote'
|
|
49
53
|
}
|
|
50
54
|
end
|
|
@@ -63,6 +67,7 @@ module PulpMavenClient
|
|
|
63
67
|
:'pulp_labels' => :'Hash<String, String>',
|
|
64
68
|
:'name' => :'String',
|
|
65
69
|
:'repository' => :'String',
|
|
70
|
+
:'repository_version' => :'String',
|
|
66
71
|
:'remote' => :'String'
|
|
67
72
|
}
|
|
68
73
|
end
|
|
@@ -72,6 +77,7 @@ module PulpMavenClient
|
|
|
72
77
|
Set.new([
|
|
73
78
|
:'content_guard',
|
|
74
79
|
:'repository',
|
|
80
|
+
:'repository_version',
|
|
75
81
|
:'remote'
|
|
76
82
|
])
|
|
77
83
|
end
|
|
@@ -119,6 +125,10 @@ module PulpMavenClient
|
|
|
119
125
|
self.repository = attributes[:'repository']
|
|
120
126
|
end
|
|
121
127
|
|
|
128
|
+
if attributes.key?(:'repository_version')
|
|
129
|
+
self.repository_version = attributes[:'repository_version']
|
|
130
|
+
end
|
|
131
|
+
|
|
122
132
|
if attributes.key?(:'remote')
|
|
123
133
|
self.remote = attributes[:'remote']
|
|
124
134
|
end
|
|
@@ -188,6 +198,7 @@ module PulpMavenClient
|
|
|
188
198
|
pulp_labels == o.pulp_labels &&
|
|
189
199
|
name == o.name &&
|
|
190
200
|
repository == o.repository &&
|
|
201
|
+
repository_version == o.repository_version &&
|
|
191
202
|
remote == o.remote
|
|
192
203
|
end
|
|
193
204
|
|
|
@@ -200,7 +211,7 @@ module PulpMavenClient
|
|
|
200
211
|
# Calculates hash code according to all attributes.
|
|
201
212
|
# @return [Integer] Hash code
|
|
202
213
|
def hash
|
|
203
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository, remote].hash
|
|
214
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, remote].hash
|
|
204
215
|
end
|
|
205
216
|
|
|
206
217
|
# Builds the object from hash
|