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