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