pulp_ansible_client 0.11.0.dev1636427751 → 0.11.0.dev1636773338
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 +29 -29
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/PatchedansibleGitRemote.md +29 -29
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +159 -159
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +137 -137
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +156 -156
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- 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
|
-
|
18
|
+
# The URL of an external content source.
|
19
|
+
attr_accessor :url
|
19
20
|
|
20
|
-
# aiohttp.ClientTimeout.
|
21
|
-
attr_accessor :
|
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
|
22
23
|
|
23
|
-
# A
|
24
|
-
attr_accessor :
|
24
|
+
# A unique name for this remote.
|
25
|
+
attr_accessor :name
|
25
26
|
|
26
|
-
#
|
27
|
-
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
|
29
|
+
|
30
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
31
|
+
attr_accessor :max_retries
|
28
32
|
|
29
33
|
# Limits total download rate in requests per second
|
30
34
|
attr_accessor :rate_limit
|
31
35
|
|
36
|
+
# 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
|
+
attr_accessor :total_timeout
|
38
|
+
|
39
|
+
# The proxy URL. Format: scheme://host:port
|
40
|
+
attr_accessor :proxy_url
|
41
|
+
|
32
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.
|
33
43
|
attr_accessor :connect_timeout
|
34
44
|
|
45
|
+
# Timestamp of the most recent update of the remote.
|
46
|
+
attr_accessor :pulp_last_updated
|
47
|
+
|
35
48
|
attr_accessor :pulp_labels
|
36
49
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
50
|
+
# Headers for aiohttp.Clientsession
|
51
|
+
attr_accessor :headers
|
39
52
|
|
40
53
|
# Timestamp of creation.
|
41
54
|
attr_accessor :pulp_created
|
42
55
|
|
43
|
-
# 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.
|
44
|
-
attr_accessor :sock_read_timeout
|
45
|
-
|
46
|
-
# 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.
|
47
|
-
attr_accessor :sock_connect_timeout
|
48
|
-
|
49
56
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
50
57
|
attr_accessor :ca_cert
|
51
58
|
|
52
|
-
#
|
53
|
-
attr_accessor :
|
54
|
-
|
55
|
-
# A unique name for this remote.
|
56
|
-
attr_accessor :name
|
59
|
+
# A PEM encoded client certificate used for authentication.
|
60
|
+
attr_accessor :client_cert
|
57
61
|
|
58
|
-
#
|
59
|
-
attr_accessor :
|
62
|
+
# If True, TLS peer validation must be performed.
|
63
|
+
attr_accessor :tls_validation
|
60
64
|
|
61
|
-
|
62
|
-
attr_accessor :pulp_last_updated
|
65
|
+
attr_accessor :pulp_href
|
63
66
|
|
64
67
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
65
68
|
attr_accessor :download_concurrency
|
66
69
|
|
67
|
-
# If True, TLS peer validation must be performed.
|
68
|
-
attr_accessor :tls_validation
|
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
|
-
:'pulp_href' => :'pulp_href',
|
77
|
-
:'total_timeout' => :'total_timeout',
|
78
|
-
:'client_cert' => :'client_cert',
|
79
|
-
:'headers' => :'headers',
|
80
|
-
:'rate_limit' => :'rate_limit',
|
81
|
-
:'connect_timeout' => :'connect_timeout',
|
82
|
-
:'pulp_labels' => :'pulp_labels',
|
83
76
|
:'url' => :'url',
|
84
|
-
:'pulp_created' => :'pulp_created',
|
85
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
86
77
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
87
|
-
:'ca_cert' => :'ca_cert',
|
88
|
-
:'proxy_url' => :'proxy_url',
|
89
78
|
:'name' => :'name',
|
79
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
90
80
|
:'max_retries' => :'max_retries',
|
81
|
+
:'rate_limit' => :'rate_limit',
|
82
|
+
:'total_timeout' => :'total_timeout',
|
83
|
+
:'proxy_url' => :'proxy_url',
|
84
|
+
:'connect_timeout' => :'connect_timeout',
|
91
85
|
:'pulp_last_updated' => :'pulp_last_updated',
|
92
|
-
:'
|
86
|
+
:'pulp_labels' => :'pulp_labels',
|
87
|
+
:'headers' => :'headers',
|
88
|
+
:'pulp_created' => :'pulp_created',
|
89
|
+
:'ca_cert' => :'ca_cert',
|
90
|
+
:'client_cert' => :'client_cert',
|
93
91
|
:'tls_validation' => :'tls_validation',
|
92
|
+
:'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
|
-
:'pulp_href' => :'String',
|
102
|
-
:'total_timeout' => :'Float',
|
103
|
-
:'client_cert' => :'String',
|
104
|
-
:'headers' => :'Array<Object>',
|
105
|
-
:'rate_limit' => :'Integer',
|
106
|
-
:'connect_timeout' => :'Float',
|
107
|
-
:'pulp_labels' => :'Object',
|
108
101
|
:'url' => :'String',
|
109
|
-
:'pulp_created' => :'DateTime',
|
110
|
-
:'sock_read_timeout' => :'Float',
|
111
102
|
:'sock_connect_timeout' => :'Float',
|
112
|
-
:'ca_cert' => :'String',
|
113
|
-
:'proxy_url' => :'String',
|
114
103
|
:'name' => :'String',
|
104
|
+
:'sock_read_timeout' => :'Float',
|
115
105
|
:'max_retries' => :'Integer',
|
106
|
+
:'rate_limit' => :'Integer',
|
107
|
+
:'total_timeout' => :'Float',
|
108
|
+
:'proxy_url' => :'String',
|
109
|
+
:'connect_timeout' => :'Float',
|
116
110
|
:'pulp_last_updated' => :'DateTime',
|
117
|
-
:'
|
111
|
+
:'pulp_labels' => :'Object',
|
112
|
+
:'headers' => :'Array<Object>',
|
113
|
+
:'pulp_created' => :'DateTime',
|
114
|
+
:'ca_cert' => :'String',
|
115
|
+
:'client_cert' => :'String',
|
118
116
|
:'tls_validation' => :'Boolean',
|
117
|
+
:'pulp_href' => :'String',
|
118
|
+
:'download_concurrency' => :'Integer',
|
119
119
|
:'metadata_only' => :'Boolean'
|
120
120
|
}
|
121
121
|
end
|
@@ -123,15 +123,15 @@ module PulpAnsibleClient
|
|
123
123
|
# List of attributes with nullable: true
|
124
124
|
def self.openapi_nullable
|
125
125
|
Set.new([
|
126
|
-
:'
|
127
|
-
:'
|
126
|
+
:'sock_connect_timeout',
|
127
|
+
:'sock_read_timeout',
|
128
|
+
:'max_retries',
|
128
129
|
:'rate_limit',
|
130
|
+
:'total_timeout',
|
131
|
+
:'proxy_url',
|
129
132
|
:'connect_timeout',
|
130
|
-
:'sock_read_timeout',
|
131
|
-
:'sock_connect_timeout',
|
132
133
|
:'ca_cert',
|
133
|
-
:'
|
134
|
-
:'max_retries',
|
134
|
+
:'client_cert',
|
135
135
|
:'download_concurrency',
|
136
136
|
])
|
137
137
|
end
|
@@ -151,80 +151,80 @@ module PulpAnsibleClient
|
|
151
151
|
h[k.to_sym] = v
|
152
152
|
}
|
153
153
|
|
154
|
-
if attributes.key?(:'
|
155
|
-
self.
|
154
|
+
if attributes.key?(:'url')
|
155
|
+
self.url = attributes[:'url']
|
156
156
|
end
|
157
157
|
|
158
|
-
if attributes.key?(:'
|
159
|
-
self.
|
158
|
+
if attributes.key?(:'sock_connect_timeout')
|
159
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
160
160
|
end
|
161
161
|
|
162
|
-
if attributes.key?(:'
|
163
|
-
self.
|
162
|
+
if attributes.key?(:'name')
|
163
|
+
self.name = attributes[:'name']
|
164
164
|
end
|
165
165
|
|
166
|
-
if attributes.key?(:'
|
167
|
-
|
168
|
-
|
169
|
-
|
166
|
+
if attributes.key?(:'sock_read_timeout')
|
167
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
168
|
+
end
|
169
|
+
|
170
|
+
if attributes.key?(:'max_retries')
|
171
|
+
self.max_retries = attributes[:'max_retries']
|
170
172
|
end
|
171
173
|
|
172
174
|
if attributes.key?(:'rate_limit')
|
173
175
|
self.rate_limit = attributes[:'rate_limit']
|
174
176
|
end
|
175
177
|
|
178
|
+
if attributes.key?(:'total_timeout')
|
179
|
+
self.total_timeout = attributes[:'total_timeout']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'proxy_url')
|
183
|
+
self.proxy_url = attributes[:'proxy_url']
|
184
|
+
end
|
185
|
+
|
176
186
|
if attributes.key?(:'connect_timeout')
|
177
187
|
self.connect_timeout = attributes[:'connect_timeout']
|
178
188
|
end
|
179
189
|
|
190
|
+
if attributes.key?(:'pulp_last_updated')
|
191
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
192
|
+
end
|
193
|
+
|
180
194
|
if attributes.key?(:'pulp_labels')
|
181
195
|
self.pulp_labels = attributes[:'pulp_labels']
|
182
196
|
end
|
183
197
|
|
184
|
-
if attributes.key?(:'
|
185
|
-
|
198
|
+
if attributes.key?(:'headers')
|
199
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
200
|
+
self.headers = value
|
201
|
+
end
|
186
202
|
end
|
187
203
|
|
188
204
|
if attributes.key?(:'pulp_created')
|
189
205
|
self.pulp_created = attributes[:'pulp_created']
|
190
206
|
end
|
191
207
|
|
192
|
-
if attributes.key?(:'sock_read_timeout')
|
193
|
-
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
194
|
-
end
|
195
|
-
|
196
|
-
if attributes.key?(:'sock_connect_timeout')
|
197
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
198
|
-
end
|
199
|
-
|
200
208
|
if attributes.key?(:'ca_cert')
|
201
209
|
self.ca_cert = attributes[:'ca_cert']
|
202
210
|
end
|
203
211
|
|
204
|
-
if attributes.key?(:'
|
205
|
-
self.
|
206
|
-
end
|
207
|
-
|
208
|
-
if attributes.key?(:'name')
|
209
|
-
self.name = attributes[:'name']
|
212
|
+
if attributes.key?(:'client_cert')
|
213
|
+
self.client_cert = attributes[:'client_cert']
|
210
214
|
end
|
211
215
|
|
212
|
-
if attributes.key?(:'
|
213
|
-
self.
|
216
|
+
if attributes.key?(:'tls_validation')
|
217
|
+
self.tls_validation = attributes[:'tls_validation']
|
214
218
|
end
|
215
219
|
|
216
|
-
if attributes.key?(:'
|
217
|
-
self.
|
220
|
+
if attributes.key?(:'pulp_href')
|
221
|
+
self.pulp_href = attributes[:'pulp_href']
|
218
222
|
end
|
219
223
|
|
220
224
|
if attributes.key?(:'download_concurrency')
|
221
225
|
self.download_concurrency = attributes[:'download_concurrency']
|
222
226
|
end
|
223
227
|
|
224
|
-
if attributes.key?(:'tls_validation')
|
225
|
-
self.tls_validation = attributes[:'tls_validation']
|
226
|
-
end
|
227
|
-
|
228
228
|
if attributes.key?(:'metadata_only')
|
229
229
|
self.metadata_only = attributes[:'metadata_only']
|
230
230
|
end
|
@@ -234,28 +234,28 @@ 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 "
|
237
|
+
if @url.nil?
|
238
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
239
239
|
end
|
240
240
|
|
241
|
-
if !@
|
242
|
-
invalid_properties.push('invalid value for "
|
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.')
|
243
243
|
end
|
244
244
|
|
245
|
-
if @
|
246
|
-
invalid_properties.push('invalid value for "
|
245
|
+
if @name.nil?
|
246
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
247
247
|
end
|
248
248
|
|
249
249
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
250
250
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
251
251
|
end
|
252
252
|
|
253
|
-
if !@
|
254
|
-
invalid_properties.push('invalid value for "
|
253
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
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 !@connect_timeout.nil? && @connect_timeout < 0.0
|
258
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
259
259
|
end
|
260
260
|
|
261
261
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
@@ -268,34 +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 !@total_timeout.nil? && @total_timeout < 0.0
|
272
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
273
271
|
return false if @url.nil?
|
274
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
275
272
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
276
273
|
return false if @name.nil?
|
274
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
275
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
276
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
277
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 "
|
286
|
-
end
|
287
|
-
|
288
|
-
@total_timeout = total_timeout
|
289
|
-
end
|
290
|
-
|
291
|
-
# Custom attribute writer method with validation
|
292
|
-
# @param [Object] connect_timeout Value to be assigned
|
293
|
-
def connect_timeout=(connect_timeout)
|
294
|
-
if !connect_timeout.nil? && connect_timeout < 0.0
|
295
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
282
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
283
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
284
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
285
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
296
286
|
end
|
297
287
|
|
298
|
-
@
|
288
|
+
@sock_connect_timeout = sock_connect_timeout
|
299
289
|
end
|
300
290
|
|
301
291
|
# Custom attribute writer method with validation
|
@@ -309,13 +299,23 @@ module PulpAnsibleClient
|
|
309
299
|
end
|
310
300
|
|
311
301
|
# Custom attribute writer method with validation
|
312
|
-
# @param [Object]
|
313
|
-
def
|
314
|
-
if !
|
315
|
-
fail ArgumentError, 'invalid value for "
|
302
|
+
# @param [Object] total_timeout Value to be assigned
|
303
|
+
def total_timeout=(total_timeout)
|
304
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
305
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
316
306
|
end
|
317
307
|
|
318
|
-
@
|
308
|
+
@total_timeout = total_timeout
|
309
|
+
end
|
310
|
+
|
311
|
+
# Custom attribute writer method with validation
|
312
|
+
# @param [Object] connect_timeout Value to be assigned
|
313
|
+
def connect_timeout=(connect_timeout)
|
314
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
315
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
316
|
+
end
|
317
|
+
|
318
|
+
@connect_timeout = connect_timeout
|
319
319
|
end
|
320
320
|
|
321
321
|
# Custom attribute writer method with validation
|
@@ -333,24 +333,24 @@ module PulpAnsibleClient
|
|
333
333
|
def ==(o)
|
334
334
|
return true if self.equal?(o)
|
335
335
|
self.class == o.class &&
|
336
|
-
pulp_href == o.pulp_href &&
|
337
|
-
total_timeout == o.total_timeout &&
|
338
|
-
client_cert == o.client_cert &&
|
339
|
-
headers == o.headers &&
|
340
|
-
rate_limit == o.rate_limit &&
|
341
|
-
connect_timeout == o.connect_timeout &&
|
342
|
-
pulp_labels == o.pulp_labels &&
|
343
336
|
url == o.url &&
|
344
|
-
pulp_created == o.pulp_created &&
|
345
|
-
sock_read_timeout == o.sock_read_timeout &&
|
346
337
|
sock_connect_timeout == o.sock_connect_timeout &&
|
347
|
-
ca_cert == o.ca_cert &&
|
348
|
-
proxy_url == o.proxy_url &&
|
349
338
|
name == o.name &&
|
339
|
+
sock_read_timeout == o.sock_read_timeout &&
|
350
340
|
max_retries == o.max_retries &&
|
341
|
+
rate_limit == o.rate_limit &&
|
342
|
+
total_timeout == o.total_timeout &&
|
343
|
+
proxy_url == o.proxy_url &&
|
344
|
+
connect_timeout == o.connect_timeout &&
|
351
345
|
pulp_last_updated == o.pulp_last_updated &&
|
352
|
-
|
346
|
+
pulp_labels == o.pulp_labels &&
|
347
|
+
headers == o.headers &&
|
348
|
+
pulp_created == o.pulp_created &&
|
349
|
+
ca_cert == o.ca_cert &&
|
350
|
+
client_cert == o.client_cert &&
|
353
351
|
tls_validation == o.tls_validation &&
|
352
|
+
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
|
+
[url, sock_connect_timeout, name, sock_read_timeout, max_retries, rate_limit, total_timeout, proxy_url, connect_timeout, pulp_last_updated, pulp_labels, headers, pulp_created, ca_cert, client_cert, tls_validation, pulp_href, download_concurrency, metadata_only].hash
|
367
367
|
end
|
368
368
|
|
369
369
|
# Builds the object from hash
|