pulp_python_client 3.0.0b12 → 3.0.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: ce6a87650f609e17d26b9570bd03a9e418a0da60d5b85589f76ec5fd602b4469
4
- data.tar.gz: a5051d52fe0592516bbaafb4af2a9142ffe341a02936b2123a9d6b2e166dec96
3
+ metadata.gz: 31289cedaad9286171b2486f407530877dba030ccc984902bc5fa652ec9584aa
4
+ data.tar.gz: 27ffb409d156d1f82d6313f596d7274a14ec3605508d191a672b4a9d869ab2ef
5
5
  SHA512:
6
- metadata.gz: 103d1e4a29b2009e4a2c4df1f00ac0e9f6f3aa09760d2fb6ae18084a9a109a608d20d8f2d349796fbcb5e3934087348fe74a7a9eccee415b3a0730def1cf4fb2
7
- data.tar.gz: 1161c88f75713aff9389f23f62f34144c40ad8b2914ec9624aec66867b38e8aa76cccaa770a1dcd160d816bada1e9cca01e5ed79c3000715198a172618269351
6
+ metadata.gz: d48340e6b4f984bda6704081dd69f81b9a376823881531b887784086ad0d09a59b1ec79d299ebe80796d9bf4ae8a2cfa3a56a2d06829f516ac04f7ef067a226b
7
+ data.tar.gz: e3df2d8f88713c2de47391a4bf981757579330f43b25b1722ca7f424e0b6ad2f0e917601cc1614dbb65257630d3388ba0d924aabd8124ce9e0874f4b520fca5c
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: 3.0.0b12
10
+ - Package version: 3.0.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_python_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_python_client-3.0.0b12.gem
27
+ gem install ./pulp_python_client-3.0.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_python_client-3.0.0b12.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_python_client-3.0.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_python_client', '~> 3.0.0b12'
36
+ gem 'pulp_python_client', '~> 3.0.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 'cache_only'. '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
  **includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
19
23
  **excludes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to exclude. | [optional]
20
24
  **prereleases** | **Boolean** | Whether or not to include pre-release packages in the sync. | [optional]
@@ -35,6 +39,10 @@ instance = PulpPythonClient::PatchedpythonPythonRemote.new(name: null,
35
39
  password: null,
36
40
  download_concurrency: null,
37
41
  policy: null,
42
+ total_timeout: null,
43
+ connect_timeout: null,
44
+ sock_connect_timeout: null,
45
+ sock_read_timeout: null,
38
46
  includes: null,
39
47
  excludes: null,
40
48
  prereleases: null)
@@ -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 'cache_only'. '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
  **includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
19
23
  **excludes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to exclude. | [optional]
20
24
  **prereleases** | **Boolean** | Whether or not to include pre-release packages in the sync. | [optional]
@@ -35,6 +39,10 @@ instance = PulpPythonClient::PythonPythonRemote.new(name: null,
35
39
  password: null,
36
40
  download_concurrency: null,
37
41
  policy: null,
42
+ total_timeout: null,
43
+ connect_timeout: null,
44
+ sock_connect_timeout: null,
45
+ sock_read_timeout: null,
38
46
  includes: null,
39
47
  excludes: null,
40
48
  prereleases: null)
@@ -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 'cache_only'. '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
  **includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
22
26
  **excludes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to exclude. | [optional]
23
27
  **prereleases** | **Boolean** | Whether or not to include pre-release packages in the sync. | [optional]
@@ -41,6 +45,10 @@ instance = PulpPythonClient::PythonPythonRemoteResponse.new(pulp_href: null,
41
45
  pulp_last_updated: null,
42
46
  download_concurrency: null,
43
47
  policy: null,
48
+ total_timeout: null,
49
+ connect_timeout: null,
50
+ sock_connect_timeout: null,
51
+ sock_read_timeout: null,
44
52
  includes: null,
45
53
  excludes: null,
46
54
  prereleases: null)
@@ -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 PulpPythonClient
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 python_python_repository_version_href [String]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [AsyncOperationResponse]
@@ -30,7 +30,7 @@ module PulpPythonClient
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 python_python_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 PulpPythonClient
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 python_python_repository_version_href [String]
273
273
  # @param repository_version [RepositoryVersion]
274
274
  # @param [Hash] opts the optional parameters
@@ -278,7 +278,7 @@ module PulpPythonClient
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 python_python_repository_version_href [String]
283
283
  # @param repository_version [RepositoryVersion]
284
284
  # @param [Hash] opts the optional parameters
