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 AnsibleGitRemote
|
|
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,92 +178,92 @@ 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']
|
|
199
|
+
else
|
|
200
|
+
self.url = nil
|
|
201
201
|
end
|
|
202
202
|
|
|
203
|
-
if attributes.key?(:'
|
|
204
|
-
self.
|
|
203
|
+
if attributes.key?(:'username')
|
|
204
|
+
self.username = attributes[:'username']
|
|
205
205
|
end
|
|
206
206
|
|
|
207
207
|
if attributes.key?(:'sock_connect_timeout')
|
|
208
208
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
if attributes.key?(:'
|
|
212
|
-
self.
|
|
211
|
+
if attributes.key?(:'client_key')
|
|
212
|
+
self.client_key = attributes[:'client_key']
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
if attributes.key?(:'ca_cert')
|
|
216
216
|
self.ca_cert = attributes[:'ca_cert']
|
|
217
217
|
end
|
|
218
218
|
|
|
219
|
-
if attributes.key?(:'
|
|
220
|
-
self.
|
|
219
|
+
if attributes.key?(:'proxy_url')
|
|
220
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
-
if attributes.key?(:'
|
|
224
|
-
|
|
225
|
-
self.pulp_labels = value
|
|
226
|
-
end
|
|
223
|
+
if attributes.key?(:'connect_timeout')
|
|
224
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
227
225
|
end
|
|
228
226
|
|
|
229
227
|
if attributes.key?(:'sock_read_timeout')
|
|
230
228
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
231
229
|
end
|
|
232
230
|
|
|
233
|
-
if attributes.key?(:'
|
|
234
|
-
self.
|
|
231
|
+
if attributes.key?(:'total_timeout')
|
|
232
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
235
233
|
end
|
|
236
234
|
|
|
237
|
-
if attributes.key?(:'
|
|
238
|
-
self.
|
|
235
|
+
if attributes.key?(:'name')
|
|
236
|
+
self.name = attributes[:'name']
|
|
237
|
+
else
|
|
238
|
+
self.name = nil
|
|
239
239
|
end
|
|
240
240
|
|
|
241
|
-
if attributes.key?(:'
|
|
242
|
-
|
|
241
|
+
if attributes.key?(:'headers')
|
|
242
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
243
|
+
self.headers = value
|
|
244
|
+
end
|
|
243
245
|
end
|
|
244
246
|
|
|
245
|
-
if attributes.key?(:'
|
|
246
|
-
self.
|
|
247
|
+
if attributes.key?(:'proxy_username')
|
|
248
|
+
self.proxy_username = attributes[:'proxy_username']
|
|
247
249
|
end
|
|
248
250
|
|
|
249
|
-
if attributes.key?(:'
|
|
250
|
-
self.
|
|
251
|
+
if attributes.key?(:'client_cert')
|
|
252
|
+
self.client_cert = attributes[:'client_cert']
|
|
251
253
|
end
|
|
252
254
|
|
|
253
|
-
if attributes.key?(:'
|
|
254
|
-
self.
|
|
255
|
-
else
|
|
256
|
-
self.name = nil
|
|
255
|
+
if attributes.key?(:'rate_limit')
|
|
256
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
257
257
|
end
|
|
258
258
|
|
|
259
|
-
if attributes.key?(:'
|
|
260
|
-
|
|
259
|
+
if attributes.key?(:'pulp_labels')
|
|
260
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
261
|
+
self.pulp_labels = value
|
|
262
|
+
end
|
|
261
263
|
end
|
|
262
264
|
|
|
263
|
-
if attributes.key?(:'
|
|
264
|
-
self.
|
|
265
|
-
else
|
|
266
|
-
self.url = nil
|
|
265
|
+
if attributes.key?(:'password')
|
|
266
|
+
self.password = attributes[:'password']
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
if attributes.key?(:'metadata_only')
|
|
@@ -280,52 +280,52 @@ 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 !@
|
|
284
|
-
invalid_properties.push('invalid value for "
|
|
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
285
|
end
|
|
286
286
|
|
|
287
287
|
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
288
288
|
invalid_properties.push('invalid value for "proxy_password", 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 @url.nil?
|
|
292
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
-
if
|
|
296
|
-
invalid_properties.push('invalid value for "
|
|
295
|
+
if @url.to_s.length < 1
|
|
296
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if !@username.nil? && @username.to_s.length < 1
|
|
300
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
|
297
301
|
end
|
|
298
302
|
|
|
299
303
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
300
304
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
301
305
|
end
|
|
302
306
|
|
|
303
|
-
if !@
|
|
304
|
-
invalid_properties.push('invalid value for "
|
|
307
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
|
308
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
|
305
309
|
end
|
|
306
310
|
|
|
307
311
|
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
|
308
312
|
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
|
309
313
|
end
|
|
310
314
|
|
|
311
|
-
if !@
|
|
312
|
-
invalid_properties.push('invalid value for "
|
|
313
|
-
end
|
|
314
|
-
|
|
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.')
|
|
315
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
|
316
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
|
317
317
|
end
|
|
318
318
|
|
|
319
|
-
if !@
|
|
320
|
-
invalid_properties.push('invalid value for "
|
|
319
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
320
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
321
321
|
end
|
|
322
322
|
|
|
323
|
-
if !@
|
|
324
|
-
invalid_properties.push('invalid value for "
|
|
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
325
|
end
|
|
326
326
|
|
|
327
|
-
if !@
|
|
328
|
-
invalid_properties.push('invalid value for "
|
|
327
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
328
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
329
329
|
end
|
|
330
330
|
|
|
331
331
|
if @name.nil?
|
|
@@ -336,16 +336,16 @@ module PulpAnsibleClient
|
|
|
336
336
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
337
337
|
end
|
|
338
338
|
|
|
339
|
-
if !@
|
|
340
|
-
invalid_properties.push('invalid value for "
|
|
339
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
|
340
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
|
341
341
|
end
|
|
342
342
|
|
|
343
|
-
if
|
|
344
|
-
invalid_properties.push('invalid value for "
|
|
343
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
|
344
|
+
invalid_properties.push('invalid value for "client_cert", 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 !@password.nil? && @password.to_s.length < 1
|
|
348
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
|
349
349
|
end
|
|
350
350
|
|
|
351
351
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
|
@@ -359,35 +359,35 @@ 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 !@
|
|
362
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
363
363
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
364
|
+
return false if @url.nil?
|
|
365
|
+
return false if @url.to_s.length < 1
|
|
364
366
|
return false if !@username.nil? && @username.to_s.length < 1
|
|
365
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
366
367
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
367
|
-
return false if !@
|
|
368
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
|
368
369
|
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
|
370
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
|
371
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
369
372
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
373
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
374
|
+
return false if @name.nil?
|
|
375
|
+
return false if @name.to_s.length < 1
|
|
370
376
|
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
|
371
377
|
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
|
372
|
-
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
|
373
378
|
return false if !@password.nil? && @password.to_s.length < 1
|
|
374
|
-
return false if @name.nil?
|
|
375
|
-
return false if @name.to_s.length < 1
|
|
376
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
377
|
-
return false if @url.nil?
|
|
378
|
-
return false if @url.to_s.length < 1
|
|
379
379
|
return false if !@git_ref.nil? && @git_ref.to_s.length < 1
|
|
380
380
|
true
|
|
381
381
|
end
|
|
382
382
|
|
|
383
383
|
# Custom attribute writer method with validation
|
|
384
|
-
# @param [Object]
|
|
385
|
-
def
|
|
386
|
-
if !
|
|
387
|
-
fail ArgumentError, 'invalid value for "
|
|
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
388
|
end
|
|
389
389
|
|
|
390
|
-
@
|
|
390
|
+
@download_concurrency = download_concurrency
|
|
391
391
|
end
|
|
392
392
|
|
|
393
393
|
# Custom attribute writer method with validation
|
|
@@ -401,23 +401,27 @@ module PulpAnsibleClient
|
|
|
401
401
|
end
|
|
402
402
|
|
|
403
403
|
# Custom attribute writer method with validation
|
|
404
|
-
# @param [Object]
|
|
405
|
-
def
|
|
406
|
-
if
|
|
407
|
-
fail ArgumentError, '
|
|
404
|
+
# @param [Object] url Value to be assigned
|
|
405
|
+
def url=(url)
|
|
406
|
+
if url.nil?
|
|
407
|
+
fail ArgumentError, 'url cannot be nil'
|
|
408
408
|
end
|
|
409
409
|
|
|
410
|
-
|
|
410
|
+
if url.to_s.length < 1
|
|
411
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
@url = url
|
|
411
415
|
end
|
|
412
416
|
|
|
413
417
|
# Custom attribute writer method with validation
|
|
414
|
-
# @param [Object]
|
|
415
|
-
def
|
|
416
|
-
if !
|
|
417
|
-
fail ArgumentError, 'invalid value for "
|
|
418
|
+
# @param [Object] username Value to be assigned
|
|
419
|
+
def username=(username)
|
|
420
|
+
if !username.nil? && username.to_s.length < 1
|
|
421
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
|
418
422
|
end
|
|
419
423
|
|
|
420
|
-
@
|
|
424
|
+
@username = username
|
|
421
425
|
end
|
|
422
426
|
|
|
423
427
|
# Custom attribute writer method with validation
|
|
@@ -431,13 +435,13 @@ module PulpAnsibleClient
|
|
|
431
435
|
end
|
|
432
436
|
|
|
433
437
|
# Custom attribute writer method with validation
|
|
434
|
-
# @param [Object]
|
|
435
|
-
def
|
|
436
|
-
if !
|
|
437
|
-
fail ArgumentError, 'invalid value for "
|
|
438
|
+
# @param [Object] client_key Value to be assigned
|
|
439
|
+
def client_key=(client_key)
|
|
440
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
|
441
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
|
438
442
|
end
|
|
439
443
|
|
|
440
|
-
@
|
|
444
|
+
@client_key = client_key
|
|
441
445
|
end
|
|
442
446
|
|
|
443
447
|
# Custom attribute writer method with validation
|
|
@@ -451,53 +455,43 @@ module PulpAnsibleClient
|
|
|
451
455
|
end
|
|
452
456
|
|
|
453
457
|
# Custom attribute writer method with validation
|
|
454
|
-
# @param [Object]
|
|
455
|
-
def
|
|
456
|
-
if !
|
|
457
|
-
fail ArgumentError, 'invalid value for "
|
|
458
|
-
end
|
|
459
|
-
|
|
460
|
-
@sock_read_timeout = sock_read_timeout
|
|
461
|
-
end
|
|
462
|
-
|
|
463
|
-
# Custom attribute writer method with validation
|
|
464
|
-
# @param [Object] proxy_username Value to be assigned
|
|
465
|
-
def proxy_username=(proxy_username)
|
|
466
|
-
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
|
467
|
-
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
|
458
|
+
# @param [Object] proxy_url Value to be assigned
|
|
459
|
+
def proxy_url=(proxy_url)
|
|
460
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
|
461
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
|
468
462
|
end
|
|
469
463
|
|
|
470
|
-
@
|
|
464
|
+
@proxy_url = proxy_url
|
|
471
465
|
end
|
|
472
466
|
|
|
473
467
|
# Custom attribute writer method with validation
|
|
474
|
-
# @param [Object]
|
|
475
|
-
def
|
|
476
|
-
if !
|
|
477
|
-
fail ArgumentError, 'invalid value for "
|
|
468
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
469
|
+
def connect_timeout=(connect_timeout)
|
|
470
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
471
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
478
472
|
end
|
|
479
473
|
|
|
480
|
-
@
|
|
474
|
+
@connect_timeout = connect_timeout
|
|
481
475
|
end
|
|
482
476
|
|
|
483
477
|
# Custom attribute writer method with validation
|
|
484
|
-
# @param [Object]
|
|
485
|
-
def
|
|
486
|
-
if !
|
|
487
|
-
fail ArgumentError, 'invalid value for "
|
|
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.'
|
|
488
482
|
end
|
|
489
483
|
|
|
490
|
-
@
|
|
484
|
+
@sock_read_timeout = sock_read_timeout
|
|
491
485
|
end
|
|
492
486
|
|
|
493
487
|
# Custom attribute writer method with validation
|
|
494
|
-
# @param [Object]
|
|
495
|
-
def
|
|
496
|
-
if !
|
|
497
|
-
fail ArgumentError, 'invalid value for "
|
|
488
|
+
# @param [Object] total_timeout Value to be assigned
|
|
489
|
+
def total_timeout=(total_timeout)
|
|
490
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
491
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
498
492
|
end
|
|
499
493
|
|
|
500
|
-
@
|
|
494
|
+
@total_timeout = total_timeout
|
|
501
495
|
end
|
|
502
496
|
|
|
503
497
|
# Custom attribute writer method with validation
|
|
@@ -515,27 +509,33 @@ module PulpAnsibleClient
|
|
|
515
509
|
end
|
|
516
510
|
|
|
517
511
|
# Custom attribute writer method with validation
|
|
518
|
-
# @param [Object]
|
|
519
|
-
def
|
|
520
|
-
if !
|
|
521
|
-
fail ArgumentError, 'invalid value for "
|
|
512
|
+
# @param [Object] proxy_username Value to be assigned
|
|
513
|
+
def proxy_username=(proxy_username)
|
|
514
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
|
515
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
|
522
516
|
end
|
|
523
517
|
|
|
524
|
-
@
|
|
518
|
+
@proxy_username = proxy_username
|
|
525
519
|
end
|
|
526
520
|
|
|
527
521
|
# Custom attribute writer method with validation
|
|
528
|
-
# @param [Object]
|
|
529
|
-
def
|
|
530
|
-
if
|
|
531
|
-
fail ArgumentError, '
|
|
522
|
+
# @param [Object] client_cert Value to be assigned
|
|
523
|
+
def client_cert=(client_cert)
|
|
524
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
|
525
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
|
532
526
|
end
|
|
533
527
|
|
|
534
|
-
|
|
535
|
-
|
|
528
|
+
@client_cert = client_cert
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
# Custom attribute writer method with validation
|
|
532
|
+
# @param [Object] password Value to be assigned
|
|
533
|
+
def password=(password)
|
|
534
|
+
if !password.nil? && password.to_s.length < 1
|
|
535
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
|
536
536
|
end
|
|
537
537
|
|
|
538
|
-
@
|
|
538
|
+
@password = password
|
|
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
|
-
|
|
561
|
-
|
|
562
|
-
|
|
560
|
+
download_concurrency == o.download_concurrency &&
|
|
561
|
+
tls_validation == o.tls_validation &&
|
|
562
|
+
max_retries == o.max_retries &&
|
|
563
563
|
proxy_password == o.proxy_password &&
|
|
564
|
+
url == o.url &&
|
|
564
565
|
username == o.username &&
|
|
565
|
-
total_timeout == o.total_timeout &&
|
|
566
566
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
567
|
-
|
|
567
|
+
client_key == o.client_key &&
|
|
568
568
|
ca_cert == o.ca_cert &&
|
|
569
|
-
|
|
570
|
-
|
|
569
|
+
proxy_url == o.proxy_url &&
|
|
570
|
+
connect_timeout == o.connect_timeout &&
|
|
571
571
|
sock_read_timeout == o.sock_read_timeout &&
|
|
572
|
-
|
|
572
|
+
total_timeout == o.total_timeout &&
|
|
573
|
+
name == o.name &&
|
|
574
|
+
headers == o.headers &&
|
|
573
575
|
proxy_username == o.proxy_username &&
|
|
574
576
|
client_cert == o.client_cert &&
|
|
575
|
-
|
|
577
|
+
rate_limit == o.rate_limit &&
|
|
578
|
+
pulp_labels == o.pulp_labels &&
|
|
576
579
|
password == o.password &&
|
|
577
|
-
name == o.name &&
|
|
578
|
-
download_concurrency == o.download_concurrency &&
|
|
579
|
-
url == o.url &&
|
|
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
|
+
[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
|
|
594
594
|
end
|
|
595
595
|
|
|
596
596
|
# Builds the object from hash
|