pulp_ansible_client 0.21.9 → 0.21.10

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