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