pulp_file_client 1.4.0 → 1.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3001b729eeec27d71c148dfbdcbee205cead95825ebad48dcd812ce8aaa50d9
4
- data.tar.gz: 02466fb2810d63a1e5c6c429238481c55888e924f1b249ece227e7c6712452c4
3
+ metadata.gz: 770c231d35b94e1ded1fda53ff4be35c07b04f15c863cbdde55b8d964606d9be
4
+ data.tar.gz: 040d8fcdd6485fc240e5c884289414b86bb77048b806614b0ad4a93fb54413ba
5
5
  SHA512:
6
- metadata.gz: 79565b2b1e9f2e447dcc5027512a447e282b035c390acc63ae35b91140aa526afd0510fb1d414f4f85502b022586562fc3d6e5fda783db05b650c2086c5f6ce4
7
- data.tar.gz: 00a0a5bd1550f7982cb248f5b0a60e21cec97f000bd9bd404ded767e69c020a86ae34a8493369630edac98bf2b953f536325c377a183867fd03db4b10f3aab6e
6
+ metadata.gz: fe544b5f3cc5bb7c463ea6da428fecfb16c2a6fa4124f4d3b0c418cdfd61e8b5a1e6448d7e615169262f32838ed17bfa404fb162bef5f6cc30c54ccafa208f35
7
+ data.tar.gz: 114cc05e4aa8464371225699b12a6f936f128447d88331552b0312aec063e08f22c3ae706521fb14a3f79b03a359dd2657717846e1a9ee2b8620305cef81be3e
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 1.4.0
10
+ - Package version: 1.5.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_file_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_file_client-1.4.0.gem
27
+ gem install ./pulp_file_client-1.5.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_file_client-1.4.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_file_client-1.5.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_file_client', '~> 1.4.0'
36
+ gem 'pulp_file_client', '~> 1.5.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -15,6 +15,10 @@ Name | Type | Description | Notes
15
15
  **password** | **String** | The password to be used for authentication when syncing. | [optional]
16
16
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
17
17
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
18
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
19
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
20
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
21
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
18
22
 
19
23
  ## Code Sample
20
24
 
@@ -31,7 +35,11 @@ instance = PulpFileClient::FileFileRemote.new(name: null,
31
35
  username: null,
32
36
  password: null,
33
37
  download_concurrency: null,
34
- policy: null)
38
+ policy: null,
39
+ total_timeout: null,
40
+ connect_timeout: null,
41
+ sock_connect_timeout: null,
42
+ sock_read_timeout: null)
35
43
  ```
36
44
 
37
45
 
@@ -18,6 +18,10 @@ Name | Type | Description | Notes
18
18
  **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
19
19
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
20
20
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
21
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
22
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
23
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
24
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
21
25
 
22
26
  ## Code Sample
23
27
 
@@ -37,7 +41,11 @@ instance = PulpFileClient::FileFileRemoteResponse.new(pulp_href: null,
37
41
  password: null,
38
42
  pulp_last_updated: null,
39
43
  download_concurrency: null,
40
- policy: null)
44
+ policy: null,
45
+ total_timeout: null,
46
+ connect_timeout: null,
47
+ sock_connect_timeout: null,
48
+ sock_read_timeout: null)
41
49
  ```
42
50
 
43
51
 
@@ -15,6 +15,10 @@ Name | Type | Description | Notes
15
15
  **password** | **String** | The password to be used for authentication when syncing. | [optional]
16
16
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
17
17
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
18
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
19
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
20
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
21
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
18
22
 
19
23
  ## Code Sample
20
24
 
