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