pulp_maven_client 0.12.0 → 0.13.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 +4 -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 +20 -4
- 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 +29 -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/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/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 +10 -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
- metadata +24 -24
|
@@ -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
|
|
@@ -22,6 +22,11 @@ module PulpMavenClient
|
|
|
22
22
|
# The URL of an external content source.
|
|
23
23
|
attr_accessor :url
|
|
24
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
27
|
+
# The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.
|
|
28
|
+
attr_accessor :policy
|
|
29
|
+
|
|
25
30
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
26
31
|
attr_accessor :ca_cert
|
|
27
32
|
|
|
@@ -49,17 +54,9 @@ module PulpMavenClient
|
|
|
49
54
|
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
|
50
55
|
attr_accessor :password
|
|
51
56
|
|
|
52
|
-
attr_accessor :pulp_labels
|
|
53
|
-
|
|
54
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
55
|
-
attr_accessor :download_concurrency
|
|
56
|
-
|
|
57
57
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
58
58
|
attr_accessor :max_retries
|
|
59
59
|
|
|
60
|
-
# The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.
|
|
61
|
-
attr_accessor :policy
|
|
62
|
-
|
|
63
60
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
64
61
|
attr_accessor :total_timeout
|
|
65
62
|
|
|
@@ -75,6 +72,9 @@ module PulpMavenClient
|
|
|
75
72
|
# Headers for aiohttp.Clientsession
|
|
76
73
|
attr_accessor :headers
|
|
77
74
|
|
|
75
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
76
|
+
attr_accessor :download_concurrency
|
|
77
|
+
|
|
78
78
|
# Limits requests per second for each concurrent downloader
|
|
79
79
|
attr_accessor :rate_limit
|
|
80
80
|
|
|
@@ -105,6 +105,8 @@ module PulpMavenClient
|
|
|
105
105
|
{
|
|
106
106
|
:'name' => :'name',
|
|
107
107
|
:'url' => :'url',
|
|
108
|
+
:'pulp_labels' => :'pulp_labels',
|
|
109
|
+
:'policy' => :'policy',
|
|
108
110
|
:'ca_cert' => :'ca_cert',
|
|
109
111
|
:'client_cert' => :'client_cert',
|
|
110
112
|
:'client_key' => :'client_key',
|
|
@@ -114,15 +116,13 @@ module PulpMavenClient
|
|
|
114
116
|
:'proxy_password' => :'proxy_password',
|
|
115
117
|
:'username' => :'username',
|
|
116
118
|
:'password' => :'password',
|
|
117
|
-
:'pulp_labels' => :'pulp_labels',
|
|
118
|
-
:'download_concurrency' => :'download_concurrency',
|
|
119
119
|
:'max_retries' => :'max_retries',
|
|
120
|
-
:'policy' => :'policy',
|
|
121
120
|
:'total_timeout' => :'total_timeout',
|
|
122
121
|
:'connect_timeout' => :'connect_timeout',
|
|
123
122
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
124
123
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
125
124
|
:'headers' => :'headers',
|
|
125
|
+
:'download_concurrency' => :'download_concurrency',
|
|
126
126
|
:'rate_limit' => :'rate_limit'
|
|
127
127
|
}
|
|
128
128
|
end
|
|
@@ -137,6 +137,8 @@ module PulpMavenClient
|
|
|
137
137
|
{
|
|
138
138
|
:'name' => :'String',
|
|
139
139
|
:'url' => :'String',
|
|
140
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
141
|
+
:'policy' => :'PolicyEnum',
|
|
140
142
|
:'ca_cert' => :'String',
|
|
141
143
|
:'client_cert' => :'String',
|
|
142
144
|
:'client_key' => :'String',
|
|
@@ -146,15 +148,13 @@ module PulpMavenClient
|
|
|
146
148
|
:'proxy_password' => :'String',
|
|
147
149
|
:'username' => :'String',
|
|
148
150
|
:'password' => :'String',
|
|
149
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
150
|
-
:'download_concurrency' => :'Integer',
|
|
151
151
|
:'max_retries' => :'Integer',
|
|
152
|
-
:'policy' => :'PolicyEnum',
|
|
153
152
|
:'total_timeout' => :'Float',
|
|
154
153
|
:'connect_timeout' => :'Float',
|
|
155
154
|
:'sock_connect_timeout' => :'Float',
|
|
156
155
|
:'sock_read_timeout' => :'Float',
|
|
157
156
|
:'headers' => :'Array<Object>',
|
|
157
|
+
:'download_concurrency' => :'Integer',
|
|
158
158
|
:'rate_limit' => :'Integer'
|
|
159
159
|
}
|
|
160
160
|
end
|
|
@@ -170,12 +170,12 @@ module PulpMavenClient
|
|
|
170
170
|
:'proxy_password',
|
|
171
171
|
:'username',
|
|
172
172
|
:'password',
|
|
173
|
-
:'download_concurrency',
|
|
174
173
|
:'max_retries',
|
|
175
174
|
:'total_timeout',
|
|
176
175
|
:'connect_timeout',
|
|
177
176
|
:'sock_connect_timeout',
|
|
178
177
|
:'sock_read_timeout',
|
|
178
|
+
:'download_concurrency',
|
|
179
179
|
:'rate_limit'
|
|
180
180
|
])
|
|
181
181
|
end
|
|
@@ -203,6 +203,16 @@ module PulpMavenClient
|
|
|
203
203
|
self.url = attributes[:'url']
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
+
if attributes.key?(:'pulp_labels')
|
|
207
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
208
|
+
self.pulp_labels = value
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'policy')
|
|
213
|
+
self.policy = attributes[:'policy']
|
|
214
|
+
end
|
|
215
|
+
|
|
206
216
|
if attributes.key?(:'ca_cert')
|
|
207
217
|
self.ca_cert = attributes[:'ca_cert']
|
|
208
218
|
end
|
|
@@ -239,24 +249,10 @@ module PulpMavenClient
|
|
|
239
249
|
self.password = attributes[:'password']
|
|
240
250
|
end
|
|
241
251
|
|
|
242
|
-
if attributes.key?(:'pulp_labels')
|
|
243
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
244
|
-
self.pulp_labels = value
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
|
|
248
|
-
if attributes.key?(:'download_concurrency')
|
|
249
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
|
250
|
-
end
|
|
251
|
-
|
|
252
252
|
if attributes.key?(:'max_retries')
|
|
253
253
|
self.max_retries = attributes[:'max_retries']
|
|
254
254
|
end
|
|
255
255
|
|
|
256
|
-
if attributes.key?(:'policy')
|
|
257
|
-
self.policy = attributes[:'policy']
|
|
258
|
-
end
|
|
259
|
-
|
|
260
256
|
if attributes.key?(:'total_timeout')
|
|
261
257
|
self.total_timeout = attributes[:'total_timeout']
|
|
262
258
|
end
|
|
@@ -279,6 +275,10 @@ module PulpMavenClient
|
|
|
279
275
|
end
|
|
280
276
|
end
|
|
281
277
|
|
|
278
|
+
if attributes.key?(:'download_concurrency')
|
|
279
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
280
|
+
end
|
|
281
|
+
|
|
282
282
|
if attributes.key?(:'rate_limit')
|
|
283
283
|
self.rate_limit = attributes[:'rate_limit']
|
|
284
284
|
end
|
|
@@ -345,6 +345,10 @@ module PulpMavenClient
|
|
|
345
345
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
346
346
|
end
|
|
347
347
|
|
|
348
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
349
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
350
|
+
end
|
|
351
|
+
|
|
348
352
|
invalid_properties
|
|
349
353
|
end
|
|
350
354
|
|
|
@@ -366,6 +370,7 @@ module PulpMavenClient
|
|
|
366
370
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
367
371
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
368
372
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
373
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
369
374
|
true
|
|
370
375
|
end
|
|
371
376
|
|
|
@@ -517,6 +522,16 @@ module PulpMavenClient
|
|
|
517
522
|
@sock_read_timeout = sock_read_timeout
|
|
518
523
|
end
|
|
519
524
|
|
|
525
|
+
# Custom attribute writer method with validation
|
|
526
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
527
|
+
def download_concurrency=(download_concurrency)
|
|
528
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
529
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
@download_concurrency = download_concurrency
|
|
533
|
+
end
|
|
534
|
+
|
|
520
535
|
# Checks equality by comparing each attribute.
|
|
521
536
|
# @param [Object] Object to be compared
|
|
522
537
|
def ==(o)
|
|
@@ -524,6 +539,8 @@ module PulpMavenClient
|
|
|
524
539
|
self.class == o.class &&
|
|
525
540
|
name == o.name &&
|
|
526
541
|
url == o.url &&
|
|
542
|
+
pulp_labels == o.pulp_labels &&
|
|
543
|
+
policy == o.policy &&
|
|
527
544
|
ca_cert == o.ca_cert &&
|
|
528
545
|
client_cert == o.client_cert &&
|
|
529
546
|
client_key == o.client_key &&
|
|
@@ -533,15 +550,13 @@ module PulpMavenClient
|
|
|
533
550
|
proxy_password == o.proxy_password &&
|
|
534
551
|
username == o.username &&
|
|
535
552
|
password == o.password &&
|
|
536
|
-
pulp_labels == o.pulp_labels &&
|
|
537
|
-
download_concurrency == o.download_concurrency &&
|
|
538
553
|
max_retries == o.max_retries &&
|
|
539
|
-
policy == o.policy &&
|
|
540
554
|
total_timeout == o.total_timeout &&
|
|
541
555
|
connect_timeout == o.connect_timeout &&
|
|
542
556
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
543
557
|
sock_read_timeout == o.sock_read_timeout &&
|
|
544
558
|
headers == o.headers &&
|
|
559
|
+
download_concurrency == o.download_concurrency &&
|
|
545
560
|
rate_limit == o.rate_limit
|
|
546
561
|
end
|
|
547
562
|
|
|
@@ -554,7 +569,7 @@ module PulpMavenClient
|
|
|
554
569
|
# Calculates hash code according to all attributes.
|
|
555
570
|
# @return [Integer] Hash code
|
|
556
571
|
def hash
|
|
557
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password,
|
|
572
|
+
[name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit].hash
|
|
558
573
|
end
|
|
559
574
|
|
|
560
575
|
# 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
|
|
@@ -99,6 +105,10 @@ module PulpMavenClient
|
|
|
99
105
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
100
106
|
end
|
|
101
107
|
|
|
108
|
+
if attributes.key?(:'retain_checkpoints')
|
|
109
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
110
|
+
end
|
|
111
|
+
|
|
102
112
|
if attributes.key?(:'remote')
|
|
103
113
|
self.remote = attributes[:'remote']
|
|
104
114
|
end
|
|
@@ -117,6 +127,14 @@ module PulpMavenClient
|
|
|
117
127
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
118
128
|
end
|
|
119
129
|
|
|
130
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
131
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
135
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
136
|
+
end
|
|
137
|
+
|
|
120
138
|
invalid_properties
|
|
121
139
|
end
|
|
122
140
|
|
|
@@ -126,6 +144,8 @@ module PulpMavenClient
|
|
|
126
144
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
127
145
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
128
146
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
147
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
148
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
129
149
|
true
|
|
130
150
|
end
|
|
131
151
|
|
|
@@ -153,6 +173,26 @@ module PulpMavenClient
|
|
|
153
173
|
@description = description
|
|
154
174
|
end
|
|
155
175
|
|
|
176
|
+
# Custom attribute writer method with validation
|
|
177
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
178
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
179
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
180
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
@retain_repo_versions = retain_repo_versions
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Custom attribute writer method with validation
|
|
187
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
188
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
189
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
190
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
@retain_checkpoints = retain_checkpoints
|
|
194
|
+
end
|
|
195
|
+
|
|
156
196
|
# Checks equality by comparing each attribute.
|
|
157
197
|
# @param [Object] Object to be compared
|
|
158
198
|
def ==(o)
|
|
@@ -162,6 +202,7 @@ module PulpMavenClient
|
|
|
162
202
|
name == o.name &&
|
|
163
203
|
description == o.description &&
|
|
164
204
|
retain_repo_versions == o.retain_repo_versions &&
|
|
205
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
165
206
|
remote == o.remote
|
|
166
207
|
end
|
|
167
208
|
|
|
@@ -174,7 +215,7 @@ module PulpMavenClient
|
|
|
174
215
|
# Calculates hash code according to all attributes.
|
|
175
216
|
# @return [Integer] Hash code
|
|
176
217
|
def hash
|
|
177
|
-
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
|
218
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote].hash
|
|
178
219
|
end
|
|
179
220
|
|
|
180
221
|
# Builds the object from hash
|
|
@@ -89,11 +89,6 @@ module PulpMavenClient
|
|
|
89
89
|
invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
93
|
-
if @key !~ pattern
|
|
94
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
95
|
-
end
|
|
96
|
-
|
|
97
92
|
invalid_properties
|
|
98
93
|
end
|
|
99
94
|
|
|
@@ -103,7 +98,6 @@ module PulpMavenClient
|
|
|
103
98
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
99
|
return false if @key.nil?
|
|
105
100
|
return false if @key.to_s.length < 1
|
|
106
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
107
101
|
true
|
|
108
102
|
end
|
|
109
103
|
|
|
@@ -118,11 +112,6 @@ module PulpMavenClient
|
|
|
118
112
|
fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
|
|
119
113
|
end
|
|
120
114
|
|
|
121
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
122
|
-
if key !~ pattern
|
|
123
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
124
|
-
end
|
|
125
|
-
|
|
126
115
|
@key = key
|
|
127
116
|
end
|
|
128
117
|
|
|
@@ -85,11 +85,6 @@ module PulpMavenClient
|
|
|
85
85
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
89
|
-
if @key !~ pattern
|
|
90
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
91
|
-
end
|
|
92
|
-
|
|
93
88
|
invalid_properties
|
|
94
89
|
end
|
|
95
90
|
|
|
@@ -98,25 +93,9 @@ module PulpMavenClient
|
|
|
98
93
|
def valid?
|
|
99
94
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
100
95
|
return false if @key.nil?
|
|
101
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
102
96
|
true
|
|
103
97
|
end
|
|
104
98
|
|
|
105
|
-
# Custom attribute writer method with validation
|
|
106
|
-
# @param [Object] key Value to be assigned
|
|
107
|
-
def key=(key)
|
|
108
|
-
if key.nil?
|
|
109
|
-
fail ArgumentError, 'key cannot be nil'
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
113
|
-
if key !~ pattern
|
|
114
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
@key = key
|
|
118
|
-
end
|
|
119
|
-
|
|
120
99
|
# Checks equality by comparing each attribute.
|
|
121
100
|
# @param [Object] Object to be compared
|
|
122
101
|
def ==(o)
|