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