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