pulp_ansible_client 0.25.0 → 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 +2 -2
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleResponse.md +2 -2
- data/docs/ContentCollectionVersionsApi.md +6 -6
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +244 -244
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +156 -156
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +13 -13
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +233 -233
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +3 -3
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- metadata +2 -2
@@ -16,64 +16,64 @@ require 'time'
|
|
16
16
|
module PulpAnsibleClient
|
17
17
|
# A serializer for Git Collection Remotes.
|
18
18
|
class AnsibleGitRemoteResponse
|
19
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
20
|
+
attr_accessor :max_retries
|
21
21
|
|
22
|
-
|
22
|
+
# The Pulp Resource Name (PRN).
|
23
|
+
attr_accessor :prn
|
23
24
|
|
24
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.
|
25
26
|
attr_accessor :connect_timeout
|
26
27
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
29
|
-
|
30
|
-
# A unique name for this remote.
|
31
|
-
attr_accessor :name
|
28
|
+
# List of hidden (write only) fields
|
29
|
+
attr_accessor :hidden_fields
|
32
30
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
31
|
+
# Limits requests per second for each concurrent downloader
|
32
|
+
attr_accessor :rate_limit
|
35
33
|
|
36
34
|
# If True, TLS peer validation must be performed.
|
37
35
|
attr_accessor :tls_validation
|
38
36
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
37
|
+
# Timestamp of creation.
|
38
|
+
attr_accessor :pulp_created
|
41
39
|
|
42
40
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
43
41
|
attr_accessor :download_concurrency
|
44
42
|
|
45
|
-
#
|
46
|
-
attr_accessor :
|
47
|
-
|
48
|
-
# Timestamp of creation.
|
49
|
-
attr_accessor :pulp_created
|
43
|
+
# Headers for aiohttp.Clientsession
|
44
|
+
attr_accessor :headers
|
50
45
|
|
51
46
|
# The URL of an external content source.
|
52
47
|
attr_accessor :url
|
53
48
|
|
54
|
-
# The
|
55
|
-
attr_accessor :
|
56
|
-
|
57
|
-
# List of hidden (write only) fields
|
58
|
-
attr_accessor :hidden_fields
|
59
|
-
|
60
|
-
# 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.
|
61
|
-
attr_accessor :sock_connect_timeout
|
49
|
+
# The proxy URL. Format: scheme://host:port
|
50
|
+
attr_accessor :proxy_url
|
62
51
|
|
63
|
-
attr_accessor :
|
52
|
+
attr_accessor :pulp_labels
|
64
53
|
|
65
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.
|
66
55
|
attr_accessor :total_timeout
|
67
56
|
|
68
|
-
#
|
69
|
-
attr_accessor :
|
70
|
-
|
71
|
-
# Limits requests per second for each concurrent downloader
|
72
|
-
attr_accessor :rate_limit
|
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
|
73
59
|
|
74
60
|
# A PEM encoded client certificate used for authentication.
|
75
61
|
attr_accessor :client_cert
|
76
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
|
70
|
+
|
71
|
+
# A unique name for this remote.
|
72
|
+
attr_accessor :name
|
73
|
+
|
74
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
75
|
+
attr_accessor :ca_cert
|
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
|
79
79
|
|
@@ -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
|
-
:'
|
86
|
+
:'max_retries' => :'max_retries',
|
87
|
+
:'prn' => :'prn',
|
88
88
|
:'connect_timeout' => :'connect_timeout',
|
89
|
-
:'
|
90
|
-
:'
|
91
|
-
:'proxy_url' => :'proxy_url',
|
89
|
+
:'hidden_fields' => :'hidden_fields',
|
90
|
+
:'rate_limit' => :'rate_limit',
|
92
91
|
:'tls_validation' => :'tls_validation',
|
93
|
-
:'ca_cert' => :'ca_cert',
|
94
|
-
:'download_concurrency' => :'download_concurrency',
|
95
|
-
:'max_retries' => :'max_retries',
|
96
92
|
:'pulp_created' => :'pulp_created',
|
93
|
+
:'download_concurrency' => :'download_concurrency',
|
94
|
+
:'headers' => :'headers',
|
97
95
|
:'url' => :'url',
|
98
|
-
:'
|
99
|
-
:'
|
100
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
101
|
-
:'pulp_href' => :'pulp_href',
|
96
|
+
:'proxy_url' => :'proxy_url',
|
97
|
+
:'pulp_labels' => :'pulp_labels',
|
102
98
|
:'total_timeout' => :'total_timeout',
|
103
|
-
:'
|
104
|
-
:'rate_limit' => :'rate_limit',
|
99
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
105
100
|
:'client_cert' => :'client_cert',
|
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
|
-
:'
|
120
|
-
:'
|
119
|
+
:'max_retries' => :'Integer',
|
120
|
+
:'prn' => :'String',
|
121
121
|
:'connect_timeout' => :'Float',
|
122
|
-
:'
|
123
|
-
:'
|
124
|
-
:'proxy_url' => :'String',
|
122
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
123
|
+
:'rate_limit' => :'Integer',
|
125
124
|
:'tls_validation' => :'Boolean',
|
126
|
-
:'ca_cert' => :'String',
|
127
|
-
:'download_concurrency' => :'Integer',
|
128
|
-
:'max_retries' => :'Integer',
|
129
125
|
:'pulp_created' => :'Time',
|
126
|
+
:'download_concurrency' => :'Integer',
|
127
|
+
:'headers' => :'Array<Object>',
|
130
128
|
:'url' => :'String',
|
131
|
-
:'
|
132
|
-
:'
|
133
|
-
:'sock_connect_timeout' => :'Float',
|
134
|
-
:'pulp_href' => :'String',
|
129
|
+
:'proxy_url' => :'String',
|
130
|
+
:'pulp_labels' => :'Hash<String, String>',
|
135
131
|
:'total_timeout' => :'Float',
|
136
|
-
:'
|
137
|
-
:'rate_limit' => :'Integer',
|
132
|
+
:'sock_read_timeout' => :'Float',
|
138
133
|
:'client_cert' => :'String',
|
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
|
-
:'
|
147
|
+
:'max_retries',
|
148
148
|
:'connect_timeout',
|
149
|
-
:'
|
150
|
-
:'ca_cert',
|
149
|
+
:'rate_limit',
|
151
150
|
:'download_concurrency',
|
152
|
-
:'
|
153
|
-
:'sock_connect_timeout',
|
151
|
+
:'proxy_url',
|
154
152
|
:'total_timeout',
|
155
|
-
:'
|
153
|
+
:'sock_read_timeout',
|
156
154
|
:'client_cert',
|
155
|
+
:'sock_connect_timeout',
|
156
|
+
:'ca_cert',
|
157
157
|
])
|
158
158
|
end
|
159
159
|
|
@@ -172,52 +172,44 @@ module PulpAnsibleClient
|
|
172
172
|
h[k.to_sym] = v
|
173
173
|
}
|
174
174
|
|
175
|
-
if attributes.key?(:'
|
176
|
-
self.
|
175
|
+
if attributes.key?(:'max_retries')
|
176
|
+
self.max_retries = attributes[:'max_retries']
|
177
177
|
end
|
178
178
|
|
179
|
-
if attributes.key?(:'
|
180
|
-
|
181
|
-
self.pulp_labels = value
|
182
|
-
end
|
179
|
+
if attributes.key?(:'prn')
|
180
|
+
self.prn = attributes[:'prn']
|
183
181
|
end
|
184
182
|
|
185
183
|
if attributes.key?(:'connect_timeout')
|
186
184
|
self.connect_timeout = attributes[:'connect_timeout']
|
187
185
|
end
|
188
186
|
|
189
|
-
if attributes.key?(:'
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
if attributes.key?(:'name')
|
194
|
-
self.name = attributes[:'name']
|
195
|
-
else
|
196
|
-
self.name = nil
|
187
|
+
if attributes.key?(:'hidden_fields')
|
188
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
189
|
+
self.hidden_fields = value
|
190
|
+
end
|
197
191
|
end
|
198
192
|
|
199
|
-
if attributes.key?(:'
|
200
|
-
self.
|
193
|
+
if attributes.key?(:'rate_limit')
|
194
|
+
self.rate_limit = attributes[:'rate_limit']
|
201
195
|
end
|
202
196
|
|
203
197
|
if attributes.key?(:'tls_validation')
|
204
198
|
self.tls_validation = attributes[:'tls_validation']
|
205
199
|
end
|
206
200
|
|
207
|
-
if attributes.key?(:'
|
208
|
-
self.
|
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
|
-
|
217
|
-
|
218
|
-
|
219
|
-
if attributes.key?(:'pulp_created')
|
220
|
-
self.pulp_created = attributes[:'pulp_created']
|
209
|
+
if attributes.key?(:'headers')
|
210
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
211
|
+
self.headers = value
|
212
|
+
end
|
221
213
|
end
|
222
214
|
|
223
215
|
if attributes.key?(:'url')
|
@@ -226,40 +218,48 @@ module PulpAnsibleClient
|
|
226
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
|
-
if attributes.key?(:'
|
234
|
-
if (value = attributes[:'
|
235
|
-
self.
|
225
|
+
if attributes.key?(:'pulp_labels')
|
226
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
227
|
+
self.pulp_labels = value
|
236
228
|
end
|
237
229
|
end
|
238
230
|
|
239
|
-
if attributes.key?(:'
|
240
|
-
self.
|
231
|
+
if attributes.key?(:'total_timeout')
|
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']
|
249
241
|
end
|
250
242
|
|
251
|
-
if attributes.key?(:'
|
252
|
-
|
253
|
-
self.headers = value
|
254
|
-
end
|
243
|
+
if attributes.key?(:'pulp_last_updated')
|
244
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
255
245
|
end
|
256
246
|
|
257
|
-
if attributes.key?(:'
|
258
|
-
self.
|
247
|
+
if attributes.key?(:'pulp_href')
|
248
|
+
self.pulp_href = attributes[:'pulp_href']
|
259
249
|
end
|
260
250
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
self.
|
251
|
+
if attributes.key?(:'sock_connect_timeout')
|
252
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
253
|
+
end
|
254
|
+
|
255
|
+
if attributes.key?(:'name')
|
256
|
+
self.name = attributes[:'name']
|
257
|
+
else
|
258
|
+
self.name = nil
|
259
|
+
end
|
260
|
+
|
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,18 +276,10 @@ 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 @name.nil?
|
288
|
-
invalid_properties.push('invalid value for "name", name 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
|
@@ -296,12 +288,20 @@ module PulpAnsibleClient
|
|
296
288
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
297
289
|
end
|
298
290
|
|
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
|
+
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
299
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
300
300
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
301
301
|
end
|
302
302
|
|
303
|
-
if
|
304
|
-
invalid_properties.push('invalid value for "
|
303
|
+
if @name.nil?
|
304
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
305
305
|
end
|
306
306
|
|
307
307
|
invalid_properties
|
@@ -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 @name.nil?
|
317
315
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
318
316
|
return false if @url.nil?
|
319
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
320
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
|
+
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
|
-
|
380
|
-
|
379
|
+
max_retries == o.max_retries &&
|
380
|
+
prn == o.prn &&
|
381
381
|
connect_timeout == o.connect_timeout &&
|
382
|
-
|
383
|
-
|
384
|
-
proxy_url == o.proxy_url &&
|
382
|
+
hidden_fields == o.hidden_fields &&
|
383
|
+
rate_limit == o.rate_limit &&
|
385
384
|
tls_validation == o.tls_validation &&
|
386
|
-
ca_cert == o.ca_cert &&
|
387
|
-
download_concurrency == o.download_concurrency &&
|
388
|
-
max_retries == o.max_retries &&
|
389
385
|
pulp_created == o.pulp_created &&
|
386
|
+
download_concurrency == o.download_concurrency &&
|
387
|
+
headers == o.headers &&
|
390
388
|
url == o.url &&
|
391
|
-
|
392
|
-
|
393
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
394
|
-
pulp_href == o.pulp_href &&
|
389
|
+
proxy_url == o.proxy_url &&
|
390
|
+
pulp_labels == o.pulp_labels &&
|
395
391
|
total_timeout == o.total_timeout &&
|
396
|
-
|
397
|
-
rate_limit == o.rate_limit &&
|
392
|
+
sock_read_timeout == o.sock_read_timeout &&
|
398
393
|
client_cert == o.client_cert &&
|
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
|
@@ -22,14 +22,14 @@ module PulpAnsibleClient
|
|
22
22
|
# The Pulp Resource Name (PRN).
|
23
23
|
attr_accessor :prn
|
24
24
|
|
25
|
+
# Artifact file representing the physical content
|
26
|
+
attr_accessor :artifact
|
27
|
+
|
25
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.
|
26
29
|
attr_accessor :pulp_last_updated
|
27
30
|
|
28
31
|
attr_accessor :pulp_href
|
29
32
|
|
30
|
-
# Artifact file representing the physical content
|
31
|
-
attr_accessor :artifact
|
32
|
-
|
33
33
|
# Timestamp of creation.
|
34
34
|
attr_accessor :pulp_created
|
35
35
|
|
@@ -44,9 +44,9 @@ module PulpAnsibleClient
|
|
44
44
|
{
|
45
45
|
:'pulp_labels' => :'pulp_labels',
|
46
46
|
:'prn' => :'prn',
|
47
|
+
:'artifact' => :'artifact',
|
47
48
|
:'pulp_last_updated' => :'pulp_last_updated',
|
48
49
|
:'pulp_href' => :'pulp_href',
|
49
|
-
:'artifact' => :'artifact',
|
50
50
|
:'pulp_created' => :'pulp_created',
|
51
51
|
:'version' => :'version',
|
52
52
|
:'name' => :'name',
|
@@ -64,9 +64,9 @@ module PulpAnsibleClient
|
|
64
64
|
{
|
65
65
|
:'pulp_labels' => :'Hash<String, String>',
|
66
66
|
:'prn' => :'String',
|
67
|
+
:'artifact' => :'String',
|
67
68
|
:'pulp_last_updated' => :'Time',
|
68
69
|
:'pulp_href' => :'String',
|
69
|
-
:'artifact' => :'String',
|
70
70
|
:'pulp_created' => :'Time',
|
71
71
|
:'version' => :'String',
|
72
72
|
:'name' => :'String',
|
@@ -105,6 +105,12 @@ module PulpAnsibleClient
|
|
105
105
|
self.prn = attributes[:'prn']
|
106
106
|
end
|
107
107
|
|
108
|
+
if attributes.key?(:'artifact')
|
109
|
+
self.artifact = attributes[:'artifact']
|
110
|
+
else
|
111
|
+
self.artifact = nil
|
112
|
+
end
|
113
|
+
|
108
114
|
if attributes.key?(:'pulp_last_updated')
|
109
115
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
110
116
|
end
|
@@ -113,12 +119,6 @@ module PulpAnsibleClient
|
|
113
119
|
self.pulp_href = attributes[:'pulp_href']
|
114
120
|
end
|
115
121
|
|
116
|
-
if attributes.key?(:'artifact')
|
117
|
-
self.artifact = attributes[:'artifact']
|
118
|
-
else
|
119
|
-
self.artifact = nil
|
120
|
-
end
|
121
|
-
|
122
122
|
if attributes.key?(:'pulp_created')
|
123
123
|
self.pulp_created = attributes[:'pulp_created']
|
124
124
|
end
|
@@ -184,9 +184,9 @@ module PulpAnsibleClient
|
|
184
184
|
self.class == o.class &&
|
185
185
|
pulp_labels == o.pulp_labels &&
|
186
186
|
prn == o.prn &&
|
187
|
+
artifact == o.artifact &&
|
187
188
|
pulp_last_updated == o.pulp_last_updated &&
|
188
189
|
pulp_href == o.pulp_href &&
|
189
|
-
artifact == o.artifact &&
|
190
190
|
pulp_created == o.pulp_created &&
|
191
191
|
version == o.version &&
|
192
192
|
name == o.name &&
|
@@ -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
|
-
[pulp_labels, prn, pulp_last_updated, pulp_href,
|
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
|