pulp_maven_client 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -31
- data/docs/ContentArtifactApi.md +37 -35
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsMavenApi.md +63 -61
- data/docs/MavenMavenArtifact.md +3 -13
- data/docs/MavenMavenArtifactResponse.md +29 -0
- data/docs/MavenMavenDistribution.md +1 -7
- data/docs/MavenMavenDistributionResponse.md +29 -0
- data/docs/MavenMavenRemote.md +18 -12
- data/docs/MavenMavenRemoteResponse.md +51 -0
- data/docs/MavenMavenRepository.md +4 -10
- data/docs/MavenMavenRepositoryResponse.md +29 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
- data/docs/PaginatedmavenMavenArtifactResponseList.md +23 -0
- data/docs/PaginatedmavenMavenDistributionResponseList.md +23 -0
- data/docs/PaginatedmavenMavenRemoteResponseList.md +23 -0
- data/docs/PaginatedmavenMavenRepositoryResponseList.md +23 -0
- data/docs/PatchedmavenMavenDistribution.md +23 -0
- data/docs/PatchedmavenMavenRemote.md +45 -0
- data/docs/PatchedmavenMavenRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RemotesMavenApi.md +68 -66
- data/docs/RepositoriesMavenApi.md +60 -58
- data/docs/RepositoriesMavenVersionsApi.md +110 -53
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/lib/pulp_maven_client/api/content_artifact_api.rb +55 -52
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +94 -91
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +104 -101
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +97 -94
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +149 -78
- data/lib/pulp_maven_client/api_client.rb +3 -3
- data/lib/pulp_maven_client/api_error.rb +3 -3
- data/lib/pulp_maven_client/configuration.rb +6 -6
- data/lib/pulp_maven_client/models/async_operation_response.rb +4 -3
- data/lib/pulp_maven_client/models/content_summary.rb +10 -16
- data/lib/pulp_maven_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +15 -118
- data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +272 -0
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +5 -86
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +279 -0
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +111 -147
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +472 -0
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +19 -79
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +271 -0
- data/lib/pulp_maven_client/models/{inline_response200.rb → paginated_repository_version_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/{inline_response2002.rb → paginatedmaven_maven_artifact_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/{inline_response2004.rb → paginatedmaven_maven_distribution_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/{inline_response2003.rb → paginatedmaven_maven_remote_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +237 -0
- data/lib/pulp_maven_client/models/{inline_response2001.rb → patchedmaven_maven_distribution.rb} +38 -45
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +433 -0
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +229 -0
- data/lib/pulp_maven_client/models/policy_enum.rb +36 -0
- data/lib/pulp_maven_client/models/repository_version.rb +8 -44
- data/lib/pulp_maven_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_maven_client/version.rb +4 -4
- data/lib/pulp_maven_client.rb +18 -8
- data/pulp_maven_client.gemspec +5 -5
- data/spec/api/content_artifact_api_spec.rb +16 -15
- data/spec/api/distributions_maven_api_spec.rb +20 -19
- data/spec/api/remotes_maven_api_spec.rb +23 -22
- data/spec/api/repositories_maven_api_spec.rb +21 -20
- data/spec/api/repositories_maven_versions_api_spec.rb +36 -23
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +6 -6
- data/spec/models/async_operation_response_spec.rb +3 -3
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +3 -3
- data/spec/models/maven_maven_artifact_response_spec.rb +77 -0
- data/spec/models/maven_maven_artifact_spec.rb +4 -34
- data/spec/models/maven_maven_distribution_response_spec.rb +77 -0
- data/spec/models/maven_maven_distribution_spec.rb +3 -21
- data/spec/models/maven_maven_remote_response_spec.rb +143 -0
- data/spec/models/maven_maven_remote_spec.rb +33 -19
- data/spec/models/maven_maven_repository_response_spec.rb +77 -0
- data/spec/models/maven_maven_repository_spec.rb +6 -24
- data/spec/models/{inline_response2002_spec.rb → paginated_repository_version_response_list_spec.rb} +9 -9
- data/spec/models/{inline_response2003_spec.rb → paginatedmaven_maven_artifact_response_list_spec.rb} +9 -9
- data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +59 -0
- data/spec/models/{inline_response2001_spec.rb → paginatedmaven_maven_remote_response_list_spec.rb} +9 -9
- data/spec/models/{inline_response2004_spec.rb → paginatedmaven_maven_repository_response_list_spec.rb} +9 -9
- data/spec/models/patchedmaven_maven_distribution_spec.rb +59 -0
- data/spec/models/patchedmaven_maven_remote_spec.rb +125 -0
- data/spec/models/{inline_response200_spec.rb → patchedmaven_maven_repository_spec.rb} +12 -18
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +3 -27
- data/spec/spec_helper.rb +3 -3
- metadata +70 -30
- data/docs/InlineResponse200.md +0 -23
- data/docs/InlineResponse2001.md +0 -23
- data/docs/InlineResponse2002.md +0 -23
- data/docs/InlineResponse2003.md +0 -23
- data/docs/InlineResponse2004.md +0 -23
@@ -1,37 +1,33 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpMavenClient
|
16
|
+
# A Serializer for MavenRemote. Add any new fields if defined on MavenRemote. Similar to the example above, in MavenArtifactSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RemoteSerializer.Meta.validators + [myValidator1, myValidator2]
|
16
17
|
class MavenMavenRemote
|
17
|
-
attr_accessor :pulp_href
|
18
|
-
|
19
|
-
# Timestamp of creation.
|
20
|
-
attr_accessor :pulp_created
|
21
|
-
|
22
18
|
# A unique name for this remote.
|
23
19
|
attr_accessor :name
|
24
20
|
|
25
21
|
# The URL of an external content source.
|
26
22
|
attr_accessor :url
|
27
23
|
|
28
|
-
# A
|
24
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
29
25
|
attr_accessor :ca_cert
|
30
26
|
|
31
|
-
# A
|
27
|
+
# A PEM encoded client certificate used for authentication.
|
32
28
|
attr_accessor :client_cert
|
33
29
|
|
34
|
-
# A PEM encoded private key used for authentication.
|
30
|
+
# A PEM encoded private key used for authentication.
|
35
31
|
attr_accessor :client_key
|
36
32
|
|
37
33
|
# If True, TLS peer validation must be performed.
|
@@ -40,8 +36,11 @@ module PulpMavenClient
|
|
40
36
|
# The proxy URL. Format: scheme://user:password@host:port
|
41
37
|
attr_accessor :proxy_url
|
42
38
|
|
43
|
-
#
|
44
|
-
attr_accessor :
|
39
|
+
# The username to be used for authentication when syncing.
|
40
|
+
attr_accessor :username
|
41
|
+
|
42
|
+
# The password to be used for authentication when syncing.
|
43
|
+
attr_accessor :password
|
45
44
|
|
46
45
|
# Total number of simultaneous connections.
|
47
46
|
attr_accessor :download_concurrency
|
@@ -49,33 +48,21 @@ module PulpMavenClient
|
|
49
48
|
# The policy to use when downloading content.
|
50
49
|
attr_accessor :policy
|
51
50
|
|
52
|
-
|
53
|
-
|
54
|
-
attr_reader :allowable_values
|
55
|
-
|
56
|
-
def initialize(datatype, allowable_values)
|
57
|
-
@allowable_values = allowable_values.map do |value|
|
58
|
-
case datatype.to_s
|
59
|
-
when /Integer/i
|
60
|
-
value.to_i
|
61
|
-
when /Float/i
|
62
|
-
value.to_f
|
63
|
-
else
|
64
|
-
value
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
51
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
52
|
+
attr_accessor :total_timeout
|
68
53
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
54
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
55
|
+
attr_accessor :connect_timeout
|
56
|
+
|
57
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
58
|
+
attr_accessor :sock_connect_timeout
|
59
|
+
|
60
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
61
|
+
attr_accessor :sock_read_timeout
|
73
62
|
|
74
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
75
64
|
def self.attribute_map
|
76
65
|
{
|
77
|
-
:'pulp_href' => :'pulp_href',
|
78
|
-
:'pulp_created' => :'pulp_created',
|
79
66
|
:'name' => :'name',
|
80
67
|
:'url' => :'url',
|
81
68
|
:'ca_cert' => :'ca_cert',
|
@@ -83,17 +70,20 @@ module PulpMavenClient
|
|
83
70
|
:'client_key' => :'client_key',
|
84
71
|
:'tls_validation' => :'tls_validation',
|
85
72
|
:'proxy_url' => :'proxy_url',
|
86
|
-
:'
|
73
|
+
:'username' => :'username',
|
74
|
+
:'password' => :'password',
|
87
75
|
:'download_concurrency' => :'download_concurrency',
|
88
|
-
:'policy' => :'policy'
|
76
|
+
:'policy' => :'policy',
|
77
|
+
:'total_timeout' => :'total_timeout',
|
78
|
+
:'connect_timeout' => :'connect_timeout',
|
79
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
80
|
+
:'sock_read_timeout' => :'sock_read_timeout'
|
89
81
|
}
|
90
82
|
end
|
91
83
|
|
92
84
|
# Attribute type mapping.
|
93
85
|
def self.openapi_types
|
94
86
|
{
|
95
|
-
:'pulp_href' => :'String',
|
96
|
-
:'pulp_created' => :'DateTime',
|
97
87
|
:'name' => :'String',
|
98
88
|
:'url' => :'String',
|
99
89
|
:'ca_cert' => :'String',
|
@@ -101,9 +91,14 @@ module PulpMavenClient
|
|
101
91
|
:'client_key' => :'String',
|
102
92
|
:'tls_validation' => :'Boolean',
|
103
93
|
:'proxy_url' => :'String',
|
104
|
-
:'
|
94
|
+
:'username' => :'String',
|
95
|
+
:'password' => :'String',
|
105
96
|
:'download_concurrency' => :'Integer',
|
106
|
-
:'policy' => :'
|
97
|
+
:'policy' => :'PolicyEnum',
|
98
|
+
:'total_timeout' => :'Float',
|
99
|
+
:'connect_timeout' => :'Float',
|
100
|
+
:'sock_connect_timeout' => :'Float',
|
101
|
+
:'sock_read_timeout' => :'Float'
|
107
102
|
}
|
108
103
|
end
|
109
104
|
|
@@ -114,6 +109,12 @@ module PulpMavenClient
|
|
114
109
|
:'client_cert',
|
115
110
|
:'client_key',
|
116
111
|
:'proxy_url',
|
112
|
+
:'username',
|
113
|
+
:'password',
|
114
|
+
:'total_timeout',
|
115
|
+
:'connect_timeout',
|
116
|
+
:'sock_connect_timeout',
|
117
|
+
:'sock_read_timeout'
|
117
118
|
])
|
118
119
|
end
|
119
120
|
|
@@ -132,14 +133,6 @@ module PulpMavenClient
|
|
132
133
|
h[k.to_sym] = v
|
133
134
|
}
|
134
135
|
|
135
|
-
if attributes.key?(:'pulp_href')
|
136
|
-
self.pulp_href = attributes[:'pulp_href']
|
137
|
-
end
|
138
|
-
|
139
|
-
if attributes.key?(:'pulp_created')
|
140
|
-
self.pulp_created = attributes[:'pulp_created']
|
141
|
-
end
|
142
|
-
|
143
136
|
if attributes.key?(:'name')
|
144
137
|
self.name = attributes[:'name']
|
145
138
|
end
|
@@ -168,8 +161,12 @@ module PulpMavenClient
|
|
168
161
|
self.proxy_url = attributes[:'proxy_url']
|
169
162
|
end
|
170
163
|
|
171
|
-
if attributes.key?(:'
|
172
|
-
self.
|
164
|
+
if attributes.key?(:'username')
|
165
|
+
self.username = attributes[:'username']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'password')
|
169
|
+
self.password = attributes[:'password']
|
173
170
|
end
|
174
171
|
|
175
172
|
if attributes.key?(:'download_concurrency')
|
@@ -178,8 +175,22 @@ module PulpMavenClient
|
|
178
175
|
|
179
176
|
if attributes.key?(:'policy')
|
180
177
|
self.policy = attributes[:'policy']
|
181
|
-
|
182
|
-
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'total_timeout')
|
181
|
+
self.total_timeout = attributes[:'total_timeout']
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.key?(:'connect_timeout')
|
185
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.key?(:'sock_connect_timeout')
|
189
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
190
|
+
end
|
191
|
+
|
192
|
+
if attributes.key?(:'sock_read_timeout')
|
193
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
183
194
|
end
|
184
195
|
end
|
185
196
|
|
@@ -191,36 +202,28 @@ module PulpMavenClient
|
|
191
202
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
192
203
|
end
|
193
204
|
|
194
|
-
if @name.to_s.length < 1
|
195
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
196
|
-
end
|
197
|
-
|
198
205
|
if @url.nil?
|
199
206
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
200
207
|
end
|
201
208
|
|
202
|
-
if
|
203
|
-
invalid_properties.push('invalid value for "
|
204
|
-
end
|
205
|
-
|
206
|
-
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
207
|
-
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
209
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
210
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
208
211
|
end
|
209
212
|
|
210
|
-
if !@
|
211
|
-
invalid_properties.push('invalid value for "
|
213
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
214
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
212
215
|
end
|
213
216
|
|
214
|
-
if !@
|
215
|
-
invalid_properties.push('invalid value for "
|
217
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
218
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
216
219
|
end
|
217
220
|
|
218
|
-
if !@
|
219
|
-
invalid_properties.push('invalid value for "
|
221
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
222
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
220
223
|
end
|
221
224
|
|
222
|
-
if !@
|
223
|
-
invalid_properties.push('invalid value for "
|
225
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
226
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
224
227
|
end
|
225
228
|
|
226
229
|
invalid_properties
|
@@ -230,105 +233,63 @@ module PulpMavenClient
|
|
230
233
|
# @return true if the model is valid
|
231
234
|
def valid?
|
232
235
|
return false if @name.nil?
|
233
|
-
return false if @name.to_s.length < 1
|
234
236
|
return false if @url.nil?
|
235
|
-
return false if @url.to_s.length < 1
|
236
|
-
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
237
|
-
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
238
|
-
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
239
|
-
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
240
237
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
241
|
-
|
242
|
-
return false
|
238
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
239
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
240
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
241
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
243
242
|
true
|
244
243
|
end
|
245
244
|
|
246
245
|
# Custom attribute writer method with validation
|
247
|
-
# @param [Object]
|
248
|
-
def
|
249
|
-
if
|
250
|
-
fail ArgumentError, '
|
251
|
-
end
|
252
|
-
|
253
|
-
if name.to_s.length < 1
|
254
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
255
|
-
end
|
256
|
-
|
257
|
-
@name = name
|
258
|
-
end
|
259
|
-
|
260
|
-
# Custom attribute writer method with validation
|
261
|
-
# @param [Object] url Value to be assigned
|
262
|
-
def url=(url)
|
263
|
-
if url.nil?
|
264
|
-
fail ArgumentError, 'url cannot be nil'
|
265
|
-
end
|
266
|
-
|
267
|
-
if url.to_s.length < 1
|
268
|
-
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
269
|
-
end
|
270
|
-
|
271
|
-
@url = url
|
272
|
-
end
|
273
|
-
|
274
|
-
# Custom attribute writer method with validation
|
275
|
-
# @param [Object] ca_cert Value to be assigned
|
276
|
-
def ca_cert=(ca_cert)
|
277
|
-
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
278
|
-
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
246
|
+
# @param [Object] download_concurrency Value to be assigned
|
247
|
+
def download_concurrency=(download_concurrency)
|
248
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
249
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
279
250
|
end
|
280
251
|
|
281
|
-
@
|
252
|
+
@download_concurrency = download_concurrency
|
282
253
|
end
|
283
254
|
|
284
255
|
# Custom attribute writer method with validation
|
285
|
-
# @param [Object]
|
286
|
-
def
|
287
|
-
if !
|
288
|
-
fail ArgumentError, 'invalid value for "
|
256
|
+
# @param [Object] total_timeout Value to be assigned
|
257
|
+
def total_timeout=(total_timeout)
|
258
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
259
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
289
260
|
end
|
290
261
|
|
291
|
-
@
|
262
|
+
@total_timeout = total_timeout
|
292
263
|
end
|
293
264
|
|
294
265
|
# Custom attribute writer method with validation
|
295
|
-
# @param [Object]
|
296
|
-
def
|
297
|
-
if !
|
298
|
-
fail ArgumentError, 'invalid value for "
|
266
|
+
# @param [Object] connect_timeout Value to be assigned
|
267
|
+
def connect_timeout=(connect_timeout)
|
268
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
269
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
299
270
|
end
|
300
271
|
|
301
|
-
@
|
272
|
+
@connect_timeout = connect_timeout
|
302
273
|
end
|
303
274
|
|
304
275
|
# Custom attribute writer method with validation
|
305
|
-
# @param [Object]
|
306
|
-
def
|
307
|
-
if !
|
308
|
-
fail ArgumentError, 'invalid value for "
|
276
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
277
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
278
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
279
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
309
280
|
end
|
310
281
|
|
311
|
-
@
|
282
|
+
@sock_connect_timeout = sock_connect_timeout
|
312
283
|
end
|
313
284
|
|
314
285
|
# Custom attribute writer method with validation
|
315
|
-
# @param [Object]
|
316
|
-
def
|
317
|
-
if !
|
318
|
-
fail ArgumentError, 'invalid value for "
|
286
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
287
|
+
def sock_read_timeout=(sock_read_timeout)
|
288
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
289
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
319
290
|
end
|
320
291
|
|
321
|
-
@
|
322
|
-
end
|
323
|
-
|
324
|
-
# Custom attribute writer method checking allowed values (enum).
|
325
|
-
# @param [Object] policy Object to be assigned
|
326
|
-
def policy=(policy)
|
327
|
-
validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
|
328
|
-
unless validator.valid?(policy)
|
329
|
-
fail ArgumentError, "invalid value for \"policy\", must be one of #{validator.allowable_values}."
|
330
|
-
end
|
331
|
-
@policy = policy
|
292
|
+
@sock_read_timeout = sock_read_timeout
|
332
293
|
end
|
333
294
|
|
334
295
|
# Checks equality by comparing each attribute.
|
@@ -336,8 +297,6 @@ module PulpMavenClient
|
|
336
297
|
def ==(o)
|
337
298
|
return true if self.equal?(o)
|
338
299
|
self.class == o.class &&
|
339
|
-
pulp_href == o.pulp_href &&
|
340
|
-
pulp_created == o.pulp_created &&
|
341
300
|
name == o.name &&
|
342
301
|
url == o.url &&
|
343
302
|
ca_cert == o.ca_cert &&
|
@@ -345,9 +304,14 @@ module PulpMavenClient
|
|
345
304
|
client_key == o.client_key &&
|
346
305
|
tls_validation == o.tls_validation &&
|
347
306
|
proxy_url == o.proxy_url &&
|
348
|
-
|
307
|
+
username == o.username &&
|
308
|
+
password == o.password &&
|
349
309
|
download_concurrency == o.download_concurrency &&
|
350
|
-
policy == o.policy
|
310
|
+
policy == o.policy &&
|
311
|
+
total_timeout == o.total_timeout &&
|
312
|
+
connect_timeout == o.connect_timeout &&
|
313
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
314
|
+
sock_read_timeout == o.sock_read_timeout
|
351
315
|
end
|
352
316
|
|
353
317
|
# @see the `==` method
|
@@ -359,7 +323,7 @@ module PulpMavenClient
|
|
359
323
|
# Calculates hash code according to all attributes.
|
360
324
|
# @return [Integer] Hash code
|
361
325
|
def hash
|
362
|
-
[
|
326
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout].hash
|
363
327
|
end
|
364
328
|
|
365
329
|
# Builds the object from hash
|