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 PatchedansibleGitRemote
|
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,32 +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
|
-
end
|
196
|
-
|
197
|
-
if attributes.key?(:'password')
|
198
|
-
self.password = attributes[:'password']
|
185
|
+
if attributes.key?(:'download_concurrency')
|
186
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
199
187
|
end
|
200
188
|
|
201
|
-
if attributes.key?(:'
|
202
|
-
self.
|
189
|
+
if attributes.key?(:'total_timeout')
|
190
|
+
self.total_timeout = attributes[:'total_timeout']
|
203
191
|
end
|
204
192
|
|
205
|
-
if attributes.key?(:'
|
206
|
-
self.
|
193
|
+
if attributes.key?(:'client_key')
|
194
|
+
self.client_key = attributes[:'client_key']
|
207
195
|
end
|
208
196
|
|
209
197
|
if attributes.key?(:'headers')
|
@@ -216,50 +204,62 @@ module PulpAnsibleClient
|
|
216
204
|
self.tls_validation = attributes[:'tls_validation']
|
217
205
|
end
|
218
206
|
|
219
|
-
if attributes.key?(:'
|
220
|
-
|
207
|
+
if attributes.key?(:'pulp_labels')
|
208
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
209
|
+
self.pulp_labels = value
|
210
|
+
end
|
221
211
|
end
|
222
212
|
|
223
|
-
if attributes.key?(:'
|
224
|
-
self.
|
213
|
+
if attributes.key?(:'sock_connect_timeout')
|
214
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
225
215
|
end
|
226
216
|
|
227
|
-
if attributes.key?(:'
|
228
|
-
self.
|
217
|
+
if attributes.key?(:'ca_cert')
|
218
|
+
self.ca_cert = attributes[:'ca_cert']
|
229
219
|
end
|
230
220
|
|
231
|
-
if attributes.key?(:'
|
232
|
-
self.
|
221
|
+
if attributes.key?(:'password')
|
222
|
+
self.password = attributes[:'password']
|
233
223
|
end
|
234
224
|
|
235
|
-
if attributes.key?(:'
|
236
|
-
self.
|
225
|
+
if attributes.key?(:'url')
|
226
|
+
self.url = attributes[:'url']
|
237
227
|
end
|
238
228
|
|
239
|
-
if attributes.key?(:'
|
240
|
-
self.
|
229
|
+
if attributes.key?(:'proxy_username')
|
230
|
+
self.proxy_username = attributes[:'proxy_username']
|
241
231
|
end
|
242
232
|
|
243
|
-
if attributes.key?(:'
|
244
|
-
self.
|
233
|
+
if attributes.key?(:'sock_read_timeout')
|
234
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
245
235
|
end
|
246
236
|
|
247
|
-
if attributes.key?(:'
|
248
|
-
self.
|
237
|
+
if attributes.key?(:'proxy_url')
|
238
|
+
self.proxy_url = attributes[:'proxy_url']
|
249
239
|
end
|
250
240
|
|
251
241
|
if attributes.key?(:'username')
|
252
242
|
self.username = attributes[:'username']
|
253
243
|
end
|
254
244
|
|
255
|
-
if attributes.key?(:'
|
256
|
-
self.
|
245
|
+
if attributes.key?(:'client_cert')
|
246
|
+
self.client_cert = attributes[:'client_cert']
|
257
247
|
end
|
258
248
|
|
259
|
-
if attributes.key?(:'
|
260
|
-
|
261
|
-
|
262
|
-
|
249
|
+
if attributes.key?(:'max_retries')
|
250
|
+
self.max_retries = attributes[:'max_retries']
|
251
|
+
end
|
252
|
+
|
253
|
+
if attributes.key?(:'name')
|
254
|
+
self.name = attributes[:'name']
|
255
|
+
end
|
256
|
+
|
257
|
+
if attributes.key?(:'proxy_password')
|
258
|
+
self.proxy_password = attributes[:'proxy_password']
|
259
|
+
end
|
260
|
+
|
261
|
+
if attributes.key?(:'connect_timeout')
|
262
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
263
263
|
end
|
264
264
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
@@ -276,6 +276,18 @@ module PulpAnsibleClient
|
|
276
276
|
def list_invalid_properties
|
277
277
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
278
278
|
invalid_properties = Array.new
|
279
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
280
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
281
|
+
end
|
282
|
+
|
283
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
284
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
285
|
+
end
|
286
|
+
|
287
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
288
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
289
|
+
end
|
290
|
+
|
279
291
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
280
292
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
281
293
|
end
|
@@ -284,56 +296,44 @@ module PulpAnsibleClient
|
|
284
296
|
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
285
297
|
end
|
286
298
|
|
287
|
-
if !@url.nil? && @url.to_s.length < 1
|
288
|
-
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
289
|
-
end
|
290
|
-
|
291
299
|
if !@password.nil? && @password.to_s.length < 1
|
292
300
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
293
301
|
end
|
294
302
|
|
295
|
-
if !@
|
296
|
-
invalid_properties.push('invalid value for "
|
303
|
+
if !@url.nil? && @url.to_s.length < 1
|
304
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
297
305
|
end
|
298
306
|
|
299
|
-
if !@
|
300
|
-
invalid_properties.push('invalid value for "
|
307
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
308
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
309
|
+
end
|
310
|
+
|
311
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
312
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
301
313
|
end
|
302
314
|
|
303
315
|
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
304
316
|
invalid_properties.push('invalid value for "proxy_url", 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 !@username.nil? && @username.to_s.length < 1
|
320
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
309
321
|
end
|
310
322
|
|
311
323
|
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
312
324
|
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
313
325
|
end
|
314
326
|
|
315
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
316
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
317
|
-
end
|
318
|
-
|
319
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
320
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
321
|
-
end
|
322
|
-
|
323
327
|
if !@name.nil? && @name.to_s.length < 1
|
324
328
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
325
329
|
end
|
326
330
|
|
327
|
-
if !@
|
328
|
-
invalid_properties.push('invalid value for "
|
329
|
-
end
|
330
|
-
|
331
|
-
if !@username.nil? && @username.to_s.length < 1
|
332
|
-
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
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
333
|
end
|
334
334
|
|
335
|
-
if !@
|
336
|
-
invalid_properties.push('invalid value for "
|
335
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
336
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
337
337
|
end
|
338
338
|
|
339
339
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
@@ -347,25 +347,55 @@ module PulpAnsibleClient
|
|
347
347
|
# @return true if the model is valid
|
348
348
|
def valid?
|
349
349
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
350
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
351
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
352
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
350
353
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
351
354
|
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
352
|
-
return false if !@url.nil? && @url.to_s.length < 1
|
353
355
|
return false if !@password.nil? && @password.to_s.length < 1
|
354
|
-
return false if !@
|
355
|
-
return false if !@
|
356
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
357
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
358
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
356
359
|
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
357
|
-
return false if !@
|
360
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
358
361
|
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
359
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
360
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
361
362
|
return false if !@name.nil? && @name.to_s.length < 1
|
362
|
-
return false if !@
|
363
|
-
return false if !@
|
364
|
-
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
363
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
364
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
365
365
|
return false if !@git_ref.nil? && @git_ref.to_s.length < 1
|
366
366
|
true
|
367
367
|
end
|
368
368
|
|
369
|
+
# Custom attribute writer method with validation
|
370
|
+
# @param [Object] download_concurrency Value to be assigned
|
371
|
+
def download_concurrency=(download_concurrency)
|
372
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
373
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
374
|
+
end
|
375
|
+
|
376
|
+
@download_concurrency = download_concurrency
|
377
|
+
end
|
378
|
+
|
379
|
+
# Custom attribute writer method with validation
|
380
|
+
# @param [Object] total_timeout Value to be assigned
|
381
|
+
def total_timeout=(total_timeout)
|
382
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
383
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
384
|
+
end
|
385
|
+
|
386
|
+
@total_timeout = total_timeout
|
387
|
+
end
|
388
|
+
|
389
|
+
# Custom attribute writer method with validation
|
390
|
+
# @param [Object] client_key Value to be assigned
|
391
|
+
def client_key=(client_key)
|
392
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
393
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
394
|
+
end
|
395
|
+
|
396
|
+
@client_key = client_key
|
397
|
+
end
|
398
|
+
|
369
399
|
# Custom attribute writer method with validation
|
370
400
|
# @param [Object] sock_connect_timeout Value to be assigned
|
371
401
|
def sock_connect_timeout=(sock_connect_timeout)
|
@@ -386,6 +416,16 @@ module PulpAnsibleClient
|
|
386
416
|
@ca_cert = ca_cert
|
387
417
|
end
|
388
418
|
|
419
|
+
# Custom attribute writer method with validation
|
420
|
+
# @param [Object] password Value to be assigned
|
421
|
+
def password=(password)
|
422
|
+
if !password.nil? && password.to_s.length < 1
|
423
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
424
|
+
end
|
425
|
+
|
426
|
+
@password = password
|
427
|
+
end
|
428
|
+
|
389
429
|
# Custom attribute writer method with validation
|
390
430
|
# @param [Object] url Value to be assigned
|
391
431
|
def url=(url)
|
@@ -401,33 +441,23 @@ module PulpAnsibleClient
|
|
401
441
|
end
|
402
442
|
|
403
443
|
# Custom attribute writer method with validation
|
404
|
-
# @param [Object]
|
405
|
-
def
|
406
|
-
if !
|
407
|
-
fail ArgumentError, 'invalid value for "
|
408
|
-
end
|
409
|
-
|
410
|
-
@password = password
|
411
|
-
end
|
412
|
-
|
413
|
-
# Custom attribute writer method with validation
|
414
|
-
# @param [Object] proxy_password Value to be assigned
|
415
|
-
def proxy_password=(proxy_password)
|
416
|
-
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
417
|
-
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
444
|
+
# @param [Object] proxy_username Value to be assigned
|
445
|
+
def proxy_username=(proxy_username)
|
446
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
447
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
418
448
|
end
|
419
449
|
|
420
|
-
@
|
450
|
+
@proxy_username = proxy_username
|
421
451
|
end
|
422
452
|
|
423
453
|
# Custom attribute writer method with validation
|
424
|
-
# @param [Object]
|
425
|
-
def
|
426
|
-
if !
|
427
|
-
fail ArgumentError, 'invalid value for "
|
454
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
455
|
+
def sock_read_timeout=(sock_read_timeout)
|
456
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
457
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
428
458
|
end
|
429
459
|
|
430
|
-
@
|
460
|
+
@sock_read_timeout = sock_read_timeout
|
431
461
|
end
|
432
462
|
|
433
463
|
# Custom attribute writer method with validation
|
@@ -441,13 +471,13 @@ module PulpAnsibleClient
|
|
441
471
|
end
|
442
472
|
|
443
473
|
# Custom attribute writer method with validation
|
444
|
-
# @param [Object]
|
445
|
-
def
|
446
|
-
if !
|
447
|
-
fail ArgumentError, 'invalid value for "
|
474
|
+
# @param [Object] username Value to be assigned
|
475
|
+
def username=(username)
|
476
|
+
if !username.nil? && username.to_s.length < 1
|
477
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
448
478
|
end
|
449
479
|
|
450
|
-
@
|
480
|
+
@username = username
|
451
481
|
end
|
452
482
|
|
453
483
|
# Custom attribute writer method with validation
|
@@ -460,26 +490,6 @@ module PulpAnsibleClient
|
|
460
490
|
@client_cert = client_cert
|
461
491
|
end
|
462
492
|
|
463
|
-
# Custom attribute writer method with validation
|
464
|
-
# @param [Object] sock_read_timeout Value to be assigned
|
465
|
-
def sock_read_timeout=(sock_read_timeout)
|
466
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
467
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
468
|
-
end
|
469
|
-
|
470
|
-
@sock_read_timeout = sock_read_timeout
|
471
|
-
end
|
472
|
-
|
473
|
-
# Custom attribute writer method with validation
|
474
|
-
# @param [Object] download_concurrency Value to be assigned
|
475
|
-
def download_concurrency=(download_concurrency)
|
476
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
477
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
478
|
-
end
|
479
|
-
|
480
|
-
@download_concurrency = download_concurrency
|
481
|
-
end
|
482
|
-
|
483
493
|
# Custom attribute writer method with validation
|
484
494
|
# @param [Object] name Value to be assigned
|
485
495
|
def name=(name)
|
@@ -495,33 +505,23 @@ module PulpAnsibleClient
|
|
495
505
|
end
|
496
506
|
|
497
507
|
# Custom attribute writer method with validation
|
498
|
-
# @param [Object]
|
499
|
-
def
|
500
|
-
if !
|
501
|
-
fail ArgumentError, 'invalid value for "
|
502
|
-
end
|
503
|
-
|
504
|
-
@total_timeout = total_timeout
|
505
|
-
end
|
506
|
-
|
507
|
-
# Custom attribute writer method with validation
|
508
|
-
# @param [Object] username Value to be assigned
|
509
|
-
def username=(username)
|
510
|
-
if !username.nil? && username.to_s.length < 1
|
511
|
-
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
508
|
+
# @param [Object] proxy_password Value to be assigned
|
509
|
+
def proxy_password=(proxy_password)
|
510
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
511
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
512
512
|
end
|
513
513
|
|
514
|
-
@
|
514
|
+
@proxy_password = proxy_password
|
515
515
|
end
|
516
516
|
|
517
517
|
# Custom attribute writer method with validation
|
518
|
-
# @param [Object]
|
519
|
-
def
|
520
|
-
if !
|
521
|
-
fail ArgumentError, 'invalid value for "
|
518
|
+
# @param [Object] connect_timeout Value to be assigned
|
519
|
+
def connect_timeout=(connect_timeout)
|
520
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
521
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
522
522
|
end
|
523
523
|
|
524
|
-
@
|
524
|
+
@connect_timeout = connect_timeout
|
525
525
|
end
|
526
526
|
|
527
527
|
# Custom attribute writer method with validation
|
@@ -543,26 +543,26 @@ module PulpAnsibleClient
|
|
543
543
|
def ==(o)
|
544
544
|
return true if self.equal?(o)
|
545
545
|
self.class == o.class &&
|
546
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
547
|
-
ca_cert == o.ca_cert &&
|
548
546
|
rate_limit == o.rate_limit &&
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
connect_timeout == o.connect_timeout &&
|
547
|
+
download_concurrency == o.download_concurrency &&
|
548
|
+
total_timeout == o.total_timeout &&
|
549
|
+
client_key == o.client_key &&
|
553
550
|
headers == o.headers &&
|
554
551
|
tls_validation == o.tls_validation &&
|
552
|
+
pulp_labels == o.pulp_labels &&
|
553
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
554
|
+
ca_cert == o.ca_cert &&
|
555
|
+
password == o.password &&
|
556
|
+
url == o.url &&
|
557
|
+
proxy_username == o.proxy_username &&
|
558
|
+
sock_read_timeout == o.sock_read_timeout &&
|
555
559
|
proxy_url == o.proxy_url &&
|
556
|
-
|
560
|
+
username == o.username &&
|
557
561
|
client_cert == o.client_cert &&
|
558
|
-
sock_read_timeout == o.sock_read_timeout &&
|
559
|
-
download_concurrency == o.download_concurrency &&
|
560
562
|
max_retries == o.max_retries &&
|
561
563
|
name == o.name &&
|
562
|
-
|
563
|
-
|
564
|
-
proxy_username == o.proxy_username &&
|
565
|
-
pulp_labels == o.pulp_labels &&
|
564
|
+
proxy_password == o.proxy_password &&
|
565
|
+
connect_timeout == o.connect_timeout &&
|
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
|
-
[
|
579
|
+
[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
|
580
580
|
end
|
581
581
|
|
582
582
|
# Builds the object from hash
|