pulp_ansible_client 0.11.0.dev1636254912 → 0.11.0.dev1636600545
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_ansible_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +27 -27
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ContentCollectionVersionsApi.md +3 -3
- data/docs/PatchedansibleGitRemote.md +30 -30
- 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 +162 -162
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +145 -145
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +158 -158
- 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 +3 -3
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- metadata +2 -2
@@ -15,57 +15,57 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Timestamp of the most recent update of the remote.
|
19
|
+
attr_accessor :pulp_last_updated
|
20
20
|
|
21
|
-
|
22
|
-
attr_accessor :url
|
21
|
+
attr_accessor :pulp_labels
|
23
22
|
|
24
|
-
|
25
|
-
attr_accessor :total_timeout
|
23
|
+
attr_accessor :pulp_href
|
26
24
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
25
|
+
# The proxy URL. Format: scheme://host:port
|
26
|
+
attr_accessor :proxy_url
|
29
27
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
28
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
29
|
+
attr_accessor :ca_cert
|
30
|
+
|
31
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
32
|
+
attr_accessor :max_retries
|
32
33
|
|
33
34
|
# 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.
|
34
35
|
attr_accessor :sock_read_timeout
|
35
36
|
|
36
|
-
#
|
37
|
-
attr_accessor :
|
37
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
38
|
+
attr_accessor :total_timeout
|
38
39
|
|
39
|
-
# If
|
40
|
-
attr_accessor :
|
40
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
41
|
+
attr_accessor :download_concurrency
|
41
42
|
|
42
43
|
# A unique name for this remote.
|
43
44
|
attr_accessor :name
|
44
45
|
|
45
|
-
#
|
46
|
-
attr_accessor :
|
46
|
+
# A PEM encoded client certificate used for authentication.
|
47
|
+
attr_accessor :client_cert
|
47
48
|
|
48
|
-
#
|
49
|
-
attr_accessor :
|
49
|
+
# Limits total download rate in requests per second
|
50
|
+
attr_accessor :rate_limit
|
51
|
+
|
52
|
+
# The URL of an external content source.
|
53
|
+
attr_accessor :url
|
50
54
|
|
51
55
|
# Headers for aiohttp.Clientsession
|
52
56
|
attr_accessor :headers
|
53
57
|
|
54
|
-
#
|
55
|
-
attr_accessor :
|
56
|
-
|
57
|
-
attr_accessor :pulp_labels
|
58
|
-
|
59
|
-
# A PEM encoded client certificate used for authentication.
|
60
|
-
attr_accessor :client_cert
|
58
|
+
# If True, TLS peer validation must be performed.
|
59
|
+
attr_accessor :tls_validation
|
61
60
|
|
62
|
-
|
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.
|
62
|
+
attr_accessor :connect_timeout
|
63
63
|
|
64
|
-
#
|
65
|
-
attr_accessor :
|
64
|
+
# 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.
|
65
|
+
attr_accessor :sock_connect_timeout
|
66
66
|
|
67
|
-
#
|
68
|
-
attr_accessor :
|
67
|
+
# Timestamp of creation.
|
68
|
+
attr_accessor :pulp_created
|
69
69
|
|
70
70
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
71
71
|
attr_accessor :metadata_only
|
@@ -73,24 +73,24 @@ module PulpAnsibleClient
|
|
73
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
74
74
|
def self.attribute_map
|
75
75
|
{
|
76
|
-
:'rate_limit' => :'rate_limit',
|
77
|
-
:'url' => :'url',
|
78
|
-
:'total_timeout' => :'total_timeout',
|
79
|
-
:'connect_timeout' => :'connect_timeout',
|
80
|
-
:'pulp_created' => :'pulp_created',
|
81
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
82
|
-
:'max_retries' => :'max_retries',
|
83
|
-
:'tls_validation' => :'tls_validation',
|
84
|
-
:'name' => :'name',
|
85
|
-
:'download_concurrency' => :'download_concurrency',
|
86
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
87
|
-
:'headers' => :'headers',
|
88
76
|
:'pulp_last_updated' => :'pulp_last_updated',
|
89
77
|
:'pulp_labels' => :'pulp_labels',
|
90
|
-
:'client_cert' => :'client_cert',
|
91
78
|
:'pulp_href' => :'pulp_href',
|
92
79
|
:'proxy_url' => :'proxy_url',
|
93
80
|
:'ca_cert' => :'ca_cert',
|
81
|
+
:'max_retries' => :'max_retries',
|
82
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
83
|
+
:'total_timeout' => :'total_timeout',
|
84
|
+
:'download_concurrency' => :'download_concurrency',
|
85
|
+
:'name' => :'name',
|
86
|
+
:'client_cert' => :'client_cert',
|
87
|
+
:'rate_limit' => :'rate_limit',
|
88
|
+
:'url' => :'url',
|
89
|
+
:'headers' => :'headers',
|
90
|
+
:'tls_validation' => :'tls_validation',
|
91
|
+
:'connect_timeout' => :'connect_timeout',
|
92
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
93
|
+
:'pulp_created' => :'pulp_created',
|
94
94
|
:'metadata_only' => :'metadata_only'
|
95
95
|
}
|
96
96
|
end
|
@@ -98,24 +98,24 @@ module PulpAnsibleClient
|
|
98
98
|
# Attribute type mapping.
|
99
99
|
def self.openapi_types
|
100
100
|
{
|
101
|
-
:'rate_limit' => :'Integer',
|
102
|
-
:'url' => :'String',
|
103
|
-
:'total_timeout' => :'Float',
|
104
|
-
:'connect_timeout' => :'Float',
|
105
|
-
:'pulp_created' => :'DateTime',
|
106
|
-
:'sock_read_timeout' => :'Float',
|
107
|
-
:'max_retries' => :'Integer',
|
108
|
-
:'tls_validation' => :'Boolean',
|
109
|
-
:'name' => :'String',
|
110
|
-
:'download_concurrency' => :'Integer',
|
111
|
-
:'sock_connect_timeout' => :'Float',
|
112
|
-
:'headers' => :'Array<Object>',
|
113
101
|
:'pulp_last_updated' => :'DateTime',
|
114
102
|
:'pulp_labels' => :'Object',
|
115
|
-
:'client_cert' => :'String',
|
116
103
|
:'pulp_href' => :'String',
|
117
104
|
:'proxy_url' => :'String',
|
118
105
|
:'ca_cert' => :'String',
|
106
|
+
:'max_retries' => :'Integer',
|
107
|
+
:'sock_read_timeout' => :'Float',
|
108
|
+
:'total_timeout' => :'Float',
|
109
|
+
:'download_concurrency' => :'Integer',
|
110
|
+
:'name' => :'String',
|
111
|
+
:'client_cert' => :'String',
|
112
|
+
:'rate_limit' => :'Integer',
|
113
|
+
:'url' => :'String',
|
114
|
+
:'headers' => :'Array<Object>',
|
115
|
+
:'tls_validation' => :'Boolean',
|
116
|
+
:'connect_timeout' => :'Float',
|
117
|
+
:'sock_connect_timeout' => :'Float',
|
118
|
+
:'pulp_created' => :'DateTime',
|
119
119
|
:'metadata_only' => :'Boolean'
|
120
120
|
}
|
121
121
|
end
|
@@ -123,16 +123,16 @@ module PulpAnsibleClient
|
|
123
123
|
# List of attributes with nullable: true
|
124
124
|
def self.openapi_nullable
|
125
125
|
Set.new([
|
126
|
-
:'
|
127
|
-
:'
|
128
|
-
:'connect_timeout',
|
129
|
-
:'sock_read_timeout',
|
126
|
+
:'proxy_url',
|
127
|
+
:'ca_cert',
|
130
128
|
:'max_retries',
|
129
|
+
:'sock_read_timeout',
|
130
|
+
:'total_timeout',
|
131
131
|
:'download_concurrency',
|
132
|
-
:'sock_connect_timeout',
|
133
132
|
:'client_cert',
|
134
|
-
:'
|
135
|
-
:'
|
133
|
+
:'rate_limit',
|
134
|
+
:'connect_timeout',
|
135
|
+
:'sock_connect_timeout',
|
136
136
|
])
|
137
137
|
end
|
138
138
|
|
@@ -151,48 +151,56 @@ module PulpAnsibleClient
|
|
151
151
|
h[k.to_sym] = v
|
152
152
|
}
|
153
153
|
|
154
|
-
if attributes.key?(:'
|
155
|
-
self.
|
154
|
+
if attributes.key?(:'pulp_last_updated')
|
155
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
156
156
|
end
|
157
157
|
|
158
|
-
if attributes.key?(:'
|
159
|
-
self.
|
158
|
+
if attributes.key?(:'pulp_labels')
|
159
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
160
160
|
end
|
161
161
|
|
162
|
-
if attributes.key?(:'
|
163
|
-
self.
|
162
|
+
if attributes.key?(:'pulp_href')
|
163
|
+
self.pulp_href = attributes[:'pulp_href']
|
164
164
|
end
|
165
165
|
|
166
|
-
if attributes.key?(:'
|
167
|
-
self.
|
166
|
+
if attributes.key?(:'proxy_url')
|
167
|
+
self.proxy_url = attributes[:'proxy_url']
|
168
168
|
end
|
169
169
|
|
170
|
-
if attributes.key?(:'
|
171
|
-
self.
|
170
|
+
if attributes.key?(:'ca_cert')
|
171
|
+
self.ca_cert = attributes[:'ca_cert']
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes.key?(:'max_retries')
|
175
|
+
self.max_retries = attributes[:'max_retries']
|
172
176
|
end
|
173
177
|
|
174
178
|
if attributes.key?(:'sock_read_timeout')
|
175
179
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
176
180
|
end
|
177
181
|
|
178
|
-
if attributes.key?(:'
|
179
|
-
self.
|
182
|
+
if attributes.key?(:'total_timeout')
|
183
|
+
self.total_timeout = attributes[:'total_timeout']
|
180
184
|
end
|
181
185
|
|
182
|
-
if attributes.key?(:'
|
183
|
-
self.
|
186
|
+
if attributes.key?(:'download_concurrency')
|
187
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
184
188
|
end
|
185
189
|
|
186
190
|
if attributes.key?(:'name')
|
187
191
|
self.name = attributes[:'name']
|
188
192
|
end
|
189
193
|
|
190
|
-
if attributes.key?(:'
|
191
|
-
self.
|
194
|
+
if attributes.key?(:'client_cert')
|
195
|
+
self.client_cert = attributes[:'client_cert']
|
192
196
|
end
|
193
197
|
|
194
|
-
if attributes.key?(:'
|
195
|
-
self.
|
198
|
+
if attributes.key?(:'rate_limit')
|
199
|
+
self.rate_limit = attributes[:'rate_limit']
|
200
|
+
end
|
201
|
+
|
202
|
+
if attributes.key?(:'url')
|
203
|
+
self.url = attributes[:'url']
|
196
204
|
end
|
197
205
|
|
198
206
|
if attributes.key?(:'headers')
|
@@ -201,28 +209,20 @@ module PulpAnsibleClient
|
|
201
209
|
end
|
202
210
|
end
|
203
211
|
|
204
|
-
if attributes.key?(:'
|
205
|
-
self.
|
206
|
-
end
|
207
|
-
|
208
|
-
if attributes.key?(:'pulp_labels')
|
209
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
210
|
-
end
|
211
|
-
|
212
|
-
if attributes.key?(:'client_cert')
|
213
|
-
self.client_cert = attributes[:'client_cert']
|
212
|
+
if attributes.key?(:'tls_validation')
|
213
|
+
self.tls_validation = attributes[:'tls_validation']
|
214
214
|
end
|
215
215
|
|
216
|
-
if attributes.key?(:'
|
217
|
-
self.
|
216
|
+
if attributes.key?(:'connect_timeout')
|
217
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
218
218
|
end
|
219
219
|
|
220
|
-
if attributes.key?(:'
|
221
|
-
self.
|
220
|
+
if attributes.key?(:'sock_connect_timeout')
|
221
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
222
222
|
end
|
223
223
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
self.
|
224
|
+
if attributes.key?(:'pulp_created')
|
225
|
+
self.pulp_created = attributes[:'pulp_created']
|
226
226
|
end
|
227
227
|
|
228
228
|
if attributes.key?(:'metadata_only')
|
@@ -234,28 +234,28 @@ module PulpAnsibleClient
|
|
234
234
|
# @return Array for valid properties with the reasons
|
235
235
|
def list_invalid_properties
|
236
236
|
invalid_properties = Array.new
|
237
|
-
if
|
238
|
-
invalid_properties.push('invalid value for "
|
237
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
238
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
239
239
|
end
|
240
240
|
|
241
241
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
242
242
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
243
243
|
end
|
244
244
|
|
245
|
-
if !@
|
246
|
-
invalid_properties.push('invalid value for "
|
247
|
-
end
|
248
|
-
|
249
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
250
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
245
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
246
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
251
247
|
end
|
252
248
|
|
253
249
|
if @name.nil?
|
254
250
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
255
251
|
end
|
256
252
|
|
257
|
-
if
|
258
|
-
invalid_properties.push('invalid value for "
|
253
|
+
if @url.nil?
|
254
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
255
|
+
end
|
256
|
+
|
257
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
258
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
259
259
|
end
|
260
260
|
|
261
261
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -268,36 +268,16 @@ module PulpAnsibleClient
|
|
268
268
|
# Check to see if the all the properties in the model are valid
|
269
269
|
# @return true if the model is valid
|
270
270
|
def valid?
|
271
|
-
return false if @url.nil?
|
272
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
273
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
274
271
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
275
|
-
return false if
|
272
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
276
273
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
274
|
+
return false if @name.nil?
|
275
|
+
return false if @url.nil?
|
276
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
277
277
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
278
278
|
true
|
279
279
|
end
|
280
280
|
|
281
|
-
# Custom attribute writer method with validation
|
282
|
-
# @param [Object] total_timeout Value to be assigned
|
283
|
-
def total_timeout=(total_timeout)
|
284
|
-
if !total_timeout.nil? && total_timeout < 0.0
|
285
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
286
|
-
end
|
287
|
-
|
288
|
-
@total_timeout = total_timeout
|
289
|
-
end
|
290
|
-
|
291
|
-
# Custom attribute writer method with validation
|
292
|
-
# @param [Object] connect_timeout Value to be assigned
|
293
|
-
def connect_timeout=(connect_timeout)
|
294
|
-
if !connect_timeout.nil? && connect_timeout < 0.0
|
295
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
296
|
-
end
|
297
|
-
|
298
|
-
@connect_timeout = connect_timeout
|
299
|
-
end
|
300
|
-
|
301
281
|
# Custom attribute writer method with validation
|
302
282
|
# @param [Object] sock_read_timeout Value to be assigned
|
303
283
|
def sock_read_timeout=(sock_read_timeout)
|
@@ -308,6 +288,16 @@ module PulpAnsibleClient
|
|
308
288
|
@sock_read_timeout = sock_read_timeout
|
309
289
|
end
|
310
290
|
|
291
|
+
# Custom attribute writer method with validation
|
292
|
+
# @param [Object] total_timeout Value to be assigned
|
293
|
+
def total_timeout=(total_timeout)
|
294
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
295
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
296
|
+
end
|
297
|
+
|
298
|
+
@total_timeout = total_timeout
|
299
|
+
end
|
300
|
+
|
311
301
|
# Custom attribute writer method with validation
|
312
302
|
# @param [Object] download_concurrency Value to be assigned
|
313
303
|
def download_concurrency=(download_concurrency)
|
@@ -318,6 +308,16 @@ module PulpAnsibleClient
|
|
318
308
|
@download_concurrency = download_concurrency
|
319
309
|
end
|
320
310
|
|
311
|
+
# Custom attribute writer method with validation
|
312
|
+
# @param [Object] connect_timeout Value to be assigned
|
313
|
+
def connect_timeout=(connect_timeout)
|
314
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
315
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
316
|
+
end
|
317
|
+
|
318
|
+
@connect_timeout = connect_timeout
|
319
|
+
end
|
320
|
+
|
321
321
|
# Custom attribute writer method with validation
|
322
322
|
# @param [Object] sock_connect_timeout Value to be assigned
|
323
323
|
def sock_connect_timeout=(sock_connect_timeout)
|
@@ -333,24 +333,24 @@ module PulpAnsibleClient
|
|
333
333
|
def ==(o)
|
334
334
|
return true if self.equal?(o)
|
335
335
|
self.class == o.class &&
|
336
|
-
rate_limit == o.rate_limit &&
|
337
|
-
url == o.url &&
|
338
|
-
total_timeout == o.total_timeout &&
|
339
|
-
connect_timeout == o.connect_timeout &&
|
340
|
-
pulp_created == o.pulp_created &&
|
341
|
-
sock_read_timeout == o.sock_read_timeout &&
|
342
|
-
max_retries == o.max_retries &&
|
343
|
-
tls_validation == o.tls_validation &&
|
344
|
-
name == o.name &&
|
345
|
-
download_concurrency == o.download_concurrency &&
|
346
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
347
|
-
headers == o.headers &&
|
348
336
|
pulp_last_updated == o.pulp_last_updated &&
|
349
337
|
pulp_labels == o.pulp_labels &&
|
350
|
-
client_cert == o.client_cert &&
|
351
338
|
pulp_href == o.pulp_href &&
|
352
339
|
proxy_url == o.proxy_url &&
|
353
340
|
ca_cert == o.ca_cert &&
|
341
|
+
max_retries == o.max_retries &&
|
342
|
+
sock_read_timeout == o.sock_read_timeout &&
|
343
|
+
total_timeout == o.total_timeout &&
|
344
|
+
download_concurrency == o.download_concurrency &&
|
345
|
+
name == o.name &&
|
346
|
+
client_cert == o.client_cert &&
|
347
|
+
rate_limit == o.rate_limit &&
|
348
|
+
url == o.url &&
|
349
|
+
headers == o.headers &&
|
350
|
+
tls_validation == o.tls_validation &&
|
351
|
+
connect_timeout == o.connect_timeout &&
|
352
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
353
|
+
pulp_created == o.pulp_created &&
|
354
354
|
metadata_only == o.metadata_only
|
355
355
|
end
|
356
356
|
|
@@ -363,7 +363,7 @@ module PulpAnsibleClient
|
|
363
363
|
# Calculates hash code according to all attributes.
|
364
364
|
# @return [Integer] Hash code
|
365
365
|
def hash
|
366
|
-
[
|
366
|
+
[pulp_last_updated, pulp_labels, pulp_href, proxy_url, ca_cert, max_retries, sock_read_timeout, total_timeout, download_concurrency, name, client_cert, rate_limit, url, headers, tls_validation, connect_timeout, sock_connect_timeout, pulp_created, metadata_only].hash
|
367
367
|
end
|
368
368
|
|
369
369
|
# Builds the object from hash
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRoleResponse
|
18
|
-
# Timestamp of creation.
|
19
|
-
attr_accessor :pulp_created
|
20
|
-
|
21
18
|
attr_accessor :pulp_href
|
22
19
|
|
23
20
|
# Artifact file representing the physical content
|
24
21
|
attr_accessor :artifact
|
25
22
|
|
23
|
+
# Timestamp of creation.
|
24
|
+
attr_accessor :pulp_created
|
25
|
+
|
26
26
|
attr_accessor :version
|
27
27
|
|
28
28
|
attr_accessor :name
|
@@ -32,9 +32,9 @@ 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',
|
37
36
|
:'artifact' => :'artifact',
|
37
|
+
:'pulp_created' => :'pulp_created',
|
38
38
|
:'version' => :'version',
|
39
39
|
:'name' => :'name',
|
40
40
|
:'namespace' => :'namespace'
|
@@ -44,9 +44,9 @@ module PulpAnsibleClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'pulp_created' => :'DateTime',
|
48
47
|
:'pulp_href' => :'String',
|
49
48
|
:'artifact' => :'String',
|
49
|
+
:'pulp_created' => :'DateTime',
|
50
50
|
:'version' => :'String',
|
51
51
|
:'name' => :'String',
|
52
52
|
:'namespace' => :'String'
|
@@ -74,10 +74,6 @@ 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
|
@@ -86,6 +82,10 @@ module PulpAnsibleClient
|
|
86
82
|
self.artifact = attributes[:'artifact']
|
87
83
|
end
|
88
84
|
|
85
|
+
if attributes.key?(:'pulp_created')
|
86
|
+
self.pulp_created = attributes[:'pulp_created']
|
87
|
+
end
|
88
|
+
|
89
89
|
if attributes.key?(:'version')
|
90
90
|
self.version = attributes[:'version']
|
91
91
|
end
|
@@ -137,9 +137,9 @@ 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 &&
|
142
141
|
artifact == o.artifact &&
|
142
|
+
pulp_created == o.pulp_created &&
|
143
143
|
version == o.version &&
|
144
144
|
name == o.name &&
|
145
145
|
namespace == o.namespace
|
@@ -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, artifact, pulp_created, version, name, namespace].hash
|
158
158
|
end
|
159
159
|
|
160
160
|
# Builds the object from hash
|