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