pulp_ansible_client 0.20.10 → 0.20.12
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/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleGitRemote.md +27 -27
- data/docs/AnsibleGitRemoteResponse.md +25 -25
- data/docs/AnsibleRole.md +3 -3
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ContentCollectionVersionsApi.md +4 -4
- data/docs/PatchedansibleGitRemote.md +27 -27
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +15 -15
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +236 -236
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +224 -224
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- 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 +3 -3
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +132 -132
@@ -15,61 +15,61 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
|
19
|
-
attr_accessor :download_concurrency
|
20
|
-
|
21
|
-
# The proxy URL. Format: scheme://host:port
|
22
|
-
attr_accessor :proxy_url
|
23
|
-
|
24
|
-
attr_accessor :pulp_href
|
25
|
-
|
26
|
-
# 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.
|
27
|
-
attr_accessor :sock_connect_timeout
|
18
|
+
attr_accessor :pulp_labels
|
28
19
|
|
29
|
-
# A PEM encoded
|
30
|
-
attr_accessor :
|
20
|
+
# A PEM encoded client certificate used for authentication.
|
21
|
+
attr_accessor :client_cert
|
31
22
|
|
32
|
-
|
23
|
+
# Timestamp of the most recent update of the remote.
|
24
|
+
attr_accessor :pulp_last_updated
|
33
25
|
|
34
26
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
35
27
|
attr_accessor :total_timeout
|
36
28
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
29
|
+
# 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.
|
30
|
+
attr_accessor :sock_read_timeout
|
39
31
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
32
|
+
# 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.
|
33
|
+
attr_accessor :sock_connect_timeout
|
42
34
|
|
43
35
|
# Limits requests per second for each concurrent downloader
|
44
36
|
attr_accessor :rate_limit
|
45
37
|
|
46
|
-
|
47
|
-
attr_accessor :sock_read_timeout
|
38
|
+
attr_accessor :pulp_href
|
48
39
|
|
49
|
-
# A
|
50
|
-
attr_accessor :
|
40
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
41
|
+
attr_accessor :ca_cert
|
42
|
+
|
43
|
+
# The proxy URL. Format: scheme://host:port
|
44
|
+
attr_accessor :proxy_url
|
45
|
+
|
46
|
+
# The URL of an external content source.
|
47
|
+
attr_accessor :url
|
51
48
|
|
52
49
|
# Headers for aiohttp.Clientsession
|
53
50
|
attr_accessor :headers
|
54
51
|
|
55
|
-
#
|
56
|
-
attr_accessor :
|
52
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
53
|
+
attr_accessor :max_retries
|
57
54
|
|
58
|
-
#
|
59
|
-
attr_accessor :
|
55
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
56
|
+
attr_accessor :download_concurrency
|
60
57
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
58
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
59
|
+
attr_accessor :connect_timeout
|
63
60
|
|
64
61
|
# List of hidden (write only) fields
|
65
62
|
attr_accessor :hidden_fields
|
66
63
|
|
67
|
-
#
|
68
|
-
attr_accessor :
|
64
|
+
# If True, TLS peer validation must be performed.
|
65
|
+
attr_accessor :tls_validation
|
69
66
|
|
70
67
|
# Timestamp of creation.
|
71
68
|
attr_accessor :pulp_created
|
72
69
|
|
70
|
+
# A unique name for this remote.
|
71
|
+
attr_accessor :name
|
72
|
+
|
73
73
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
74
74
|
attr_accessor :metadata_only
|
75
75
|
|
@@ -79,25 +79,25 @@ module PulpAnsibleClient
|
|
79
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
80
|
def self.attribute_map
|
81
81
|
{
|
82
|
-
:'download_concurrency' => :'download_concurrency',
|
83
|
-
:'proxy_url' => :'proxy_url',
|
84
|
-
:'pulp_href' => :'pulp_href',
|
85
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
86
|
-
:'ca_cert' => :'ca_cert',
|
87
82
|
:'pulp_labels' => :'pulp_labels',
|
88
|
-
:'
|
83
|
+
:'client_cert' => :'client_cert',
|
89
84
|
:'pulp_last_updated' => :'pulp_last_updated',
|
90
|
-
:'
|
91
|
-
:'rate_limit' => :'rate_limit',
|
85
|
+
:'total_timeout' => :'total_timeout',
|
92
86
|
:'sock_read_timeout' => :'sock_read_timeout',
|
93
|
-
:'
|
87
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
88
|
+
:'rate_limit' => :'rate_limit',
|
89
|
+
:'pulp_href' => :'pulp_href',
|
90
|
+
:'ca_cert' => :'ca_cert',
|
91
|
+
:'proxy_url' => :'proxy_url',
|
92
|
+
:'url' => :'url',
|
94
93
|
:'headers' => :'headers',
|
94
|
+
:'max_retries' => :'max_retries',
|
95
|
+
:'download_concurrency' => :'download_concurrency',
|
95
96
|
:'connect_timeout' => :'connect_timeout',
|
96
|
-
:'url' => :'url',
|
97
|
-
:'tls_validation' => :'tls_validation',
|
98
97
|
:'hidden_fields' => :'hidden_fields',
|
99
|
-
:'
|
98
|
+
:'tls_validation' => :'tls_validation',
|
100
99
|
:'pulp_created' => :'pulp_created',
|
100
|
+
:'name' => :'name',
|
101
101
|
:'metadata_only' => :'metadata_only',
|
102
102
|
:'git_ref' => :'git_ref'
|
103
103
|
}
|
@@ -106,25 +106,25 @@ module PulpAnsibleClient
|
|
106
106
|
# Attribute type mapping.
|
107
107
|
def self.openapi_types
|
108
108
|
{
|
109
|
-
:'download_concurrency' => :'Integer',
|
110
|
-
:'proxy_url' => :'String',
|
111
|
-
:'pulp_href' => :'String',
|
112
|
-
:'sock_connect_timeout' => :'Float',
|
113
|
-
:'ca_cert' => :'String',
|
114
109
|
:'pulp_labels' => :'Hash<String, String>',
|
115
|
-
:'
|
110
|
+
:'client_cert' => :'String',
|
116
111
|
:'pulp_last_updated' => :'DateTime',
|
117
|
-
:'
|
118
|
-
:'rate_limit' => :'Integer',
|
112
|
+
:'total_timeout' => :'Float',
|
119
113
|
:'sock_read_timeout' => :'Float',
|
120
|
-
:'
|
114
|
+
:'sock_connect_timeout' => :'Float',
|
115
|
+
:'rate_limit' => :'Integer',
|
116
|
+
:'pulp_href' => :'String',
|
117
|
+
:'ca_cert' => :'String',
|
118
|
+
:'proxy_url' => :'String',
|
119
|
+
:'url' => :'String',
|
121
120
|
:'headers' => :'Array<Object>',
|
121
|
+
:'max_retries' => :'Integer',
|
122
|
+
:'download_concurrency' => :'Integer',
|
122
123
|
:'connect_timeout' => :'Float',
|
123
|
-
:'url' => :'String',
|
124
|
-
:'tls_validation' => :'Boolean',
|
125
124
|
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
126
|
-
:'
|
125
|
+
:'tls_validation' => :'Boolean',
|
127
126
|
:'pulp_created' => :'DateTime',
|
127
|
+
:'name' => :'String',
|
128
128
|
:'metadata_only' => :'Boolean',
|
129
129
|
:'git_ref' => :'String'
|
130
130
|
}
|
@@ -133,16 +133,16 @@ module PulpAnsibleClient
|
|
133
133
|
# List of attributes with nullable: true
|
134
134
|
def self.openapi_nullable
|
135
135
|
Set.new([
|
136
|
-
:'
|
137
|
-
:'
|
136
|
+
:'client_cert',
|
137
|
+
:'total_timeout',
|
138
|
+
:'sock_read_timeout',
|
138
139
|
:'sock_connect_timeout',
|
140
|
+
:'rate_limit',
|
139
141
|
:'ca_cert',
|
140
|
-
:'
|
142
|
+
:'proxy_url',
|
141
143
|
:'max_retries',
|
142
|
-
:'
|
143
|
-
:'sock_read_timeout',
|
144
|
+
:'download_concurrency',
|
144
145
|
:'connect_timeout',
|
145
|
-
:'client_cert',
|
146
146
|
])
|
147
147
|
end
|
148
148
|
|
@@ -161,54 +161,50 @@ module PulpAnsibleClient
|
|
161
161
|
h[k.to_sym] = v
|
162
162
|
}
|
163
163
|
|
164
|
-
if attributes.key?(:'download_concurrency')
|
165
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
166
|
-
end
|
167
|
-
|
168
|
-
if attributes.key?(:'proxy_url')
|
169
|
-
self.proxy_url = attributes[:'proxy_url']
|
170
|
-
end
|
171
|
-
|
172
|
-
if attributes.key?(:'pulp_href')
|
173
|
-
self.pulp_href = attributes[:'pulp_href']
|
174
|
-
end
|
175
|
-
|
176
|
-
if attributes.key?(:'sock_connect_timeout')
|
177
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
178
|
-
end
|
179
|
-
|
180
|
-
if attributes.key?(:'ca_cert')
|
181
|
-
self.ca_cert = attributes[:'ca_cert']
|
182
|
-
end
|
183
|
-
|
184
164
|
if attributes.key?(:'pulp_labels')
|
185
165
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
186
166
|
self.pulp_labels = value
|
187
167
|
end
|
188
168
|
end
|
189
169
|
|
190
|
-
if attributes.key?(:'
|
191
|
-
self.
|
170
|
+
if attributes.key?(:'client_cert')
|
171
|
+
self.client_cert = attributes[:'client_cert']
|
192
172
|
end
|
193
173
|
|
194
174
|
if attributes.key?(:'pulp_last_updated')
|
195
175
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
196
176
|
end
|
197
177
|
|
198
|
-
if attributes.key?(:'
|
199
|
-
self.
|
178
|
+
if attributes.key?(:'total_timeout')
|
179
|
+
self.total_timeout = attributes[:'total_timeout']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'sock_read_timeout')
|
183
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.key?(:'sock_connect_timeout')
|
187
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
200
188
|
end
|
201
189
|
|
202
190
|
if attributes.key?(:'rate_limit')
|
203
191
|
self.rate_limit = attributes[:'rate_limit']
|
204
192
|
end
|
205
193
|
|
206
|
-
if attributes.key?(:'
|
207
|
-
self.
|
194
|
+
if attributes.key?(:'pulp_href')
|
195
|
+
self.pulp_href = attributes[:'pulp_href']
|
208
196
|
end
|
209
197
|
|
210
|
-
if attributes.key?(:'
|
211
|
-
self.
|
198
|
+
if attributes.key?(:'ca_cert')
|
199
|
+
self.ca_cert = attributes[:'ca_cert']
|
200
|
+
end
|
201
|
+
|
202
|
+
if attributes.key?(:'proxy_url')
|
203
|
+
self.proxy_url = attributes[:'proxy_url']
|
204
|
+
end
|
205
|
+
|
206
|
+
if attributes.key?(:'url')
|
207
|
+
self.url = attributes[:'url']
|
212
208
|
end
|
213
209
|
|
214
210
|
if attributes.key?(:'headers')
|
@@ -217,16 +213,16 @@ module PulpAnsibleClient
|
|
217
213
|
end
|
218
214
|
end
|
219
215
|
|
220
|
-
if attributes.key?(:'
|
221
|
-
self.
|
216
|
+
if attributes.key?(:'max_retries')
|
217
|
+
self.max_retries = attributes[:'max_retries']
|
222
218
|
end
|
223
219
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
self.
|
220
|
+
if attributes.key?(:'download_concurrency')
|
221
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
226
222
|
end
|
227
223
|
|
228
|
-
if attributes.key?(:'
|
229
|
-
self.
|
224
|
+
if attributes.key?(:'connect_timeout')
|
225
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
230
226
|
end
|
231
227
|
|
232
228
|
if attributes.key?(:'hidden_fields')
|
@@ -235,14 +231,18 @@ module PulpAnsibleClient
|
|
235
231
|
end
|
236
232
|
end
|
237
233
|
|
238
|
-
if attributes.key?(:'
|
239
|
-
self.
|
234
|
+
if attributes.key?(:'tls_validation')
|
235
|
+
self.tls_validation = attributes[:'tls_validation']
|
240
236
|
end
|
241
237
|
|
242
238
|
if attributes.key?(:'pulp_created')
|
243
239
|
self.pulp_created = attributes[:'pulp_created']
|
244
240
|
end
|
245
241
|
|
242
|
+
if attributes.key?(:'name')
|
243
|
+
self.name = attributes[:'name']
|
244
|
+
end
|
245
|
+
|
246
246
|
if attributes.key?(:'metadata_only')
|
247
247
|
self.metadata_only = attributes[:'metadata_only']
|
248
248
|
end
|
@@ -256,14 +256,6 @@ module PulpAnsibleClient
|
|
256
256
|
# @return Array for valid properties with the reasons
|
257
257
|
def list_invalid_properties
|
258
258
|
invalid_properties = Array.new
|
259
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
260
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
261
|
-
end
|
262
|
-
|
263
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
264
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
265
|
-
end
|
266
|
-
|
267
259
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
268
260
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
269
261
|
end
|
@@ -272,16 +264,24 @@ module PulpAnsibleClient
|
|
272
264
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
273
265
|
end
|
274
266
|
|
275
|
-
if
|
276
|
-
invalid_properties.push('invalid value for "
|
267
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
268
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
269
|
+
end
|
270
|
+
|
271
|
+
if @url.nil?
|
272
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
273
|
+
end
|
274
|
+
|
275
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
276
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
277
277
|
end
|
278
278
|
|
279
279
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
280
280
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
281
281
|
end
|
282
282
|
|
283
|
-
if @
|
284
|
-
invalid_properties.push('invalid value for "
|
283
|
+
if @name.nil?
|
284
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
285
285
|
end
|
286
286
|
|
287
287
|
invalid_properties
|
@@ -290,36 +290,16 @@ module PulpAnsibleClient
|
|
290
290
|
# Check to see if the all the properties in the model are valid
|
291
291
|
# @return true if the model is valid
|
292
292
|
def valid?
|
293
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
294
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
295
293
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
296
294
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
297
|
-
return false if
|
298
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
295
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
299
296
|
return false if @url.nil?
|
297
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
298
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
299
|
+
return false if @name.nil?
|
300
300
|
true
|
301
301
|
end
|
302
302
|
|
303
|
-
# Custom attribute writer method with validation
|
304
|
-
# @param [Object] download_concurrency Value to be assigned
|
305
|
-
def download_concurrency=(download_concurrency)
|
306
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
307
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
308
|
-
end
|
309
|
-
|
310
|
-
@download_concurrency = download_concurrency
|
311
|
-
end
|
312
|
-
|
313
|
-
# Custom attribute writer method with validation
|
314
|
-
# @param [Object] sock_connect_timeout Value to be assigned
|
315
|
-
def sock_connect_timeout=(sock_connect_timeout)
|
316
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
317
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
318
|
-
end
|
319
|
-
|
320
|
-
@sock_connect_timeout = sock_connect_timeout
|
321
|
-
end
|
322
|
-
|
323
303
|
# Custom attribute writer method with validation
|
324
304
|
# @param [Object] total_timeout Value to be assigned
|
325
305
|
def total_timeout=(total_timeout)
|
@@ -340,6 +320,26 @@ module PulpAnsibleClient
|
|
340
320
|
@sock_read_timeout = sock_read_timeout
|
341
321
|
end
|
342
322
|
|
323
|
+
# Custom attribute writer method with validation
|
324
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
325
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
326
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
327
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
328
|
+
end
|
329
|
+
|
330
|
+
@sock_connect_timeout = sock_connect_timeout
|
331
|
+
end
|
332
|
+
|
333
|
+
# Custom attribute writer method with validation
|
334
|
+
# @param [Object] download_concurrency Value to be assigned
|
335
|
+
def download_concurrency=(download_concurrency)
|
336
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
337
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
338
|
+
end
|
339
|
+
|
340
|
+
@download_concurrency = download_concurrency
|
341
|
+
end
|
342
|
+
|
343
343
|
# Custom attribute writer method with validation
|
344
344
|
# @param [Object] connect_timeout Value to be assigned
|
345
345
|
def connect_timeout=(connect_timeout)
|
@@ -355,25 +355,25 @@ module PulpAnsibleClient
|
|
355
355
|
def ==(o)
|
356
356
|
return true if self.equal?(o)
|
357
357
|
self.class == o.class &&
|
358
|
-
download_concurrency == o.download_concurrency &&
|
359
|
-
proxy_url == o.proxy_url &&
|
360
|
-
pulp_href == o.pulp_href &&
|
361
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
362
|
-
ca_cert == o.ca_cert &&
|
363
358
|
pulp_labels == o.pulp_labels &&
|
364
|
-
|
359
|
+
client_cert == o.client_cert &&
|
365
360
|
pulp_last_updated == o.pulp_last_updated &&
|
366
|
-
|
367
|
-
rate_limit == o.rate_limit &&
|
361
|
+
total_timeout == o.total_timeout &&
|
368
362
|
sock_read_timeout == o.sock_read_timeout &&
|
369
|
-
|
363
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
364
|
+
rate_limit == o.rate_limit &&
|
365
|
+
pulp_href == o.pulp_href &&
|
366
|
+
ca_cert == o.ca_cert &&
|
367
|
+
proxy_url == o.proxy_url &&
|
368
|
+
url == o.url &&
|
370
369
|
headers == o.headers &&
|
370
|
+
max_retries == o.max_retries &&
|
371
|
+
download_concurrency == o.download_concurrency &&
|
371
372
|
connect_timeout == o.connect_timeout &&
|
372
|
-
url == o.url &&
|
373
|
-
tls_validation == o.tls_validation &&
|
374
373
|
hidden_fields == o.hidden_fields &&
|
375
|
-
|
374
|
+
tls_validation == o.tls_validation &&
|
376
375
|
pulp_created == o.pulp_created &&
|
376
|
+
name == o.name &&
|
377
377
|
metadata_only == o.metadata_only &&
|
378
378
|
git_ref == o.git_ref
|
379
379
|
end
|
@@ -387,7 +387,7 @@ module PulpAnsibleClient
|
|
387
387
|
# Calculates hash code according to all attributes.
|
388
388
|
# @return [Integer] Hash code
|
389
389
|
def hash
|
390
|
-
[
|
390
|
+
[pulp_labels, client_cert, pulp_last_updated, total_timeout, sock_read_timeout, sock_connect_timeout, rate_limit, pulp_href, ca_cert, proxy_url, url, headers, max_retries, download_concurrency, connect_timeout, hidden_fields, tls_validation, pulp_created, name, metadata_only, git_ref].hash
|
391
391
|
end
|
392
392
|
|
393
393
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRole
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
18
|
# Artifact file representing the physical content
|
22
19
|
attr_accessor :artifact
|
23
20
|
|
21
|
+
# A URI of a repository the new content unit should be associated with.
|
22
|
+
attr_accessor :repository
|
23
|
+
|
24
24
|
attr_accessor :version
|
25
25
|
|
26
26
|
attr_accessor :name
|
@@ -30,8 +30,8 @@ module PulpAnsibleClient
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
-
:'repository' => :'repository',
|
34
33
|
:'artifact' => :'artifact',
|
34
|
+
:'repository' => :'repository',
|
35
35
|
:'version' => :'version',
|
36
36
|
:'name' => :'name',
|
37
37
|
:'namespace' => :'namespace'
|
@@ -41,8 +41,8 @@ module PulpAnsibleClient
|
|
41
41
|
# Attribute type mapping.
|
42
42
|
def self.openapi_types
|
43
43
|
{
|
44
|
-
:'repository' => :'String',
|
45
44
|
:'artifact' => :'String',
|
45
|
+
:'repository' => :'String',
|
46
46
|
:'version' => :'String',
|
47
47
|
:'name' => :'String',
|
48
48
|
:'namespace' => :'String'
|
@@ -70,14 +70,14 @@ module PulpAnsibleClient
|
|
70
70
|
h[k.to_sym] = v
|
71
71
|
}
|
72
72
|
|
73
|
-
if attributes.key?(:'repository')
|
74
|
-
self.repository = attributes[:'repository']
|
75
|
-
end
|
76
|
-
|
77
73
|
if attributes.key?(:'artifact')
|
78
74
|
self.artifact = attributes[:'artifact']
|
79
75
|
end
|
80
76
|
|
77
|
+
if attributes.key?(:'repository')
|
78
|
+
self.repository = attributes[:'repository']
|
79
|
+
end
|
80
|
+
|
81
81
|
if attributes.key?(:'version')
|
82
82
|
self.version = attributes[:'version']
|
83
83
|
end
|
@@ -186,8 +186,8 @@ module PulpAnsibleClient
|
|
186
186
|
def ==(o)
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
|
-
repository == o.repository &&
|
190
189
|
artifact == o.artifact &&
|
190
|
+
repository == o.repository &&
|
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
|
+
[artifact, repository, version, name, namespace].hash
|
206
206
|
end
|
207
207
|
|
208
208
|
# Builds the object from hash
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRoleResponse
|
18
|
+
# Artifact file representing the physical content
|
19
|
+
attr_accessor :artifact
|
20
|
+
|
18
21
|
attr_accessor :pulp_href
|
19
22
|
|
20
23
|
# Timestamp of creation.
|
21
24
|
attr_accessor :pulp_created
|
22
25
|
|
23
|
-
# Artifact file representing the physical content
|
24
|
-
attr_accessor :artifact
|
25
|
-
|
26
26
|
attr_accessor :version
|
27
27
|
|
28
28
|
attr_accessor :name
|
@@ -32,9 +32,9 @@ module PulpAnsibleClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'artifact' => :'artifact',
|
35
36
|
:'pulp_href' => :'pulp_href',
|
36
37
|
:'pulp_created' => :'pulp_created',
|
37
|
-
:'artifact' => :'artifact',
|
38
38
|
:'version' => :'version',
|
39
39
|
:'name' => :'name',
|
40
40
|
:'namespace' => :'namespace'
|
@@ -44,9 +44,9 @@ module PulpAnsibleClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
+
:'artifact' => :'String',
|
47
48
|
:'pulp_href' => :'String',
|
48
49
|
:'pulp_created' => :'DateTime',
|
49
|
-
:'artifact' => :'String',
|
50
50
|
:'version' => :'String',
|
51
51
|
:'name' => :'String',
|
52
52
|
:'namespace' => :'String'
|
@@ -74,6 +74,10 @@ module PulpAnsibleClient
|
|
74
74
|
h[k.to_sym] = v
|
75
75
|
}
|
76
76
|
|
77
|
+
if attributes.key?(:'artifact')
|
78
|
+
self.artifact = attributes[:'artifact']
|
79
|
+
end
|
80
|
+
|
77
81
|
if attributes.key?(:'pulp_href')
|
78
82
|
self.pulp_href = attributes[:'pulp_href']
|
79
83
|
end
|
@@ -82,10 +86,6 @@ module PulpAnsibleClient
|
|
82
86
|
self.pulp_created = attributes[:'pulp_created']
|
83
87
|
end
|
84
88
|
|
85
|
-
if attributes.key?(:'artifact')
|
86
|
-
self.artifact = attributes[:'artifact']
|
87
|
-
end
|
88
|
-
|
89
89
|
if attributes.key?(:'version')
|
90
90
|
self.version = attributes[:'version']
|
91
91
|
end
|
@@ -137,9 +137,9 @@ module PulpAnsibleClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
+
artifact == o.artifact &&
|
140
141
|
pulp_href == o.pulp_href &&
|
141
142
|
pulp_created == o.pulp_created &&
|
142
|
-
artifact == o.artifact &&
|
143
143
|
version == o.version &&
|
144
144
|
name == o.name &&
|
145
145
|
namespace == o.namespace
|
@@ -154,7 +154,7 @@ module PulpAnsibleClient
|
|
154
154
|
# Calculates hash code according to all attributes.
|
155
155
|
# @return [Integer] Hash code
|
156
156
|
def hash
|
157
|
-
[pulp_href, pulp_created,
|
157
|
+
[artifact, pulp_href, pulp_created, version, name, namespace].hash
|
158
158
|
end
|
159
159
|
|
160
160
|
# Builds the object from hash
|