@@ -48,6 +48,18 @@ module PulpPythonClient
48
48
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. '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
  # A JSON list containing project specifiers for Python packages to include.
52
64
  attr_accessor :includes
53
65
 
@@ -71,6 +83,10 @@ module PulpPythonClient
71
83
  :'password' => :'password',
72
84
  :'download_concurrency' => :'download_concurrency',
73
85
  :'policy' => :'policy',
86
+ :'total_timeout' => :'total_timeout',
87
+ :'connect_timeout' => :'connect_timeout',
88
+ :'sock_connect_timeout' => :'sock_connect_timeout',
89
+ :'sock_read_timeout' => :'sock_read_timeout',
74
90
  :'includes' => :'includes',
75
91
  :'excludes' => :'excludes',
76
92
  :'prereleases' => :'prereleases'
@@ -91,6 +107,10 @@ module PulpPythonClient
91
107
  :'password' => :'String',
92
108
  :'download_concurrency' => :'Integer',
93
109
  :'policy' => :'PolicyEnum',
110
+ :'total_timeout' => :'Float',
111
+ :'connect_timeout' => :'Float',
112
+ :'sock_connect_timeout' => :'Float',
113
+ :'sock_read_timeout' => :'Float',
94
114
  :'includes' => :'Object',
95
115
  :'excludes' => :'Object',
96
116
  :'prereleases' => :'Boolean'
@@ -106,6 +126,10 @@ module PulpPythonClient
106
126
  :'proxy_url',
107
127
  :'username',
108
128
  :'password',
129
+ :'total_timeout',
130
+ :'connect_timeout',
131
+ :'sock_connect_timeout',
132
+ :'sock_read_timeout',
109
133
  ])
110
134
  end
111
135
 
@@ -168,6 +192,22 @@ module PulpPythonClient
168
192
  self.policy = attributes[:'policy']
169
193
  end
170
194
 
195
+ if attributes.key?(:'total_timeout')
196
+ self.total_timeout = attributes[:'total_timeout']
197
+ end
198
+
199
+ if attributes.key?(:'connect_timeout')
200
+ self.connect_timeout = attributes[:'connect_timeout']
201
+ end
202
+
203
+ if attributes.key?(:'sock_connect_timeout')
204
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
205
+ end
206
+
207
+ if attributes.key?(:'sock_read_timeout')
208
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
209
+ end
210
+
171
211
  if attributes.key?(:'includes')
172
212
  self.includes = attributes[:'includes']
173
213
  end
@@ -189,6 +229,22 @@ module PulpPythonClient
189
229
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
190
230
  end
191
231
 
232
+ if !@total_timeout.nil? && @total_timeout < 0.0
233
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
234
+ end
235
+
236
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
237
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
238
+ end
239
+
240
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
241
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
242
+ end
243
+
244
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
245
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
246
+ end
247
+
192
248
  invalid_properties
193
249
  end
194
250
 
@@ -196,6 +252,10 @@ module PulpPythonClient
196
252
  # @return true if the model is valid
197
253
  def valid?
198
254
  return false if !@download_concurrency.nil? && @download_concurrency < 1
255
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
256
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
257
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
258
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
199
259
  true
200
260
  end
201
261
 
@@ -209,6 +269,46 @@ module PulpPythonClient
209
269
  @download_concurrency = download_concurrency
210
270
  end
211
271
 
272
+ # Custom attribute writer method with validation
273
+ # @param [Object] total_timeout Value to be assigned
274
+ def total_timeout=(total_timeout)
275
+ if !total_timeout.nil? && total_timeout < 0.0
276
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
277
+ end
278
+
279
+ @total_timeout = total_timeout
280
+ end
281
+
282
+ # Custom attribute writer method with validation
283
+ # @param [Object] connect_timeout Value to be assigned
284
+ def connect_timeout=(connect_timeout)
285
+ if !connect_timeout.nil? && connect_timeout < 0.0
286
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
287
+ end
288
+
289
+ @connect_timeout = connect_timeout
290
+ end
291
+
292
+ # Custom attribute writer method with validation
293
+ # @param [Object] sock_connect_timeout Value to be assigned
294
+ def sock_connect_timeout=(sock_connect_timeout)
295
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
296
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
297
+ end
298
+
299
+ @sock_connect_timeout = sock_connect_timeout
300
+ end
301
+
302
+ # Custom attribute writer method with validation
303
+ # @param [Object] sock_read_timeout Value to be assigned
304
+ def sock_read_timeout=(sock_read_timeout)
305
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
306
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
307
+ end
308
+
309
+ @sock_read_timeout = sock_read_timeout
310
+ end
311
+
212
312
  # Checks equality by comparing each attribute.
