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