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