213
313
  # @param [Object] Object to be compared
214
314
  def ==(o)
@@ -225,6 +325,10 @@ module PulpPythonClient
225
325
  password == o.password &&
226
326
  download_concurrency == o.download_concurrency &&
227
327
  policy == o.policy &&
328
+ total_timeout == o.total_timeout &&
329
+ connect_timeout == o.connect_timeout &&
330
+ sock_connect_timeout == o.sock_connect_timeout &&
331
+ sock_read_timeout == o.sock_read_timeout &&
228
332
  includes == o.includes &&
229
333
  excludes == o.excludes &&
230
334
  prereleases == o.prereleases
@@ -239,7 +343,7 @@ module PulpPythonClient
239
343
  # Calculates hash code according to all attributes.
240
344
  # @return [Integer] Hash code
241
345
  def hash
242
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, includes, excludes, prereleases].hash
346
+ [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, includes, excludes, prereleases].hash
243
347
  end
244
348
 
245
349
  # Builds the object from hash
@@ -48,6 +48,18 @@ module PulpPythonClient
48
48
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. '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
  # A JSON list containing project specifiers for Python packages to include.
52
64
  attr_accessor :includes
53
65
 
@@ -71,6 +83,10 @@ module PulpPythonClient
71
83
  :'password' => :'password',
72
84
  :'download_concurrency' => :'download_concurrency',
73
85
  :'policy' => :'policy',
86
+ :'total_timeout' => :'total_timeout',
87
+ :'connect_timeout' => :'connect_timeout',
88
+ :'sock_connect_timeout' => :'sock_connect_timeout',
89
+ :'sock_read_timeout' => :'sock_read_timeout',
74
90
  :'includes' => :'includes',
75
91
  :'excludes' => :'excludes',
76
92
  :'prereleases' => :'prereleases'
@@ -91,6 +107,10 @@ module PulpPythonClient
91
107
  :'password' => :'String',
92
108
  :'download_concurrency' => :'Integer',
93
109
  :'policy' => :'PolicyEnum',
110
+ :'total_timeout' => :'Float',
111
+ :'connect_timeout' => :'Float',
112
+ :'sock_connect_timeout' => :'Float',
113
+ :'sock_read_timeout' => :'Float',
94
114
  :'includes' => :'Object',
95
115
  :'excludes' => :'Object',
96
116
  :'prereleases' => :'Boolean'
@@ -106,6 +126,10 @@ module PulpPythonClient
106
126
  :'proxy_url',
107
127
  :'username',
108
128
  :'password',
129
+ :'total_timeout',
130
+ :'connect_timeout',
131
+ :'sock_connect_timeout',
132
+ :'sock_read_timeout',
109
133
  ])
110
134
  end
111
135
 
@@ -168,6 +192,22 @@ module PulpPythonClient
168
192
  self.policy = attributes[:'policy']
169
193
  end
170
194
 
195
+ if attributes.key?(:'total_timeout')
196
+ self.total_timeout = attributes[:'total_timeout']
197
+ end
198
+
199
+ if attributes.key?(:'connect_timeout')
200
+ self.connect_timeout = attributes[:'connect_timeout']
201
+ end
202
+
203
+ if attributes.key?(:'sock_connect_timeout')
204
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
205
+ end
206
+
207
+ if attributes.key?(:'sock_read_timeout')
208
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
209
+ end
210
+
171
211
  if attributes.key?(:'includes')
172
212
  self.includes = attributes[:'includes']
173
213
  end
@@ -197,6 +237,22 @@ module PulpPythonClient
197
237
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
198
238
  end
199
239
 
240
+ if !@total_timeout.nil? && @total_timeout < 0.0
241
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
242
+ end
243
+
244
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
245
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
246
+ end
247
+
248
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
249
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
250
+ end
251
+
252
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
253
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
254
+ end
255
+
200
256
  invalid_properties
201
257
  end
202
258
 
@@ -206,6 +262,10 @@ module PulpPythonClient
206
262
  return false if @name.nil?
207
263
  return false if @url.nil?
208
264
  return false if !@download_concurrency.nil? && @download_concurrency < 1
265
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
266
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
267
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
268
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
209
269
  true
210
270
  end
211
271
 
