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