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