pulp_ansible_client 0.11.0.dev1636168524 → 0.11.0.dev1636514074
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/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/ContentCollectionVersionsApi.md +3 -3
- data/docs/PatchedansibleGitRemote.md +28 -28
- 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_git_remote.rb +144 -144
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +128 -128
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +136 -136
- 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_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +17 -17
- data/spec/models/patchedansible_git_remote_spec.rb +17 -17
- metadata +2 -2
@@ -15,57 +15,57 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
21
|
+
# If True, TLS peer validation must be performed.
|
22
|
+
attr_accessor :tls_validation
|
23
|
+
|
24
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
25
|
+
attr_accessor :ca_cert
|
23
26
|
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
29
|
+
# Limits total download rate in requests per second
|
30
|
+
attr_accessor :rate_limit
|
28
31
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
32
|
+
# A PEM encoded client certificate used for authentication.
|
33
|
+
attr_accessor :client_cert
|
31
34
|
|
32
35
|
# 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.
|
33
36
|
attr_accessor :sock_read_timeout
|
34
37
|
|
35
|
-
#
|
36
|
-
attr_accessor :
|
37
|
-
|
38
|
-
# A PEM encoded client certificate used for authentication.
|
39
|
-
attr_accessor :client_cert
|
38
|
+
# The URL of an external content source.
|
39
|
+
attr_accessor :url
|
40
40
|
|
41
41
|
# 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.
|
42
42
|
attr_accessor :sock_connect_timeout
|
43
43
|
|
44
|
-
# Timestamp of the most recent update of the remote.
|
45
|
-
attr_accessor :pulp_last_updated
|
46
|
-
|
47
|
-
# Limits total download rate in requests per second
|
48
|
-
attr_accessor :rate_limit
|
49
|
-
|
50
44
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
51
45
|
attr_accessor :total_timeout
|
52
46
|
|
53
|
-
#
|
54
|
-
attr_accessor :
|
47
|
+
# Headers for aiohttp.Clientsession
|
48
|
+
attr_accessor :headers
|
55
49
|
|
56
|
-
#
|
57
|
-
attr_accessor :
|
50
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
51
|
+
attr_accessor :download_concurrency
|
52
|
+
|
53
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
54
|
+
attr_accessor :max_retries
|
58
55
|
|
59
56
|
# A unique name for this remote.
|
60
57
|
attr_accessor :name
|
61
58
|
|
62
|
-
# The URL of an external content source.
|
63
|
-
attr_accessor :url
|
64
|
-
|
65
59
|
attr_accessor :pulp_href
|
66
60
|
|
67
|
-
#
|
68
|
-
attr_accessor :
|
61
|
+
# Timestamp of the most recent update of the remote.
|
62
|
+
attr_accessor :pulp_last_updated
|
63
|
+
|
64
|
+
# The proxy URL. Format: scheme://host:port
|
65
|
+
attr_accessor :proxy_url
|
66
|
+
|
67
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
68
|
+
attr_accessor :connect_timeout
|
69
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
|
@@ -73,24 +73,24 @@ module PulpAnsibleClient
|
|
73
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
74
74
|
def self.attribute_map
|
75
75
|
{
|
76
|
-
:'max_retries' => :'max_retries',
|
77
|
-
:'headers' => :'headers',
|
78
|
-
:'pulp_labels' => :'pulp_labels',
|
79
|
-
:'connect_timeout' => :'connect_timeout',
|
80
|
-
:'tls_validation' => :'tls_validation',
|
81
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
82
76
|
:'pulp_created' => :'pulp_created',
|
77
|
+
:'tls_validation' => :'tls_validation',
|
78
|
+
:'ca_cert' => :'ca_cert',
|
79
|
+
:'pulp_labels' => :'pulp_labels',
|
80
|
+
:'rate_limit' => :'rate_limit',
|
83
81
|
:'client_cert' => :'client_cert',
|
82
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
83
|
+
:'url' => :'url',
|
84
84
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
85
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
86
|
-
:'rate_limit' => :'rate_limit',
|
87
85
|
:'total_timeout' => :'total_timeout',
|
88
|
-
:'
|
89
|
-
:'
|
86
|
+
:'headers' => :'headers',
|
87
|
+
:'download_concurrency' => :'download_concurrency',
|
88
|
+
:'max_retries' => :'max_retries',
|
90
89
|
:'name' => :'name',
|
91
|
-
:'url' => :'url',
|
92
90
|
:'pulp_href' => :'pulp_href',
|
93
|
-
:'
|
91
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
92
|
+
:'proxy_url' => :'proxy_url',
|
93
|
+
:'connect_timeout' => :'connect_timeout',
|
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
|
-
:'max_retries' => :'Integer',
|
102
|
-
:'headers' => :'Array<Object>',
|
103
|
-
:'pulp_labels' => :'Object',
|
104
|
-
:'connect_timeout' => :'Float',
|
105
|
-
:'tls_validation' => :'Boolean',
|
106
|
-
:'sock_read_timeout' => :'Float',
|
107
101
|
:'pulp_created' => :'DateTime',
|
102
|
+
:'tls_validation' => :'Boolean',
|
103
|
+
:'ca_cert' => :'String',
|
104
|
+
:'pulp_labels' => :'Object',
|
105
|
+
:'rate_limit' => :'Integer',
|
108
106
|
:'client_cert' => :'String',
|
107
|
+
:'sock_read_timeout' => :'Float',
|
108
|
+
:'url' => :'String',
|
109
109
|
:'sock_connect_timeout' => :'Float',
|
110
|
-
:'pulp_last_updated' => :'DateTime',
|
111
|
-
:'rate_limit' => :'Integer',
|
112
110
|
:'total_timeout' => :'Float',
|
113
|
-
:'
|
114
|
-
:'
|
111
|
+
:'headers' => :'Array<Object>',
|
112
|
+
:'download_concurrency' => :'Integer',
|
113
|
+
:'max_retries' => :'Integer',
|
115
114
|
:'name' => :'String',
|
116
|
-
:'url' => :'String',
|
117
115
|
:'pulp_href' => :'String',
|
118
|
-
:'
|
116
|
+
:'pulp_last_updated' => :'DateTime',
|
117
|
+
:'proxy_url' => :'String',
|
118
|
+
:'connect_timeout' => :'Float',
|
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
|
-
:'
|
128
|
-
:'sock_read_timeout',
|
126
|
+
:'ca_cert',
|
127
|
+
:'rate_limit',
|
129
128
|
:'client_cert',
|
129
|
+
:'sock_read_timeout',
|
130
130
|
:'sock_connect_timeout',
|
131
|
-
:'rate_limit',
|
132
131
|
:'total_timeout',
|
133
|
-
:'proxy_url',
|
134
|
-
:'ca_cert',
|
135
132
|
:'download_concurrency',
|
133
|
+
:'max_retries',
|
134
|
+
:'proxy_url',
|
135
|
+
:'connect_timeout',
|
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?(:'pulp_created')
|
155
|
+
self.pulp_created = attributes[:'pulp_created']
|
156
156
|
end
|
157
157
|
|
158
|
-
if attributes.key?(:'
|
159
|
-
|
160
|
-
|
161
|
-
|
158
|
+
if attributes.key?(:'tls_validation')
|
159
|
+
self.tls_validation = attributes[:'tls_validation']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.key?(:'ca_cert')
|
163
|
+
self.ca_cert = attributes[:'ca_cert']
|
162
164
|
end
|
163
165
|
|
164
166
|
if attributes.key?(:'pulp_labels')
|
165
167
|
self.pulp_labels = attributes[:'pulp_labels']
|
166
168
|
end
|
167
169
|
|
168
|
-
if attributes.key?(:'
|
169
|
-
self.
|
170
|
+
if attributes.key?(:'rate_limit')
|
171
|
+
self.rate_limit = attributes[:'rate_limit']
|
170
172
|
end
|
171
173
|
|
172
|
-
if attributes.key?(:'
|
173
|
-
self.
|
174
|
+
if attributes.key?(:'client_cert')
|
175
|
+
self.client_cert = attributes[:'client_cert']
|
174
176
|
end
|
175
177
|
|
176
178
|
if attributes.key?(:'sock_read_timeout')
|
177
179
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
178
180
|
end
|
179
181
|
|
180
|
-
if attributes.key?(:'
|
181
|
-
self.
|
182
|
-
end
|
183
|
-
|
184
|
-
if attributes.key?(:'client_cert')
|
185
|
-
self.client_cert = attributes[:'client_cert']
|
182
|
+
if attributes.key?(:'url')
|
183
|
+
self.url = attributes[:'url']
|
186
184
|
end
|
187
185
|
|
188
186
|
if attributes.key?(:'sock_connect_timeout')
|
189
187
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
190
188
|
end
|
191
189
|
|
192
|
-
if attributes.key?(:'pulp_last_updated')
|
193
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
194
|
-
end
|
195
|
-
|
196
|
-
if attributes.key?(:'rate_limit')
|
197
|
-
self.rate_limit = attributes[:'rate_limit']
|
198
|
-
end
|
199
|
-
|
200
190
|
if attributes.key?(:'total_timeout')
|
201
191
|
self.total_timeout = attributes[:'total_timeout']
|
202
192
|
end
|
203
193
|
|
204
|
-
if attributes.key?(:'
|
205
|
-
|
194
|
+
if attributes.key?(:'headers')
|
195
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
196
|
+
self.headers = value
|
197
|
+
end
|
206
198
|
end
|
207
199
|
|
208
|
-
if attributes.key?(:'
|
209
|
-
self.
|
200
|
+
if attributes.key?(:'download_concurrency')
|
201
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
210
202
|
end
|
211
203
|
|
212
|
-
if attributes.key?(:'
|
213
|
-
self.
|
204
|
+
if attributes.key?(:'max_retries')
|
205
|
+
self.max_retries = attributes[:'max_retries']
|
214
206
|
end
|
215
207
|
|
216
|
-
if attributes.key?(:'
|
217
|
-
self.
|
208
|
+
if attributes.key?(:'name')
|
209
|
+
self.name = attributes[:'name']
|
218
210
|
end
|
219
211
|
|
220
212
|
if attributes.key?(:'pulp_href')
|
221
213
|
self.pulp_href = attributes[:'pulp_href']
|
222
214
|
end
|
223
215
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
self.
|
216
|
+
if attributes.key?(:'pulp_last_updated')
|
217
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
218
|
+
end
|
219
|
+
|
220
|
+
if attributes.key?(:'proxy_url')
|
221
|
+
self.proxy_url = attributes[:'proxy_url']
|
222
|
+
end
|
223
|
+
|
224
|
+
if attributes.key?(:'connect_timeout')
|
225
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
226
226
|
end
|
227
227
|
|
228
228
|
if attributes.key?(:'metadata_only')
|
@@ -234,14 +234,14 @@ 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 !@connect_timeout.nil? && @connect_timeout < 0.0
|
238
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
239
|
-
end
|
240
|
-
|
241
237
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
242
238
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
243
239
|
end
|
244
240
|
|
241
|
+
if @url.nil?
|
242
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
243
|
+
end
|
244
|
+
|
245
245
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
246
246
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
247
247
|
end
|
@@ -250,16 +250,16 @@ module PulpAnsibleClient
|
|
250
250
|
invalid_properties.push('invalid value for "total_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 !@download_concurrency.nil? && @download_concurrency < 1
|
254
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
255
255
|
end
|
256
256
|
|
257
|
-
if @
|
258
|
-
invalid_properties.push('invalid value for "
|
257
|
+
if @name.nil?
|
258
|
+
invalid_properties.push('invalid value for "name", name 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,26 +268,16 @@ 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 !@connect_timeout.nil? && @connect_timeout < 0.0
|
272
271
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
272
|
+
return false if @url.nil?
|
273
273
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
274
274
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
275
|
-
return false if @name.nil?
|
276
|
-
return false if @url.nil?
|
277
275
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
276
|
+
return false if @name.nil?
|
277
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
278
278
|
true
|
279
279
|
end
|
280
280
|
|
281
|
-
# Custom attribute writer method with validation
|
282
|
-
# @param [Object] connect_timeout Value to be assigned
|
283
|
-
def connect_timeout=(connect_timeout)
|
284
|
-
if !connect_timeout.nil? && connect_timeout < 0.0
|
285
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
286
|
-
end
|
287
|
-
|
288
|
-
@connect_timeout = connect_timeout
|
289
|
-
end
|
290
|
-
|
291
281
|
# Custom attribute writer method with validation
|
292
282
|
# @param [Object] sock_read_timeout Value to be assigned
|
293
283
|
def sock_read_timeout=(sock_read_timeout)
|
@@ -328,29 +318,39 @@ module PulpAnsibleClient
|
|
328
318
|
@download_concurrency = download_concurrency
|
329
319
|
end
|
330
320
|
|
321
|
+
# Custom attribute writer method with validation
|
322
|
+
# @param [Object] connect_timeout Value to be assigned
|
323
|
+
def connect_timeout=(connect_timeout)
|
324
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
325
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
326
|
+
end
|
327
|
+
|
328
|
+
@connect_timeout = connect_timeout
|
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
|
-
max_retries == o.max_retries &&
|
337
|
-
headers == o.headers &&
|
338
|
-
pulp_labels == o.pulp_labels &&
|
339
|
-
connect_timeout == o.connect_timeout &&
|
340
|
-
tls_validation == o.tls_validation &&
|
341
|
-
sock_read_timeout == o.sock_read_timeout &&
|
342
336
|
pulp_created == o.pulp_created &&
|
337
|
+
tls_validation == o.tls_validation &&
|
338
|
+
ca_cert == o.ca_cert &&
|
339
|
+
pulp_labels == o.pulp_labels &&
|
340
|
+
rate_limit == o.rate_limit &&
|
343
341
|
client_cert == o.client_cert &&
|
342
|
+
sock_read_timeout == o.sock_read_timeout &&
|
343
|
+
url == o.url &&
|
344
344
|
sock_connect_timeout == o.sock_connect_timeout &&
|
345
|
-
pulp_last_updated == o.pulp_last_updated &&
|
346
|
-
rate_limit == o.rate_limit &&
|
347
345
|
total_timeout == o.total_timeout &&
|
348
|
-
|
349
|
-
|
346
|
+
headers == o.headers &&
|
347
|
+
download_concurrency == o.download_concurrency &&
|
348
|
+
max_retries == o.max_retries &&
|
350
349
|
name == o.name &&
|
351
|
-
url == o.url &&
|
352
350
|
pulp_href == o.pulp_href &&
|
353
|
-
|
351
|
+
pulp_last_updated == o.pulp_last_updated &&
|
352
|
+
proxy_url == o.proxy_url &&
|
353
|
+
connect_timeout == o.connect_timeout &&
|
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
|
+
[pulp_created, tls_validation, ca_cert, pulp_labels, rate_limit, client_cert, sock_read_timeout, url, sock_connect_timeout, total_timeout, headers, download_concurrency, max_retries, name, pulp_href, pulp_last_updated, proxy_url, connect_timeout, metadata_only].hash
|
367
367
|
end
|
368
368
|
|
369
369
|
# Builds the object from hash
|