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