pulp_ansible_client 0.21.8 → 0.21.9
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/AnsibleCollectionVersion.md +5 -5
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleGitRemote.md +23 -23
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRole.md +3 -3
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/ContentCollectionVersionsApi.md +4 -4
- data/docs/PatchedansibleGitRemote.md +23 -23
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +192 -192
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +149 -149
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +176 -176
- 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 +2 -2
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +16 -16
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +133 -133
@@ -15,64 +15,64 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemote
|
18
|
-
# If True, TLS peer validation must be performed.
|
19
|
-
attr_accessor :tls_validation
|
20
|
-
|
21
18
|
# The username to be used for authentication when syncing.
|
22
19
|
attr_accessor :username
|
23
20
|
|
24
21
|
# A PEM encoded client certificate used for authentication.
|
25
22
|
attr_accessor :client_cert
|
26
23
|
|
27
|
-
# A
|
28
|
-
attr_accessor :
|
24
|
+
# A unique name for this remote.
|
25
|
+
attr_accessor :name
|
29
26
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
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
|
32
29
|
|
33
|
-
|
34
|
-
attr_accessor :url
|
30
|
+
attr_accessor :pulp_labels
|
35
31
|
|
36
32
|
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
37
33
|
attr_accessor :password
|
38
34
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
35
|
+
# A PEM encoded private key used for authentication.
|
36
|
+
attr_accessor :client_key
|
37
|
+
|
38
|
+
# 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.
|
39
|
+
attr_accessor :sock_read_timeout
|
41
40
|
|
42
41
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
43
42
|
attr_accessor :download_concurrency
|
44
43
|
|
44
|
+
# Headers for aiohttp.Clientsession
|
45
|
+
attr_accessor :headers
|
46
|
+
|
45
47
|
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
46
48
|
attr_accessor :proxy_password
|
47
49
|
|
50
|
+
# The URL of an external content source.
|
51
|
+
attr_accessor :url
|
52
|
+
|
48
53
|
# The username to authenticte to the proxy.
|
49
54
|
attr_accessor :proxy_username
|
50
55
|
|
51
56
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
52
57
|
attr_accessor :ca_cert
|
53
58
|
|
54
|
-
#
|
55
|
-
attr_accessor :
|
56
|
-
|
57
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
58
|
-
attr_accessor :connect_timeout
|
59
|
+
# Limits requests per second for each concurrent downloader
|
60
|
+
attr_accessor :rate_limit
|
59
61
|
|
60
62
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
61
63
|
attr_accessor :max_retries
|
62
64
|
|
65
|
+
# 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.
|
66
|
+
attr_accessor :sock_connect_timeout
|
67
|
+
|
63
68
|
# The proxy URL. Format: scheme://host:port
|
64
69
|
attr_accessor :proxy_url
|
65
70
|
|
66
|
-
|
67
|
-
|
68
|
-
# 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.
|
69
|
-
attr_accessor :sock_read_timeout
|
70
|
-
|
71
|
-
# A unique name for this remote.
|
72
|
-
attr_accessor :name
|
71
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
72
|
+
attr_accessor :total_timeout
|
73
73
|
|
74
|
-
#
|
75
|
-
attr_accessor :
|
74
|
+
# If True, TLS peer validation must be performed.
|
75
|
+
attr_accessor :tls_validation
|
76
76
|
|
77
77
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
78
78
|
attr_accessor :metadata_only
|
@@ -83,26 +83,26 @@ module PulpAnsibleClient
|
|
83
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
84
84
|
def self.attribute_map
|
85
85
|
{
|
86
|
-
:'tls_validation' => :'tls_validation',
|
87
86
|
:'username' => :'username',
|
88
87
|
:'client_cert' => :'client_cert',
|
89
|
-
:'
|
90
|
-
:'
|
91
|
-
:'
|
88
|
+
:'name' => :'name',
|
89
|
+
:'connect_timeout' => :'connect_timeout',
|
90
|
+
:'pulp_labels' => :'pulp_labels',
|
92
91
|
:'password' => :'password',
|
93
|
-
:'
|
92
|
+
:'client_key' => :'client_key',
|
93
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
94
94
|
:'download_concurrency' => :'download_concurrency',
|
95
|
+
:'headers' => :'headers',
|
95
96
|
:'proxy_password' => :'proxy_password',
|
97
|
+
:'url' => :'url',
|
96
98
|
:'proxy_username' => :'proxy_username',
|
97
99
|
:'ca_cert' => :'ca_cert',
|
98
|
-
:'
|
99
|
-
:'connect_timeout' => :'connect_timeout',
|
100
|
+
:'rate_limit' => :'rate_limit',
|
100
101
|
:'max_retries' => :'max_retries',
|
101
|
-
:'proxy_url' => :'proxy_url',
|
102
|
-
:'pulp_labels' => :'pulp_labels',
|
103
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
104
|
-
:'name' => :'name',
|
105
102
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
103
|
+
:'proxy_url' => :'proxy_url',
|
104
|
+
:'total_timeout' => :'total_timeout',
|
105
|
+
:'tls_validation' => :'tls_validation',
|
106
106
|
:'metadata_only' => :'metadata_only',
|
107
107
|
:'git_ref' => :'git_ref'
|
108
108
|
}
|
@@ -111,26 +111,26 @@ module PulpAnsibleClient
|
|
111
111
|
# Attribute type mapping.
|
112
112
|
def self.openapi_types
|
113
113
|
{
|
114
|
-
:'tls_validation' => :'Boolean',
|
115
114
|
:'username' => :'String',
|
116
115
|
:'client_cert' => :'String',
|
117
|
-
:'
|
118
|
-
:'
|
119
|
-
:'
|
116
|
+
:'name' => :'String',
|
117
|
+
:'connect_timeout' => :'Float',
|
118
|
+
:'pulp_labels' => :'Hash<String, String>',
|
120
119
|
:'password' => :'String',
|
121
|
-
:'
|
120
|
+
:'client_key' => :'String',
|
121
|
+
:'sock_read_timeout' => :'Float',
|
122
122
|
:'download_concurrency' => :'Integer',
|
123
|
+
:'headers' => :'Array<Object>',
|
123
124
|
:'proxy_password' => :'String',
|
125
|
+
:'url' => :'String',
|
124
126
|
:'proxy_username' => :'String',
|
125
127
|
:'ca_cert' => :'String',
|
126
|
-
:'
|
127
|
-
:'connect_timeout' => :'Float',
|
128
|
+
:'rate_limit' => :'Integer',
|
128
129
|
:'max_retries' => :'Integer',
|
129
|
-
:'proxy_url' => :'String',
|
130
|
-
:'pulp_labels' => :'Hash<String, String>',
|
131
|
-
:'sock_read_timeout' => :'Float',
|
132
|
-
:'name' => :'String',
|
133
130
|
:'sock_connect_timeout' => :'Float',
|
131
|
+
:'proxy_url' => :'String',
|
132
|
+
:'total_timeout' => :'Float',
|
133
|
+
:'tls_validation' => :'Boolean',
|
134
134
|
:'metadata_only' => :'Boolean',
|
135
135
|
:'git_ref' => :'String'
|
136
136
|
}
|
@@ -141,19 +141,19 @@ module PulpAnsibleClient
|
|
141
141
|
Set.new([
|
142
142
|
:'username',
|
143
143
|
:'client_cert',
|
144
|
-
:'
|
145
|
-
:'rate_limit',
|
144
|
+
:'connect_timeout',
|
146
145
|
:'password',
|
146
|
+
:'client_key',
|
147
|
+
:'sock_read_timeout',
|
147
148
|
:'download_concurrency',
|
148
149
|
:'proxy_password',
|
149
150
|
:'proxy_username',
|
150
151
|
:'ca_cert',
|
151
|
-
:'
|
152
|
-
:'connect_timeout',
|
152
|
+
:'rate_limit',
|
153
153
|
:'max_retries',
|
154
|
-
:'proxy_url',
|
155
|
-
:'sock_read_timeout',
|
156
154
|
:'sock_connect_timeout',
|
155
|
+
:'proxy_url',
|
156
|
+
:'total_timeout',
|
157
157
|
])
|
158
158
|
end
|
159
159
|
|
@@ -172,10 +172,6 @@ module PulpAnsibleClient
|
|
172
172
|
h[k.to_sym] = v
|
173
173
|
}
|
174
174
|
|
175
|
-
if attributes.key?(:'tls_validation')
|
176
|
-
self.tls_validation = attributes[:'tls_validation']
|
177
|
-
end
|
178
|
-
|
179
175
|
if attributes.key?(:'username')
|
180
176
|
self.username = attributes[:'username']
|
181
177
|
end
|
@@ -184,36 +180,50 @@ module PulpAnsibleClient
|
|
184
180
|
self.client_cert = attributes[:'client_cert']
|
185
181
|
end
|
186
182
|
|
187
|
-
if attributes.key?(:'
|
188
|
-
self.
|
183
|
+
if attributes.key?(:'name')
|
184
|
+
self.name = attributes[:'name']
|
189
185
|
end
|
190
186
|
|
191
|
-
if attributes.key?(:'
|
192
|
-
self.
|
187
|
+
if attributes.key?(:'connect_timeout')
|
188
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
193
189
|
end
|
194
190
|
|
195
|
-
if attributes.key?(:'
|
196
|
-
|
191
|
+
if attributes.key?(:'pulp_labels')
|
192
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
193
|
+
self.pulp_labels = value
|
194
|
+
end
|
197
195
|
end
|
198
196
|
|
199
197
|
if attributes.key?(:'password')
|
200
198
|
self.password = attributes[:'password']
|
201
199
|
end
|
202
200
|
|
203
|
-
if attributes.key?(:'
|
204
|
-
|
205
|
-
|
206
|
-
|
201
|
+
if attributes.key?(:'client_key')
|
202
|
+
self.client_key = attributes[:'client_key']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.key?(:'sock_read_timeout')
|
206
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
207
207
|
end
|
208
208
|
|
209
209
|
if attributes.key?(:'download_concurrency')
|
210
210
|
self.download_concurrency = attributes[:'download_concurrency']
|
211
211
|
end
|
212
212
|
|
213
|
+
if attributes.key?(:'headers')
|
214
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
215
|
+
self.headers = value
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
213
219
|
if attributes.key?(:'proxy_password')
|
214
220
|
self.proxy_password = attributes[:'proxy_password']
|
215
221
|
end
|
216
222
|
|
223
|
+
if attributes.key?(:'url')
|
224
|
+
self.url = attributes[:'url']
|
225
|
+
end
|
226
|
+
|
217
227
|
if attributes.key?(:'proxy_username')
|
218
228
|
self.proxy_username = attributes[:'proxy_username']
|
219
229
|
end
|
@@ -222,38 +232,28 @@ module PulpAnsibleClient
|
|
222
232
|
self.ca_cert = attributes[:'ca_cert']
|
223
233
|
end
|
224
234
|
|
225
|
-
if attributes.key?(:'
|
226
|
-
self.
|
227
|
-
end
|
228
|
-
|
229
|
-
if attributes.key?(:'connect_timeout')
|
230
|
-
self.connect_timeout = attributes[:'connect_timeout']
|
235
|
+
if attributes.key?(:'rate_limit')
|
236
|
+
self.rate_limit = attributes[:'rate_limit']
|
231
237
|
end
|
232
238
|
|
233
239
|
if attributes.key?(:'max_retries')
|
234
240
|
self.max_retries = attributes[:'max_retries']
|
235
241
|
end
|
236
242
|
|
237
|
-
if attributes.key?(:'
|
238
|
-
self.
|
239
|
-
end
|
240
|
-
|
241
|
-
if attributes.key?(:'pulp_labels')
|
242
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
243
|
-
self.pulp_labels = value
|
244
|
-
end
|
243
|
+
if attributes.key?(:'sock_connect_timeout')
|
244
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
245
245
|
end
|
246
246
|
|
247
|
-
if attributes.key?(:'
|
248
|
-
self.
|
247
|
+
if attributes.key?(:'proxy_url')
|
248
|
+
self.proxy_url = attributes[:'proxy_url']
|
249
249
|
end
|
250
250
|
|
251
|
-
if attributes.key?(:'
|
252
|
-
self.
|
251
|
+
if attributes.key?(:'total_timeout')
|
252
|
+
self.total_timeout = attributes[:'total_timeout']
|
253
253
|
end
|
254
254
|
|
255
|
-
if attributes.key?(:'
|
256
|
-
self.
|
255
|
+
if attributes.key?(:'tls_validation')
|
256
|
+
self.tls_validation = attributes[:'tls_validation']
|
257
257
|
end
|
258
258
|
|
259
259
|
if attributes.key?(:'metadata_only')
|
@@ -277,22 +277,30 @@ module PulpAnsibleClient
|
|
277
277
|
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
278
278
|
end
|
279
279
|
|
280
|
-
if
|
281
|
-
invalid_properties.push('invalid value for "
|
280
|
+
if @name.nil?
|
281
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
282
282
|
end
|
283
283
|
|
284
|
-
if @
|
285
|
-
invalid_properties.push('invalid value for "
|
284
|
+
if @name.to_s.length < 1
|
285
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
286
286
|
end
|
287
287
|
|
288
|
-
if
|
289
|
-
invalid_properties.push('invalid value for "
|
288
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
289
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
290
290
|
end
|
291
291
|
|
292
292
|
if !@password.nil? && @password.to_s.length < 1
|
293
293
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
294
294
|
end
|
295
295
|
|
296
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
297
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
298
|
+
end
|
299
|
+
|
300
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
301
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
302
|
+
end
|
303
|
+
|
296
304
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
297
305
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
298
306
|
end
|
@@ -301,6 +309,14 @@ module PulpAnsibleClient
|
|
301
309
|
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
302
310
|
end
|
303
311
|
|
312
|
+
if @url.nil?
|
313
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
314
|
+
end
|
315
|
+
|
316
|
+
if @url.to_s.length < 1
|
317
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
318
|
+
end
|
319
|
+
|
304
320
|
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
305
321
|
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
306
322
|
end
|
@@ -309,32 +325,16 @@ module PulpAnsibleClient
|
|
309
325
|
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
310
326
|
end
|
311
327
|
|
312
|
-
if !@
|
313
|
-
invalid_properties.push('invalid value for "
|
314
|
-
end
|
315
|
-
|
316
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
317
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
328
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
329
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
318
330
|
end
|
319
331
|
|
320
332
|
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
321
333
|
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
322
334
|
end
|
323
335
|
|
324
|
-
if !@
|
325
|
-
invalid_properties.push('invalid value for "
|
326
|
-
end
|
327
|
-
|
328
|
-
if @name.nil?
|
329
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
330
|
-
end
|
331
|
-
|
332
|
-
if @name.to_s.length < 1
|
333
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
334
|
-
end
|
335
|
-
|
336
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
337
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
336
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
337
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
338
338
|
end
|
339
339
|
|
340
340
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
@@ -349,21 +349,21 @@ module PulpAnsibleClient
|
|
349
349
|
def valid?
|
350
350
|
return false if !@username.nil? && @username.to_s.length < 1
|
351
351
|
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
352
|
-
return false if
|
353
|
-
return false if @
|
354
|
-
return false if
|
352
|
+
return false if @name.nil?
|
353
|
+
return false if @name.to_s.length < 1
|
354
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
355
355
|
return false if !@password.nil? && @password.to_s.length < 1
|
356
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
357
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
356
358
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
357
359
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
360
|
+
return false if @url.nil?
|
361
|
+
return false if @url.to_s.length < 1
|
358
362
|
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
359
363
|
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
360
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
361
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
362
|
-
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
363
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
364
|
-
return false if @name.nil?
|
365
|
-
return false if @name.to_s.length < 1
|
366
364
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
365
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
366
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
367
367
|
return false if !@git_ref.nil? && @git_ref.to_s.length < 1
|
368
368
|
true
|
369
369
|
end
|
@@ -389,27 +389,27 @@ module PulpAnsibleClient
|
|
389
389
|
end
|
390
390
|
|
391
391
|
# Custom attribute writer method with validation
|
392
|
-
# @param [Object]
|
393
|
-
def
|
394
|
-
if
|
395
|
-
fail ArgumentError, '
|
392
|
+
# @param [Object] name Value to be assigned
|
393
|
+
def name=(name)
|
394
|
+
if name.nil?
|
395
|
+
fail ArgumentError, 'name cannot be nil'
|
396
396
|
end
|
397
397
|
|
398
|
-
|
398
|
+
if name.to_s.length < 1
|
399
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
400
|
+
end
|
401
|
+
|
402
|
+
@name = name
|
399
403
|
end
|
400
404
|
|
401
405
|
# Custom attribute writer method with validation
|
402
|
-
# @param [Object]
|
403
|
-
def
|
404
|
-
if
|
405
|
-
fail ArgumentError, '
|
406
|
-
end
|
407
|
-
|
408
|
-
if url.to_s.length < 1
|
409
|
-
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
406
|
+
# @param [Object] connect_timeout Value to be assigned
|
407
|
+
def connect_timeout=(connect_timeout)
|
408
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
409
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
410
410
|
end
|
411
411
|
|
412
|
-
@
|
412
|
+
@connect_timeout = connect_timeout
|
413
413
|
end
|
414
414
|
|
415
415
|
# Custom attribute writer method with validation
|
@@ -422,6 +422,26 @@ module PulpAnsibleClient
|
|
422
422
|
@password = password
|
423
423
|
end
|
424
424
|
|
425
|
+
# Custom attribute writer method with validation
|
426
|
+
# @param [Object] client_key Value to be assigned
|
427
|
+
def client_key=(client_key)
|
428
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
429
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
430
|
+
end
|
431
|
+
|
432
|
+
@client_key = client_key
|
433
|
+
end
|
434
|
+
|
435
|
+
# Custom attribute writer method with validation
|
436
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
437
|
+
def sock_read_timeout=(sock_read_timeout)
|
438
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
439
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
440
|
+
end
|
441
|
+
|
442
|
+
@sock_read_timeout = sock_read_timeout
|
443
|
+
end
|
444
|
+
|
425
445
|
# Custom attribute writer method with validation
|
426
446
|
# @param [Object] download_concurrency Value to be assigned
|
427
447
|
def download_concurrency=(download_concurrency)
|
@@ -442,6 +462,20 @@ module PulpAnsibleClient
|
|
442
462
|
@proxy_password = proxy_password
|
443
463
|
end
|
444
464
|
|
465
|
+
# Custom attribute writer method with validation
|
466
|
+
# @param [Object] url Value to be assigned
|
467
|
+
def url=(url)
|
468
|
+
if url.nil?
|
469
|
+
fail ArgumentError, 'url cannot be nil'
|
470
|
+
end
|
471
|
+
|
472
|
+
if url.to_s.length < 1
|
473
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
474
|
+
end
|
475
|
+
|
476
|
+
@url = url
|
477
|
+
end
|
478
|
+
|
445
479
|
# Custom attribute writer method with validation
|
446
480
|
# @param [Object] proxy_username Value to be assigned
|
447
481
|
def proxy_username=(proxy_username)
|
@@ -463,23 +497,13 @@ module PulpAnsibleClient
|
|
463
497
|
end
|
464
498
|
|
465
499
|
# Custom attribute writer method with validation
|
466
|
-
# @param [Object]
|
467
|
-
def
|
468
|
-
if !
|
469
|
-
fail ArgumentError, 'invalid value for "
|
470
|
-
end
|
471
|
-
|
472
|
-
@total_timeout = total_timeout
|
473
|
-
end
|
474
|
-
|
475
|
-
# Custom attribute writer method with validation
|
476
|
-
# @param [Object] connect_timeout Value to be assigned
|
477
|
-
def connect_timeout=(connect_timeout)
|
478
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
479
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
500
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
501
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
502
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
503
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
480
504
|
end
|
481
505
|
|
482
|
-
@
|
506
|
+
@sock_connect_timeout = sock_connect_timeout
|
483
507
|
end
|
484
508
|
|
485
509
|
# Custom attribute writer method with validation
|
@@ -493,37 +517,13 @@ module PulpAnsibleClient
|
|
493
517
|
end
|
494
518
|
|
495
519
|
# Custom attribute writer method with validation
|
496
|
-
# @param [Object]
|
497
|
-
def
|
498
|
-
if !
|
499
|
-
fail ArgumentError, 'invalid value for "
|
500
|
-
end
|
501
|
-
|
502
|
-
@sock_read_timeout = sock_read_timeout
|
503
|
-
end
|
504
|
-
|
505
|
-
# Custom attribute writer method with validation
|
506
|
-
# @param [Object] name Value to be assigned
|
507
|
-
def name=(name)
|
508
|
-
if name.nil?
|
509
|
-
fail ArgumentError, 'name cannot be nil'
|
510
|
-
end
|
511
|
-
|
512
|
-
if name.to_s.length < 1
|
513
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
514
|
-
end
|
515
|
-
|
516
|
-
@name = name
|
517
|
-
end
|
518
|
-
|
519
|
-
# Custom attribute writer method with validation
|
520
|
-
# @param [Object] sock_connect_timeout Value to be assigned
|
521
|
-
def sock_connect_timeout=(sock_connect_timeout)
|
522
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
523
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
520
|
+
# @param [Object] total_timeout Value to be assigned
|
521
|
+
def total_timeout=(total_timeout)
|
522
|
+
if !total_timeout.nil? && total_timeout < 0
|
523
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
524
524
|
end
|
525
525
|
|
526
|
-
@
|
526
|
+
@total_timeout = total_timeout
|
527
527
|
end
|
528
528
|
|
529
529
|
# Custom attribute writer method with validation
|
@@ -541,26 +541,26 @@ module PulpAnsibleClient
|
|
541
541
|
def ==(o)
|
542
542
|
return true if self.equal?(o)
|
543
543
|
self.class == o.class &&
|
544
|
-
tls_validation == o.tls_validation &&
|
545
544
|
username == o.username &&
|
546
545
|
client_cert == o.client_cert &&
|
547
|
-
|
548
|
-
|
549
|
-
|
546
|
+
name == o.name &&
|
547
|
+
connect_timeout == o.connect_timeout &&
|
548
|
+
pulp_labels == o.pulp_labels &&
|
550
549
|
password == o.password &&
|
551
|
-
|
550
|
+
client_key == o.client_key &&
|
551
|
+
sock_read_timeout == o.sock_read_timeout &&
|
552
552
|
download_concurrency == o.download_concurrency &&
|
553
|
+
headers == o.headers &&
|
553
554
|
proxy_password == o.proxy_password &&
|
555
|
+
url == o.url &&
|
554
556
|
proxy_username == o.proxy_username &&
|
555
557
|
ca_cert == o.ca_cert &&
|
556
|
-
|
557
|
-
connect_timeout == o.connect_timeout &&
|
558
|
+
rate_limit == o.rate_limit &&
|
558
559
|
max_retries == o.max_retries &&
|
559
|
-
proxy_url == o.proxy_url &&
|
560
|
-
pulp_labels == o.pulp_labels &&
|
561
|
-
sock_read_timeout == o.sock_read_timeout &&
|
562
|
-
name == o.name &&
|
563
560
|
sock_connect_timeout == o.sock_connect_timeout &&
|
561
|
+
proxy_url == o.proxy_url &&
|
562
|
+
total_timeout == o.total_timeout &&
|
563
|
+
tls_validation == o.tls_validation &&
|
564
564
|
metadata_only == o.metadata_only &&
|
565
565
|
git_ref == o.git_ref
|
566
566
|
end
|
@@ -574,7 +574,7 @@ module PulpAnsibleClient
|
|
574
574
|
# Calculates hash code according to all attributes.
|
575
575
|
# @return [Integer] Hash code
|
576
576
|
def hash
|
577
|
-
[
|
577
|
+
[username, client_cert, name, connect_timeout, pulp_labels, password, client_key, sock_read_timeout, download_concurrency, headers, proxy_password, url, proxy_username, ca_cert, rate_limit, max_retries, sock_connect_timeout, proxy_url, total_timeout, tls_validation, metadata_only, git_ref].hash
|
578
578
|
end
|
579
579
|
|
580
580
|
# Builds the object from hash
|