pulp_ansible_client 0.21.8 → 0.21.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +5 -5
  4. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  5. data/docs/AnsibleGitRemote.md +23 -23
  6. data/docs/AnsibleGitRemoteResponse.md +28 -28
  7. data/docs/AnsibleRole.md +3 -3
  8. data/docs/AnsibleRoleResponse.md +4 -4
  9. data/docs/ContentCollectionVersionsApi.md +4 -4
  10. data/docs/PatchedansibleGitRemote.md +23 -23
  11. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  12. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  13. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
  14. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +192 -192
  15. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +149 -149
  16. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  17. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  18. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +176 -176
  19. data/lib/pulp_ansible_client/version.rb +1 -1
  20. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  21. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  22. data/spec/models/ansible_collection_version_spec.rb +4 -4
  23. data/spec/models/ansible_git_remote_response_spec.rb +16 -16
  24. data/spec/models/ansible_git_remote_spec.rb +19 -19
  25. data/spec/models/ansible_role_response_spec.rb +2 -2
  26. data/spec/models/ansible_role_spec.rb +2 -2
  27. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  28. metadata +133 -133
@@ -15,64 +15,64 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class PatchedansibleGitRemote
18
- # If True, TLS peer validation must be performed.
19
- attr_accessor :tls_validation
20
-
21
18
  # The username to be used for authentication when syncing.
22
19
  attr_accessor :username
23
20
 
24
21
  # A PEM encoded client certificate used for authentication.
25
22
  attr_accessor :client_cert
26
23
 
27
- # A PEM encoded private key used for authentication.
28
- attr_accessor :client_key
24
+ # A unique name for this remote.
25
+ attr_accessor :name
29
26
 
30
- # Limits requests per second for each concurrent downloader
31
- attr_accessor :rate_limit
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
32
29
 
33
- # The URL of an external content source.
34
- attr_accessor :url
30
+ attr_accessor :pulp_labels
35
31
 
36
32
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
37
33
  attr_accessor :password
38
34
 
39
- # Headers for aiohttp.Clientsession
40
- attr_accessor :headers
35
+ # A PEM encoded private key used for authentication.
36
+ attr_accessor :client_key
37
+
38
+ # 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.
39
+ attr_accessor :sock_read_timeout
41
40
 
42
41
  # Total number of simultaneous connections. If not set then the default value will be used.
43
42
  attr_accessor :download_concurrency
44
43
 
44
+ # Headers for aiohttp.Clientsession
45
+ attr_accessor :headers
46
+
45
47
  # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
46
48
  attr_accessor :proxy_password
47
49
 
50
+ # The URL of an external content source.
51
+ attr_accessor :url
52
+
48
53
  # The username to authenticte to the proxy.
49
54
  attr_accessor :proxy_username
50
55
 
51
56
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
52
57
  attr_accessor :ca_cert
53
58
 
54
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
55
- attr_accessor :total_timeout
56
-
57
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
58
- attr_accessor :connect_timeout
59
+ # Limits requests per second for each concurrent downloader
60
+ attr_accessor :rate_limit
59
61
 
60
62
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
61
63
  attr_accessor :max_retries
62
64
 
65
+ # 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.
66
+ attr_accessor :sock_connect_timeout
67
+
63
68
  # The proxy URL. Format: scheme://host:port
64
69
  attr_accessor :proxy_url
65
70
 
66
- attr_accessor :pulp_labels
67
-
68
- # 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.
69
- attr_accessor :sock_read_timeout
70
-
71
- # A unique name for this remote.
72
- attr_accessor :name
71
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
72
+ attr_accessor :total_timeout
73
73
 
74
- # 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.
75
- attr_accessor :sock_connect_timeout
74
+ # If True, TLS peer validation must be performed.
75
+ attr_accessor :tls_validation
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
@@ -83,26 +83,26 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'tls_validation' => :'tls_validation',
87
86
  :'username' => :'username',
88
87
  :'client_cert' => :'client_cert',
