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