pulp_ansible_client 0.11.0.dev1636773338 → 0.11.0.dev1636859743
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 +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,82 +15,82 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
19
|
+
attr_accessor :download_concurrency
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
21
|
+
# Limits total download rate in requests per second
|
22
|
+
attr_accessor :rate_limit
|
23
23
|
|
24
24
|
# A unique name for this remote.
|
25
25
|
attr_accessor :name
|
26
26
|
|
27
|
+
# The proxy URL. Format: scheme://host:port
|
28
|
+
attr_accessor :proxy_url
|
29
|
+
|
27
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.
|
28
31
|
attr_accessor :sock_read_timeout
|
29
32
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
33
|
+
# 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.
|
34
|
+
attr_accessor :sock_connect_timeout
|
32
35
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
36
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
37
|
+
attr_accessor :ca_cert
|
38
|
+
|
39
|
+
# Timestamp of creation.
|
40
|
+
attr_accessor :pulp_created
|
35
41
|
|
36
42
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
37
43
|
attr_accessor :total_timeout
|
38
44
|
|
39
|
-
# The proxy URL. Format: scheme://host:port
|
40
|
-
attr_accessor :proxy_url
|
41
|
-
|
42
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
43
|
-
attr_accessor :connect_timeout
|
44
|
-
|
45
45
|
# Timestamp of the most recent update of the remote.
|
46
46
|
attr_accessor :pulp_last_updated
|
47
47
|
|
48
|
-
attr_accessor :pulp_labels
|
49
|
-
|
50
48
|
# Headers for aiohttp.Clientsession
|
51
49
|
attr_accessor :headers
|
52
50
|
|
53
|
-
|
54
|
-
attr_accessor :pulp_created
|
51
|
+
attr_accessor :pulp_labels
|
55
52
|
|
56
|
-
#
|
57
|
-
attr_accessor :
|
53
|
+
# If True, TLS peer validation must be performed.
|
54
|
+
attr_accessor :tls_validation
|
55
|
+
|
56
|
+
# The URL of an external content source.
|
57
|
+
attr_accessor :url
|
58
|
+
|
59
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
60
|
+
attr_accessor :max_retries
|
61
|
+
|
62
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
|
+
attr_accessor :connect_timeout
|
58
64
|
|
59
65
|
# A PEM encoded client certificate used for authentication.
|
60
66
|
attr_accessor :client_cert
|
61
67
|
|
62
|
-
# If True, TLS peer validation must be performed.
|
63
|
-
attr_accessor :tls_validation
|
64
|
-
|
65
68
|
attr_accessor :pulp_href
|
66
69
|
|
67
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
68
|
-
attr_accessor :download_concurrency
|
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
|
|
73
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
74
74
|
def self.attribute_map
|
75
75
|
{
|
76
|
-
:'
|
77
|
-
:'
|
76
|
+
:'download_concurrency' => :'download_concurrency',
|
77
|
+
:'rate_limit' => :'rate_limit',
|
78
78
|
:'name' => :'name',
|
79
|
+
:'proxy_url' => :'proxy_url',
|
79
80
|
:'sock_read_timeout' => :'sock_read_timeout',
|
80
|
-
:'
|
81
|
-
:'
|
81
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
82
|
+
:'ca_cert' => :'ca_cert',
|
83
|
+
:'pulp_created' => :'pulp_created',
|
82
84
|
:'total_timeout' => :'total_timeout',
|
83
|
-
:'proxy_url' => :'proxy_url',
|
84
|
-
:'connect_timeout' => :'connect_timeout',
|
85
85
|
:'pulp_last_updated' => :'pulp_last_updated',
|
86
|
-
:'pulp_labels' => :'pulp_labels',
|
87
86
|
:'headers' => :'headers',
|
88
|
-
:'
|
89
|
-
:'ca_cert' => :'ca_cert',
|
90
|
-
:'client_cert' => :'client_cert',
|
87
|
+
:'pulp_labels' => :'pulp_labels',
|
91
88
|
:'tls_validation' => :'tls_validation',
|
89
|
+
:'url' => :'url',
|
90
|
+
:'max_retries' => :'max_retries',
|
91
|
+
:'connect_timeout' => :'connect_timeout',
|
92
|
+
:'client_cert' => :'client_cert',
|
92
93
|
:'pulp_href' => :'pulp_href',
|
93
|
-
:'download_concurrency' => :'download_concurrency',
|
94
94
|
:'metadata_only' => :'metadata_only'
|
95
95
|
}
|
96
96
|
end
|
@@ -98,24 +98,24 @@ module PulpAnsibleClient
|
|
98
98
|
# Attribute type mapping.
|
99
99
|
def self.openapi_types
|
100
100
|
{
|
101
|
-
:'
|
102
|
-
:'
|
101
|
+
:'download_concurrency' => :'Integer',
|
102
|
+
:'rate_limit' => :'Integer',
|
103
103
|
:'name' => :'String',
|
104
|
+
:'proxy_url' => :'String',
|
104
105
|
:'sock_read_timeout' => :'Float',
|
105
|
-
:'
|
106
|
-
:'
|
106
|
+
:'sock_connect_timeout' => :'Float',
|
107
|
+
:'ca_cert' => :'String',
|
108
|
+
:'pulp_created' => :'DateTime',
|
107
109
|
:'total_timeout' => :'Float',
|
108
|
-
:'proxy_url' => :'String',
|
109
|
-
:'connect_timeout' => :'Float',
|
110
110
|
:'pulp_last_updated' => :'DateTime',
|
111
|
-
:'pulp_labels' => :'Object',
|
112
111
|
:'headers' => :'Array<Object>',
|
113
|
-
:'
|
114
|
-
:'ca_cert' => :'String',
|
115
|
-
:'client_cert' => :'String',
|
112
|
+
:'pulp_labels' => :'Object',
|
116
113
|
:'tls_validation' => :'Boolean',
|
114
|
+
:'url' => :'String',
|
115
|
+
:'max_retries' => :'Integer',
|
116
|
+
:'connect_timeout' => :'Float',
|
117
|
+
:'client_cert' => :'String',
|
117
118
|
:'pulp_href' => :'String',
|
118
|
-
:'download_concurrency' => :'Integer',
|
119
119
|
:'metadata_only' => :'Boolean'
|
120
120
|
}
|
121
121
|
end
|
@@ -123,16 +123,16 @@ module PulpAnsibleClient
|
|
123
123
|
# List of attributes with nullable: true
|
124
124
|
def self.openapi_nullable
|
125
125
|
Set.new([
|
126
|
-
:'
|
127
|
-
:'sock_read_timeout',
|
128
|
-
:'max_retries',
|
126
|
+
:'download_concurrency',
|
129
127
|
:'rate_limit',
|
130
|
-
:'total_timeout',
|
131
128
|
:'proxy_url',
|
132
|
-
:'
|
129
|
+
:'sock_read_timeout',
|
130
|
+
:'sock_connect_timeout',
|
133
131
|
:'ca_cert',
|
132
|
+
:'total_timeout',
|
133
|
+
:'max_retries',
|
134
|
+
:'connect_timeout',
|
134
135
|
:'client_cert',
|
135
|
-
:'download_concurrency',
|
136
136
|
])
|
137
137
|
end
|
138
138
|
|
@@ -151,78 +151,78 @@ module PulpAnsibleClient
|
|
151
151
|
h[k.to_sym] = v
|
152
152
|
}
|
153
153
|
|
154
|
-
if attributes.key?(:'
|
155
|
-
self.
|
154
|
+
if attributes.key?(:'download_concurrency')
|
155
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
156
156
|
end
|
157
157
|
|
158
|
-
if attributes.key?(:'
|
159
|
-
self.
|
158
|
+
if attributes.key?(:'rate_limit')
|
159
|
+
self.rate_limit = attributes[:'rate_limit']
|
160
160
|
end
|
161
161
|
|
162
162
|
if attributes.key?(:'name')
|
163
163
|
self.name = attributes[:'name']
|
164
164
|
end
|
165
165
|
|
166
|
-
if attributes.key?(:'
|
167
|
-
self.
|
166
|
+
if attributes.key?(:'proxy_url')
|
167
|
+
self.proxy_url = attributes[:'proxy_url']
|
168
168
|
end
|
169
169
|
|
170
|
-
if attributes.key?(:'
|
171
|
-
self.
|
170
|
+
if attributes.key?(:'sock_read_timeout')
|
171
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
172
172
|
end
|
173
173
|
|
174
|
-
if attributes.key?(:'
|
175
|
-
self.
|
174
|
+
if attributes.key?(:'sock_connect_timeout')
|
175
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
176
176
|
end
|
177
177
|
|
178
|
-
if attributes.key?(:'
|
179
|
-
self.
|
178
|
+
if attributes.key?(:'ca_cert')
|
179
|
+
self.ca_cert = attributes[:'ca_cert']
|
180
180
|
end
|
181
181
|
|
182
|
-
if attributes.key?(:'
|
183
|
-
self.
|
182
|
+
if attributes.key?(:'pulp_created')
|
183
|
+
self.pulp_created = attributes[:'pulp_created']
|
184
184
|
end
|
185
185
|
|
186
|
-
if attributes.key?(:'
|
187
|
-
self.
|
186
|
+
if attributes.key?(:'total_timeout')
|
187
|
+
self.total_timeout = attributes[:'total_timeout']
|
188
188
|
end
|
189
189
|
|
190
190
|
if attributes.key?(:'pulp_last_updated')
|
191
191
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
192
192
|
end
|
193
193
|
|
194
|
-
if attributes.key?(:'pulp_labels')
|
195
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
196
|
-
end
|
197
|
-
|
198
194
|
if attributes.key?(:'headers')
|
199
195
|
if (value = attributes[:'headers']).is_a?(Array)
|
200
196
|
self.headers = value
|
201
197
|
end
|
202
198
|
end
|
203
199
|
|
204
|
-
if attributes.key?(:'
|
205
|
-
self.
|
200
|
+
if attributes.key?(:'pulp_labels')
|
201
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
206
202
|
end
|
207
203
|
|
208
|
-
if attributes.key?(:'
|
209
|
-
self.
|
204
|
+
if attributes.key?(:'tls_validation')
|
205
|
+
self.tls_validation = attributes[:'tls_validation']
|
210
206
|
end
|
211
207
|
|
212
|
-
if attributes.key?(:'
|
213
|
-
self.
|
208
|
+
if attributes.key?(:'url')
|
209
|
+
self.url = attributes[:'url']
|
214
210
|
end
|
215
211
|
|
216
|
-
if attributes.key?(:'
|
217
|
-
self.
|
212
|
+
if attributes.key?(:'max_retries')
|
213
|
+
self.max_retries = attributes[:'max_retries']
|
218
214
|
end
|
219
215
|
|
220
|
-
if attributes.key?(:'
|
221
|
-
self.
|
216
|
+
if attributes.key?(:'connect_timeout')
|
217
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
222
218
|
end
|
223
219
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
self.
|
220
|
+
if attributes.key?(:'client_cert')
|
221
|
+
self.client_cert = attributes[:'client_cert']
|
222
|
+
end
|
223
|
+
|
224
|
+
if attributes.key?(:'pulp_href')
|
225
|
+
self.pulp_href = attributes[:'pulp_href']
|
226
226
|
end
|
227
227
|
|
228
228
|
if attributes.key?(:'metadata_only')
|
@@ -234,12 +234,8 @@ module PulpAnsibleClient
|
|
234
234
|
# @return Array for valid properties with the reasons
|
235
235
|
def list_invalid_properties
|
236
236
|
invalid_properties = Array.new
|
237
|
-
if
|
238
|
-
invalid_properties.push('invalid value for "
|
239
|
-
end
|
240
|
-
|
241
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
242
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
237
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
238
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
243
239
|
end
|
244
240
|
|
245
241
|
if @name.nil?
|
@@ -250,16 +246,20 @@ module PulpAnsibleClient
|
|
250
246
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
251
247
|
end
|
252
248
|
|
249
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
250
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
251
|
+
end
|
252
|
+
|
253
253
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
254
254
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
255
255
|
end
|
256
256
|
|
257
|
-
if
|
258
|
-
invalid_properties.push('invalid value for "
|
257
|
+
if @url.nil?
|
258
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
259
259
|
end
|
260
260
|
|
261
|
-
if !@
|
262
|
-
invalid_properties.push('invalid value for "
|
261
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
262
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
263
263
|
end
|
264
264
|
|
265
265
|
invalid_properties
|
@@ -268,24 +268,24 @@ module PulpAnsibleClient
|
|
268
268
|
# Check to see if the all the properties in the model are valid
|
269
269
|
# @return true if the model is valid
|
270
270
|
def valid?
|
271
|
-
return false if
|
272
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
271
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
273
272
|
return false if @name.nil?
|
274
273
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
274
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
275
275
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
276
|
+
return false if @url.nil?
|
276
277
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
277
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
278
278
|
true
|
279
279
|
end
|
280
280
|
|
281
281
|
# Custom attribute writer method with validation
|
282
|
-
# @param [Object]
|
283
|
-
def
|
284
|
-
if !
|
285
|
-
fail ArgumentError, 'invalid value for "
|
282
|
+
# @param [Object] download_concurrency Value to be assigned
|
283
|
+
def download_concurrency=(download_concurrency)
|
284
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
285
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
286
286
|
end
|
287
287
|
|
288
|
-
@
|
288
|
+
@download_concurrency = download_concurrency
|
289
289
|
end
|
290
290
|
|
291
291
|
# Custom attribute writer method with validation
|
@@ -298,6 +298,16 @@ module PulpAnsibleClient
|
|
298
298
|
@sock_read_timeout = sock_read_timeout
|
299
299
|
end
|
300
300
|
|
301
|
+
# Custom attribute writer method with validation
|
302
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
303
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
304
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
305
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
306
|
+
end
|
307
|
+
|
308
|
+
@sock_connect_timeout = sock_connect_timeout
|
309
|
+
end
|
310
|
+
|
301
311
|
# Custom attribute writer method with validation
|
302
312
|
# @param [Object] total_timeout Value to be assigned
|
303
313
|
def total_timeout=(total_timeout)
|
@@ -318,39 +328,29 @@ module PulpAnsibleClient
|
|
318
328
|
@connect_timeout = connect_timeout
|
319
329
|
end
|
320
330
|
|
321
|
-
# Custom attribute writer method with validation
|
322
|
-
# @param [Object] download_concurrency Value to be assigned
|
323
|
-
def download_concurrency=(download_concurrency)
|
324
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
325
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
326
|
-
end
|
327
|
-
|
328
|
-
@download_concurrency = download_concurrency
|
329
|
-
end
|
330
|
-
|
331
331
|
# Checks equality by comparing each attribute.
|
332
332
|
# @param [Object] Object to be compared
|
333
333
|
def ==(o)
|
334
334
|
return true if self.equal?(o)
|
335
335
|
self.class == o.class &&
|
336
|
-
|
337
|
-
|
336
|
+
download_concurrency == o.download_concurrency &&
|
337
|
+
rate_limit == o.rate_limit &&
|
338
338
|
name == o.name &&
|
339
|
+
proxy_url == o.proxy_url &&
|
339
340
|
sock_read_timeout == o.sock_read_timeout &&
|
340
|
-
|
341
|
-
|
341
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
342
|
+
ca_cert == o.ca_cert &&
|
343
|
+
pulp_created == o.pulp_created &&
|
342
344
|
total_timeout == o.total_timeout &&
|
343
|
-
proxy_url == o.proxy_url &&
|
344
|
-
connect_timeout == o.connect_timeout &&
|
345
345
|
pulp_last_updated == o.pulp_last_updated &&
|
346
|
-
pulp_labels == o.pulp_labels &&
|
347
346
|
headers == o.headers &&
|
348
|
-
|
349
|
-
ca_cert == o.ca_cert &&
|
350
|
-
client_cert == o.client_cert &&
|
347
|
+
pulp_labels == o.pulp_labels &&
|
351
348
|
tls_validation == o.tls_validation &&
|
349
|
+
url == o.url &&
|
350
|
+
max_retries == o.max_retries &&
|
351
|
+
connect_timeout == o.connect_timeout &&
|
352
|
+
client_cert == o.client_cert &&
|
352
353
|
pulp_href == o.pulp_href &&
|
353
|
-
download_concurrency == o.download_concurrency &&
|
354
354
|
metadata_only == o.metadata_only
|
355
355
|
end
|
356
356
|
|
@@ -363,7 +363,7 @@ module PulpAnsibleClient
|
|
363
363
|
# Calculates hash code according to all attributes.
|
364
364
|
# @return [Integer] Hash code
|
365
365
|
def hash
|
366
|
-
[
|
366
|
+
[download_concurrency, rate_limit, name, proxy_url, sock_read_timeout, sock_connect_timeout, ca_cert, pulp_created, total_timeout, pulp_last_updated, headers, pulp_labels, tls_validation, url, max_retries, connect_timeout, client_cert, pulp_href, metadata_only].hash
|
367
367
|
end
|
368
368
|
|
369
369
|
# Builds the object from hash
|