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