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