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