@@ -219,6 +279,46 @@ module PulpPythonClient
219
279
  @download_concurrency = download_concurrency
220
280
  end
221
281
 
282
+ # Custom attribute writer method with validation
283
+ # @param [Object] total_timeout Value to be assigned
284
+ def total_timeout=(total_timeout)
285
+ if !total_timeout.nil? && total_timeout < 0.0
286
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
287
+ end
288
+
289
+ @total_timeout = total_timeout
290
+ end
291
+
292
+ # Custom attribute writer method with validation
293
+ # @param [Object] connect_timeout Value to be assigned
294
+ def connect_timeout=(connect_timeout)
295
+ if !connect_timeout.nil? && connect_timeout < 0.0
296
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
297
+ end
298
+
299
+ @connect_timeout = connect_timeout
300
+ end
301
+
302
+ # Custom attribute writer method with validation
303
+ # @param [Object] sock_connect_timeout Value to be assigned
304
+ def sock_connect_timeout=(sock_connect_timeout)
305
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
306
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
307
+ end
308
+
309
+ @sock_connect_timeout = sock_connect_timeout
310
+ end
311
+
312
+ # Custom attribute writer method with validation
313
+ # @param [Object] sock_read_timeout Value to be assigned
314
+ def sock_read_timeout=(sock_read_timeout)
315
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
316
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
317
+ end
318
+
319
+ @sock_read_timeout = sock_read_timeout
320
+ end
321
+
222
322
  # Checks equality by comparing each attribute.
223
323
  # @param [Object] Object to be compared
224
324
  def ==(o)
@@ -235,6 +335,10 @@ module PulpPythonClient
235
335
  password == o.password &&
236
336
  download_concurrency == o.download_concurrency &&
237
337
  policy == o.policy &&
338
+ total_timeout == o.total_timeout &&
339
+ connect_timeout == o.connect_timeout &&
340
+ sock_connect_timeout == o.sock_connect_timeout &&
341
+ sock_read_timeout == o.sock_read_timeout &&
238
342
  includes == o.includes &&
239
343
  excludes == o.excludes &&
240
344
  prereleases == o.prereleases
@@ -249,7 +353,7 @@ module PulpPythonClient
249
353
  # Calculates hash code according to all attributes.
250
354
  # @return [Integer] Hash code
251
355
  def hash
252
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, includes, excludes, prereleases].hash
356
+ [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, includes, excludes, prereleases].hash
253
357
  end
254
358
 
255
359
  # Builds the object from hash
@@ -56,6 +56,18 @@ module PulpPythonClient
56
56
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. '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
  # A JSON list containing project specifiers for Python packages to include.
60
72
  attr_accessor :includes
61
73
 
@@ -82,6 +94,10 @@ module PulpPythonClient
82
94
  :'pulp_last_updated' => :'pulp_last_updated',
83
95
  :'download_concurrency' => :'download_concurrency',
84
96
  :'policy' => :'policy',
97
+ :'total_timeout' => :'total_timeout',
98
+ :'connect_timeout' => :'connect_timeout',
99
+ :'sock_connect_timeout' => :'sock_connect_timeout',
100
+ :'sock_read_timeout' => :'sock_read_timeout',
85
101
  :'includes' => :'includes',
86
102
  :'excludes' => :'excludes',
87
103
  :'prereleases' => :'prereleases'
@@ -105,6 +121,10 @@ module PulpPythonClient
105
121
  :'pulp_last_updated' => :'DateTime',
106
122
  :'download_concurrency' => :'Integer',
107
123
  :'policy' => :'PolicyEnum',
124
+ :'total_timeout' => :'Float',
125
+ :'connect_timeout' => :'Float',
126
+ :'sock_connect_timeout' => :'Float',
127
+ :'sock_read_timeout' => :'Float',
108
128
  :'includes' => :'Object',
109
129
  :'excludes' => :'Object',
110
130
  :'prereleases' => :'Boolean'
@@ -120,6 +140,10 @@ module PulpPythonClient
120
140
  :'proxy_url',
121
141
  :'username',
122
142
  :'password',
143
+ :'total_timeout',
144
+ :'connect_timeout',
145
+ :'sock_connect_timeout',
146
+ :'sock_read_timeout',
123
147
  ])
124
148
  end
125
149
 
@@ -194,6 +218,22 @@ module PulpPythonClient
194
218
  self.policy = attributes[:'policy']
195
219
  end
196
220
 