89
- :'client_key' => :'client_key',
90
- :'rate_limit' => :'rate_limit',
91
- :'url' => :'url',
88
+ :'name' => :'name',
89
+ :'connect_timeout' => :'connect_timeout',
90
+ :'pulp_labels' => :'pulp_labels',
92
91
  :'password' => :'password',
93
- :'headers' => :'headers',
92
+ :'client_key' => :'client_key',
93
+ :'sock_read_timeout' => :'sock_read_timeout',
94
94
  :'download_concurrency' => :'download_concurrency',
95
+ :'headers' => :'headers',
95
96
  :'proxy_password' => :'proxy_password',
97
+ :'url' => :'url',
96
98
  :'proxy_username' => :'proxy_username',
97
99
  :'ca_cert' => :'ca_cert',
98
- :'total_timeout' => :'total_timeout',
99
- :'connect_timeout' => :'connect_timeout',
100
+ :'rate_limit' => :'rate_limit',
100
101
  :'max_retries' => :'max_retries',
101
- :'proxy_url' => :'proxy_url',
102
- :'pulp_labels' => :'pulp_labels',
103
- :'sock_read_timeout' => :'sock_read_timeout',
104
- :'name' => :'name',
105
102
  :'sock_connect_timeout' => :'sock_connect_timeout',
103
+ :'proxy_url' => :'proxy_url',
104
+ :'total_timeout' => :'total_timeout',
105
+ :'tls_validation' => :'tls_validation',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -111,26 +111,26 @@ module PulpAnsibleClient
111
111
  # Attribute type mapping.
112
112
  def self.openapi_types
113
113
  {
114
- :'tls_validation' => :'Boolean',
115
114
  :'username' => :'String',
116
115
  :'client_cert' => :'String',
117
- :'client_key' => :'String',
118
- :'rate_limit' => :'Integer',
119
- :'url' => :'String',
116
+ :'name' => :'String',
117
+ :'connect_timeout' => :'Float',
118
+ :'pulp_labels' => :'Hash<String, String>',
120
119
  :'password' => :'String',
121
- :'headers' => :'Array<Object>',
120
+ :'client_key' => :'String',
121
+ :'sock_read_timeout' => :'Float',
122
122
  :'download_concurrency' => :'Integer',
123
+ :'headers' => :'Array<Object>',
123
124
  :'proxy_password' => :'String',
125
+ :'url' => :'String',
124
126
  :'proxy_username' => :'String',
125
127
  :'ca_cert' => :'String',
126
- :'total_timeout' => :'Float',
127
- :'connect_timeout' => :'Float',
128
+ :'rate_limit' => :'Integer',
128
129
  :'max_retries' => :'Integer',
129
- :'proxy_url' => :'String',
130
- :'pulp_labels' => :'Hash<String, String>',
131
- :'sock_read_timeout' => :'Float',
132
- :'name' => :'String',
133
130
  :'sock_connect_timeout' => :'Float',
131
+ :'proxy_url' => :'String',
132
+ :'total_timeout' => :'Float',
133
+ :'tls_validation' => :'Boolean',
134
134
  :'metadata_only' => :'Boolean',
135
135
  :'git_ref' => :'String'
136
136
  }
@@ -141,19 +141,19 @@ module PulpAnsibleClient
141
141
  Set.new([
142
142
  :'username',
143
143
  :'client_cert',
144
- :'client_key',
145
- :'rate_limit',
144
+ :'connect_timeout',
146
145
  :'password',
146
+ :'client_key',
147
+ :'sock_read_timeout',
147
148
  :'download_concurrency',
148
149
  :'proxy_password',
149
150
  :'proxy_username',
150
151
  :'ca_cert',
151
- :'total_timeout',
152
- :'connect_timeout',
152
+ :'rate_limit',
153
153
  :'max_retries',
154
- :'proxy_url',
155
- :'sock_read_timeout',
156
154
  :'sock_connect_timeout',
155
+ :'proxy_url',
156
+ :'total_timeout',
157
157
  ])
