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