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