158
158
  end
159
159
 
@@ -172,10 +172,6 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'tls_validation')
176
- self.tls_validation = attributes[:'tls_validation']
177
- end
178
-
179
175
  if attributes.key?(:'username')
180
176
  self.username = attributes[:'username']
181
177
  end
@@ -184,36 +180,50 @@ module PulpAnsibleClient
184
180
  self.client_cert = attributes[:'client_cert']
185
181
  end
186
182
 
187
- if attributes.key?(:'client_key')
188
- self.client_key = attributes[:'client_key']
183
+ if attributes.key?(:'name')
184
+ self.name = attributes[:'name']
189
185
  end
190
186
 
191
- if attributes.key?(:'rate_limit')
192
- self.rate_limit = attributes[:'rate_limit']
187
+ if attributes.key?(:'connect_timeout')
188
+ self.connect_timeout = attributes[:'connect_timeout']
193
189
  end
194
190
 
195
- if attributes.key?(:'url')
196
- self.url = attributes[:'url']
191
+ if attributes.key?(:'pulp_labels')
192
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
193
+ self.pulp_labels = value
194
+ end
197
195
  end
198
196
 
199
197
  if attributes.key?(:'password')
200
198
  self.password = attributes[:'password']
201
199
  end
202
200
 
203
- if attributes.key?(:'headers')
204
- if (value = attributes[:'headers']).is_a?(Array)
205
- self.headers = value
206
- end
201
+ if attributes.key?(:'client_key')
202
+ self.client_key = attributes[:'client_key']
203
+ end
204
+
205
+ if attributes.key?(:'sock_read_timeout')
206
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
207
207
  end
208
208
 
209
209
  if attributes.key?(:'download_concurrency')
210
210
  self.download_concurrency = attributes[:'download_concurrency']
211
211
  end
212
212
 
213
+ if attributes.key?(:'headers')
214
+ if (value = attributes[:'headers']).is_a?(Array)
215
+ self.headers = value
216
+ end
217
+ end
218
+
213
219
  if attributes.key?(:'proxy_password')
214
220
  self.proxy_password = attributes[:'proxy_password']
215
221
  end
216
222
 
223
+ if attributes.key?(:'url')
224
+ self.url = attributes[:'url']
225
+ end
226
+
217
227
  if attributes.key?(:'proxy_username')
218
228
  self.proxy_username = attributes[:'proxy_username']
219
229
  end
@@ -222,38 +232,28 @@ module PulpAnsibleClient
222
232
  self.ca_cert = attributes[:'ca_cert']
223
233
  end
224
234
 
225
- if attributes.key?(:'total_timeout')
226
- self.total_timeout = attributes[:'total_timeout']
227
- end
228
-
229
- if attributes.key?(:'connect_timeout')
230
- self.connect_timeout = attributes[:'connect_timeout']
235
+ if attributes.key?(:'rate_limit')
236
+ self.rate_limit = attributes[:'rate_limit']
231
237
  end
232
238
 
233
239
  if attributes.key?(:'max_retries')
234
240
  self.max_retries = attributes[:'max_retries']
235
241
  end
236
242
 
237
- if attributes.key?(:'proxy_url')
238
- self.proxy_url = attributes[:'proxy_url']
239
- end
240
-
241
- if attributes.key?(:'pulp_labels')
242
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
243
- self.pulp_labels = value
244
- end
243
+ if attributes.key?(:'sock_connect_timeout')
244
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
245
245
  end
246
246
 
247
- if attributes.key?(:'sock_read_timeout')
248
- self.sock_read_timeout = attributes[:'sock_read_timeout']
247
+ if attributes.key?(:'proxy_url')
248
+ self.proxy_url = attributes[:'proxy_url']
249
249
  end
250
250
 
251
- if attributes.key?(:'name')
252
- self.name = attributes[:'name']
251
+ if attributes.key?(:'total_timeout')
252
+ self.total_timeout = attributes[:'total_timeout']
253
253
  end
