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