221
+ if attributes.key?(:'total_timeout')
222
+ self.total_timeout = attributes[:'total_timeout']
223
+ end
224
+
225
+ if attributes.key?(:'connect_timeout')
226
+ self.connect_timeout = attributes[:'connect_timeout']
227
+ end
228
+
229
+ if attributes.key?(:'sock_connect_timeout')
230
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
231
+ end
232
+
233
+ if attributes.key?(:'sock_read_timeout')
234
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
235
+ end
236
+
197
237
  if attributes.key?(:'includes')
198
238
  self.includes = attributes[:'includes']
199
239
  end
@@ -223,6 +263,22 @@ module PulpPythonClient
223
263
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
224
264
  end
225
265
 
266
+ if !@total_timeout.nil? && @total_timeout < 0.0
267
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
268
+ end
269
+
270
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
271
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
272
+ end
273
+
274
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
275
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
276
+ end
277
+
278
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
279
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
280
+ end
281
+
226
282
  invalid_properties
227
283
  end
228
284
 
@@ -232,6 +288,10 @@ module PulpPythonClient
232
288
  return false if @name.nil?
233
289
  return false if @url.nil?
234
290
  return false if !@download_concurrency.nil? && @download_concurrency < 1
291
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
292
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
293
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
294
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
235
295
  true
236
296
  end
237
297
 
@@ -245,6 +305,46 @@ module PulpPythonClient
245
305
  @download_concurrency = download_concurrency
246
306
  end
247
307
 
308
+ # Custom attribute writer method with validation
309
+ # @param [Object] total_timeout Value to be assigned
310
+ def total_timeout=(total_timeout)
311
+ if !total_timeout.nil? && total_timeout < 0.0
312
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
313
+ end
314
+
315
+ @total_timeout = total_timeout
316
+ end
317
+
318
+ # Custom attribute writer method with validation
319
+ # @param [Object] connect_timeout Value to be assigned
320
+ def connect_timeout=(connect_timeout)
321
+ if !connect_timeout.nil? && connect_timeout < 0.0
322
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
323
+ end
324
+
325
+ @connect_timeout = connect_timeout
326
+ end
327
+
328
+ # Custom attribute writer method with validation
329
+ # @param [Object] sock_connect_timeout Value to be assigned
330
+ def sock_connect_timeout=(sock_connect_timeout)
331
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
332
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
333
+ end
334
+
335
+ @sock_connect_timeout = sock_connect_timeout
336
+ end
337
+
338
+ # Custom attribute writer method with validation
339
+ # @param [Object] sock_read_timeout Value to be assigned
340
+ def sock_read_timeout=(sock_read_timeout)
341
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
342
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
343
+ end
344
+
345
+ @sock_read_timeout = sock_read_timeout
346
+ end
347
+
248
348
  # Checks equality by comparing each attribute.
249
349
  # @param [Object] Object to be compared
250
350
  def ==(o)
@@ -264,6 +364,10 @@ module PulpPythonClient
264
364
  pulp_last_updated == o.pulp_last_updated &&
265
365
  download_concurrency == o.download_concurrency &&
266
366
  policy == o.policy &&
367
+ total_timeout == o.total_timeout &&
368
+ connect_timeout == o.connect_timeout &&
369
+ sock_connect_timeout == o.sock_connect_timeout &&
370
+ sock_read_timeout == o.sock_read_timeout &&
267
371
  includes == o.includes &&
268
372
  excludes == o.excludes &&
269
373
  prereleases == o.prereleases
@@ -278,7 +382,7 @@ module PulpPythonClient
278
382
  # Calculates hash code according to all attributes.
279
383
  # @return [Integer] Hash code
280
384
  def hash
281
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, includes, excludes, prereleases].hash
385
+ [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, includes, excludes, prereleases].hash
282
386
  end
283
387
 
284
388
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpPythonClient
14
- VERSION = '3.0.0b12'
14
+ VERSION = '3.0.0'
15
15
  end
@@ -34,7 +34,7 @@ describe 'RepositoriesPythonVersionsApi' 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 python_python_repository_version_href
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [AsyncOperationResponse]
@@ -90,7 +90,7 @@ describe 'RepositoriesPythonVersionsApi' 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 python_python_repository_version_href
95
95
  # @param repository_version
96
96
  # @param [Hash] opts the optional parameters
@@ -98,6 +98,30 @@ describe 'PatchedpythonPythonRemote' 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
  describe 'test attribute "includes"' do
102
126
  it 'should work' do
103
127
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -116,6 +116,30 @@ describe 'PythonPythonRemoteResponse' 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
  describe 'test attribute "includes"' do