254
254
 
255
- if attributes.key?(:'sock_connect_timeout')
256
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
255
+ if attributes.key?(:'tls_validation')
256
+ self.tls_validation = attributes[:'tls_validation']
257
257
  end
258
258
 
259
259
  if attributes.key?(:'metadata_only')
@@ -277,18 +277,26 @@ module PulpAnsibleClient
277
277
  invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
278
278
  end
279
279
 
280
- if !@client_key.nil? && @client_key.to_s.length < 1
281
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
280
+ if !@name.nil? && @name.to_s.length < 1
281
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
282
282
  end
283
283
 
284
- if !@url.nil? && @url.to_s.length < 1
285
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
284
+ if !@connect_timeout.nil? && @connect_timeout < 0
285
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
286
286
  end
287
287
 
288
288
  if !@password.nil? && @password.to_s.length < 1
289
289
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
290
290
  end
291
291
 
292
+ if !@client_key.nil? && @client_key.to_s.length < 1
293
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
294
+ end
295
+
296
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
297
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
298
+ end
299
+
292
300
  if !@download_concurrency.nil? && @download_concurrency < 1
293
301
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
294
302
  end
@@ -297,6 +305,10 @@ module PulpAnsibleClient
297
305
  invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
298
306
  end
299
307
 
308
+ if !@url.nil? && @url.to_s.length < 1
309
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
310
+ end
311
+
300
312
  if !@proxy_username.nil? && @proxy_username.to_s.length < 1
301
313
  invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
302
314
  end
@@ -305,28 +317,16 @@ module PulpAnsibleClient
305
317
  invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
306
318
  end
307
319
 
308
- if !@total_timeout.nil? && @total_timeout < 0
309
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
310
- end
311
-
312
- if !@connect_timeout.nil? && @connect_timeout < 0
313
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
320
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
321
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
314
322
  end
315
323
 
316
324
  if !@proxy_url.nil? && @proxy_url.to_s.length < 1
317
325
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
318
326
  end
319
327
 
320
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
321
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
322
- end
323
-
324
- if !@name.nil? && @name.to_s.length < 1
325
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
326
- end
327
-
328
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
329
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
328
+ if !@total_timeout.nil? && @total_timeout < 0
329
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
330
330
  end
331
331
 
332
332
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -341,19 +341,19 @@ module PulpAnsibleClient
341
341
  def valid?
342
342
  return false if !@username.nil? && @username.to_s.length < 1
343
343
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
344
- return false if !@client_key.nil? && @client_key.to_s.length < 1
345
- return false if !@url.nil? && @url.to_s.length < 1
344
+ return false if !@name.nil? && @name.to_s.length < 1
345
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
346
346
  return false if !@password.nil? && @password.to_s.length < 1
347
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
348
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
347
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
348
350
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
351
+ return false if !@url.nil? && @url.to_s.length < 1
349
352
  return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
350
353
  return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
351
- return false if !@total_timeout.nil? && @total_timeout < 0
352
- return false if !@connect_timeout.nil? && @connect_timeout < 0
353
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
354
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
355
- return false if !@name.nil? && @name.to_s.length < 1
356
354
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
355
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
356
+ return false if !@total_timeout.nil? && @total_timeout < 0
357
357
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
358
358
  true
359
359
  end
@@ -379,23 +379,23 @@ module PulpAnsibleClient
379
379
  end
380
380
 
381
381
  # Custom attribute writer method with validation
382
- # @param [Object] client_key Value to be assigned
383
- def client_key=(client_key)
384
- if !client_key.nil? && client_key.to_s.length < 1
385
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
382
+ # @param [Object] name Value to be assigned
383
+ def name=(name)
384
+ if !name.nil? && name.to_s.length < 1
385
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
386
386
  end
387
387
 
388
- @client_key = client_key
388
+ @name = name
389
389
  end
