pulp_ansible_client 0.11.0.dev1636773338 → 0.11.0.dev1636859743
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_ansible_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +22 -22
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +145 -145
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +126 -126
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +140 -140
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/models/ansible_git_remote_response_spec.rb +16 -16
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +2 -2
@@ -15,64 +15,64 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemote
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# 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.
|
22
|
-
attr_accessor :sock_connect_timeout
|
18
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
19
|
+
attr_accessor :download_concurrency
|
23
20
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
21
|
+
# The password to be used for authentication when syncing.
|
22
|
+
attr_accessor :password
|
26
23
|
|
27
24
|
# A PEM encoded private key used for authentication.
|
28
25
|
attr_accessor :client_key
|
29
26
|
|
30
|
-
# 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.
|
31
|
-
attr_accessor :sock_read_timeout
|
32
|
-
|
33
|
-
# The username to be used for authentication when syncing.
|
34
|
-
attr_accessor :username
|
35
|
-
|
36
|
-
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
37
|
-
attr_accessor :max_retries
|
38
|
-
|
39
27
|
# Limits total download rate in requests per second
|
40
28
|
attr_accessor :rate_limit
|
41
29
|
|
42
|
-
#
|
43
|
-
attr_accessor :
|
30
|
+
# A unique name for this remote.
|
31
|
+
attr_accessor :name
|
44
32
|
|
45
33
|
# The proxy URL. Format: scheme://host:port
|
46
34
|
attr_accessor :proxy_url
|
47
35
|
|
48
|
-
#
|
49
|
-
attr_accessor :
|
36
|
+
# The username to be used for authentication when syncing.
|
37
|
+
attr_accessor :username
|
50
38
|
|
51
|
-
|
39
|
+
# 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.
|
40
|
+
attr_accessor :sock_read_timeout
|
52
41
|
|
53
42
|
# The username to authenticte to the proxy.
|
54
43
|
attr_accessor :proxy_username
|
55
44
|
|
56
|
-
#
|
57
|
-
attr_accessor :
|
58
|
-
|
59
|
-
# The password to be used for authentication when syncing.
|
60
|
-
attr_accessor :password
|
45
|
+
# 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.
|
46
|
+
attr_accessor :sock_connect_timeout
|
61
47
|
|
62
48
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
63
49
|
attr_accessor :ca_cert
|
64
50
|
|
65
|
-
#
|
66
|
-
attr_accessor :
|
51
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
52
|
+
attr_accessor :total_timeout
|
53
|
+
|
54
|
+
# Headers for aiohttp.Clientsession
|
55
|
+
attr_accessor :headers
|
67
56
|
|
68
57
|
# The password to authenticte to the proxy.
|
69
58
|
attr_accessor :proxy_password
|
70
59
|
|
60
|
+
attr_accessor :pulp_labels
|
61
|
+
|
71
62
|
# If True, TLS peer validation must be performed.
|
72
63
|
attr_accessor :tls_validation
|
73
64
|
|
74
|
-
#
|
75
|
-
attr_accessor :
|
65
|
+
# The URL of an external content source.
|
66
|
+
attr_accessor :url
|
67
|
+
|
68
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
69
|
+
attr_accessor :max_retries
|
70
|
+
|
71
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
72
|
+
attr_accessor :connect_timeout
|
73
|
+
|
74
|
+
# A PEM encoded client certificate used for authentication.
|
75
|
+
attr_accessor :client_cert
|
76
76
|
|
77
77
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
78
78
|
attr_accessor :metadata_only
|
@@ -80,26 +80,26 @@ module PulpAnsibleClient
|
|
80
80
|
# Attribute mapping from ruby-style variable name to JSON key.
|
81
81
|
def self.attribute_map
|
82
82
|
{
|
83
|
-
:'
|
84
|
-
:'
|
85
|
-
:'name' => :'name',
|
83
|
+
:'download_concurrency' => :'download_concurrency',
|
84
|
+
:'password' => :'password',
|
86
85
|
:'client_key' => :'client_key',
|
87
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
88
|
-
:'username' => :'username',
|
89
|
-
:'max_retries' => :'max_retries',
|
90
86
|
:'rate_limit' => :'rate_limit',
|
91
|
-
:'
|
87
|
+
:'name' => :'name',
|
92
88
|
:'proxy_url' => :'proxy_url',
|
93
|
-
:'
|
94
|
-
:'
|
89
|
+
:'username' => :'username',
|
90
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
95
91
|
:'proxy_username' => :'proxy_username',
|
96
|
-
:'
|
97
|
-
:'password' => :'password',
|
92
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
98
93
|
:'ca_cert' => :'ca_cert',
|
99
|
-
:'
|
94
|
+
:'total_timeout' => :'total_timeout',
|
95
|
+
:'headers' => :'headers',
|
100
96
|
:'proxy_password' => :'proxy_password',
|
97
|
+
:'pulp_labels' => :'pulp_labels',
|
101
98
|
:'tls_validation' => :'tls_validation',
|
102
|
-
:'
|
99
|
+
:'url' => :'url',
|
100
|
+
:'max_retries' => :'max_retries',
|
101
|
+
:'connect_timeout' => :'connect_timeout',
|
102
|
+
:'client_cert' => :'client_cert',
|
103
103
|
:'metadata_only' => :'metadata_only'
|
104
104
|
}
|
105
105
|
end
|
@@ -107,26 +107,26 @@ module PulpAnsibleClient
|
|
107
107
|
# Attribute type mapping.
|
108
108
|
def self.openapi_types
|
109
109
|
{
|
110
|
-
:'
|
111
|
-
:'
|
112
|
-
:'name' => :'String',
|
110
|
+
:'download_concurrency' => :'Integer',
|
111
|
+
:'password' => :'String',
|
113
112
|
:'client_key' => :'String',
|
114
|
-
:'sock_read_timeout' => :'Float',
|
115
|
-
:'username' => :'String',
|
116
|
-
:'max_retries' => :'Integer',
|
117
113
|
:'rate_limit' => :'Integer',
|
118
|
-
:'
|
114
|
+
:'name' => :'String',
|
119
115
|
:'proxy_url' => :'String',
|
120
|
-
:'
|
121
|
-
:'
|
116
|
+
:'username' => :'String',
|
117
|
+
:'sock_read_timeout' => :'Float',
|
122
118
|
:'proxy_username' => :'String',
|
123
|
-
:'
|
124
|
-
:'password' => :'String',
|
119
|
+
:'sock_connect_timeout' => :'Float',
|
125
120
|
:'ca_cert' => :'String',
|
126
|
-
:'
|
121
|
+
:'total_timeout' => :'Float',
|
122
|
+
:'headers' => :'Array<Object>',
|
127
123
|
:'proxy_password' => :'String',
|
124
|
+
:'pulp_labels' => :'Object',
|
128
125
|
:'tls_validation' => :'Boolean',
|
129
|
-
:'
|
126
|
+
:'url' => :'String',
|
127
|
+
:'max_retries' => :'Integer',
|
128
|
+
:'connect_timeout' => :'Float',
|
129
|
+
:'client_cert' => :'String',
|
130
130
|
:'metadata_only' => :'Boolean'
|
131
131
|
}
|
132
132
|
end
|
@@ -134,21 +134,21 @@ module PulpAnsibleClient
|
|
134
134
|
# List of attributes with nullable: true
|
135
135
|
def self.openapi_nullable
|
136
136
|
Set.new([
|
137
|
-
:'
|
137
|
+
:'download_concurrency',
|
138
|
+
:'password',
|
138
139
|
:'client_key',
|
139
|
-
:'sock_read_timeout',
|
140
|
-
:'username',
|
141
|
-
:'max_retries',
|
142
140
|
:'rate_limit',
|
143
|
-
:'total_timeout',
|
144
141
|
:'proxy_url',
|
145
|
-
:'
|
142
|
+
:'username',
|
143
|
+
:'sock_read_timeout',
|
146
144
|
:'proxy_username',
|
147
|
-
:'
|
145
|
+
:'sock_connect_timeout',
|
148
146
|
:'ca_cert',
|
149
|
-
:'
|
147
|
+
:'total_timeout',
|
150
148
|
:'proxy_password',
|
151
|
-
:'
|
149
|
+
:'max_retries',
|
150
|
+
:'connect_timeout',
|
151
|
+
:'client_cert',
|
152
152
|
])
|
153
153
|
end
|
154
154
|
|
@@ -167,86 +167,86 @@ module PulpAnsibleClient
|
|
167
167
|
h[k.to_sym] = v
|
168
168
|
}
|
169
169
|
|
170
|
-
if attributes.key?(:'
|
171
|
-
self.
|
172
|
-
end
|
173
|
-
|
174
|
-
if attributes.key?(:'sock_connect_timeout')
|
175
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
170
|
+
if attributes.key?(:'download_concurrency')
|
171
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
176
172
|
end
|
177
173
|
|
178
|
-
if attributes.key?(:'
|
179
|
-
self.
|
174
|
+
if attributes.key?(:'password')
|
175
|
+
self.password = attributes[:'password']
|
180
176
|
end
|
181
177
|
|
182
178
|
if attributes.key?(:'client_key')
|
183
179
|
self.client_key = attributes[:'client_key']
|
184
180
|
end
|
185
181
|
|
186
|
-
if attributes.key?(:'sock_read_timeout')
|
187
|
-
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
188
|
-
end
|
189
|
-
|
190
|
-
if attributes.key?(:'username')
|
191
|
-
self.username = attributes[:'username']
|
192
|
-
end
|
193
|
-
|
194
|
-
if attributes.key?(:'max_retries')
|
195
|
-
self.max_retries = attributes[:'max_retries']
|
196
|
-
end
|
197
|
-
|
198
182
|
if attributes.key?(:'rate_limit')
|
199
183
|
self.rate_limit = attributes[:'rate_limit']
|
200
184
|
end
|
201
185
|
|
202
|
-
if attributes.key?(:'
|
203
|
-
self.
|
186
|
+
if attributes.key?(:'name')
|
187
|
+
self.name = attributes[:'name']
|
204
188
|
end
|
205
189
|
|
206
190
|
if attributes.key?(:'proxy_url')
|
207
191
|
self.proxy_url = attributes[:'proxy_url']
|
208
192
|
end
|
209
193
|
|
210
|
-
if attributes.key?(:'
|
211
|
-
self.
|
194
|
+
if attributes.key?(:'username')
|
195
|
+
self.username = attributes[:'username']
|
212
196
|
end
|
213
197
|
|
214
|
-
if attributes.key?(:'
|
215
|
-
self.
|
198
|
+
if attributes.key?(:'sock_read_timeout')
|
199
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
216
200
|
end
|
217
201
|
|
218
202
|
if attributes.key?(:'proxy_username')
|
219
203
|
self.proxy_username = attributes[:'proxy_username']
|
220
204
|
end
|
221
205
|
|
222
|
-
if attributes.key?(:'
|
223
|
-
|
224
|
-
self.headers = value
|
225
|
-
end
|
226
|
-
end
|
227
|
-
|
228
|
-
if attributes.key?(:'password')
|
229
|
-
self.password = attributes[:'password']
|
206
|
+
if attributes.key?(:'sock_connect_timeout')
|
207
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
230
208
|
end
|
231
209
|
|
232
210
|
if attributes.key?(:'ca_cert')
|
233
211
|
self.ca_cert = attributes[:'ca_cert']
|
234
212
|
end
|
235
213
|
|
236
|
-
if attributes.key?(:'
|
237
|
-
self.
|
214
|
+
if attributes.key?(:'total_timeout')
|
215
|
+
self.total_timeout = attributes[:'total_timeout']
|
216
|
+
end
|
217
|
+
|
218
|
+
if attributes.key?(:'headers')
|
219
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
220
|
+
self.headers = value
|
221
|
+
end
|
238
222
|
end
|
239
223
|
|
240
224
|
if attributes.key?(:'proxy_password')
|
241
225
|
self.proxy_password = attributes[:'proxy_password']
|
242
226
|
end
|
243
227
|
|
228
|
+
if attributes.key?(:'pulp_labels')
|
229
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
230
|
+
end
|
231
|
+
|
244
232
|
if attributes.key?(:'tls_validation')
|
245
233
|
self.tls_validation = attributes[:'tls_validation']
|
246
234
|
end
|
247
235
|
|
248
|
-
if attributes.key?(:'
|
249
|
-
self.
|
236
|
+
if attributes.key?(:'url')
|
237
|
+
self.url = attributes[:'url']
|
238
|
+
end
|
239
|
+
|
240
|
+
if attributes.key?(:'max_retries')
|
241
|
+
self.max_retries = attributes[:'max_retries']
|
242
|
+
end
|
243
|
+
|
244
|
+
if attributes.key?(:'connect_timeout')
|
245
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
246
|
+
end
|
247
|
+
|
248
|
+
if attributes.key?(:'client_cert')
|
249
|
+
self.client_cert = attributes[:'client_cert']
|
250
250
|
end
|
251
251
|
|
252
252
|
if attributes.key?(:'metadata_only')
|
@@ -258,12 +258,8 @@ module PulpAnsibleClient
|
|
258
258
|
# @return Array for valid properties with the reasons
|
259
259
|
def list_invalid_properties
|
260
260
|
invalid_properties = Array.new
|
261
|
-
if
|
262
|
-
invalid_properties.push('invalid value for "
|
263
|
-
end
|
264
|
-
|
265
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
266
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
261
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
262
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
267
263
|
end
|
268
264
|
|
269
265
|
if @name.nil?
|
@@ -274,16 +270,20 @@ module PulpAnsibleClient
|
|
274
270
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
275
271
|
end
|
276
272
|
|
273
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
274
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
275
|
+
end
|
276
|
+
|
277
277
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
278
278
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
279
279
|
end
|
280
280
|
|
281
|
-
if
|
282
|
-
invalid_properties.push('invalid value for "
|
281
|
+
if @url.nil?
|
282
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
283
283
|
end
|
284
284
|
|
285
|
-
if !@
|
286
|
-
invalid_properties.push('invalid value for "
|
285
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
286
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
287
287
|
end
|
288
288
|
|
289
289
|
invalid_properties
|
@@ -292,24 +292,24 @@ module PulpAnsibleClient
|
|
292
292
|
# Check to see if the all the properties in the model are valid
|
293
293
|
# @return true if the model is valid
|
294
294
|
def valid?
|
295
|
-
return false if
|
296
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
295
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
297
296
|
return false if @name.nil?
|
298
297
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
298
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
299
299
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
300
|
+
return false if @url.nil?
|
300
301
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
301
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
302
302
|
true
|
303
303
|
end
|
304
304
|
|
305
305
|
# Custom attribute writer method with validation
|
306
|
-
# @param [Object]
|
307
|
-
def
|
308
|
-
if !
|
309
|
-
fail ArgumentError, 'invalid value for "
|
306
|
+
# @param [Object] download_concurrency Value to be assigned
|
307
|
+
def download_concurrency=(download_concurrency)
|
308
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
309
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
310
310
|
end
|
311
311
|
|
312
|
-
@
|
312
|
+
@download_concurrency = download_concurrency
|
313
313
|
end
|
314
314
|
|
315
315
|
# Custom attribute writer method with validation
|
@@ -322,6 +322,16 @@ module PulpAnsibleClient
|
|
322
322
|
@sock_read_timeout = sock_read_timeout
|
323
323
|
end
|
324
324
|
|
325
|
+
# Custom attribute writer method with validation
|
326
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
327
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
328
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
329
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
330
|
+
end
|
331
|
+
|
332
|
+
@sock_connect_timeout = sock_connect_timeout
|
333
|
+
end
|
334
|
+
|
325
335
|
# Custom attribute writer method with validation
|
326
336
|
# @param [Object] total_timeout Value to be assigned
|
327
337
|
def total_timeout=(total_timeout)
|
@@ -342,41 +352,31 @@ module PulpAnsibleClient
|
|
342
352
|
@connect_timeout = connect_timeout
|
343
353
|
end
|
344
354
|
|
345
|
-
# Custom attribute writer method with validation
|
346
|
-
# @param [Object] download_concurrency Value to be assigned
|
347
|
-
def download_concurrency=(download_concurrency)
|
348
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
349
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
350
|
-
end
|
351
|
-
|
352
|
-
@download_concurrency = download_concurrency
|
353
|
-
end
|
354
|
-
|
355
355
|
# Checks equality by comparing each attribute.
|
356
356
|
# @param [Object] Object to be compared
|
357
357
|
def ==(o)
|
358
358
|
return true if self.equal?(o)
|
359
359
|
self.class == o.class &&
|
360
|
-
|
361
|
-
|
362
|
-
name == o.name &&
|
360
|
+
download_concurrency == o.download_concurrency &&
|
361
|
+
password == o.password &&
|
363
362
|
client_key == o.client_key &&
|
364
|
-
sock_read_timeout == o.sock_read_timeout &&
|
365
|
-
username == o.username &&
|
366
|
-
max_retries == o.max_retries &&
|
367
363
|
rate_limit == o.rate_limit &&
|
368
|
-
|
364
|
+
name == o.name &&
|
369
365
|
proxy_url == o.proxy_url &&
|
370
|
-
|
371
|
-
|
366
|
+
username == o.username &&
|
367
|
+
sock_read_timeout == o.sock_read_timeout &&
|
372
368
|
proxy_username == o.proxy_username &&
|
373
|
-
|
374
|
-
password == o.password &&
|
369
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
375
370
|
ca_cert == o.ca_cert &&
|
376
|
-
|
371
|
+
total_timeout == o.total_timeout &&
|
372
|
+
headers == o.headers &&
|
377
373
|
proxy_password == o.proxy_password &&
|
374
|
+
pulp_labels == o.pulp_labels &&
|
378
375
|
tls_validation == o.tls_validation &&
|
379
|
-
|
376
|
+
url == o.url &&
|
377
|
+
max_retries == o.max_retries &&
|
378
|
+
connect_timeout == o.connect_timeout &&
|
379
|
+
client_cert == o.client_cert &&
|
380
380
|
metadata_only == o.metadata_only
|
381
381
|
end
|
382
382
|
|
@@ -389,7 +389,7 @@ module PulpAnsibleClient
|
|
389
389
|
# Calculates hash code according to all attributes.
|
390
390
|
# @return [Integer] Hash code
|
391
391
|
def hash
|
392
|
-
[
|
392
|
+
[download_concurrency, password, client_key, rate_limit, name, proxy_url, username, sock_read_timeout, proxy_username, sock_connect_timeout, ca_cert, total_timeout, headers, proxy_password, pulp_labels, tls_validation, url, max_retries, connect_timeout, client_cert, metadata_only].hash
|
393
393
|
end
|
394
394
|
|
395
395
|
# Builds the object from hash
|