@@ -31,7 +35,11 @@ instance = PulpFileClient::PatchedfileFileRemote.new(name: null,
31
35
  username: null,
32
36
  password: null,
33
37
  download_concurrency: null,
34
- policy: null)
38
+ policy: null,
39
+ total_timeout: null,
40
+ connect_timeout: null,
41
+ sock_connect_timeout: null,
42
+ sock_read_timeout: null)
35
43
  ```
36
44
 
37
45
 
@@ -17,7 +17,7 @@ Method | HTTP request | Description
17
17
 
18
18
  Delete a repository version
19
19
 
20
- Trigger an asynchronous task to delete a repositroy version.
20
+ Trigger an asynchronous task to delete a repository version.
21
21
 
22
22
  ### Example
23
23
 
@@ -222,7 +222,7 @@ Name | Type | Description | Notes
222
222
 
223
223
 
224
224
 
225
- Trigger an asynchronous task to repair a repositroy version.
225
+ Trigger an asynchronous task to repair a repository version.
226
226
 
227
227
  ### Example
228
228
 
@@ -20,7 +20,7 @@ module PulpFileClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Delete a repository version
23
- # Trigger an asynchronous task to delete a repositroy version.
23
+ # Trigger an asynchronous task to delete a repository version.
24
24
  # @param file_file_repository_version_href [String]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [AsyncOperationResponse]
@@ -30,7 +30,7 @@ module PulpFileClient
30
30
  end
31
31
 
32
32
  # Delete a repository version
33
- # Trigger an asynchronous task to delete a repositroy version.
33
+ # Trigger an asynchronous task to delete a repository version.
34
34
  # @param file_file_repository_version_href [String]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
@@ -268,7 +268,7 @@ module PulpFileClient
268
268
  return data, status_code, headers
269
269
  end
270
270
 
271
- # Trigger an asynchronous task to repair a repositroy version.
271
+ # Trigger an asynchronous task to repair a repository version.
272
272
  # @param file_file_repository_version_href [String]
273
273
  # @param repository_version [RepositoryVersion]
274
274
  # @param [Hash] opts the optional parameters
@@ -278,7 +278,7 @@ module PulpFileClient
278
278
  data
279
279
  end
280
280
 
281
- # Trigger an asynchronous task to repair a repositroy version.
281
+ # Trigger an asynchronous task to repair a repository version.
282
282
  # @param file_file_repository_version_href [String]
283
283
  # @param repository_version [RepositoryVersion]
284
284
  # @param [Hash] opts the optional parameters
@@ -48,6 +48,18 @@ module PulpFileClient
48
48
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
49
49
  attr_accessor :policy
50
50
 
51
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
52
+ attr_accessor :total_timeout
53
+
54
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
55
+ attr_accessor :connect_timeout
56
+
57
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
58
+ attr_accessor :sock_connect_timeout
59
+
60
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
61
+ attr_accessor :sock_read_timeout
62
+
51
63
  # Attribute mapping from ruby-style variable name to JSON key.
52
64
  def self.attribute_map
53
65
  {
@@ -61,7 +73,11 @@ module PulpFileClient
61
73
  :'username' => :'username',
62
74
  :'password' => :'password',
63
75
  :'download_concurrency' => :'download_concurrency',
64
- :'policy' => :'policy'
76
+ :'policy' => :'policy',
77
+ :'total_timeout' => :'total_timeout',
78
+ :'connect_timeout' => :'connect_timeout',
79
+ :'sock_connect_timeout' => :'sock_connect_timeout',
80
+ :'sock_read_timeout' => :'sock_read_timeout'
65
81
  }
66
82
  end
67
83
 
@@ -78,7 +94,11 @@ module PulpFileClient
78
94
  :'username' => :'String',
79
95
  :'password' => :'String',
80
96
  :'download_concurrency' => :'Integer',
81
- :'policy' => :'PolicyEnum'
97
+ :'policy' => :'PolicyEnum',
98
+ :'total_timeout' => :'Float',
99
+ :'connect_timeout' => :'Float',
100
+ :'sock_connect_timeout' => :'Float',
101
+ :'sock_read_timeout' => :'Float'
82
102
  }
83
103
  end
84
104
 
@@ -91,6 +111,10 @@ module PulpFileClient
91
111
  :'proxy_url',
92
112
  :'username',
93
113
  :'password',
114
+ :'total_timeout',
115
+ :'connect_timeout',
116
+ :'sock_connect_timeout',
117
+ :'sock_read_timeout'
94
118
  ])
95
119
  end
96
120
 
@@ -152,6 +176,22 @@ module PulpFileClient
152
176
  if attributes.key?(:'policy')
153
177
  self.policy = attributes[:'policy']
154
178
  end
179
+
180
+ if attributes.key?(:'total_timeout')
181
+ self.total_timeout = attributes[:'total_timeout']
182
+ end
183
+
184
+ if attributes.key?(:'connect_timeout')
185
+ self.connect_timeout = attributes[:'connect_timeout']
186
+ end
187
+
188
+ if attributes.key?(:'sock_connect_timeout')
189
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
190
+ end
191
+
192
+ if attributes.key?(:'sock_read_timeout')
193
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
194
+ end
155
195
  end
156
196
 
157
197
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -170,6 +210,22 @@ module PulpFileClient
170
210
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
171
211
  end
172
212
 
213
+ if !@total_timeout.nil? && @total_timeout < 0.0
214
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
215
+ end
216
+
217
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
218
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
219
+ end
220
+
221
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
222
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
223
+ end
224
+
225
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
226
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
227
+ end
228
+
173
229
  invalid_properties
174
230
  end
175
231
 
@@ -179,6 +235,10 @@ module PulpFileClient
179
235
  return false if @name.nil?
180
236
  return false if @url.nil?
181
237
  return false if !@download_concurrency.nil? && @download_concurrency < 1
238
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
239
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
240
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
241
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
182
242
  true
183
243
  end
184
244
 
@@ -192,6 +252,46 @@ module PulpFileClient
192
252
  @download_concurrency = download_concurrency
193
253
  end
194
254
 
255
+ # Custom attribute writer method with validation
256
+ # @param [Object] total_timeout Value to be assigned
257
+ def total_timeout=(total_timeout)
258
+ if !total_timeout.nil? && total_timeout < 0.0
259
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
260
+ end
261
+
262
+ @total_timeout = total_timeout
263
+ end
264
+
265
+ # Custom attribute writer method with validation
266
+ # @param [Object] connect_timeout Value to be assigned
267
+ def connect_timeout=(connect_timeout)
268
+ if !connect_timeout.nil? && connect_timeout < 0.0
269
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
270
+ end
271
+
272
+ @connect_timeout = connect_timeout
273
+ end
274
+
275
+ # Custom attribute writer method with validation
276
+ # @param [Object] sock_connect_timeout Value to be assigned
277
+ def sock_connect_timeout=(sock_connect_timeout)
278
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
279
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
280
+ end
281
+
282
+ @sock_connect_timeout = sock_connect_timeout
283
+ end
284
+
285
+ # Custom attribute writer method with validation
286
+ # @param [Object] sock_read_timeout Value to be assigned
287
+ def sock_read_timeout=(sock_read_timeout)
288
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
289
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
290
+ end
291
+
292
+ @sock_read_timeout = sock_read_timeout
293
+ end
294
+
195
295
  # Checks equality by comparing each attribute.
196
296
  # @param [Object] Object to be compared
197
297
  def ==(o)
@@ -207,7 +307,11 @@ module PulpFileClient
207
307
  username == o.username &&
208
308
  password == o.password &&
209
309
  download_concurrency == o.download_concurrency &&
210
- policy == o.policy
310
+ policy == o.policy &&
311
+ total_timeout == o.total_timeout &&
312
+ connect_timeout == o.connect_timeout &&
313
+ sock_connect_timeout == o.sock_connect_timeout &&
314
+ sock_read_timeout == o.sock_read_timeout
211
315
  end
212
316
 
213
317
  # @see the `==` method
@@ -219,7 +323,7 @@ module PulpFileClient
219
323
  # Calculates hash code according to all attributes.
220
324
  # @return [Integer] Hash code
221
325
  def hash
222
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy].hash
326
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout].hash
223
327
  end
224
328
 
225
329
  # Builds the object from hash
@@ -56,6 +56,18 @@ module PulpFileClient
56
56
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
57
57
  attr_accessor :policy
58
58
 
59
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
60
+ attr_accessor :total_timeout
61
+
62
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
63
+ attr_accessor :connect_timeout
64
+
65
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
66
+ attr_accessor :sock_connect_timeout
67
+
68
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
69
+ attr_accessor :sock_read_timeout
70
+
59
71
  # Attribute mapping from ruby-style variable name to JSON key.
60
72
  def self.attribute_map
61
73
  {
@@ -72,7 +84,11 @@ module PulpFileClient
72
84
  :'password' => :'password',
73
85
  :'pulp_last_updated' => :'pulp_last_updated',
74
86
  :'download_concurrency' => :'download_concurrency',
75
- :'policy' => :'policy'
87
+ :'policy' => :'policy',
88
+ :'total_timeout' => :'total_timeout',
89
+ :'connect_timeout' => :'connect_timeout',
90
+ :'sock_connect_timeout' => :'sock_connect_timeout',
91
+ :'sock_read_timeout' => :'sock_read_timeout'
76
92
  }
77
93
  end
78
94
 
@@ -92,7 +108,11 @@ module PulpFileClient
92
108
  :'password' => :'String',
93
109
  :'pulp_last_updated' => :'DateTime',
94
110
  :'download_concurrency' => :'Integer',
95
- :'policy' => :'PolicyEnum'
111
+ :'policy' => :'PolicyEnum',
112
+ :'total_timeout' => :'Float',
113
+ :'connect_timeout' => :'Float',
114
+ :'sock_connect_timeout' => :'Float',
115
+ :'sock_read_timeout' => :'Float'
96
116
  }
97
117
  end
98
118
 
@@ -105,6 +125,10 @@ module PulpFileClient
105
125
  :'proxy_url',
106
126
  :'username',
107
127
  :'password',
128
+ :'total_timeout',
129
+ :'connect_timeout',
130
+ :'sock_connect_timeout',
131
+ :'sock_read_timeout'
108
132
  ])
109
133
  end
110
134
 
@@ -178,6 +202,22 @@ module PulpFileClient
178
202
  if attributes.key?(:'policy')
179
203
  self.policy = attributes[:'policy']
180
204
  end
205
+
206
+ if attributes.key?(:'total_timeout')
207
+ self.total_timeout = attributes[:'total_timeout']
208
+ end
209
+
210
+ if attributes.key?(:'connect_timeout')
211
+ self.connect_timeout = attributes[:'connect_timeout']
212
+ end
213
+
214
+ if attributes.key?(:'sock_connect_timeout')
215
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
216
+ end
217
+
218
+ if attributes.key?(:'sock_read_timeout')
219
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
220
+ end
181
221
  end
182
222
 
183
223
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -196,6 +236,22 @@ module PulpFileClient
196
236
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
197
237
  end
198
238
 
239
+ if !@total_timeout.nil? && @total_timeout < 0.0
240
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
241
+ end
242
+
243
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
244
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
245
+ end
246
+
247
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
248
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
249
+ end
250
+
251
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
252
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
253
+ end
254
+
199
255
  invalid_properties
200
256
  end
201
257
 
@@ -205,6 +261,10 @@ module PulpFileClient
205
261
  return false if @name.nil?
206
262
  return false if @url.nil?
207
263
  return false if !@download_concurrency.nil? && @download_concurrency < 1
264
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
265
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
266
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
267
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
208
268
  true
209
269
  end
210
270
 
@@ -218,6 +278,46 @@ module PulpFileClient
218
278
  @download_concurrency = download_concurrency
219
279
  end
220
280
 
281
+ # Custom attribute writer method with validation
282
+ # @param [Object] total_timeout Value to be assigned
283
+ def total_timeout=(total_timeout)
284
+ if !total_timeout.nil? && total_timeout < 0.0
285
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
286
+ end
287
+
288
+ @total_timeout = total_timeout
289
+ end
290
+
291
+ # Custom attribute writer method with validation
292
+ # @param [Object] connect_timeout Value to be assigned
293
+ def connect_timeout=(connect_timeout)
294
+ if !connect_timeout.nil? && connect_timeout < 0.0
295
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
296
+ end
297
+
298
+ @connect_timeout = connect_timeout
299
+ end
300
+
301
+ # Custom attribute writer method with validation
302
+ # @param [Object] sock_connect_timeout Value to be assigned
303
+ def sock_connect_timeout=(sock_connect_timeout)
304
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
305
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
306
+ end
307
+
308
+ @sock_connect_timeout = sock_connect_timeout
309
+ end
310
+
311
+ # Custom attribute writer method with validation
312
+ # @param [Object] sock_read_timeout Value to be assigned
313
+ def sock_read_timeout=(sock_read_timeout)
314
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
315
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
316
+ end
317
+
318
+ @sock_read_timeout = sock_read_timeout
319
+ end
320
+
221
321
  # Checks equality by comparing each attribute.
222
322
  # @param [Object] Object to be compared
223
323
  def ==(o)
@@ -236,7 +336,11 @@ module PulpFileClient
236
336
  password == o.password &&
237
337
  pulp_last_updated == o.pulp_last_updated &&
238
338
  download_concurrency == o.download_concurrency &&
239
- policy == o.policy
339
+ policy == o.policy &&
340
+ total_timeout == o.total_timeout &&
341
+ connect_timeout == o.connect_timeout &&
342
+ sock_connect_timeout == o.sock_connect_timeout &&
343
+ sock_read_timeout == o.sock_read_timeout
240
344
  end
241
345
 
242
346
  # @see the `==` method
@@ -248,7 +352,7 @@ module PulpFileClient
248
352
  # Calculates hash code according to all attributes.
249
353
  # @return [Integer] Hash code
250
354
  def hash
251
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy].hash
355
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout].hash
252
356
  end
253
357
 
254
358
  # Builds the object from hash
@@ -48,6 +48,18 @@ module PulpFileClient
48
48
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
49
49
  attr_accessor :policy
50
50
 
51
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
52
+ attr_accessor :total_timeout
53
+
54
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
55
+ attr_accessor :connect_timeout
56
+
57
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
58
+ attr_accessor :sock_connect_timeout
59
+
60
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
61
+ attr_accessor :sock_read_timeout
62
+
51
63
  # Attribute mapping from ruby-style variable name to JSON key.
52
64
  def self.attribute_map
53
65
  {
@@ -61,7 +73,11 @@ module PulpFileClient
61
73
  :'username' => :'username',
62
74
  :'password' => :'password',
63
75
  :'download_concurrency' => :'download_concurrency',
64
- :'policy' => :'policy'
76
+ :'policy' => :'policy',
77
+ :'total_timeout' => :'total_timeout',
78
+ :'connect_timeout' => :'connect_timeout',
79
+ :'sock_connect_timeout' => :'sock_connect_timeout',
80
+ :'sock_read_timeout' => :'sock_read_timeout'
65
81
  }
66
82
  end
67
83
 
@@ -78,7 +94,11 @@ module PulpFileClient
78
94
  :'username' => :'String',
79
95
  :'password' => :'String',
80
96
  :'download_concurrency' => :'Integer',
81
- :'policy' => :'PolicyEnum'
97
+ :'policy' => :'PolicyEnum',
98
+ :'total_timeout' => :'Float',
99
+ :'connect_timeout' => :'Float',
100
+ :'sock_connect_timeout' => :'Float',
101
+ :'sock_read_timeout' => :'Float'
82
102
  }
83
103
  end
84
104
 
@@ -91,6 +111,10 @@ module PulpFileClient
91
111
  :'proxy_url',
92
112
  :'username',
93
113
  :'password',
114
+ :'total_timeout',
115
+ :'connect_timeout',
116
+ :'sock_connect_timeout',
117
+ :'sock_read_timeout'
94
118
  ])
95
119
  end
96
120
 
@@ -152,6 +176,22 @@ module PulpFileClient
152
176
  if attributes.key?(:'policy')
153
177
  self.policy = attributes[:'policy']
154
178
  end
179
+
180
+ if attributes.key?(:'total_timeout')
181
+ self.total_timeout = attributes[:'total_timeout']
182
+ end
183
+
184
+ if attributes.key?(:'connect_timeout')
185
+ self.connect_timeout = attributes[:'connect_timeout']
186
+ end
187
+
188
+ if attributes.key?(:'sock_connect_timeout')
189
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
190
+ end
191
+
192
+ if attributes.key?(:'sock_read_timeout')
193
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
194
+ end
155
195
  end
156
196
 
157
197
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -162,6 +202,22 @@ module PulpFileClient
162
202
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
163
203
  end
164
204
 
205
+ if !@total_timeout.nil? && @total_timeout < 0.0
206
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
207
+ end
208
+
209
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
210
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
211
+ end
212
+
213
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
214
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
215
+ end
216
+
217
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
218
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
219
+ end
220
+
165
221
  invalid_properties
166
222
  end
167
223
 
@@ -169,6 +225,10 @@ module PulpFileClient
169
225
  # @return true if the model is valid
170
226
  def valid?
171
227
  return false if !@download_concurrency.nil? && @download_concurrency < 1
228
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
229
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
230
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
231
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
172
232
  true
173
233
  end
174
234
 
@@ -182,6 +242,46 @@ module PulpFileClient
182
242
  @download_concurrency = download_concurrency
183
243
  end
184
244
 
245
+ # Custom attribute writer method with validation
246
+ # @param [Object] total_timeout Value to be assigned
247
+ def total_timeout=(total_timeout)
248
+ if !total_timeout.nil? && total_timeout < 0.0
249
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
250
+ end
251
+
252
+ @total_timeout = total_timeout
253
+ end
254
+
255
+ # Custom attribute writer method with validation
256
+ # @param [Object] connect_timeout Value to be assigned
257
+ def connect_timeout=(connect_timeout)
258
+ if !connect_timeout.nil? && connect_timeout < 0.0
259
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
260
+ end
261
+
262
+ @connect_timeout = connect_timeout
263
+ end
264
+
265
+ # Custom attribute writer method with validation
266
+ # @param [Object] sock_connect_timeout Value to be assigned
267
+ def sock_connect_timeout=(sock_connect_timeout)
268
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
269
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
270
+ end
271
+
272
+ @sock_connect_timeout = sock_connect_timeout
273
+ end
274
+
275
+ # Custom attribute writer method with validation
276
+ # @param [Object] sock_read_timeout Value to be assigned
277
+ def sock_read_timeout=(sock_read_timeout)
278
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
279
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
280
+ end
281
+
282
+ @sock_read_timeout = sock_read_timeout
283
+ end
284
+
185
285
  # Checks equality by comparing each attribute.
186
286
  # @param [Object] Object to be compared
187
287
  def ==(o)
@@ -197,7 +297,11 @@ module PulpFileClient
197
297
  username == o.username &&
198
298
  password == o.password &&
199
299
  download_concurrency == o.download_concurrency &&
200
- policy == o.policy
300
+ policy == o.policy &&
301
+ total_timeout == o.total_timeout &&
302
+ connect_timeout == o.connect_timeout &&
303
+ sock_connect_timeout == o.sock_connect_timeout &&
304
+ sock_read_timeout == o.sock_read_timeout
201
305
  end
202
306
 
203
307
  # @see the `==` method
@@ -209,7 +313,7 @@ module PulpFileClient
209
313
  # Calculates hash code according to all attributes.
210
314
  # @return [Integer] Hash code
211
315
  def hash
212
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy].hash
316
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout].hash
213
317
  end
214
318
 
215
319
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpFileClient
14
- VERSION = '1.4.0'
14
+ VERSION = '1.5.0'
15
15
  end
@@ -34,7 +34,7 @@ describe 'RepositoriesFileVersionsApi' do
34
34
 
35
35
  # unit tests for delete
36
36
  # Delete a repository version
37
- # Trigger an asynchronous task to delete a repositroy version.
37
+ # Trigger an asynchronous task to delete a repository version.
38
38
  # @param file_file_repository_version_href
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [AsyncOperationResponse]
@@ -90,7 +90,7 @@ describe 'RepositoriesFileVersionsApi' do
90
90
  end
91
91
 
92
92
  # unit tests for repair
93
- # Trigger an asynchronous task to repair a repositroy version.
93
+ # Trigger an asynchronous task to repair a repository version.
94
94
  # @param file_file_repository_version_href
95
95
  # @param repository_version
96
96
  # @param [Hash] opts the optional parameters
@@ -116,4 +116,28 @@ describe 'FileFileRemoteResponse' do
116
116
  end
117
117
  end
118
118
 
119
+ describe 'test attribute "total_timeout"' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
125
+ describe 'test attribute "connect_timeout"' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
+ end
129
+ end
130
+
131
+ describe 'test attribute "sock_connect_timeout"' do
132
+ it 'should work' do
133
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
134
+ end
135
+ end
136
+
137
+ describe 'test attribute "sock_read_timeout"' do
138
+ it 'should work' do
139
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
140
+ end
141
+ end
142
+
119
143
  end
@@ -98,4 +98,28 @@ describe 'FileFileRemote' do
98
98
  end
99
99
  end
100
100
 
101
+ describe 'test attribute "total_timeout"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
107
+ describe 'test attribute "connect_timeout"' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ describe 'test attribute "sock_connect_timeout"' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
119
+ describe 'test attribute "sock_read_timeout"' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
101
125
  end
@@ -98,4 +98,28 @@ describe 'PatchedfileFileRemote' do
98
98
  end
99
99
  end
100
100
 
101
+ describe 'test attribute "total_timeout"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
107
+ describe 'test attribute "connect_timeout"' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ describe 'test attribute "sock_connect_timeout"' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
119
+ describe 'test attribute "sock_read_timeout"' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
101
125
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_file_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-03 00:00:00.000000000 Z
11
+ date: 2020-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -235,47 +235,47 @@ specification_version: 4
235
235
  summary: Pulp 3 API Ruby Gem
236
236
  test_files:
237
237
  - spec/api/exporters_file_exports_api_spec.rb
238
+ - spec/api/publications_file_api_spec.rb
239
+ - spec/api/remotes_file_api_spec.rb
238
240
  - spec/api/repositories_file_versions_api_spec.rb
239
241
  - spec/api/content_files_api_spec.rb
240
- - spec/api/exporters_filesystem_api_spec.rb
241
242
  - spec/api/distributions_file_api_spec.rb
242
- - spec/api/remotes_file_api_spec.rb
243
- - spec/api/publications_file_api_spec.rb
243
+ - spec/api/exporters_filesystem_api_spec.rb
244
244
  - spec/api/repositories_file_api_spec.rb
245
245
  - spec/api_client_spec.rb
246
246
  - spec/configuration_spec.rb
247
- - spec/models/file_file_distribution_spec.rb
248
- - spec/models/paginatedfile_file_repository_response_list_spec.rb
249
- - spec/models/repository_version_spec.rb
250
- - spec/models/file_file_repository_spec.rb
251
- - spec/models/paginated_repository_version_response_list_spec.rb
252
- - spec/models/file_file_filesystem_exporter_response_spec.rb
253
- - spec/models/file_file_publication_response_spec.rb
254
247
  - spec/models/content_summary_spec.rb
255
- - spec/models/paginatedfile_file_distribution_response_list_spec.rb
256
- - spec/models/repository_sync_url_spec.rb
257
- - spec/models/paginated_export_response_list_spec.rb
258
- - spec/models/file_file_content_spec.rb
259
- - spec/models/patchedfile_file_remote_spec.rb
260
- - spec/models/policy_enum_spec.rb
261
- - spec/models/file_file_distribution_response_spec.rb
262
248
  - spec/models/file_file_remote_response_spec.rb
263
- - spec/models/export_response_spec.rb
249
+ - spec/models/patchedfile_file_filesystem_exporter_spec.rb
250
+ - spec/models/file_file_distribution_spec.rb
264
251
  - spec/models/paginatedfile_file_filesystem_exporter_response_list_spec.rb
252
+ - spec/models/paginatedfile_file_publication_response_list_spec.rb
253
+ - spec/models/paginatedfile_file_content_response_list_spec.rb
254
+ - spec/models/file_file_content_spec.rb
265
255
  - spec/models/file_file_publication_spec.rb
266
- - spec/models/content_summary_response_spec.rb
267
- - spec/models/file_file_remote_spec.rb
268
- - spec/models/repository_add_remove_content_spec.rb
269
- - spec/models/patchedfile_file_distribution_spec.rb
270
- - spec/models/patchedfile_file_repository_spec.rb
271
- - spec/models/publication_export_spec.rb
272
- - spec/models/patchedfile_file_filesystem_exporter_spec.rb
256
+ - spec/models/repository_version_spec.rb
273
257
  - spec/models/file_file_repository_response_spec.rb
274
- - spec/models/paginatedfile_file_publication_response_list_spec.rb
258
+ - spec/models/content_summary_response_spec.rb
259
+ - spec/models/paginated_export_response_list_spec.rb
260
+ - spec/models/export_response_spec.rb
275
261
  - spec/models/paginatedfile_file_remote_response_list_spec.rb
276
- - spec/models/async_operation_response_spec.rb
262
+ - spec/models/file_file_publication_response_spec.rb
263
+ - spec/models/file_file_remote_spec.rb
264
+ - spec/models/file_file_distribution_response_spec.rb
265
+ - spec/models/file_file_filesystem_exporter_response_spec.rb
277
266
  - spec/models/repository_version_response_spec.rb
278
- - spec/models/file_file_filesystem_exporter_spec.rb
267
+ - spec/models/file_file_repository_spec.rb
268
+ - spec/models/patchedfile_file_remote_spec.rb
269
+ - spec/models/repository_sync_url_spec.rb
279
270
  - spec/models/file_file_content_response_spec.rb
280
- - spec/models/paginatedfile_file_content_response_list_spec.rb
271
+ - spec/models/file_file_filesystem_exporter_spec.rb
272
+ - spec/models/patchedfile_file_distribution_spec.rb
273
+ - spec/models/async_operation_response_spec.rb
274
+ - spec/models/policy_enum_spec.rb
275
+ - spec/models/paginatedfile_file_repository_response_list_spec.rb
276
+ - spec/models/paginatedfile_file_distribution_response_list_spec.rb
277
+ - spec/models/publication_export_spec.rb
278
+ - spec/models/patchedfile_file_repository_spec.rb
279
+ - spec/models/repository_add_remove_content_spec.rb
280
+ - spec/models/paginated_repository_version_response_list_spec.rb
281
281
  - spec/spec_helper.rb