pulp_ansible_client 0.25.3 → 0.25.4
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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/ContentCollectionVersionsApi.md +4 -4
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +21 -21
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +232 -232
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +154 -154
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +21 -21
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +224 -224
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/models/ansible_collection_version_response_spec.rb +6 -6
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +2 -2
|
@@ -16,64 +16,64 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Git Collection Remotes.
|
|
18
18
|
class AnsibleGitRemoteResponse
|
|
19
|
+
# Headers for aiohttp.Clientsession
|
|
20
|
+
attr_accessor :headers
|
|
21
|
+
|
|
22
|
+
# The Pulp Resource Name (PRN).
|
|
23
|
+
attr_accessor :prn
|
|
24
|
+
|
|
19
25
|
# Limits requests per second for each concurrent downloader
|
|
20
26
|
attr_accessor :rate_limit
|
|
21
27
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
28
|
+
# List of hidden (write only) fields
|
|
29
|
+
attr_accessor :hidden_fields
|
|
24
30
|
|
|
25
31
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
26
32
|
attr_accessor :total_timeout
|
|
27
33
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
34
|
+
# 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.
|
|
35
|
+
attr_accessor :sock_connect_timeout
|
|
30
36
|
|
|
31
|
-
#
|
|
32
|
-
attr_accessor :
|
|
37
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
38
|
+
attr_accessor :connect_timeout
|
|
33
39
|
|
|
34
|
-
#
|
|
35
|
-
attr_accessor :
|
|
40
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
41
|
+
attr_accessor :ca_cert
|
|
42
|
+
|
|
43
|
+
# If True, TLS peer validation must be performed.
|
|
44
|
+
attr_accessor :tls_validation
|
|
45
|
+
|
|
46
|
+
attr_accessor :pulp_labels
|
|
36
47
|
|
|
37
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.
|
|
38
49
|
attr_accessor :sock_read_timeout
|
|
39
50
|
|
|
40
|
-
#
|
|
41
|
-
attr_accessor :
|
|
51
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
52
|
+
attr_accessor :max_retries
|
|
42
53
|
|
|
43
|
-
#
|
|
44
|
-
attr_accessor :
|
|
54
|
+
# Timestamp of creation.
|
|
55
|
+
attr_accessor :pulp_created
|
|
56
|
+
|
|
57
|
+
# A PEM encoded client certificate used for authentication.
|
|
58
|
+
attr_accessor :client_cert
|
|
45
59
|
|
|
46
60
|
# The proxy URL. Format: scheme://host:port
|
|
47
61
|
attr_accessor :proxy_url
|
|
48
62
|
|
|
49
|
-
|
|
63
|
+
# A unique name for this remote.
|
|
64
|
+
attr_accessor :name
|
|
50
65
|
|
|
51
|
-
|
|
52
|
-
attr_accessor :ca_cert
|
|
66
|
+
attr_accessor :pulp_href
|
|
53
67
|
|
|
54
68
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
55
69
|
attr_accessor :download_concurrency
|
|
56
70
|
|
|
57
|
-
#
|
|
58
|
-
attr_accessor :
|
|
71
|
+
# The URL of an external content source.
|
|
72
|
+
attr_accessor :url
|
|
59
73
|
|
|
60
74
|
# Timestamp of the most recent update of the remote.
|
|
61
75
|
attr_accessor :pulp_last_updated
|
|
62
76
|
|
|
63
|
-
# Timestamp of creation.
|
|
64
|
-
attr_accessor :pulp_created
|
|
65
|
-
|
|
66
|
-
# The Pulp Resource Name (PRN).
|
|
67
|
-
attr_accessor :prn
|
|
68
|
-
|
|
69
|
-
# A PEM encoded client certificate used for authentication.
|
|
70
|
-
attr_accessor :client_cert
|
|
71
|
-
|
|
72
|
-
attr_accessor :pulp_href
|
|
73
|
-
|
|
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
|
-
attr_accessor :sock_connect_timeout
|
|
76
|
-
|
|
77
77
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
|
78
78
|
attr_accessor :metadata_only
|
|
79
79
|
|
|
@@ -83,26 +83,26 @@ module PulpAnsibleClient
|
|
|
83
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
84
|
def self.attribute_map
|
|
85
85
|
{
|
|
86
|
-
:'rate_limit' => :'rate_limit',
|
|
87
|
-
:'max_retries' => :'max_retries',
|
|
88
|
-
:'total_timeout' => :'total_timeout',
|
|
89
|
-
:'name' => :'name',
|
|
90
86
|
:'headers' => :'headers',
|
|
91
|
-
:'
|
|
92
|
-
:'
|
|
87
|
+
:'prn' => :'prn',
|
|
88
|
+
:'rate_limit' => :'rate_limit',
|
|
93
89
|
:'hidden_fields' => :'hidden_fields',
|
|
90
|
+
:'total_timeout' => :'total_timeout',
|
|
91
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
92
|
+
:'connect_timeout' => :'connect_timeout',
|
|
93
|
+
:'ca_cert' => :'ca_cert',
|
|
94
94
|
:'tls_validation' => :'tls_validation',
|
|
95
|
-
:'proxy_url' => :'proxy_url',
|
|
96
95
|
:'pulp_labels' => :'pulp_labels',
|
|
97
|
-
:'
|
|
98
|
-
:'
|
|
99
|
-
:'connect_timeout' => :'connect_timeout',
|
|
100
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
96
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
97
|
+
:'max_retries' => :'max_retries',
|
|
101
98
|
:'pulp_created' => :'pulp_created',
|
|
102
|
-
:'prn' => :'prn',
|
|
103
99
|
:'client_cert' => :'client_cert',
|
|
100
|
+
:'proxy_url' => :'proxy_url',
|
|
101
|
+
:'name' => :'name',
|
|
104
102
|
:'pulp_href' => :'pulp_href',
|
|
105
|
-
:'
|
|
103
|
+
:'download_concurrency' => :'download_concurrency',
|
|
104
|
+
:'url' => :'url',
|
|
105
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
106
106
|
:'metadata_only' => :'metadata_only',
|
|
107
107
|
:'git_ref' => :'git_ref'
|
|
108
108
|
}
|
|
@@ -116,26 +116,26 @@ module PulpAnsibleClient
|
|
|
116
116
|
# Attribute type mapping.
|
|
117
117
|
def self.openapi_types
|
|
118
118
|
{
|
|
119
|
-
:'rate_limit' => :'Integer',
|
|
120
|
-
:'max_retries' => :'Integer',
|
|
121
|
-
:'total_timeout' => :'Float',
|
|
122
|
-
:'name' => :'String',
|
|
123
119
|
:'headers' => :'Array<Object>',
|
|
124
|
-
:'
|
|
125
|
-
:'
|
|
120
|
+
:'prn' => :'String',
|
|
121
|
+
:'rate_limit' => :'Integer',
|
|
126
122
|
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
123
|
+
:'total_timeout' => :'Float',
|
|
124
|
+
:'sock_connect_timeout' => :'Float',
|
|
125
|
+
:'connect_timeout' => :'Float',
|
|
126
|
+
:'ca_cert' => :'String',
|
|
127
127
|
:'tls_validation' => :'Boolean',
|
|
128
|
-
:'proxy_url' => :'String',
|
|
129
128
|
:'pulp_labels' => :'Hash<String, String>',
|
|
130
|
-
:'
|
|
131
|
-
:'
|
|
132
|
-
:'connect_timeout' => :'Float',
|
|
133
|
-
:'pulp_last_updated' => :'Time',
|
|
129
|
+
:'sock_read_timeout' => :'Float',
|
|
130
|
+
:'max_retries' => :'Integer',
|
|
134
131
|
:'pulp_created' => :'Time',
|
|
135
|
-
:'prn' => :'String',
|
|
136
132
|
:'client_cert' => :'String',
|
|
133
|
+
:'proxy_url' => :'String',
|
|
134
|
+
:'name' => :'String',
|
|
137
135
|
:'pulp_href' => :'String',
|
|
138
|
-
:'
|
|
136
|
+
:'download_concurrency' => :'Integer',
|
|
137
|
+
:'url' => :'String',
|
|
138
|
+
:'pulp_last_updated' => :'Time',
|
|
139
139
|
:'metadata_only' => :'Boolean',
|
|
140
140
|
:'git_ref' => :'String'
|
|
141
141
|
}
|
|
@@ -145,15 +145,15 @@ module PulpAnsibleClient
|
|
|
145
145
|
def self.openapi_nullable
|
|
146
146
|
Set.new([
|
|
147
147
|
:'rate_limit',
|
|
148
|
-
:'max_retries',
|
|
149
148
|
:'total_timeout',
|
|
149
|
+
:'sock_connect_timeout',
|
|
150
|
+
:'connect_timeout',
|
|
151
|
+
:'ca_cert',
|
|
150
152
|
:'sock_read_timeout',
|
|
153
|
+
:'max_retries',
|
|
154
|
+
:'client_cert',
|
|
151
155
|
:'proxy_url',
|
|
152
|
-
:'ca_cert',
|
|
153
156
|
:'download_concurrency',
|
|
154
|
-
:'connect_timeout',
|
|
155
|
-
:'client_cert',
|
|
156
|
-
:'sock_connect_timeout',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -172,38 +172,18 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
if attributes.key?(:'rate_limit')
|
|
176
|
-
self.rate_limit = attributes[:'rate_limit']
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
if attributes.key?(:'max_retries')
|
|
180
|
-
self.max_retries = attributes[:'max_retries']
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
if attributes.key?(:'total_timeout')
|
|
184
|
-
self.total_timeout = attributes[:'total_timeout']
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
if attributes.key?(:'name')
|
|
188
|
-
self.name = attributes[:'name']
|
|
189
|
-
else
|
|
190
|
-
self.name = nil
|
|
191
|
-
end
|
|
192
|
-
|
|
193
175
|
if attributes.key?(:'headers')
|
|
194
176
|
if (value = attributes[:'headers']).is_a?(Array)
|
|
195
177
|
self.headers = value
|
|
196
178
|
end
|
|
197
179
|
end
|
|
198
180
|
|
|
199
|
-
if attributes.key?(:'
|
|
200
|
-
self.
|
|
201
|
-
else
|
|
202
|
-
self.url = nil
|
|
181
|
+
if attributes.key?(:'prn')
|
|
182
|
+
self.prn = attributes[:'prn']
|
|
203
183
|
end
|
|
204
184
|
|
|
205
|
-
if attributes.key?(:'
|
|
206
|
-
self.
|
|
185
|
+
if attributes.key?(:'rate_limit')
|
|
186
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
207
187
|
end
|
|
208
188
|
|
|
209
189
|
if attributes.key?(:'hidden_fields')
|
|
@@ -212,54 +192,74 @@ module PulpAnsibleClient
|
|
|
212
192
|
end
|
|
213
193
|
end
|
|
214
194
|
|
|
215
|
-
if attributes.key?(:'
|
|
216
|
-
self.
|
|
195
|
+
if attributes.key?(:'total_timeout')
|
|
196
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
217
197
|
end
|
|
218
198
|
|
|
219
|
-
if attributes.key?(:'
|
|
220
|
-
self.
|
|
199
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
200
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
221
201
|
end
|
|
222
202
|
|
|
223
|
-
if attributes.key?(:'
|
|
224
|
-
|
|
225
|
-
self.pulp_labels = value
|
|
226
|
-
end
|
|
203
|
+
if attributes.key?(:'connect_timeout')
|
|
204
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
227
205
|
end
|
|
228
206
|
|
|
229
207
|
if attributes.key?(:'ca_cert')
|
|
230
208
|
self.ca_cert = attributes[:'ca_cert']
|
|
231
209
|
end
|
|
232
210
|
|
|
233
|
-
if attributes.key?(:'
|
|
234
|
-
self.
|
|
211
|
+
if attributes.key?(:'tls_validation')
|
|
212
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
235
213
|
end
|
|
236
214
|
|
|
237
|
-
if attributes.key?(:'
|
|
238
|
-
|
|
215
|
+
if attributes.key?(:'pulp_labels')
|
|
216
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
217
|
+
self.pulp_labels = value
|
|
218
|
+
end
|
|
239
219
|
end
|
|
240
220
|
|
|
241
|
-
if attributes.key?(:'
|
|
242
|
-
self.
|
|
221
|
+
if attributes.key?(:'sock_read_timeout')
|
|
222
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
243
223
|
end
|
|
244
224
|
|
|
245
|
-
if attributes.key?(:'
|
|
246
|
-
self.
|
|
225
|
+
if attributes.key?(:'max_retries')
|
|
226
|
+
self.max_retries = attributes[:'max_retries']
|
|
247
227
|
end
|
|
248
228
|
|
|
249
|
-
if attributes.key?(:'
|
|
250
|
-
self.
|
|
229
|
+
if attributes.key?(:'pulp_created')
|
|
230
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
251
231
|
end
|
|
252
232
|
|
|
253
233
|
if attributes.key?(:'client_cert')
|
|
254
234
|
self.client_cert = attributes[:'client_cert']
|
|
255
235
|
end
|
|
256
236
|
|
|
237
|
+
if attributes.key?(:'proxy_url')
|
|
238
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'name')
|
|
242
|
+
self.name = attributes[:'name']
|
|
243
|
+
else
|
|
244
|
+
self.name = nil
|
|
245
|
+
end
|
|
246
|
+
|
|
257
247
|
if attributes.key?(:'pulp_href')
|
|
258
248
|
self.pulp_href = attributes[:'pulp_href']
|
|
259
249
|
end
|
|
260
250
|
|
|
261
|
-
if attributes.key?(:'
|
|
262
|
-
self.
|
|
251
|
+
if attributes.key?(:'download_concurrency')
|
|
252
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'url')
|
|
256
|
+
self.url = attributes[:'url']
|
|
257
|
+
else
|
|
258
|
+
self.url = nil
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'pulp_last_updated')
|
|
262
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
263
263
|
end
|
|
264
264
|
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
|
@@ -280,28 +280,28 @@ module PulpAnsibleClient
|
|
|
280
280
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
281
281
|
end
|
|
282
282
|
|
|
283
|
-
if
|
|
284
|
-
invalid_properties.push('invalid value for "
|
|
283
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
284
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
285
285
|
end
|
|
286
286
|
|
|
287
|
-
if
|
|
288
|
-
invalid_properties.push('invalid value for "
|
|
287
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
288
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
289
289
|
end
|
|
290
290
|
|
|
291
291
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
292
292
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
-
if
|
|
296
|
-
invalid_properties.push('invalid value for "
|
|
295
|
+
if @name.nil?
|
|
296
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
297
297
|
end
|
|
298
298
|
|
|
299
|
-
if !@
|
|
300
|
-
invalid_properties.push('invalid value for "
|
|
299
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
300
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
301
301
|
end
|
|
302
302
|
|
|
303
|
-
if
|
|
304
|
-
invalid_properties.push('invalid value for "
|
|
303
|
+
if @url.nil?
|
|
304
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
305
305
|
end
|
|
306
306
|
|
|
307
307
|
invalid_properties
|
|
@@ -312,12 +312,12 @@ module PulpAnsibleClient
|
|
|
312
312
|
def valid?
|
|
313
313
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
314
314
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
315
|
-
return false if
|
|
316
|
-
return false if
|
|
315
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
316
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
317
317
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
318
|
+
return false if @name.nil?
|
|
318
319
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
319
|
-
return false if
|
|
320
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
320
|
+
return false if @url.nil?
|
|
321
321
|
true
|
|
322
322
|
end
|
|
323
323
|
|
|
@@ -332,23 +332,13 @@ module PulpAnsibleClient
|
|
|
332
332
|
end
|
|
333
333
|
|
|
334
334
|
# Custom attribute writer method with validation
|
|
335
|
-
# @param [Object]
|
|
336
|
-
def
|
|
337
|
-
if !
|
|
338
|
-
fail ArgumentError, 'invalid value for "
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
@sock_read_timeout = sock_read_timeout
|
|
342
|
-
end
|
|
343
|
-
|
|
344
|
-
# Custom attribute writer method with validation
|
|
345
|
-
# @param [Object] download_concurrency Value to be assigned
|
|
346
|
-
def download_concurrency=(download_concurrency)
|
|
347
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
|
348
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
335
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
336
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
337
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
338
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
349
339
|
end
|
|
350
340
|
|
|
351
|
-
@
|
|
341
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
352
342
|
end
|
|
353
343
|
|
|
354
344
|
# Custom attribute writer method with validation
|
|
@@ -362,13 +352,23 @@ module PulpAnsibleClient
|
|
|
362
352
|
end
|
|
363
353
|
|
|
364
354
|
# Custom attribute writer method with validation
|
|
365
|
-
# @param [Object]
|
|
366
|
-
def
|
|
367
|
-
if !
|
|
368
|
-
fail ArgumentError, 'invalid value for "
|
|
355
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
356
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
357
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
358
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
369
359
|
end
|
|
370
360
|
|
|
371
|
-
@
|
|
361
|
+
@sock_read_timeout = sock_read_timeout
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Custom attribute writer method with validation
|
|
365
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
366
|
+
def download_concurrency=(download_concurrency)
|
|
367
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
368
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
@download_concurrency = download_concurrency
|
|
372
372
|
end
|
|
373
373
|
|
|
374
374
|
# Checks equality by comparing each attribute.
|
|
@@ -376,26 +376,26 @@ module PulpAnsibleClient
|
|
|
376
376
|
def ==(o)
|
|
377
377
|
return true if self.equal?(o)
|
|
378
378
|
self.class == o.class &&
|
|
379
|
-
rate_limit == o.rate_limit &&
|
|
380
|
-
max_retries == o.max_retries &&
|
|
381
|
-
total_timeout == o.total_timeout &&
|
|
382
|
-
name == o.name &&
|
|
383
379
|
headers == o.headers &&
|
|
384
|
-
|
|
385
|
-
|
|
380
|
+
prn == o.prn &&
|
|
381
|
+
rate_limit == o.rate_limit &&
|
|
386
382
|
hidden_fields == o.hidden_fields &&
|
|
383
|
+
total_timeout == o.total_timeout &&
|
|
384
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
385
|
+
connect_timeout == o.connect_timeout &&
|
|
386
|
+
ca_cert == o.ca_cert &&
|
|
387
387
|
tls_validation == o.tls_validation &&
|
|
388
|
-
proxy_url == o.proxy_url &&
|
|
389
388
|
pulp_labels == o.pulp_labels &&
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
connect_timeout == o.connect_timeout &&
|
|
393
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
389
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
390
|
+
max_retries == o.max_retries &&
|
|
394
391
|
pulp_created == o.pulp_created &&
|
|
395
|
-
prn == o.prn &&
|
|
396
392
|
client_cert == o.client_cert &&
|
|
393
|
+
proxy_url == o.proxy_url &&
|
|
394
|
+
name == o.name &&
|
|
397
395
|
pulp_href == o.pulp_href &&
|
|
398
|
-
|
|
396
|
+
download_concurrency == o.download_concurrency &&
|
|
397
|
+
url == o.url &&
|
|
398
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
399
399
|
metadata_only == o.metadata_only &&
|
|
400
400
|
git_ref == o.git_ref
|
|
401
401
|
end
|
|
@@ -409,7 +409,7 @@ module PulpAnsibleClient
|
|
|
409
409
|
# Calculates hash code according to all attributes.
|
|
410
410
|
# @return [Integer] Hash code
|
|
411
411
|
def hash
|
|
412
|
-
[
|
|
412
|
+
[headers, prn, rate_limit, hidden_fields, total_timeout, sock_connect_timeout, connect_timeout, ca_cert, tls_validation, pulp_labels, sock_read_timeout, max_retries, pulp_created, client_cert, proxy_url, name, pulp_href, download_concurrency, url, pulp_last_updated, metadata_only, git_ref].hash
|
|
413
413
|
end
|
|
414
414
|
|
|
415
415
|
# Builds the object from hash
|
|
@@ -16,23 +16,23 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRoleResponse
|
|
19
|
-
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
20
|
-
attr_accessor :pulp_last_updated
|
|
21
|
-
|
|
22
|
-
# Timestamp of creation.
|
|
23
|
-
attr_accessor :pulp_created
|
|
24
|
-
|
|
25
19
|
# Artifact file representing the physical content
|
|
26
20
|
attr_accessor :artifact
|
|
27
21
|
|
|
28
22
|
# The Pulp Resource Name (PRN).
|
|
29
23
|
attr_accessor :prn
|
|
30
24
|
|
|
25
|
+
# Timestamp of creation.
|
|
26
|
+
attr_accessor :pulp_created
|
|
27
|
+
|
|
31
28
|
attr_accessor :pulp_href
|
|
32
29
|
|
|
33
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
34
31
|
attr_accessor :pulp_labels
|
|
35
32
|
|
|
33
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
34
|
+
attr_accessor :pulp_last_updated
|
|
35
|
+
|
|
36
36
|
attr_accessor :version
|
|
37
37
|
|
|
38
38
|
attr_accessor :name
|
|
@@ -42,12 +42,12 @@ module PulpAnsibleClient
|
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
43
|
def self.attribute_map
|
|
44
44
|
{
|
|
45
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
46
|
-
:'pulp_created' => :'pulp_created',
|
|
47
45
|
:'artifact' => :'artifact',
|
|
48
46
|
:'prn' => :'prn',
|
|
47
|
+
:'pulp_created' => :'pulp_created',
|
|
49
48
|
:'pulp_href' => :'pulp_href',
|
|
50
49
|
:'pulp_labels' => :'pulp_labels',
|
|
50
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
51
51
|
:'version' => :'version',
|
|
52
52
|
:'name' => :'name',
|
|
53
53
|
:'namespace' => :'namespace'
|
|
@@ -62,12 +62,12 @@ module PulpAnsibleClient
|
|
|
62
62
|
# Attribute type mapping.
|
|
63
63
|
def self.openapi_types
|
|
64
64
|
{
|
|
65
|
-
:'pulp_last_updated' => :'Time',
|
|
66
|
-
:'pulp_created' => :'Time',
|
|
67
65
|
:'artifact' => :'String',
|
|
68
66
|
:'prn' => :'String',
|
|
67
|
+
:'pulp_created' => :'Time',
|
|
69
68
|
:'pulp_href' => :'String',
|
|
70
69
|
:'pulp_labels' => :'Hash<String, String>',
|
|
70
|
+
:'pulp_last_updated' => :'Time',
|
|
71
71
|
:'version' => :'String',
|
|
72
72
|
:'name' => :'String',
|
|
73
73
|
:'namespace' => :'String'
|
|
@@ -95,14 +95,6 @@ module PulpAnsibleClient
|
|
|
95
95
|
h[k.to_sym] = v
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
if attributes.key?(:'pulp_last_updated')
|
|
99
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
if attributes.key?(:'pulp_created')
|
|
103
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
104
|
-
end
|
|
105
|
-
|
|
106
98
|
if attributes.key?(:'artifact')
|
|
107
99
|
self.artifact = attributes[:'artifact']
|
|
108
100
|
else
|
|
@@ -113,6 +105,10 @@ module PulpAnsibleClient
|
|
|
113
105
|
self.prn = attributes[:'prn']
|
|
114
106
|
end
|
|
115
107
|
|
|
108
|
+
if attributes.key?(:'pulp_created')
|
|
109
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
110
|
+
end
|
|
111
|
+
|
|
116
112
|
if attributes.key?(:'pulp_href')
|
|
117
113
|
self.pulp_href = attributes[:'pulp_href']
|
|
118
114
|
end
|
|
@@ -123,6 +119,10 @@ module PulpAnsibleClient
|
|
|
123
119
|
end
|
|
124
120
|
end
|
|
125
121
|
|
|
122
|
+
if attributes.key?(:'pulp_last_updated')
|
|
123
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
126
|
if attributes.key?(:'version')
|
|
127
127
|
self.version = attributes[:'version']
|
|
128
128
|
else
|
|
@@ -182,12 +182,12 @@ module PulpAnsibleClient
|
|
|
182
182
|
def ==(o)
|
|
183
183
|
return true if self.equal?(o)
|
|
184
184
|
self.class == o.class &&
|
|
185
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
186
|
-
pulp_created == o.pulp_created &&
|
|
187
185
|
artifact == o.artifact &&
|
|
188
186
|
prn == o.prn &&
|
|
187
|
+
pulp_created == o.pulp_created &&
|
|
189
188
|
pulp_href == o.pulp_href &&
|
|
190
189
|
pulp_labels == o.pulp_labels &&
|
|
190
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
191
191
|
version == o.version &&
|
|
192
192
|
name == o.name &&
|
|
193
193
|
namespace == o.namespace
|
|
@@ -202,7 +202,7 @@ module PulpAnsibleClient
|
|
|
202
202
|
# Calculates hash code according to all attributes.
|
|
203
203
|
# @return [Integer] Hash code
|
|
204
204
|
def hash
|
|
205
|
-
[
|
|
205
|
+
[artifact, prn, pulp_created, pulp_href, pulp_labels, pulp_last_updated, version, name, namespace].hash
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
# Builds the object from hash
|