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