390
390
 
391
391
  # Custom attribute writer method with validation
392
- # @param [Object] url Value to be assigned
393
- def url=(url)
394
- if !url.nil? && url.to_s.length < 1
395
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
392
+ # @param [Object] connect_timeout Value to be assigned
393
+ def connect_timeout=(connect_timeout)
394
+ if !connect_timeout.nil? && connect_timeout < 0
395
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
396
396
  end
397
397
 
398
- @url = url
398
+ @connect_timeout = connect_timeout
399
399
  end
400
400
 
401
401
  # Custom attribute writer method with validation
@@ -408,6 +408,26 @@ module PulpAnsibleClient
408
408
  @password = password
409
409
  end
410
410
 
411
+ # Custom attribute writer method with validation
412
+ # @param [Object] client_key Value to be assigned
413
+ def client_key=(client_key)
414
+ if !client_key.nil? && client_key.to_s.length < 1
415
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
416
+ end
417
+
418
+ @client_key = client_key
419
+ end
420
+
421
+ # Custom attribute writer method with validation
422
+ # @param [Object] sock_read_timeout Value to be assigned
423
+ def sock_read_timeout=(sock_read_timeout)
424
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
425
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
426
+ end
427
+
428
+ @sock_read_timeout = sock_read_timeout
429
+ end
430
+
411
431
  # Custom attribute writer method with validation
412
432
  # @param [Object] download_concurrency Value to be assigned
413
433
  def download_concurrency=(download_concurrency)
@@ -428,6 +448,16 @@ module PulpAnsibleClient
428
448
  @proxy_password = proxy_password
429
449
  end
430
450
 
451
+ # Custom attribute writer method with validation
452
+ # @param [Object] url Value to be assigned
453
+ def url=(url)
454
+ if !url.nil? && url.to_s.length < 1
455
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
456
+ end
457
+
458
+ @url = url
459
+ end
460
+
431
461
  # Custom attribute writer method with validation
432
462
  # @param [Object] proxy_username Value to be assigned
433
463
  def proxy_username=(proxy_username)
@@ -449,23 +479,13 @@ module PulpAnsibleClient
449
479
  end
450
480
 
451
481
  # Custom attribute writer method with validation
452
- # @param [Object] total_timeout Value to be assigned
453
- def total_timeout=(total_timeout)
454
- if !total_timeout.nil? && total_timeout < 0
455
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
456
- end
457
-
458
- @total_timeout = total_timeout
459
- end
460
-
461
- # Custom attribute writer method with validation
462
- # @param [Object] connect_timeout Value to be assigned
463
- def connect_timeout=(connect_timeout)
464
- if !connect_timeout.nil? && connect_timeout < 0
465
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
482
+ # @param [Object] sock_connect_timeout Value to be assigned
483
+ def sock_connect_timeout=(sock_connect_timeout)
484
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
485
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
466
486
  end
467
487
 
468
- @connect_timeout = connect_timeout
488
+ @sock_connect_timeout = sock_connect_timeout
469
489
  end
470
490
 
471
491
  # Custom attribute writer method with validation
@@ -479,33 +499,13 @@ module PulpAnsibleClient
479
499
  end
480
500
 
481
501
  # Custom attribute writer method with validation
482
- # @param [Object] sock_read_timeout Value to be assigned
483
- def sock_read_timeout=(sock_read_timeout)
484
- if !sock_read_timeout.nil? && sock_read_timeout < 0
485
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
486
- end
487
-
488
- @sock_read_timeout = sock_read_timeout
489
- end
490
-
491
- # Custom attribute writer method with validation
492
- # @param [Object] name Value to be assigned
493
- def name=(name)
494
- if !name.nil? && name.to_s.length < 1
495
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
496
- end
497
-
498
- @name = name
499
- end
500
-
501
- # Custom attribute writer method with validation
502
- # @param [Object] sock_connect_timeout Value to be assigned
503
- def sock_connect_timeout=(sock_connect_timeout)
504
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
505
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
502
+ # @param [Object] total_timeout Value to be assigned
503
+ def total_timeout=(total_timeout)
504
+ if !total_timeout.nil? && total_timeout < 0
505
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
506
506
  end
