pulp_ansible_client 0.22.3 → 0.22.5
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/AnsibleCollectionVersion.md +5 -5
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/ContentCollectionVersionsApi.md +4 -4
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +18 -18
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +234 -234
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +150 -150
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +18 -18
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +230 -230
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +133 -133
@@ -15,64 +15,64 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# If True, TLS peer validation must be performed.
|
22
|
-
attr_accessor :tls_validation
|
18
|
+
# The proxy URL. Format: scheme://host:port
|
19
|
+
attr_accessor :proxy_url
|
23
20
|
|
24
21
|
attr_accessor :pulp_labels
|
25
22
|
|
26
23
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
27
24
|
attr_accessor :ca_cert
|
28
25
|
|
26
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
27
|
+
attr_accessor :total_timeout
|
28
|
+
|
29
29
|
# Timestamp of the most recent update of the remote.
|
30
30
|
attr_accessor :pulp_last_updated
|
31
31
|
|
32
32
|
# 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.
|
33
33
|
attr_accessor :sock_read_timeout
|
34
34
|
|
35
|
-
#
|
36
|
-
attr_accessor :
|
37
|
-
|
38
|
-
# A unique name for this remote.
|
39
|
-
attr_accessor :name
|
40
|
-
|
41
|
-
attr_accessor :pulp_href
|
42
|
-
|
43
|
-
# The proxy URL. Format: scheme://host:port
|
44
|
-
attr_accessor :proxy_url
|
45
|
-
|
46
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
47
|
-
attr_accessor :connect_timeout
|
48
|
-
|
49
|
-
# The URL of an external content source.
|
50
|
-
attr_accessor :url
|
35
|
+
# A PEM encoded client certificate used for authentication.
|
36
|
+
attr_accessor :client_cert
|
51
37
|
|
52
|
-
#
|
53
|
-
attr_accessor :
|
38
|
+
# Timestamp of creation.
|
39
|
+
attr_accessor :pulp_created
|
54
40
|
|
55
41
|
# 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.
|
56
42
|
attr_accessor :sock_connect_timeout
|
57
43
|
|
58
|
-
#
|
59
|
-
attr_accessor :
|
44
|
+
# A unique name for this remote.
|
45
|
+
attr_accessor :name
|
60
46
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
47
|
+
# List of hidden (write only) fields
|
48
|
+
attr_accessor :hidden_fields
|
63
49
|
|
64
50
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
65
51
|
attr_accessor :max_retries
|
66
52
|
|
67
|
-
# A PEM encoded client certificate used for authentication.
|
68
|
-
attr_accessor :client_cert
|
69
|
-
|
70
53
|
# The Pulp Resource Name (PRN).
|
71
54
|
attr_accessor :prn
|
72
55
|
|
56
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
57
|
+
attr_accessor :download_concurrency
|
58
|
+
|
59
|
+
# Limits requests per second for each concurrent downloader
|
60
|
+
attr_accessor :rate_limit
|
61
|
+
|
62
|
+
# If True, TLS peer validation must be performed.
|
63
|
+
attr_accessor :tls_validation
|
64
|
+
|
65
|
+
# The URL of an external content source.
|
66
|
+
attr_accessor :url
|
67
|
+
|
73
68
|
# Headers for aiohttp.Clientsession
|
74
69
|
attr_accessor :headers
|
75
70
|
|
71
|
+
attr_accessor :pulp_href
|
72
|
+
|
73
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
74
|
+
attr_accessor :connect_timeout
|
75
|
+
|
76
76
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
77
77
|
attr_accessor :metadata_only
|
78
78
|
|
@@ -82,26 +82,26 @@ module PulpAnsibleClient
|
|
82
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
83
|
def self.attribute_map
|
84
84
|
{
|
85
|
-
:'
|
86
|
-
:'tls_validation' => :'tls_validation',
|
85
|
+
:'proxy_url' => :'proxy_url',
|
87
86
|
:'pulp_labels' => :'pulp_labels',
|
88
87
|
:'ca_cert' => :'ca_cert',
|
88
|
+
:'total_timeout' => :'total_timeout',
|
89
89
|
:'pulp_last_updated' => :'pulp_last_updated',
|
90
90
|
:'sock_read_timeout' => :'sock_read_timeout',
|
91
|
-
:'
|
92
|
-
:'name' => :'name',
|
93
|
-
:'pulp_href' => :'pulp_href',
|
94
|
-
:'proxy_url' => :'proxy_url',
|
95
|
-
:'connect_timeout' => :'connect_timeout',
|
96
|
-
:'url' => :'url',
|
97
|
-
:'rate_limit' => :'rate_limit',
|
98
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
99
|
-
:'total_timeout' => :'total_timeout',
|
91
|
+
:'client_cert' => :'client_cert',
|
100
92
|
:'pulp_created' => :'pulp_created',
|
93
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
94
|
+
:'name' => :'name',
|
95
|
+
:'hidden_fields' => :'hidden_fields',
|
101
96
|
:'max_retries' => :'max_retries',
|
102
|
-
:'client_cert' => :'client_cert',
|
103
97
|
:'prn' => :'prn',
|
98
|
+
:'download_concurrency' => :'download_concurrency',
|
99
|
+
:'rate_limit' => :'rate_limit',
|
100
|
+
:'tls_validation' => :'tls_validation',
|
101
|
+
:'url' => :'url',
|
104
102
|
:'headers' => :'headers',
|
103
|
+
:'pulp_href' => :'pulp_href',
|
104
|
+
:'connect_timeout' => :'connect_timeout',
|
105
105
|
:'metadata_only' => :'metadata_only',
|
106
106
|
:'git_ref' => :'git_ref'
|
107
107
|
}
|
@@ -110,26 +110,26 @@ module PulpAnsibleClient
|
|
110
110
|
# Attribute type mapping.
|
111
111
|
def self.openapi_types
|
112
112
|
{
|
113
|
-
:'
|
114
|
-
:'tls_validation' => :'Boolean',
|
113
|
+
:'proxy_url' => :'String',
|
115
114
|
:'pulp_labels' => :'Hash<String, String>',
|
116
115
|
:'ca_cert' => :'String',
|
116
|
+
:'total_timeout' => :'Float',
|
117
117
|
:'pulp_last_updated' => :'DateTime',
|
118
118
|
:'sock_read_timeout' => :'Float',
|
119
|
-
:'
|
120
|
-
:'name' => :'String',
|
121
|
-
:'pulp_href' => :'String',
|
122
|
-
:'proxy_url' => :'String',
|
123
|
-
:'connect_timeout' => :'Float',
|
124
|
-
:'url' => :'String',
|
125
|
-
:'rate_limit' => :'Integer',
|
126
|
-
:'sock_connect_timeout' => :'Float',
|
127
|
-
:'total_timeout' => :'Float',
|
119
|
+
:'client_cert' => :'String',
|
128
120
|
:'pulp_created' => :'DateTime',
|
121
|
+
:'sock_connect_timeout' => :'Float',
|
122
|
+
:'name' => :'String',
|
123
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
129
124
|
:'max_retries' => :'Integer',
|
130
|
-
:'client_cert' => :'String',
|
131
125
|
:'prn' => :'String',
|
126
|
+
:'download_concurrency' => :'Integer',
|
127
|
+
:'rate_limit' => :'Integer',
|
128
|
+
:'tls_validation' => :'Boolean',
|
129
|
+
:'url' => :'String',
|
132
130
|
:'headers' => :'Array<Object>',
|
131
|
+
:'pulp_href' => :'String',
|
132
|
+
:'connect_timeout' => :'Float',
|
133
133
|
:'metadata_only' => :'Boolean',
|
134
134
|
:'git_ref' => :'String'
|
135
135
|
}
|
@@ -138,16 +138,16 @@ module PulpAnsibleClient
|
|
138
138
|
# List of attributes with nullable: true
|
139
139
|
def self.openapi_nullable
|
140
140
|
Set.new([
|
141
|
-
:'
|
141
|
+
:'proxy_url',
|
142
142
|
:'ca_cert',
|
143
|
+
:'total_timeout',
|
143
144
|
:'sock_read_timeout',
|
144
|
-
:'
|
145
|
-
:'connect_timeout',
|
146
|
-
:'rate_limit',
|
145
|
+
:'client_cert',
|
147
146
|
:'sock_connect_timeout',
|
148
|
-
:'total_timeout',
|
149
147
|
:'max_retries',
|
150
|
-
:'
|
148
|
+
:'download_concurrency',
|
149
|
+
:'rate_limit',
|
150
|
+
:'connect_timeout',
|
151
151
|
])
|
152
152
|
end
|
153
153
|
|
@@ -166,12 +166,8 @@ module PulpAnsibleClient
|
|
166
166
|
h[k.to_sym] = v
|
167
167
|
}
|
168
168
|
|
169
|
-
if attributes.key?(:'
|
170
|
-
self.
|
171
|
-
end
|
172
|
-
|
173
|
-
if attributes.key?(:'tls_validation')
|
174
|
-
self.tls_validation = attributes[:'tls_validation']
|
169
|
+
if attributes.key?(:'proxy_url')
|
170
|
+
self.proxy_url = attributes[:'proxy_url']
|
175
171
|
end
|
176
172
|
|
177
173
|
if attributes.key?(:'pulp_labels')
|
@@ -184,6 +180,10 @@ module PulpAnsibleClient
|
|
184
180
|
self.ca_cert = attributes[:'ca_cert']
|
185
181
|
end
|
186
182
|
|
183
|
+
if attributes.key?(:'total_timeout')
|
184
|
+
self.total_timeout = attributes[:'total_timeout']
|
185
|
+
end
|
186
|
+
|
187
187
|
if attributes.key?(:'pulp_last_updated')
|
188
188
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
189
189
|
end
|
@@ -192,58 +192,50 @@ module PulpAnsibleClient
|
|
192
192
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
193
193
|
end
|
194
194
|
|
195
|
-
if attributes.key?(:'
|
196
|
-
|
197
|
-
self.hidden_fields = value
|
198
|
-
end
|
199
|
-
end
|
200
|
-
|
201
|
-
if attributes.key?(:'name')
|
202
|
-
self.name = attributes[:'name']
|
203
|
-
end
|
204
|
-
|
205
|
-
if attributes.key?(:'pulp_href')
|
206
|
-
self.pulp_href = attributes[:'pulp_href']
|
195
|
+
if attributes.key?(:'client_cert')
|
196
|
+
self.client_cert = attributes[:'client_cert']
|
207
197
|
end
|
208
198
|
|
209
|
-
if attributes.key?(:'
|
210
|
-
self.
|
199
|
+
if attributes.key?(:'pulp_created')
|
200
|
+
self.pulp_created = attributes[:'pulp_created']
|
211
201
|
end
|
212
202
|
|
213
|
-
if attributes.key?(:'
|
214
|
-
self.
|
203
|
+
if attributes.key?(:'sock_connect_timeout')
|
204
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
215
205
|
end
|
216
206
|
|
217
|
-
if attributes.key?(:'
|
218
|
-
self.
|
207
|
+
if attributes.key?(:'name')
|
208
|
+
self.name = attributes[:'name']
|
219
209
|
end
|
220
210
|
|
221
|
-
if attributes.key?(:'
|
222
|
-
|
211
|
+
if attributes.key?(:'hidden_fields')
|
212
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
213
|
+
self.hidden_fields = value
|
214
|
+
end
|
223
215
|
end
|
224
216
|
|
225
|
-
if attributes.key?(:'
|
226
|
-
self.
|
217
|
+
if attributes.key?(:'max_retries')
|
218
|
+
self.max_retries = attributes[:'max_retries']
|
227
219
|
end
|
228
220
|
|
229
|
-
if attributes.key?(:'
|
230
|
-
self.
|
221
|
+
if attributes.key?(:'prn')
|
222
|
+
self.prn = attributes[:'prn']
|
231
223
|
end
|
232
224
|
|
233
|
-
if attributes.key?(:'
|
234
|
-
self.
|
225
|
+
if attributes.key?(:'download_concurrency')
|
226
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
235
227
|
end
|
236
228
|
|
237
|
-
if attributes.key?(:'
|
238
|
-
self.
|
229
|
+
if attributes.key?(:'rate_limit')
|
230
|
+
self.rate_limit = attributes[:'rate_limit']
|
239
231
|
end
|
240
232
|
|
241
|
-
if attributes.key?(:'
|
242
|
-
self.
|
233
|
+
if attributes.key?(:'tls_validation')
|
234
|
+
self.tls_validation = attributes[:'tls_validation']
|
243
235
|
end
|
244
236
|
|
245
|
-
if attributes.key?(:'
|
246
|
-
self.
|
237
|
+
if attributes.key?(:'url')
|
238
|
+
self.url = attributes[:'url']
|
247
239
|
end
|
248
240
|
|
249
241
|
if attributes.key?(:'headers')
|
@@ -252,6 +244,14 @@ module PulpAnsibleClient
|
|
252
244
|
end
|
253
245
|
end
|
254
246
|
|
247
|
+
if attributes.key?(:'pulp_href')
|
248
|
+
self.pulp_href = attributes[:'pulp_href']
|
249
|
+
end
|
250
|
+
|
251
|
+
if attributes.key?(:'connect_timeout')
|
252
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
253
|
+
end
|
254
|
+
|
255
255
|
if attributes.key?(:'metadata_only')
|
256
256
|
self.metadata_only = attributes[:'metadata_only']
|
257
257
|
end
|
@@ -265,32 +265,32 @@ module PulpAnsibleClient
|
|
265
265
|
# @return Array for valid properties with the reasons
|
266
266
|
def list_invalid_properties
|
267
267
|
invalid_properties = Array.new
|
268
|
-
if !@
|
269
|
-
invalid_properties.push('invalid value for "
|
268
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
269
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
270
270
|
end
|
271
271
|
|
272
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
273
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
272
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
273
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
274
|
+
end
|
275
|
+
|
276
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
277
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
274
278
|
end
|
275
279
|
|
276
280
|
if @name.nil?
|
277
281
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
278
282
|
end
|
279
283
|
|
280
|
-
if !@
|
281
|
-
invalid_properties.push('invalid value for "
|
284
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
285
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
282
286
|
end
|
283
287
|
|
284
288
|
if @url.nil?
|
285
289
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
286
290
|
end
|
287
291
|
|
288
|
-
if !@
|
289
|
-
invalid_properties.push('invalid value for "
|
290
|
-
end
|
291
|
-
|
292
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
293
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
292
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
293
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
294
294
|
end
|
295
295
|
|
296
296
|
invalid_properties
|
@@ -299,64 +299,64 @@ module PulpAnsibleClient
|
|
299
299
|
# Check to see if the all the properties in the model are valid
|
300
300
|
# @return true if the model is valid
|
301
301
|
def valid?
|
302
|
-
return false if !@
|
303
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
302
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
303
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
304
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
304
305
|
return false if @name.nil?
|
305
|
-
return false if !@
|
306
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
306
307
|
return false if @url.nil?
|
307
|
-
return false if !@
|
308
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
308
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
309
309
|
true
|
310
310
|
end
|
311
311
|
|
312
312
|
# Custom attribute writer method with validation
|
313
|
-
# @param [Object]
|
314
|
-
def
|
315
|
-
if !
|
316
|
-
fail ArgumentError, 'invalid value for "
|
313
|
+
# @param [Object] total_timeout Value to be assigned
|
314
|
+
def total_timeout=(total_timeout)
|
315
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
316
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
317
317
|
end
|
318
318
|
|
319
|
-
@
|
319
|
+
@total_timeout = total_timeout
|
320
320
|
end
|
321
321
|
|
322
322
|
# Custom attribute writer method with validation
|
323
323
|
# @param [Object] sock_read_timeout Value to be assigned
|
324
324
|
def sock_read_timeout=(sock_read_timeout)
|
325
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
326
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
325
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
326
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
327
327
|
end
|
328
328
|
|
329
329
|
@sock_read_timeout = sock_read_timeout
|
330
330
|
end
|
331
331
|
|
332
332
|
# Custom attribute writer method with validation
|
333
|
-
# @param [Object]
|
334
|
-
def
|
335
|
-
if !
|
336
|
-
fail ArgumentError, 'invalid value for "
|
333
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
334
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
335
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
336
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
337
337
|
end
|
338
338
|
|
339
|
-
@
|
339
|
+
@sock_connect_timeout = sock_connect_timeout
|
340
340
|
end
|
341
341
|
|
342
342
|
# Custom attribute writer method with validation
|
343
|
-
# @param [Object]
|
344
|
-
def
|
345
|
-
if !
|
346
|
-
fail ArgumentError, 'invalid value for "
|
343
|
+
# @param [Object] download_concurrency Value to be assigned
|
344
|
+
def download_concurrency=(download_concurrency)
|
345
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
346
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
347
347
|
end
|
348
348
|
|
349
|
-
@
|
349
|
+
@download_concurrency = download_concurrency
|
350
350
|
end
|
351
351
|
|
352
352
|
# Custom attribute writer method with validation
|
353
|
-
# @param [Object]
|
354
|
-
def
|
355
|
-
if !
|
356
|
-
fail ArgumentError, 'invalid value for "
|
353
|
+
# @param [Object] connect_timeout Value to be assigned
|
354
|
+
def connect_timeout=(connect_timeout)
|
355
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
356
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
357
357
|
end
|
358
358
|
|
359
|
-
@
|
359
|
+
@connect_timeout = connect_timeout
|
360
360
|
end
|
361
361
|
|
362
362
|
# Checks equality by comparing each attribute.
|
@@ -364,26 +364,26 @@ module PulpAnsibleClient
|
|
364
364
|
def ==(o)
|
365
365
|
return true if self.equal?(o)
|
366
366
|
self.class == o.class &&
|
367
|
-
|
368
|
-
tls_validation == o.tls_validation &&
|
367
|
+
proxy_url == o.proxy_url &&
|
369
368
|
pulp_labels == o.pulp_labels &&
|
370
369
|
ca_cert == o.ca_cert &&
|
370
|
+
total_timeout == o.total_timeout &&
|
371
371
|
pulp_last_updated == o.pulp_last_updated &&
|
372
372
|
sock_read_timeout == o.sock_read_timeout &&
|
373
|
-
|
374
|
-
name == o.name &&
|
375
|
-
pulp_href == o.pulp_href &&
|
376
|
-
proxy_url == o.proxy_url &&
|
377
|
-
connect_timeout == o.connect_timeout &&
|
378
|
-
url == o.url &&
|
379
|
-
rate_limit == o.rate_limit &&
|
380
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
381
|
-
total_timeout == o.total_timeout &&
|
373
|
+
client_cert == o.client_cert &&
|
382
374
|
pulp_created == o.pulp_created &&
|
375
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
376
|
+
name == o.name &&
|
377
|
+
hidden_fields == o.hidden_fields &&
|
383
378
|
max_retries == o.max_retries &&
|
384
|
-
client_cert == o.client_cert &&
|
385
379
|
prn == o.prn &&
|
380
|
+
download_concurrency == o.download_concurrency &&
|
381
|
+
rate_limit == o.rate_limit &&
|
382
|
+
tls_validation == o.tls_validation &&
|
383
|
+
url == o.url &&
|
386
384
|
headers == o.headers &&
|
385
|
+
pulp_href == o.pulp_href &&
|
386
|
+
connect_timeout == o.connect_timeout &&
|
387
387
|
metadata_only == o.metadata_only &&
|
388
388
|
git_ref == o.git_ref
|
389
389
|
end
|
@@ -397,7 +397,7 @@ module PulpAnsibleClient
|
|
397
397
|
# Calculates hash code according to all attributes.
|
398
398
|
# @return [Integer] Hash code
|
399
399
|
def hash
|
400
|
-
[
|
400
|
+
[proxy_url, pulp_labels, ca_cert, total_timeout, pulp_last_updated, sock_read_timeout, client_cert, pulp_created, sock_connect_timeout, name, hidden_fields, max_retries, prn, download_concurrency, rate_limit, tls_validation, url, headers, pulp_href, connect_timeout, metadata_only, git_ref].hash
|
401
401
|
end
|
402
402
|
|
403
403
|
# Builds the object from hash
|
@@ -312,20 +312,20 @@ module PulpAnsibleClient
|
|
312
312
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
313
313
|
end
|
314
314
|
|
315
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
316
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
315
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
316
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
317
317
|
end
|
318
318
|
|
319
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
320
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
319
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
320
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
321
321
|
end
|
322
322
|
|
323
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
324
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
323
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
324
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
325
325
|
end
|
326
326
|
|
327
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
328
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
327
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
328
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
329
329
|
end
|
330
330
|
|
331
331
|
invalid_properties
|
@@ -347,10 +347,10 @@ module PulpAnsibleClient
|
|
347
347
|
return false if !@username.nil? && @username.to_s.length < 1
|
348
348
|
return false if !@password.nil? && @password.to_s.length < 1
|
349
349
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
350
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
351
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
352
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
353
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
350
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
351
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
352
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
353
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
354
354
|
true
|
355
355
|
end
|
356
356
|
|
@@ -475,8 +475,8 @@ module PulpAnsibleClient
|
|
475
475
|
# Custom attribute writer method with validation
|
476
476
|
# @param [Object] total_timeout Value to be assigned
|
477
477
|
def total_timeout=(total_timeout)
|
478
|
-
if !total_timeout.nil? && total_timeout < 0
|
479
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
478
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
479
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
480
480
|
end
|
481
481
|
|
482
482
|
@total_timeout = total_timeout
|
@@ -485,8 +485,8 @@ module PulpAnsibleClient
|
|
485
485
|
# Custom attribute writer method with validation
|
486
486
|
# @param [Object] connect_timeout Value to be assigned
|
487
487
|
def connect_timeout=(connect_timeout)
|
488
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
489
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
488
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
489
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
490
490
|
end
|
491
491
|
|
492
492
|
@connect_timeout = connect_timeout
|
@@ -495,8 +495,8 @@ module PulpAnsibleClient
|
|
495
495
|
# Custom attribute writer method with validation
|
496
496
|
# @param [Object] sock_connect_timeout Value to be assigned
|
497
497
|
def sock_connect_timeout=(sock_connect_timeout)
|
498
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
499
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
498
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
499
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
500
500
|
end
|
501
501
|
|
502
502
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -505,8 +505,8 @@ module PulpAnsibleClient
|
|
505
505
|
# Custom attribute writer method with validation
|
506
506
|
# @param [Object] sock_read_timeout Value to be assigned
|
507
507
|
def sock_read_timeout=(sock_read_timeout)
|
508
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
509
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
508
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
509
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
510
510
|
end
|
511
511
|
|
512
512
|
@sock_read_timeout = sock_read_timeout
|