120
144
  it 'should work' do
121
145
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -98,6 +98,30 @@ describe 'PythonPythonRemote' 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
  describe 'test attribute "includes"' do
102
126
  it 'should work' do
103
127
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_python_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0b12
4
+ version: 3.0.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-11-05 00:00:00.000000000 Z
11
+ date: 2021-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -201,49 +201,49 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
201
  version: '1.9'
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  requirements:
204
- - - ">"
204
+ - - ">="
205
205
  - !ruby/object:Gem::Version
206
- version: 1.3.1
206
+ version: '0'
207
207
  requirements: []
208
- rubygems_version: 3.0.6
208
+ rubygems_version: 3.0.3
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: Pulp 3 API Ruby Gem
212
212
  test_files:
213
- - spec/api/distributions_pypi_api_spec.rb
214
- - spec/api/content_packages_api_spec.rb
215
- - spec/api/publications_pypi_api_spec.rb
216
- - spec/api/repositories_python_versions_api_spec.rb
217
213
  - spec/api/repositories_python_api_spec.rb
214
+ - spec/api/publications_pypi_api_spec.rb
218
215
  - spec/api/remotes_python_api_spec.rb
216
+ - spec/api/distributions_pypi_api_spec.rb
217
+ - spec/api/repositories_python_versions_api_spec.rb
218
+ - spec/api/content_packages_api_spec.rb
219
219
  - spec/api_client_spec.rb
220
220
  - spec/configuration_spec.rb
221
- - spec/models/paginatedpython_python_publication_response_list_spec.rb
222
- - spec/models/content_summary_response_spec.rb
223
- - spec/models/paginated_repository_version_response_list_spec.rb
224
- - spec/models/repository_add_remove_content_spec.rb
225
- - spec/models/python_python_distribution_spec.rb
226
- - spec/models/python_python_repository_response_spec.rb
221
+ - spec/models/python_bander_remote_spec.rb
222
+ - spec/models/python_python_remote_spec.rb
223
+ - spec/models/content_summary_spec.rb
224
+ - spec/models/paginatedpython_python_distribution_response_list_spec.rb
227
225
  - spec/models/patchedpython_python_distribution_spec.rb
226
+ - spec/models/python_python_publication_spec.rb
227
+ - spec/models/repository_version_spec.rb
228
+ - spec/models/python_python_repository_spec.rb
229
+ - spec/models/content_summary_response_spec.rb
228
230
  - spec/models/python_python_package_content_spec.rb
231
+ - spec/models/repository_version_response_spec.rb
232
+ - spec/models/patchedpython_python_repository_spec.rb
233
+ - spec/models/repository_sync_url_spec.rb
229
234
  - spec/models/python_python_package_content_response_spec.rb
230
- - spec/models/python_python_remote_spec.rb
235
+ - spec/models/python_python_distribution_spec.rb
236
+ - spec/models/paginatedpython_python_publication_response_list_spec.rb
231
237
  - spec/models/async_operation_response_spec.rb
232
238
  - spec/models/policy_enum_spec.rb
233
239
  - spec/models/paginatedpython_python_repository_response_list_spec.rb
234
- - spec/models/content_summary_spec.rb
235
- - spec/models/python_bander_remote_spec.rb
236
240
  - spec/models/python_python_publication_response_spec.rb
237
- - spec/models/repository_version_spec.rb
238
- - spec/models/paginatedpython_python_distribution_response_list_spec.rb
239
- - spec/models/python_python_distribution_response_spec.rb
241
+ - spec/models/paginatedpython_python_package_content_response_list_spec.rb
240
242
  - spec/models/paginatedpython_python_remote_response_list_spec.rb
241
- - spec/models/python_python_publication_spec.rb
242
243
  - spec/models/patchedpython_python_remote_spec.rb
243
- - spec/models/repository_version_response_spec.rb
244
- - spec/models/patchedpython_python_repository_spec.rb
244
+ - spec/models/python_python_distribution_response_spec.rb
245
+ - spec/models/repository_add_remove_content_spec.rb
246
+ - spec/models/paginated_repository_version_response_list_spec.rb
245
247
  - spec/models/python_python_remote_response_spec.rb
246
- - spec/models/python_python_repository_spec.rb
247
- - spec/models/paginatedpython_python_package_content_response_list_spec.rb
248
- - spec/models/repository_sync_url_spec.rb
248
+ - spec/models/python_python_repository_response_spec.rb
249
249
  - spec/spec_helper.rb