507
507
 
508
- @sock_connect_timeout = sock_connect_timeout
508
+ @total_timeout = total_timeout
509
509
  end
510
510
 
511
511
  # Custom attribute writer method with validation
@@ -523,26 +523,26 @@ module PulpAnsibleClient
523
523
  def ==(o)
524
524
  return true if self.equal?(o)
525
525
  self.class == o.class &&
526
- tls_validation == o.tls_validation &&
527
526
  username == o.username &&
528
527
  client_cert == o.client_cert &&
529
- client_key == o.client_key &&
530
- rate_limit == o.rate_limit &&
531
- url == o.url &&
528
+ name == o.name &&
529
+ connect_timeout == o.connect_timeout &&
530
+ pulp_labels == o.pulp_labels &&
532
531
  password == o.password &&
533
- headers == o.headers &&
532
+ client_key == o.client_key &&
533
+ sock_read_timeout == o.sock_read_timeout &&
534
534
  download_concurrency == o.download_concurrency &&
535
+ headers == o.headers &&
535
536
  proxy_password == o.proxy_password &&
537
+ url == o.url &&
536
538
  proxy_username == o.proxy_username &&
537
539
  ca_cert == o.ca_cert &&
538
- total_timeout == o.total_timeout &&
539
- connect_timeout == o.connect_timeout &&
540
+ rate_limit == o.rate_limit &&
540
541
  max_retries == o.max_retries &&
541
- proxy_url == o.proxy_url &&
542
- pulp_labels == o.pulp_labels &&
543
- sock_read_timeout == o.sock_read_timeout &&
544
- name == o.name &&
545
542
  sock_connect_timeout == o.sock_connect_timeout &&
543
+ proxy_url == o.proxy_url &&
544
+ total_timeout == o.total_timeout &&
545
+ tls_validation == o.tls_validation &&
546
546
  metadata_only == o.metadata_only &&
547
547
  git_ref == o.git_ref
548
548
  end
@@ -556,7 +556,7 @@ module PulpAnsibleClient
556
556
  # Calculates hash code according to all attributes.
557
557
  # @return [Integer] Hash code
558
558
  def hash
559
- [tls_validation, username, client_cert, client_key, rate_limit, url, password, headers, download_concurrency, proxy_password, proxy_username, ca_cert, total_timeout, connect_timeout, max_retries, proxy_url, pulp_labels, sock_read_timeout, name, sock_connect_timeout, metadata_only, git_ref].hash
559
+ [username, client_cert, name, connect_timeout, pulp_labels, password, client_key, sock_read_timeout, download_concurrency, headers, proxy_password, url, proxy_username, ca_cert, rate_limit, max_retries, sock_connect_timeout, proxy_url, total_timeout, tls_validation, metadata_only, git_ref].hash
560
560
  end
561
561
 
562
562
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpAnsibleClient
14
- VERSION = '0.21.8'
14
+ VERSION = '0.21.9'
15
15
  end
@@ -36,10 +36,10 @@ describe 'ContentCollectionVersionsApi' do
36
36
  # Create a collection version
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
40
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
39
  # @option opts [String] :artifact Artifact file representing the physical content
42
40
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
41
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
42
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
43
  # @option opts [String] :expected_name The name of the collection.
44
44
  # @option opts [String] :expected_namespace The namespace of the collection.
45
45
  # @option opts [String] :expected_version The version of the collection.
@@ -32,7 +32,7 @@ describe 'AnsibleCollectionVersionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleCollectionVersionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_href"' do
35
+ describe 'test attribute "artifact"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
@@ -50,7 +50,7 @@ describe 'AnsibleCollectionVersionResponse' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "artifact"' do
53
+ describe 'test attribute "pulp_href"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end