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