pulp_ansible_client 0.24.0 → 0.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +22 -22
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/ContentCollectionVersionsApi.md +4 -4
- data/docs/PatchedansibleGitRemote.md +22 -22
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +25 -25
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +201 -201
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +149 -149
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +199 -199
- 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 +5 -5
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +5 -5
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +2 -2
@@ -16,46 +16,55 @@ require 'time'
|
|
16
16
|
module PulpAnsibleClient
|
17
17
|
# A serializer for Git Collection Remotes.
|
18
18
|
class AnsibleGitRemote
|
19
|
-
|
19
|
+
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
20
|
+
attr_accessor :password
|
21
|
+
|
22
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
23
|
+
attr_accessor :max_retries
|
20
24
|
|
21
25
|
# A unique name for this remote.
|
22
26
|
attr_accessor :name
|
23
27
|
|
28
|
+
attr_accessor :pulp_labels
|
29
|
+
|
24
30
|
# The username to authenticte to the proxy.
|
25
31
|
attr_accessor :proxy_username
|
26
32
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
29
|
-
|
30
|
-
# 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.
|
31
|
-
attr_accessor :sock_read_timeout
|
33
|
+
# 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.
|
34
|
+
attr_accessor :sock_connect_timeout
|
32
35
|
|
33
36
|
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
34
37
|
attr_accessor :connect_timeout
|
35
38
|
|
36
|
-
#
|
37
|
-
attr_accessor :
|
38
|
-
|
39
|
-
# The URL of an external content source.
|
40
|
-
attr_accessor :url
|
41
|
-
|
42
|
-
# 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.
|
43
|
-
attr_accessor :sock_connect_timeout
|
39
|
+
# If True, TLS peer validation must be performed.
|
40
|
+
attr_accessor :tls_validation
|
44
41
|
|
45
42
|
# Headers for aiohttp.Clientsession
|
46
43
|
attr_accessor :headers
|
47
44
|
|
45
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
46
|
+
attr_accessor :total_timeout
|
47
|
+
|
48
|
+
# A PEM encoded private key used for authentication.
|
49
|
+
attr_accessor :client_key
|
50
|
+
|
48
51
|
# A PEM encoded client certificate used for authentication.
|
49
52
|
attr_accessor :client_cert
|
50
53
|
|
54
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
55
|
+
attr_accessor :download_concurrency
|
56
|
+
|
57
|
+
# 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.
|
58
|
+
attr_accessor :sock_read_timeout
|
59
|
+
|
60
|
+
# The URL of an external content source.
|
61
|
+
attr_accessor :url
|
62
|
+
|
51
63
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
52
64
|
attr_accessor :ca_cert
|
53
65
|
|
54
|
-
#
|
55
|
-
attr_accessor :
|
56
|
-
|
57
|
-
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
58
|
-
attr_accessor :max_retries
|
66
|
+
# The proxy URL. Format: scheme://host:port
|
67
|
+
attr_accessor :proxy_url
|
59
68
|
|
60
69
|
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
61
70
|
attr_accessor :proxy_password
|
@@ -63,15 +72,6 @@ module PulpAnsibleClient
|
|
63
72
|
# The username to be used for authentication when syncing.
|
64
73
|
attr_accessor :username
|
65
74
|
|
66
|
-
# If True, TLS peer validation must be performed.
|
67
|
-
attr_accessor :tls_validation
|
68
|
-
|
69
|
-
# A PEM encoded private key used for authentication.
|
70
|
-
attr_accessor :client_key
|
71
|
-
|
72
|
-
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
73
|
-
attr_accessor :password
|
74
|
-
|
75
75
|
# Limits requests per second for each concurrent downloader
|
76
76
|
attr_accessor :rate_limit
|
77
77
|
|
@@ -84,25 +84,25 @@ module PulpAnsibleClient
|
|
84
84
|
# Attribute mapping from ruby-style variable name to JSON key.
|
85
85
|
def self.attribute_map
|
86
86
|
{
|
87
|
-
:'
|
87
|
+
:'password' => :'password',
|
88
|
+
:'max_retries' => :'max_retries',
|
88
89
|
:'name' => :'name',
|
90
|
+
:'pulp_labels' => :'pulp_labels',
|
89
91
|
:'proxy_username' => :'proxy_username',
|
90
|
-
:'proxy_url' => :'proxy_url',
|
91
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
92
|
-
:'connect_timeout' => :'connect_timeout',
|
93
|
-
:'download_concurrency' => :'download_concurrency',
|
94
|
-
:'url' => :'url',
|
95
92
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
93
|
+
:'connect_timeout' => :'connect_timeout',
|
94
|
+
:'tls_validation' => :'tls_validation',
|
96
95
|
:'headers' => :'headers',
|
96
|
+
:'total_timeout' => :'total_timeout',
|
97
|
+
:'client_key' => :'client_key',
|
97
98
|
:'client_cert' => :'client_cert',
|
99
|
+
:'download_concurrency' => :'download_concurrency',
|
100
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
101
|
+
:'url' => :'url',
|
98
102
|
:'ca_cert' => :'ca_cert',
|
99
|
-
:'
|
100
|
-
:'max_retries' => :'max_retries',
|
103
|
+
:'proxy_url' => :'proxy_url',
|
101
104
|
:'proxy_password' => :'proxy_password',
|
102
105
|
:'username' => :'username',
|
103
|
-
:'tls_validation' => :'tls_validation',
|
104
|
-
:'client_key' => :'client_key',
|
105
|
-
:'password' => :'password',
|
106
106
|
:'rate_limit' => :'rate_limit',
|
107
107
|
:'metadata_only' => :'metadata_only',
|
108
108
|
:'git_ref' => :'git_ref'
|
@@ -117,25 +117,25 @@ module PulpAnsibleClient
|
|
117
117
|
# Attribute type mapping.
|
118
118
|
def self.openapi_types
|
119
119
|
{
|
120
|
-
:'
|
120
|
+
:'password' => :'String',
|
121
|
+
:'max_retries' => :'Integer',
|
121
122
|
:'name' => :'String',
|
123
|
+
:'pulp_labels' => :'Hash<String, String>',
|
122
124
|
:'proxy_username' => :'String',
|
123
|
-
:'proxy_url' => :'String',
|
124
|
-
:'sock_read_timeout' => :'Float',
|
125
|
-
:'connect_timeout' => :'Float',
|
126
|
-
:'download_concurrency' => :'Integer',
|
127
|
-
:'url' => :'String',
|
128
125
|
:'sock_connect_timeout' => :'Float',
|
126
|
+
:'connect_timeout' => :'Float',
|
127
|
+
:'tls_validation' => :'Boolean',
|
129
128
|
:'headers' => :'Array<Object>',
|
129
|
+
:'total_timeout' => :'Float',
|
130
|
+
:'client_key' => :'String',
|
130
131
|
:'client_cert' => :'String',
|
132
|
+
:'download_concurrency' => :'Integer',
|
133
|
+
:'sock_read_timeout' => :'Float',
|
134
|
+
:'url' => :'String',
|
131
135
|
:'ca_cert' => :'String',
|
132
|
-
:'
|
133
|
-
:'max_retries' => :'Integer',
|
136
|
+
:'proxy_url' => :'String',
|
134
137
|
:'proxy_password' => :'String',
|
135
138
|
:'username' => :'String',
|
136
|
-
:'tls_validation' => :'Boolean',
|
137
|
-
:'client_key' => :'String',
|
138
|
-
:'password' => :'String',
|
139
139
|
:'rate_limit' => :'Integer',
|
140
140
|
:'metadata_only' => :'Boolean',
|
141
141
|
:'git_ref' => :'String'
|
@@ -145,20 +145,20 @@ module PulpAnsibleClient
|
|
145
145
|
# List of attributes with nullable: true
|
146
146
|
def self.openapi_nullable
|
147
147
|
Set.new([
|
148
|
+
:'password',
|
149
|
+
:'max_retries',
|
148
150
|
:'proxy_username',
|
149
|
-
:'proxy_url',
|
150
|
-
:'sock_read_timeout',
|
151
|
-
:'connect_timeout',
|
152
|
-
:'download_concurrency',
|
153
151
|
:'sock_connect_timeout',
|
152
|
+
:'connect_timeout',
|
153
|
+
:'total_timeout',
|
154
|
+
:'client_key',
|
154
155
|
:'client_cert',
|
156
|
+
:'download_concurrency',
|
157
|
+
:'sock_read_timeout',
|
155
158
|
:'ca_cert',
|
156
|
-
:'
|
157
|
-
:'max_retries',
|
159
|
+
:'proxy_url',
|
158
160
|
:'proxy_password',
|
159
161
|
:'username',
|
160
|
-
:'client_key',
|
161
|
-
:'password',
|
162
162
|
:'rate_limit',
|
163
163
|
])
|
164
164
|
end
|
@@ -178,10 +178,12 @@ module PulpAnsibleClient
|
|
178
178
|
h[k.to_sym] = v
|
179
179
|
}
|
180
180
|
|
181
|
-
if attributes.key?(:'
|
182
|
-
|
183
|
-
|
184
|
-
|
181
|
+
if attributes.key?(:'password')
|
182
|
+
self.password = attributes[:'password']
|
183
|
+
end
|
184
|
+
|
185
|
+
if attributes.key?(:'max_retries')
|
186
|
+
self.max_retries = attributes[:'max_retries']
|
185
187
|
end
|
186
188
|
|
187
189
|
if attributes.key?(:'name')
|
@@ -190,34 +192,26 @@ module PulpAnsibleClient
|
|
190
192
|
self.name = nil
|
191
193
|
end
|
192
194
|
|
193
|
-
if attributes.key?(:'
|
194
|
-
|
195
|
+
if attributes.key?(:'pulp_labels')
|
196
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
197
|
+
self.pulp_labels = value
|
198
|
+
end
|
195
199
|
end
|
196
200
|
|
197
|
-
if attributes.key?(:'
|
198
|
-
self.
|
201
|
+
if attributes.key?(:'proxy_username')
|
202
|
+
self.proxy_username = attributes[:'proxy_username']
|
199
203
|
end
|
200
204
|
|
201
|
-
if attributes.key?(:'
|
202
|
-
self.
|
205
|
+
if attributes.key?(:'sock_connect_timeout')
|
206
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
203
207
|
end
|
204
208
|
|
205
209
|
if attributes.key?(:'connect_timeout')
|
206
210
|
self.connect_timeout = attributes[:'connect_timeout']
|
207
211
|
end
|
208
212
|
|
209
|
-
if attributes.key?(:'
|
210
|
-
self.
|
211
|
-
end
|
212
|
-
|
213
|
-
if attributes.key?(:'url')
|
214
|
-
self.url = attributes[:'url']
|
215
|
-
else
|
216
|
-
self.url = nil
|
217
|
-
end
|
218
|
-
|
219
|
-
if attributes.key?(:'sock_connect_timeout')
|
220
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
213
|
+
if attributes.key?(:'tls_validation')
|
214
|
+
self.tls_validation = attributes[:'tls_validation']
|
221
215
|
end
|
222
216
|
|
223
217
|
if attributes.key?(:'headers')
|
@@ -226,40 +220,46 @@ module PulpAnsibleClient
|
|
226
220
|
end
|
227
221
|
end
|
228
222
|
|
229
|
-
if attributes.key?(:'
|
230
|
-
self.
|
223
|
+
if attributes.key?(:'total_timeout')
|
224
|
+
self.total_timeout = attributes[:'total_timeout']
|
231
225
|
end
|
232
226
|
|
233
|
-
if attributes.key?(:'
|
234
|
-
self.
|
227
|
+
if attributes.key?(:'client_key')
|
228
|
+
self.client_key = attributes[:'client_key']
|
235
229
|
end
|
236
230
|
|
237
|
-
if attributes.key?(:'
|
238
|
-
self.
|
231
|
+
if attributes.key?(:'client_cert')
|
232
|
+
self.client_cert = attributes[:'client_cert']
|
239
233
|
end
|
240
234
|
|
241
|
-
if attributes.key?(:'
|
242
|
-
self.
|
235
|
+
if attributes.key?(:'download_concurrency')
|
236
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
243
237
|
end
|
244
238
|
|
245
|
-
if attributes.key?(:'
|
246
|
-
self.
|
239
|
+
if attributes.key?(:'sock_read_timeout')
|
240
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
247
241
|
end
|
248
242
|
|
249
|
-
if attributes.key?(:'
|
250
|
-
self.
|
243
|
+
if attributes.key?(:'url')
|
244
|
+
self.url = attributes[:'url']
|
245
|
+
else
|
246
|
+
self.url = nil
|
251
247
|
end
|
252
248
|
|
253
|
-
if attributes.key?(:'
|
254
|
-
self.
|
249
|
+
if attributes.key?(:'ca_cert')
|
250
|
+
self.ca_cert = attributes[:'ca_cert']
|
255
251
|
end
|
256
252
|
|
257
|
-
if attributes.key?(:'
|
258
|
-
self.
|
253
|
+
if attributes.key?(:'proxy_url')
|
254
|
+
self.proxy_url = attributes[:'proxy_url']
|
259
255
|
end
|
260
256
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
self.
|
257
|
+
if attributes.key?(:'proxy_password')
|
258
|
+
self.proxy_password = attributes[:'proxy_password']
|
259
|
+
end
|
260
|
+
|
261
|
+
if attributes.key?(:'username')
|
262
|
+
self.username = attributes[:'username']
|
263
263
|
end
|
264
264
|
|
265
265
|
if attributes.key?(:'rate_limit')
|
@@ -280,6 +280,10 @@ module PulpAnsibleClient
|
|
280
280
|
def list_invalid_properties
|
281
281
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
282
282
|
invalid_properties = Array.new
|
283
|
+
if !@password.nil? && @password.to_s.length < 1
|
284
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
285
|
+
end
|
286
|
+
|
283
287
|
if @name.nil?
|
284
288
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
285
289
|
end
|
@@ -292,22 +296,34 @@ module PulpAnsibleClient
|
|
292
296
|
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
293
297
|
end
|
294
298
|
|
295
|
-
if !@
|
296
|
-
invalid_properties.push('invalid value for "
|
297
|
-
end
|
298
|
-
|
299
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
300
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
299
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
300
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
301
301
|
end
|
302
302
|
|
303
303
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
304
304
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
305
305
|
end
|
306
306
|
|
307
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
308
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
309
|
+
end
|
310
|
+
|
311
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
312
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
313
|
+
end
|
314
|
+
|
315
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
316
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
317
|
+
end
|
318
|
+
|
307
319
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
308
320
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
309
321
|
end
|
310
322
|
|
323
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
324
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
325
|
+
end
|
326
|
+
|
311
327
|
if @url.nil?
|
312
328
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
313
329
|
end
|
@@ -316,20 +332,12 @@ module PulpAnsibleClient
|
|
316
332
|
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
317
333
|
end
|
318
334
|
|
319
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
320
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
321
|
-
end
|
322
|
-
|
323
|
-
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
324
|
-
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
325
|
-
end
|
326
|
-
|
327
335
|
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
328
336
|
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
329
337
|
end
|
330
338
|
|
331
|
-
if !@
|
332
|
-
invalid_properties.push('invalid value for "
|
339
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
340
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
333
341
|
end
|
334
342
|
|
335
343
|
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
@@ -340,14 +348,6 @@ module PulpAnsibleClient
|
|
340
348
|
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
341
349
|
end
|
342
350
|
|
343
|
-
if !@client_key.nil? && @client_key.to_s.length < 1
|
344
|
-
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
345
|
-
end
|
346
|
-
|
347
|
-
if !@password.nil? && @password.to_s.length < 1
|
348
|
-
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
349
|
-
end
|
350
|
-
|
351
351
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
352
352
|
invalid_properties.push('invalid value for "git_ref", the character length must be great than or equal to 1.')
|
353
353
|
end
|
@@ -359,27 +359,37 @@ module PulpAnsibleClient
|
|
359
359
|
# @return true if the model is valid
|
360
360
|
def valid?
|
361
361
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
362
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
362
363
|
return false if @name.nil?
|
363
364
|
return false if @name.to_s.length < 1
|
364
365
|
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
365
|
-
return false if !@
|
366
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
366
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
367
367
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
368
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
369
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
370
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
368
371
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
372
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
369
373
|
return false if @url.nil?
|
370
374
|
return false if @url.to_s.length < 1
|
371
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
372
|
-
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
373
375
|
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
374
|
-
return false if !@
|
376
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
375
377
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
376
378
|
return false if !@username.nil? && @username.to_s.length < 1
|
377
|
-
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
378
|
-
return false if !@password.nil? && @password.to_s.length < 1
|
379
379
|
return false if !@git_ref.nil? && @git_ref.to_s.length < 1
|
380
380
|
true
|
381
381
|
end
|
382
382
|
|
383
|
+
# Custom attribute writer method with validation
|
384
|
+
# @param [Object] password Value to be assigned
|
385
|
+
def password=(password)
|
386
|
+
if !password.nil? && password.to_s.length < 1
|
387
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
388
|
+
end
|
389
|
+
|
390
|
+
@password = password
|
391
|
+
end
|
392
|
+
|
383
393
|
# Custom attribute writer method with validation
|
384
394
|
# @param [Object] name Value to be assigned
|
385
395
|
def name=(name)
|
@@ -405,23 +415,13 @@ module PulpAnsibleClient
|
|
405
415
|
end
|
406
416
|
|
407
417
|
# Custom attribute writer method with validation
|
408
|
-
# @param [Object]
|
409
|
-
def
|
410
|
-
if !
|
411
|
-
fail ArgumentError, 'invalid value for "
|
412
|
-
end
|
413
|
-
|
414
|
-
@proxy_url = proxy_url
|
415
|
-
end
|
416
|
-
|
417
|
-
# Custom attribute writer method with validation
|
418
|
-
# @param [Object] sock_read_timeout Value to be assigned
|
419
|
-
def sock_read_timeout=(sock_read_timeout)
|
420
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
421
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
418
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
419
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
420
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
421
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
422
422
|
end
|
423
423
|
|
424
|
-
@
|
424
|
+
@sock_connect_timeout = sock_connect_timeout
|
425
425
|
end
|
426
426
|
|
427
427
|
# Custom attribute writer method with validation
|
@@ -434,6 +434,36 @@ module PulpAnsibleClient
|
|
434
434
|
@connect_timeout = connect_timeout
|
435
435
|
end
|
436
436
|
|
437
|
+
# Custom attribute writer method with validation
|
438
|
+
# @param [Object] total_timeout Value to be assigned
|
439
|
+
def total_timeout=(total_timeout)
|
440
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
441
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
442
|
+
end
|
443
|
+
|
444
|
+
@total_timeout = total_timeout
|
445
|
+
end
|
446
|
+
|
447
|
+
# Custom attribute writer method with validation
|
448
|
+
# @param [Object] client_key Value to be assigned
|
449
|
+
def client_key=(client_key)
|
450
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
451
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
452
|
+
end
|
453
|
+
|
454
|
+
@client_key = client_key
|
455
|
+
end
|
456
|
+
|
457
|
+
# Custom attribute writer method with validation
|
458
|
+
# @param [Object] client_cert Value to be assigned
|
459
|
+
def client_cert=(client_cert)
|
460
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
461
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
462
|
+
end
|
463
|
+
|
464
|
+
@client_cert = client_cert
|
465
|
+
end
|
466
|
+
|
437
467
|
# Custom attribute writer method with validation
|
438
468
|
# @param [Object] download_concurrency Value to be assigned
|
439
469
|
def download_concurrency=(download_concurrency)
|
@@ -444,6 +474,16 @@ module PulpAnsibleClient
|
|
444
474
|
@download_concurrency = download_concurrency
|
445
475
|
end
|
446
476
|
|
477
|
+
# Custom attribute writer method with validation
|
478
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
479
|
+
def sock_read_timeout=(sock_read_timeout)
|
480
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
481
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
482
|
+
end
|
483
|
+
|
484
|
+
@sock_read_timeout = sock_read_timeout
|
485
|
+
end
|
486
|
+
|
447
487
|
# Custom attribute writer method with validation
|
448
488
|
# @param [Object] url Value to be assigned
|
449
489
|
def url=(url)
|
@@ -458,26 +498,6 @@ module PulpAnsibleClient
|
|
458
498
|
@url = url
|
459
499
|
end
|
460
500
|
|
461
|
-
# Custom attribute writer method with validation
|
462
|
-
# @param [Object] sock_connect_timeout Value to be assigned
|
463
|
-
def sock_connect_timeout=(sock_connect_timeout)
|
464
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
465
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
466
|
-
end
|
467
|
-
|
468
|
-
@sock_connect_timeout = sock_connect_timeout
|
469
|
-
end
|
470
|
-
|
471
|
-
# Custom attribute writer method with validation
|
472
|
-
# @param [Object] client_cert Value to be assigned
|
473
|
-
def client_cert=(client_cert)
|
474
|
-
if !client_cert.nil? && client_cert.to_s.length < 1
|
475
|
-
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
476
|
-
end
|
477
|
-
|
478
|
-
@client_cert = client_cert
|
479
|
-
end
|
480
|
-
|
481
501
|
# Custom attribute writer method with validation
|
482
502
|
# @param [Object] ca_cert Value to be assigned
|
483
503
|
def ca_cert=(ca_cert)
|
@@ -489,13 +509,13 @@ module PulpAnsibleClient
|
|
489
509
|
end
|
490
510
|
|
491
511
|
# Custom attribute writer method with validation
|
492
|
-
# @param [Object]
|
493
|
-
def
|
494
|
-
if !
|
495
|
-
fail ArgumentError, 'invalid value for "
|
512
|
+
# @param [Object] proxy_url Value to be assigned
|
513
|
+
def proxy_url=(proxy_url)
|
514
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
515
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
496
516
|
end
|
497
517
|
|
498
|
-
@
|
518
|
+
@proxy_url = proxy_url
|
499
519
|
end
|
500
520
|
|
501
521
|
# Custom attribute writer method with validation
|
@@ -518,26 +538,6 @@ module PulpAnsibleClient
|
|
518
538
|
@username = username
|
519
539
|
end
|
520
540
|
|
521
|
-
# Custom attribute writer method with validation
|
522
|
-
# @param [Object] client_key Value to be assigned
|
523
|
-
def client_key=(client_key)
|
524
|
-
if !client_key.nil? && client_key.to_s.length < 1
|
525
|
-
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
526
|
-
end
|
527
|
-
|
528
|
-
@client_key = client_key
|
529
|
-
end
|
530
|
-
|
531
|
-
# Custom attribute writer method with validation
|
532
|
-
# @param [Object] password Value to be assigned
|
533
|
-
def password=(password)
|
534
|
-
if !password.nil? && password.to_s.length < 1
|
535
|
-
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
536
|
-
end
|
537
|
-
|
538
|
-
@password = password
|
539
|
-
end
|
540
|
-
|
541
541
|
# Custom attribute writer method with validation
|
542
542
|
# @param [Object] git_ref Value to be assigned
|
543
543
|
def git_ref=(git_ref)
|
@@ -557,25 +557,25 @@ module PulpAnsibleClient
|
|
557
557
|
def ==(o)
|
558
558
|
return true if self.equal?(o)
|
559
559
|
self.class == o.class &&
|
560
|
-
|
560
|
+
password == o.password &&
|
561
|
+
max_retries == o.max_retries &&
|
561
562
|
name == o.name &&
|
563
|
+
pulp_labels == o.pulp_labels &&
|
562
564
|
proxy_username == o.proxy_username &&
|
563
|
-
proxy_url == o.proxy_url &&
|
564
|
-
sock_read_timeout == o.sock_read_timeout &&
|
565
|
-
connect_timeout == o.connect_timeout &&
|
566
|
-
download_concurrency == o.download_concurrency &&
|
567
|
-
url == o.url &&
|
568
565
|
sock_connect_timeout == o.sock_connect_timeout &&
|
566
|
+
connect_timeout == o.connect_timeout &&
|
567
|
+
tls_validation == o.tls_validation &&
|
569
568
|
headers == o.headers &&
|
569
|
+
total_timeout == o.total_timeout &&
|
570
|
+
client_key == o.client_key &&
|
570
571
|
client_cert == o.client_cert &&
|
572
|
+
download_concurrency == o.download_concurrency &&
|
573
|
+
sock_read_timeout == o.sock_read_timeout &&
|
574
|
+
url == o.url &&
|
571
575
|
ca_cert == o.ca_cert &&
|
572
|
-
|
573
|
-
max_retries == o.max_retries &&
|
576
|
+
proxy_url == o.proxy_url &&
|
574
577
|
proxy_password == o.proxy_password &&
|
575
578
|
username == o.username &&
|
576
|
-
tls_validation == o.tls_validation &&
|
577
|
-
client_key == o.client_key &&
|
578
|
-
password == o.password &&
|
579
579
|
rate_limit == o.rate_limit &&
|
580
580
|
metadata_only == o.metadata_only &&
|
581
581
|
git_ref == o.git_ref
|
@@ -590,7 +590,7 @@ module PulpAnsibleClient
|
|
590
590
|
# Calculates hash code according to all attributes.
|
591
591
|
# @return [Integer] Hash code
|
592
592
|
def hash
|
593
|
-
[
|
593
|
+
[password, max_retries, name, pulp_labels, proxy_username, sock_connect_timeout, connect_timeout, tls_validation, headers, total_timeout, client_key, client_cert, download_concurrency, sock_read_timeout, url, ca_cert, proxy_url, proxy_password, username, rate_limit, metadata_only, git_ref].hash
|
594
594
|
end
|
595
595
|
|
596
596
|
# Builds the object from hash
|