pulp_ansible_client 0.12.0.dev1640747746 → 0.12.0.dev1641093484
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.
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 +25 -25
- data/docs/AnsibleGitRemoteResponse.md +23 -23
- data/docs/PatchedansibleGitRemote.md +25 -25
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +212 -212
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +127 -127
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +198 -198
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +2 -2
@@ -15,58 +15,58 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
attr_accessor :pulp_labels
|
19
|
-
|
20
|
-
# A unique name for this remote.
|
21
|
-
attr_accessor :name
|
22
|
-
|
23
18
|
# A PEM encoded client certificate used for authentication.
|
24
19
|
attr_accessor :client_cert
|
25
20
|
|
21
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
22
|
+
attr_accessor :download_concurrency
|
23
|
+
|
26
24
|
# 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.
|
27
25
|
attr_accessor :sock_connect_timeout
|
28
26
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
27
|
+
# 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.
|
28
|
+
attr_accessor :sock_read_timeout
|
31
29
|
|
32
30
|
# The proxy URL. Format: scheme://host:port
|
33
31
|
attr_accessor :proxy_url
|
34
32
|
|
35
|
-
# Timestamp of
|
36
|
-
attr_accessor :
|
33
|
+
# Timestamp of creation.
|
34
|
+
attr_accessor :pulp_created
|
35
|
+
|
36
|
+
# A unique name for this remote.
|
37
|
+
attr_accessor :name
|
38
|
+
|
39
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
40
|
+
attr_accessor :connect_timeout
|
37
41
|
|
38
42
|
# If True, TLS peer validation must be performed.
|
39
43
|
attr_accessor :tls_validation
|
40
44
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
43
|
-
|
44
|
-
attr_accessor :pulp_href
|
45
|
+
# Timestamp of the most recent update of the remote.
|
46
|
+
attr_accessor :pulp_last_updated
|
45
47
|
|
46
48
|
# Headers for aiohttp.Clientsession
|
47
49
|
attr_accessor :headers
|
48
50
|
|
49
|
-
|
50
|
-
|
51
|
+
attr_accessor :pulp_labels
|
52
|
+
|
53
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
54
|
+
attr_accessor :total_timeout
|
55
|
+
|
56
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
57
|
+
attr_accessor :ca_cert
|
51
58
|
|
52
59
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
53
60
|
attr_accessor :max_retries
|
54
61
|
|
55
|
-
#
|
56
|
-
attr_accessor :
|
62
|
+
# The URL of an external content source.
|
63
|
+
attr_accessor :url
|
64
|
+
|
65
|
+
attr_accessor :pulp_href
|
57
66
|
|
58
67
|
# Limits requests per second for each concurrent downloader
|
59
68
|
attr_accessor :rate_limit
|
60
69
|
|
61
|
-
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
62
|
-
attr_accessor :ca_cert
|
63
|
-
|
64
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
65
|
-
attr_accessor :download_concurrency
|
66
|
-
|
67
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
68
|
-
attr_accessor :total_timeout
|
69
|
-
|
70
70
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
71
71
|
attr_accessor :metadata_only
|
72
72
|
|
@@ -76,24 +76,24 @@ module PulpAnsibleClient
|
|
76
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
77
77
|
def self.attribute_map
|
78
78
|
{
|
79
|
-
:'pulp_labels' => :'pulp_labels',
|
80
|
-
:'name' => :'name',
|
81
79
|
:'client_cert' => :'client_cert',
|
80
|
+
:'download_concurrency' => :'download_concurrency',
|
82
81
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
83
|
-
:'
|
82
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
84
83
|
:'proxy_url' => :'proxy_url',
|
85
|
-
:'
|
84
|
+
:'pulp_created' => :'pulp_created',
|
85
|
+
:'name' => :'name',
|
86
|
+
:'connect_timeout' => :'connect_timeout',
|
86
87
|
:'tls_validation' => :'tls_validation',
|
87
|
-
:'
|
88
|
-
:'pulp_href' => :'pulp_href',
|
88
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
89
89
|
:'headers' => :'headers',
|
90
|
-
:'
|
90
|
+
:'pulp_labels' => :'pulp_labels',
|
91
|
+
:'total_timeout' => :'total_timeout',
|
92
|
+
:'ca_cert' => :'ca_cert',
|
91
93
|
:'max_retries' => :'max_retries',
|
92
|
-
:'
|
94
|
+
:'url' => :'url',
|
95
|
+
:'pulp_href' => :'pulp_href',
|
93
96
|
:'rate_limit' => :'rate_limit',
|
94
|
-
:'ca_cert' => :'ca_cert',
|
95
|
-
:'download_concurrency' => :'download_concurrency',
|
96
|
-
:'total_timeout' => :'total_timeout',
|
97
97
|
:'metadata_only' => :'metadata_only',
|
98
98
|
:'git_ref' => :'git_ref'
|
99
99
|
}
|
@@ -102,24 +102,24 @@ module PulpAnsibleClient
|
|
102
102
|
# Attribute type mapping.
|
103
103
|
def self.openapi_types
|
104
104
|
{
|
105
|
-
:'pulp_labels' => :'Object',
|
106
|
-
:'name' => :'String',
|
107
105
|
:'client_cert' => :'String',
|
106
|
+
:'download_concurrency' => :'Integer',
|
108
107
|
:'sock_connect_timeout' => :'Float',
|
109
|
-
:'
|
108
|
+
:'sock_read_timeout' => :'Float',
|
110
109
|
:'proxy_url' => :'String',
|
111
|
-
:'
|
110
|
+
:'pulp_created' => :'DateTime',
|
111
|
+
:'name' => :'String',
|
112
|
+
:'connect_timeout' => :'Float',
|
112
113
|
:'tls_validation' => :'Boolean',
|
113
|
-
:'
|
114
|
-
:'pulp_href' => :'String',
|
114
|
+
:'pulp_last_updated' => :'DateTime',
|
115
115
|
:'headers' => :'Array<Object>',
|
116
|
-
:'
|
116
|
+
:'pulp_labels' => :'Object',
|
117
|
+
:'total_timeout' => :'Float',
|
118
|
+
:'ca_cert' => :'String',
|
117
119
|
:'max_retries' => :'Integer',
|
118
|
-
:'
|
120
|
+
:'url' => :'String',
|
121
|
+
:'pulp_href' => :'String',
|
119
122
|
:'rate_limit' => :'Integer',
|
120
|
-
:'ca_cert' => :'String',
|
121
|
-
:'download_concurrency' => :'Integer',
|
122
|
-
:'total_timeout' => :'Float',
|
123
123
|
:'metadata_only' => :'Boolean',
|
124
124
|
:'git_ref' => :'String'
|
125
125
|
}
|
@@ -129,15 +129,15 @@ module PulpAnsibleClient
|
|
129
129
|
def self.openapi_nullable
|
130
130
|
Set.new([
|
131
131
|
:'client_cert',
|
132
|
+
:'download_concurrency',
|
132
133
|
:'sock_connect_timeout',
|
134
|
+
:'sock_read_timeout',
|
133
135
|
:'proxy_url',
|
134
136
|
:'connect_timeout',
|
137
|
+
:'total_timeout',
|
138
|
+
:'ca_cert',
|
135
139
|
:'max_retries',
|
136
|
-
:'sock_read_timeout',
|
137
140
|
:'rate_limit',
|
138
|
-
:'ca_cert',
|
139
|
-
:'download_concurrency',
|
140
|
-
:'total_timeout',
|
141
141
|
])
|
142
142
|
end
|
143
143
|
|
@@ -156,44 +156,44 @@ module PulpAnsibleClient
|
|
156
156
|
h[k.to_sym] = v
|
157
157
|
}
|
158
158
|
|
159
|
-
if attributes.key?(:'pulp_labels')
|
160
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
161
|
-
end
|
162
|
-
|
163
|
-
if attributes.key?(:'name')
|
164
|
-
self.name = attributes[:'name']
|
165
|
-
end
|
166
|
-
|
167
159
|
if attributes.key?(:'client_cert')
|
168
160
|
self.client_cert = attributes[:'client_cert']
|
169
161
|
end
|
170
162
|
|
163
|
+
if attributes.key?(:'download_concurrency')
|
164
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
165
|
+
end
|
166
|
+
|
171
167
|
if attributes.key?(:'sock_connect_timeout')
|
172
168
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
173
169
|
end
|
174
170
|
|
175
|
-
if attributes.key?(:'
|
176
|
-
self.
|
171
|
+
if attributes.key?(:'sock_read_timeout')
|
172
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
177
173
|
end
|
178
174
|
|
179
175
|
if attributes.key?(:'proxy_url')
|
180
176
|
self.proxy_url = attributes[:'proxy_url']
|
181
177
|
end
|
182
178
|
|
183
|
-
if attributes.key?(:'
|
184
|
-
self.
|
179
|
+
if attributes.key?(:'pulp_created')
|
180
|
+
self.pulp_created = attributes[:'pulp_created']
|
185
181
|
end
|
186
182
|
|
187
|
-
if attributes.key?(:'
|
188
|
-
self.
|
183
|
+
if attributes.key?(:'name')
|
184
|
+
self.name = attributes[:'name']
|
189
185
|
end
|
190
186
|
|
191
|
-
if attributes.key?(:'
|
192
|
-
self.
|
187
|
+
if attributes.key?(:'connect_timeout')
|
188
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
193
189
|
end
|
194
190
|
|
195
|
-
if attributes.key?(:'
|
196
|
-
self.
|
191
|
+
if attributes.key?(:'tls_validation')
|
192
|
+
self.tls_validation = attributes[:'tls_validation']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.key?(:'pulp_last_updated')
|
196
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
197
197
|
end
|
198
198
|
|
199
199
|
if attributes.key?(:'headers')
|
@@ -202,32 +202,32 @@ module PulpAnsibleClient
|
|
202
202
|
end
|
203
203
|
end
|
204
204
|
|
205
|
-
if attributes.key?(:'
|
206
|
-
self.
|
205
|
+
if attributes.key?(:'pulp_labels')
|
206
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
207
207
|
end
|
208
208
|
|
209
|
-
if attributes.key?(:'
|
210
|
-
self.
|
209
|
+
if attributes.key?(:'total_timeout')
|
210
|
+
self.total_timeout = attributes[:'total_timeout']
|
211
211
|
end
|
212
212
|
|
213
|
-
if attributes.key?(:'
|
214
|
-
self.
|
213
|
+
if attributes.key?(:'ca_cert')
|
214
|
+
self.ca_cert = attributes[:'ca_cert']
|
215
215
|
end
|
216
216
|
|
217
|
-
if attributes.key?(:'
|
218
|
-
self.
|
217
|
+
if attributes.key?(:'max_retries')
|
218
|
+
self.max_retries = attributes[:'max_retries']
|
219
219
|
end
|
220
220
|
|
221
|
-
if attributes.key?(:'
|
222
|
-
self.
|
221
|
+
if attributes.key?(:'url')
|
222
|
+
self.url = attributes[:'url']
|
223
223
|
end
|
224
224
|
|
225
|
-
if attributes.key?(:'
|
226
|
-
self.
|
225
|
+
if attributes.key?(:'pulp_href')
|
226
|
+
self.pulp_href = attributes[:'pulp_href']
|
227
227
|
end
|
228
228
|
|
229
|
-
if attributes.key?(:'
|
230
|
-
self.
|
229
|
+
if attributes.key?(:'rate_limit')
|
230
|
+
self.rate_limit = attributes[:'rate_limit']
|
231
231
|
end
|
232
232
|
|
233
233
|
if attributes.key?(:'metadata_only')
|
@@ -243,68 +243,68 @@ module PulpAnsibleClient
|
|
243
243
|
# @return Array for valid properties with the reasons
|
244
244
|
def list_invalid_properties
|
245
245
|
invalid_properties = Array.new
|
246
|
-
if
|
247
|
-
invalid_properties.push('invalid value for "
|
246
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
247
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
248
248
|
end
|
249
249
|
|
250
250
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
251
251
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
252
252
|
end
|
253
253
|
|
254
|
-
if @url.nil?
|
255
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
256
|
-
end
|
257
|
-
|
258
|
-
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
259
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
260
|
-
end
|
261
|
-
|
262
254
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
263
255
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
264
256
|
end
|
265
257
|
|
266
|
-
if
|
267
|
-
invalid_properties.push('invalid value for "
|
258
|
+
if @name.nil?
|
259
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
260
|
+
end
|
261
|
+
|
262
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
263
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
268
264
|
end
|
269
265
|
|
270
266
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
271
267
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
272
268
|
end
|
273
269
|
|
270
|
+
if @url.nil?
|
271
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
272
|
+
end
|
273
|
+
|
274
274
|
invalid_properties
|
275
275
|
end
|
276
276
|
|
277
277
|
# Check to see if the all the properties in the model are valid
|
278
278
|
# @return true if the model is valid
|
279
279
|
def valid?
|
280
|
-
return false if
|
280
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
281
281
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
282
|
-
return false if @url.nil?
|
283
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
284
282
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
285
|
-
return false if
|
283
|
+
return false if @name.nil?
|
284
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
286
285
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
286
|
+
return false if @url.nil?
|
287
287
|
true
|
288
288
|
end
|
289
289
|
|
290
290
|
# Custom attribute writer method with validation
|
291
|
-
# @param [Object]
|
292
|
-
def
|
293
|
-
if !
|
294
|
-
fail ArgumentError, 'invalid value for "
|
291
|
+
# @param [Object] download_concurrency Value to be assigned
|
292
|
+
def download_concurrency=(download_concurrency)
|
293
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
294
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
295
295
|
end
|
296
296
|
|
297
|
-
@
|
297
|
+
@download_concurrency = download_concurrency
|
298
298
|
end
|
299
299
|
|
300
300
|
# Custom attribute writer method with validation
|
301
|
-
# @param [Object]
|
302
|
-
def
|
303
|
-
if !
|
304
|
-
fail ArgumentError, 'invalid value for "
|
301
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
302
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
303
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
304
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
305
305
|
end
|
306
306
|
|
307
|
-
@
|
307
|
+
@sock_connect_timeout = sock_connect_timeout
|
308
308
|
end
|
309
309
|
|
310
310
|
# Custom attribute writer method with validation
|
@@ -318,13 +318,13 @@ module PulpAnsibleClient
|
|
318
318
|
end
|
319
319
|
|
320
320
|
# Custom attribute writer method with validation
|
321
|
-
# @param [Object]
|
322
|
-
def
|
323
|
-
if !
|
324
|
-
fail ArgumentError, 'invalid value for "
|
321
|
+
# @param [Object] connect_timeout Value to be assigned
|
322
|
+
def connect_timeout=(connect_timeout)
|
323
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
324
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
325
325
|
end
|
326
326
|
|
327
|
-
@
|
327
|
+
@connect_timeout = connect_timeout
|
328
328
|
end
|
329
329
|
|
330
330
|
# Custom attribute writer method with validation
|
@@ -342,24 +342,24 @@ module PulpAnsibleClient
|
|
342
342
|
def ==(o)
|
343
343
|
return true if self.equal?(o)
|
344
344
|
self.class == o.class &&
|
345
|
-
pulp_labels == o.pulp_labels &&
|
346
|
-
name == o.name &&
|
347
345
|
client_cert == o.client_cert &&
|
346
|
+
download_concurrency == o.download_concurrency &&
|
348
347
|
sock_connect_timeout == o.sock_connect_timeout &&
|
349
|
-
|
348
|
+
sock_read_timeout == o.sock_read_timeout &&
|
350
349
|
proxy_url == o.proxy_url &&
|
351
|
-
|
350
|
+
pulp_created == o.pulp_created &&
|
351
|
+
name == o.name &&
|
352
|
+
connect_timeout == o.connect_timeout &&
|
352
353
|
tls_validation == o.tls_validation &&
|
353
|
-
|
354
|
-
pulp_href == o.pulp_href &&
|
354
|
+
pulp_last_updated == o.pulp_last_updated &&
|
355
355
|
headers == o.headers &&
|
356
|
-
|
356
|
+
pulp_labels == o.pulp_labels &&
|
357
|
+
total_timeout == o.total_timeout &&
|
358
|
+
ca_cert == o.ca_cert &&
|
357
359
|
max_retries == o.max_retries &&
|
358
|
-
|
360
|
+
url == o.url &&
|
361
|
+
pulp_href == o.pulp_href &&
|
359
362
|
rate_limit == o.rate_limit &&
|
360
|
-
ca_cert == o.ca_cert &&
|
361
|
-
download_concurrency == o.download_concurrency &&
|
362
|
-
total_timeout == o.total_timeout &&
|
363
363
|
metadata_only == o.metadata_only &&
|
364
364
|
git_ref == o.git_ref
|
365
365
|
end
|
@@ -373,7 +373,7 @@ module PulpAnsibleClient
|
|
373
373
|
# Calculates hash code according to all attributes.
|
374
374
|
# @return [Integer] Hash code
|
375
375
|
def hash
|
376
|
-
[
|
376
|
+
[client_cert, download_concurrency, sock_connect_timeout, sock_read_timeout, proxy_url, pulp_created, name, connect_timeout, tls_validation, pulp_last_updated, headers, pulp_labels, total_timeout, ca_cert, max_retries, url, pulp_href, rate_limit, metadata_only, git_ref].hash
|
377
377
|
end
|
378
378
|
|
379
379
|
# Builds the object from hash
|