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