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