pulp_python_client 3.1.0.dev01614223979 → 3.2.0.dev1615953038

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_python_client might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b0429a152690cffc7046404e94a91d2df674407bf7b785c296be8ea5d8024f3
4
- data.tar.gz: d7af8b13ecfdc22599148954e84b55e4c47d6c657dc2ec5c1cef377e93a0914f
3
+ metadata.gz: c96e27176c3ca6c1c055c3a73ce1c6415f687665d6c8c1e0925661b425c14861
4
+ data.tar.gz: cf3b4b78930fd6ef7d0ac47f6297faf8e65ca20a9c5e3ea379291b6f7cc465ae
5
5
  SHA512:
6
- metadata.gz: 6122b39dabc06db04224ace34856073e65cb48c116b9bbba8a355249979d2604cf6ecb23e480a44088af69a2dfc7f281711a63f2cb39bfc30ab9cfdfe5e057cc
7
- data.tar.gz: 3d90c73076b177dc08045024081e8e2f7ffeb211cfc7227d91f0b759c46d6ead377e86dcb7d033ddd58481dc488d3c59c656d4ad2b9aee193b1655dae7770bcc
6
+ metadata.gz: 6054ba1ee7a8a03c859fe394e9657b62294d3f487a89248ee2873f70485376a1a3d4ed21ee372617b22f36fd63ea224144cd8c379bd9932b740afae26a10934e
7
+ data.tar.gz: 2ce8bdd839e40c1d68c6b5201c5560aeeb4aef9e26b4d90863eb41e6a39f144b446341a45393cee8aff837c7a990fa331618f8d18149b47674a0e227ae01ef47
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.1.0.dev01614223979
10
+ - Package version: 3.2.0.dev1615953038
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.1.0.dev01614223979.gem
27
+ gem install ./pulp_python_client-3.2.0.dev1615953038.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_python_client-3.1.0.dev01614223979.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_python_client-3.2.0.dev1615953038.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.1.0.dev01614223979'
36
+ gem 'pulp_python_client', '~> 3.2.0.dev1615953038'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **added** | [**Object**](.md) | |
8
- **removed** | [**Object**](.md) | |
9
- **present** | [**Object**](.md) | |
7
+ **added** | **Hash<String, Object>** | |
8
+ **removed** | **Hash<String, Object>** | |
9
+ **present** | **Hash<String, Object>** | |
10
10
 
11
11
  ## Code Sample
12
12
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **added** | [**Object**](.md) | |
8
- **removed** | [**Object**](.md) | |
9
- **present** | [**Object**](.md) | |
7
+ **added** | **Hash<String, Object>** | |
8
+ **removed** | **Hash<String, Object>** | |
9
+ **present** | **Hash<String, Object>** | |
10
10
 
11
11
  ## Code Sample
12
12
 
@@ -10,7 +10,9 @@ Name | Type | Description | Notes
10
10
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
11
11
  **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
12
12
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
13
- **proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
13
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
14
+ **proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
15
+ **proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
14
16
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
15
17
  **password** | **String** | The password to be used for authentication when syncing. | [optional]
16
18
  **pulp_labels** | [**Object**](.md) | | [optional]
@@ -20,6 +22,7 @@ Name | Type | Description | Notes
20
22
  **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
21
23
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
22
24
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
25
+ **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
23
26
  **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
24
27
  **includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
25
28
  **excludes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to exclude. | [optional]
@@ -37,6 +40,8 @@ instance = PulpPythonClient::PatchedpythonPythonRemote.new(name: null,
37
40
  client_key: null,
38
41
  tls_validation: null,
39
42
  proxy_url: null,
43
+ proxy_username: null,
44
+ proxy_password: null,
40
45
  username: null,
41
46
  password: null,
42
47
  pulp_labels: null,
@@ -46,6 +51,7 @@ instance = PulpPythonClient::PatchedpythonPythonRemote.new(name: null,
46
51
  connect_timeout: null,
47
52
  sock_connect_timeout: null,
48
53
  sock_read_timeout: null,
54
+ headers: null,
49
55
  rate_limit: null,
50
56
  includes: null,
51
57
  excludes: null,
@@ -10,7 +10,9 @@ Name | Type | Description | Notes
10
10
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
11
11
  **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
12
12
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
13
- **proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
13
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
14
+ **proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
15
+ **proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
14
16
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
15
17
  **password** | **String** | The password to be used for authentication when syncing. | [optional]
16
18
  **pulp_labels** | [**Object**](.md) | | [optional]
@@ -20,6 +22,7 @@ Name | Type | Description | Notes
20
22
  **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
21
23
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
22
24
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
25
+ **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
23
26
  **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
24
27
  **includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
25
28
  **excludes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to exclude. | [optional]
@@ -37,6 +40,8 @@ instance = PulpPythonClient::PythonPythonRemote.new(name: null,
37
40
  client_key: null,
38
41
  tls_validation: null,
39
42
  proxy_url: null,
43
+ proxy_username: null,
44
+ proxy_password: null,
40
45
  username: null,
41
46
  password: null,
42
47
  pulp_labels: null,
@@ -46,6 +51,7 @@ instance = PulpPythonClient::PythonPythonRemote.new(name: null,
46
51
  connect_timeout: null,
47
52
  sock_connect_timeout: null,
48
53
  sock_read_timeout: null,
54
+ headers: null,
49
55
  rate_limit: null,
50
56
  includes: null,
51
57
  excludes: null,
@@ -10,11 +10,8 @@ Name | Type | Description | Notes
10
10
  **url** | **String** | The URL of an external content source. |
11
11
  **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
12
12
  **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
13
- **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
14
13
  **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
15
- **proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
16
- **username** | **String** | The username to be used for authentication when syncing. | [optional]
17
- **password** | **String** | The password to be used for authentication when syncing. | [optional]
14
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
18
15
  **pulp_labels** | [**Object**](.md) | | [optional]
19
16
  **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
20
17
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
@@ -23,6 +20,7 @@ Name | Type | Description | Notes
23
20
  **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
24
21
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
25
22
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
23
+ **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
26
24
  **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
27
25
  **includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
28
26
  **excludes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to exclude. | [optional]
@@ -39,11 +37,8 @@ instance = PulpPythonClient::PythonPythonRemoteResponse.new(pulp_href: null,
39
37
  url: null,
40
38
  ca_cert: null,
41
39
  client_cert: null,
42
- client_key: null,
43
40
  tls_validation: null,
44
41
  proxy_url: null,
45
- username: null,
46
- password: null,
47
42
  pulp_labels: null,
48
43
  pulp_last_updated: null,
49
44
  download_concurrency: null,
@@ -52,6 +47,7 @@ instance = PulpPythonClient::PythonPythonRemoteResponse.new(pulp_href: null,
52
47
  connect_timeout: null,
53
48
  sock_connect_timeout: null,
54
49
  sock_read_timeout: null,
50
+ headers: null,
55
51
  rate_limit: null,
56
52
  includes: null,
57
53
  excludes: null,
@@ -215,10 +215,6 @@ module PulpPythonClient
215
215
  if @api_client.config.client_side_validation && opts[:'packagetype'] && !allowable_values.include?(opts[:'packagetype'])
216
216
  fail ArgumentError, "invalid value for \"packagetype\", must be one of #{allowable_values}"
217
217
  end
218
- allowable_values = ["bdist_dmg", "bdist_dumb", "bdist_egg", "bdist_msi", "bdist_rpm", "bdist_wheel", "bdist_wininst", "sdist"]
219
- if @api_client.config.client_side_validation && opts[:'packagetype__in'] && !opts[:'packagetype__in'].all? { |item| allowable_values.include?(item) }
220
- fail ArgumentError, "invalid value for \"packagetype__in\", must include one of #{allowable_values}"
221
- end
222
218
  # resource path
223
219
  local_var_path = '/pulp/api/v3/content/python/packages/'
224
220
 
@@ -142,26 +142,6 @@ module PulpPythonClient
142
142
  if @api_client.config.client_side_validation && python_python_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonVersionsApi.list"
144
144
  end
145
- if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
146
- fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesPythonVersionsApi.list, must be smaller than or equal to 2147483647.'
147
- end
148
-
149
- if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
150
- fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesPythonVersionsApi.list, must be smaller than or equal to 2147483647.'
151
- end
152
-
153
- if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
154
- fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesPythonVersionsApi.list, must be smaller than or equal to 2147483647.'
155
- end
156
-
157
- if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
158
- fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesPythonVersionsApi.list, must be smaller than or equal to 2147483647.'
159
- end
160
-
161
- if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
162
- fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesPythonVersionsApi.list, must be smaller than or equal to 2147483647.'
163
- end
164
-
165
145
  # resource path
166
146
  local_var_path = '{python_python_repository_href}versions/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_repository_href.to_s).gsub('%2F', '/'))
167
147
 
@@ -33,9 +33,9 @@ module PulpPythonClient
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'added' => :'Object',
37
- :'removed' => :'Object',
38
- :'present' => :'Object'
36
+ :'added' => :'Hash<String, Object>',
37
+ :'removed' => :'Hash<String, Object>',
38
+ :'present' => :'Hash<String, Object>'
39
39
  }
40
40
  end
41
41
 
@@ -61,15 +61,21 @@ module PulpPythonClient
61
61
  }
62
62
 
63
63
  if attributes.key?(:'added')
64
- self.added = attributes[:'added']
64
+ if (value = attributes[:'added']).is_a?(Hash)
65
+ self.added = value
66
+ end
65
67
  end
66
68
 
67
69
  if attributes.key?(:'removed')
68
- self.removed = attributes[:'removed']
70
+ if (value = attributes[:'removed']).is_a?(Hash)
71
+ self.removed = value
72
+ end
69
73
  end
70
74
 
71
75
  if attributes.key?(:'present')
72
- self.present = attributes[:'present']
76
+ if (value = attributes[:'present']).is_a?(Hash)
77
+ self.present = value
78
+ end
73
79
  end
74
80
  end
75
81
 
@@ -33,9 +33,9 @@ module PulpPythonClient
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'added' => :'Object',
37
- :'removed' => :'Object',
38
- :'present' => :'Object'
36
+ :'added' => :'Hash<String, Object>',
37
+ :'removed' => :'Hash<String, Object>',
38
+ :'present' => :'Hash<String, Object>'
39
39
  }
40
40
  end
41
41
 
@@ -61,15 +61,21 @@ module PulpPythonClient
61
61
  }
62
62
 
63
63
  if attributes.key?(:'added')
64
- self.added = attributes[:'added']
64
+ if (value = attributes[:'added']).is_a?(Hash)
65
+ self.added = value
66
+ end
65
67
  end
66
68
 
67
69
  if attributes.key?(:'removed')
68
- self.removed = attributes[:'removed']
70
+ if (value = attributes[:'removed']).is_a?(Hash)
71
+ self.removed = value
72
+ end
69
73
  end
70
74
 
71
75
  if attributes.key?(:'present')
72
- self.present = attributes[:'present']
76
+ if (value = attributes[:'present']).is_a?(Hash)
77
+ self.present = value
78
+ end
73
79
  end
74
80
  end
75
81
 
@@ -33,9 +33,15 @@ module PulpPythonClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
@@ -62,6 +68,9 @@ module PulpPythonClient
62
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
69
  attr_accessor :sock_read_timeout
64
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
65
74
  # Limits total download rate in requests per second
66
75
  attr_accessor :rate_limit
67
76
 
@@ -84,6 +93,8 @@ module PulpPythonClient
84
93
  :'client_key' => :'client_key',
85
94
  :'tls_validation' => :'tls_validation',
86
95
  :'proxy_url' => :'proxy_url',
96
+ :'proxy_username' => :'proxy_username',
97
+ :'proxy_password' => :'proxy_password',
87
98
  :'username' => :'username',
88
99
  :'password' => :'password',
89
100
  :'pulp_labels' => :'pulp_labels',
@@ -93,6 +104,7 @@ module PulpPythonClient
93
104
  :'connect_timeout' => :'connect_timeout',
94
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
95
106
  :'sock_read_timeout' => :'sock_read_timeout',
107
+ :'headers' => :'headers',
96
108
  :'rate_limit' => :'rate_limit',
97
109
  :'includes' => :'includes',
98
110
  :'excludes' => :'excludes',
@@ -110,6 +122,8 @@ module PulpPythonClient
110
122
  :'client_key' => :'String',
111
123
  :'tls_validation' => :'Boolean',
112
124
  :'proxy_url' => :'String',
125
+ :'proxy_username' => :'String',
126
+ :'proxy_password' => :'String',
113
127
  :'username' => :'String',
114
128
  :'password' => :'String',
115
129
  :'pulp_labels' => :'Object',
@@ -119,6 +133,7 @@ module PulpPythonClient
119
133
  :'connect_timeout' => :'Float',
120
134
  :'sock_connect_timeout' => :'Float',
121
135
  :'sock_read_timeout' => :'Float',
136
+ :'headers' => :'Array<Object>',
122
137
  :'rate_limit' => :'Integer',
123
138
  :'includes' => :'Object',
124
139
  :'excludes' => :'Object',
@@ -133,6 +148,8 @@ module PulpPythonClient
133
148
  :'client_cert',
134
149
  :'client_key',
135
150
  :'proxy_url',
151
+ :'proxy_username',
152
+ :'proxy_password',
136
153
  :'username',
137
154
  :'password',
138
155
  :'total_timeout',
@@ -186,6 +203,14 @@ module PulpPythonClient
186
203
  self.proxy_url = attributes[:'proxy_url']
187
204
  end
188
205
 
206
+ if attributes.key?(:'proxy_username')
207
+ self.proxy_username = attributes[:'proxy_username']
208
+ end
209
+
210
+ if attributes.key?(:'proxy_password')
211
+ self.proxy_password = attributes[:'proxy_password']
212
+ end
213
+
189
214
  if attributes.key?(:'username')
190
215
  self.username = attributes[:'username']
191
216
  end
@@ -222,6 +247,12 @@ module PulpPythonClient
222
247
  self.sock_read_timeout = attributes[:'sock_read_timeout']
223
248
  end
224
249
 
250
+ if attributes.key?(:'headers')
251
+ if (value = attributes[:'headers']).is_a?(Array)
252
+ self.headers = value
253
+ end
254
+ end
255
+
225
256
  if attributes.key?(:'rate_limit')
226
257
  self.rate_limit = attributes[:'rate_limit']
227
258
  end
@@ -339,6 +370,8 @@ module PulpPythonClient
339
370
  client_key == o.client_key &&
340
371
  tls_validation == o.tls_validation &&
341
372
  proxy_url == o.proxy_url &&
373
+ proxy_username == o.proxy_username &&
374
+ proxy_password == o.proxy_password &&
342
375
  username == o.username &&
343
376
  password == o.password &&
344
377
  pulp_labels == o.pulp_labels &&
@@ -348,6 +381,7 @@ module PulpPythonClient
348
381
  connect_timeout == o.connect_timeout &&
349
382
  sock_connect_timeout == o.sock_connect_timeout &&
350
383
  sock_read_timeout == o.sock_read_timeout &&
384
+ headers == o.headers &&
351
385
  rate_limit == o.rate_limit &&
352
386
  includes == o.includes &&
353
387
  excludes == o.excludes &&
@@ -363,7 +397,7 @@ module PulpPythonClient
363
397
  # Calculates hash code according to all attributes.
364
398
  # @return [Integer] Hash code
365
399
  def hash
366
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, includes, excludes, prereleases].hash
400
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases].hash
367
401
  end
368
402
 
369
403
  # Builds the object from hash
@@ -33,9 +33,15 @@ module PulpPythonClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
@@ -62,6 +68,9 @@ module PulpPythonClient
62
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
69
  attr_accessor :sock_read_timeout
64
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
65
74
  # Limits total download rate in requests per second
66
75
  attr_accessor :rate_limit
67
76
 
@@ -84,6 +93,8 @@ module PulpPythonClient
84
93
  :'client_key' => :'client_key',
85
94
  :'tls_validation' => :'tls_validation',
86
95
  :'proxy_url' => :'proxy_url',
96
+ :'proxy_username' => :'proxy_username',
97
+ :'proxy_password' => :'proxy_password',
87
98
  :'username' => :'username',
88
99
  :'password' => :'password',
89
100
  :'pulp_labels' => :'pulp_labels',
@@ -93,6 +104,7 @@ module PulpPythonClient
93
104
  :'connect_timeout' => :'connect_timeout',
94
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
95
106
  :'sock_read_timeout' => :'sock_read_timeout',
107
+ :'headers' => :'headers',
96
108
  :'rate_limit' => :'rate_limit',
97
109
  :'includes' => :'includes',
98
110
  :'excludes' => :'excludes',
@@ -110,6 +122,8 @@ module PulpPythonClient
110
122
  :'client_key' => :'String',
111
123
  :'tls_validation' => :'Boolean',
112
124
  :'proxy_url' => :'String',
125
+ :'proxy_username' => :'String',
126
+ :'proxy_password' => :'String',
113
127
  :'username' => :'String',
114
128
  :'password' => :'String',
115
129
  :'pulp_labels' => :'Object',
@@ -119,6 +133,7 @@ module PulpPythonClient
119
133
  :'connect_timeout' => :'Float',
120
134
  :'sock_connect_timeout' => :'Float',
121
135
  :'sock_read_timeout' => :'Float',
136
+ :'headers' => :'Array<Object>',
122
137
  :'rate_limit' => :'Integer',
123
138
  :'includes' => :'Object',
124
139
  :'excludes' => :'Object',
@@ -133,6 +148,8 @@ module PulpPythonClient
133
148
  :'client_cert',
134
149
  :'client_key',
135
150
  :'proxy_url',
151
+ :'proxy_username',
152
+ :'proxy_password',
136
153
  :'username',
137
154
  :'password',
138
155
  :'total_timeout',
@@ -186,6 +203,14 @@ module PulpPythonClient
186
203
  self.proxy_url = attributes[:'proxy_url']
187
204
  end
188
205
 
206
+ if attributes.key?(:'proxy_username')
207
+ self.proxy_username = attributes[:'proxy_username']
208
+ end
209
+
210
+ if attributes.key?(:'proxy_password')
211
+ self.proxy_password = attributes[:'proxy_password']
212
+ end
213
+
189
214
  if attributes.key?(:'username')
190
215
  self.username = attributes[:'username']
191
216
  end
@@ -222,6 +247,12 @@ module PulpPythonClient
222
247
  self.sock_read_timeout = attributes[:'sock_read_timeout']
223
248
  end
224
249
 
250
+ if attributes.key?(:'headers')
251
+ if (value = attributes[:'headers']).is_a?(Array)
252
+ self.headers = value
253
+ end
254
+ end
255
+
225
256
  if attributes.key?(:'rate_limit')
226
257
  self.rate_limit = attributes[:'rate_limit']
227
258
  end
@@ -349,6 +380,8 @@ module PulpPythonClient
349
380
  client_key == o.client_key &&
350
381
  tls_validation == o.tls_validation &&
351
382
  proxy_url == o.proxy_url &&
383
+ proxy_username == o.proxy_username &&
384
+ proxy_password == o.proxy_password &&
352
385
  username == o.username &&
353
386
  password == o.password &&
354
387
  pulp_labels == o.pulp_labels &&
@@ -358,6 +391,7 @@ module PulpPythonClient
358
391
  connect_timeout == o.connect_timeout &&
359
392
  sock_connect_timeout == o.sock_connect_timeout &&
360
393
  sock_read_timeout == o.sock_read_timeout &&
394
+ headers == o.headers &&
361
395
  rate_limit == o.rate_limit &&
362
396
  includes == o.includes &&
363
397
  excludes == o.excludes &&
@@ -373,7 +407,7 @@ module PulpPythonClient
373
407
  # Calculates hash code according to all attributes.
374
408
  # @return [Integer] Hash code
375
409
  def hash
376
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, includes, excludes, prereleases].hash
410
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases].hash
377
411
  end
378
412
 
379
413
  # Builds the object from hash
@@ -32,21 +32,12 @@ module PulpPythonClient
32
32
  # A PEM encoded client certificate used for authentication.
33
33
  attr_accessor :client_cert
34
34
 
35
- # A PEM encoded private key used for authentication.
36
- attr_accessor :client_key
37
-
38
35
  # If True, TLS peer validation must be performed.
39
36
  attr_accessor :tls_validation
40
37
 
41
- # The proxy URL. Format: scheme://user:password@host:port
38
+ # The proxy URL. Format: scheme://host:port
42
39
  attr_accessor :proxy_url
43
40
 
44
- # The username to be used for authentication when syncing.
45
- attr_accessor :username
46
-
47
- # The password to be used for authentication when syncing.
48
- attr_accessor :password
49
-
50
41
  attr_accessor :pulp_labels
51
42
 
52
43
  # Timestamp of the most recent update of the remote.
@@ -70,6 +61,9 @@ module PulpPythonClient
70
61
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
71
62
  attr_accessor :sock_read_timeout
72
63
 
64
+ # Headers for aiohttp.Clientsession
65
+ attr_accessor :headers
66
+
73
67
  # Limits total download rate in requests per second
74
68
  attr_accessor :rate_limit
75
69
 
@@ -91,11 +85,8 @@ module PulpPythonClient
91
85
  :'url' => :'url',
92
86
  :'ca_cert' => :'ca_cert',
93
87
  :'client_cert' => :'client_cert',
94
- :'client_key' => :'client_key',
95
88
  :'tls_validation' => :'tls_validation',
96
89
  :'proxy_url' => :'proxy_url',
97
- :'username' => :'username',
98
- :'password' => :'password',
99
90
  :'pulp_labels' => :'pulp_labels',
100
91
  :'pulp_last_updated' => :'pulp_last_updated',
101
92
  :'download_concurrency' => :'download_concurrency',
@@ -104,6 +95,7 @@ module PulpPythonClient
104
95
  :'connect_timeout' => :'connect_timeout',
105
96
  :'sock_connect_timeout' => :'sock_connect_timeout',
106
97
  :'sock_read_timeout' => :'sock_read_timeout',
98
+ :'headers' => :'headers',
107
99
  :'rate_limit' => :'rate_limit',
108
100
  :'includes' => :'includes',
109
101
  :'excludes' => :'excludes',
@@ -120,11 +112,8 @@ module PulpPythonClient
120
112
  :'url' => :'String',
121
113
  :'ca_cert' => :'String',
122
114
  :'client_cert' => :'String',
123
- :'client_key' => :'String',
124
115
  :'tls_validation' => :'Boolean',
125
116
  :'proxy_url' => :'String',
126
- :'username' => :'String',
127
- :'password' => :'String',
128
117
  :'pulp_labels' => :'Object',
129
118
  :'pulp_last_updated' => :'DateTime',
130
119
  :'download_concurrency' => :'Integer',
@@ -133,6 +122,7 @@ module PulpPythonClient
133
122
  :'connect_timeout' => :'Float',
134
123
  :'sock_connect_timeout' => :'Float',
135
124
  :'sock_read_timeout' => :'Float',
125
+ :'headers' => :'Array<Object>',
136
126
  :'rate_limit' => :'Integer',
137
127
  :'includes' => :'Object',
138
128
  :'excludes' => :'Object',
@@ -145,10 +135,7 @@ module PulpPythonClient
145
135
  Set.new([
146
136
  :'ca_cert',
147
137
  :'client_cert',
148
- :'client_key',
149
138
  :'proxy_url',
150
- :'username',
151
- :'password',
152
139
  :'total_timeout',
153
140
  :'connect_timeout',
154
141
  :'sock_connect_timeout',
@@ -196,10 +183,6 @@ module PulpPythonClient
196
183
  self.client_cert = attributes[:'client_cert']
197
184
  end
198
185
 
199
- if attributes.key?(:'client_key')
200
- self.client_key = attributes[:'client_key']
201
- end
202
-
203
186
  if attributes.key?(:'tls_validation')
204
187
  self.tls_validation = attributes[:'tls_validation']
205
188
  end
@@ -208,14 +191,6 @@ module PulpPythonClient
208
191
  self.proxy_url = attributes[:'proxy_url']
209
192
  end
210
193
 
211
- if attributes.key?(:'username')
212
- self.username = attributes[:'username']
213
- end
214
-
215
- if attributes.key?(:'password')
216
- self.password = attributes[:'password']
217
- end
218
-
219
194
  if attributes.key?(:'pulp_labels')
220
195
  self.pulp_labels = attributes[:'pulp_labels']
221
196
  end
@@ -248,6 +223,12 @@ module PulpPythonClient
248
223
  self.sock_read_timeout = attributes[:'sock_read_timeout']
249
224
  end
250
225
 
226
+ if attributes.key?(:'headers')
227
+ if (value = attributes[:'headers']).is_a?(Array)
228
+ self.headers = value
229
+ end
230
+ end
231
+
251
232
  if attributes.key?(:'rate_limit')
252
233
  self.rate_limit = attributes[:'rate_limit']
253
234
  end
@@ -374,11 +355,8 @@ module PulpPythonClient
374
355
  url == o.url &&
375
356
  ca_cert == o.ca_cert &&
376
357
  client_cert == o.client_cert &&
377
- client_key == o.client_key &&
378
358
  tls_validation == o.tls_validation &&
379
359
  proxy_url == o.proxy_url &&
380
- username == o.username &&
381
- password == o.password &&
382
360
  pulp_labels == o.pulp_labels &&
383
361
  pulp_last_updated == o.pulp_last_updated &&
384
362
  download_concurrency == o.download_concurrency &&
@@ -387,6 +365,7 @@ module PulpPythonClient
387
365
  connect_timeout == o.connect_timeout &&
388
366
  sock_connect_timeout == o.sock_connect_timeout &&
389
367
  sock_read_timeout == o.sock_read_timeout &&
368
+ headers == o.headers &&
390
369
  rate_limit == o.rate_limit &&
391
370
  includes == o.includes &&
392
371
  excludes == o.excludes &&
@@ -402,7 +381,7 @@ module PulpPythonClient
402
381
  # Calculates hash code according to all attributes.
403
382
  # @return [Integer] Hash code
404
383
  def hash
405
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, includes, excludes, prereleases].hash
384
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases].hash
406
385
  end
407
386
 
408
387
  # 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.1.0.dev01614223979'
14
+ VERSION = '3.2.0.dev1615953038'
15
15
  end
@@ -74,6 +74,18 @@ describe 'PatchedpythonPythonRemote' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "proxy_username"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "proxy_password"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
77
89
  describe 'test attribute "username"' do
78
90
  it 'should work' do
79
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -128,6 +140,12 @@ describe 'PatchedpythonPythonRemote' do
128
140
  end
129
141
  end
130
142
 
143
+ describe 'test attribute "headers"' do
144
+ it 'should work' do
145
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
146
+ end
147
+ end
148
+
131
149
  describe 'test attribute "rate_limit"' do
132
150
  it 'should work' do
133
151
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -68,12 +68,6 @@ describe 'PythonPythonRemoteResponse' do
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "client_key"' do
72
- it 'should work' do
73
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
- end
75
- end
76
-
77
71
  describe 'test attribute "tls_validation"' do
78
72
  it 'should work' do
79
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -86,18 +80,6 @@ describe 'PythonPythonRemoteResponse' do
86
80
  end
87
81
  end
88
82
 
89
- describe 'test attribute "username"' do
90
- it 'should work' do
91
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
- end
93
- end
94
-
95
- describe 'test attribute "password"' do
96
- it 'should work' do
97
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
- end
99
- end
100
-
101
83
  describe 'test attribute "pulp_labels"' do
102
84
  it 'should work' do
103
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -146,6 +128,12 @@ describe 'PythonPythonRemoteResponse' do
146
128
  end
147
129
  end
148
130
 
131
+ describe 'test attribute "headers"' 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
+
149
137
  describe 'test attribute "rate_limit"' do
150
138
  it 'should work' do
151
139
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -74,6 +74,18 @@ describe 'PythonPythonRemote' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "proxy_username"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "proxy_password"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
77
89
  describe 'test attribute "username"' do
78
90
  it 'should work' do
79
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -128,6 +140,12 @@ describe 'PythonPythonRemote' do
128
140
  end
129
141
  end
130
142
 
143
+ describe 'test attribute "headers"' do
144
+ it 'should work' do
145
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
146
+ end
147
+ end
148
+
131
149
  describe 'test attribute "rate_limit"' do
132
150
  it 'should work' do
133
151
  # 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.1.0.dev01614223979
4
+ version: 3.2.0.dev1615953038
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-25 00:00:00.000000000 Z
11
+ date: 2021-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -210,40 +210,40 @@ signing_key:
210
210
  specification_version: 4
211
211
  summary: Pulp 3 API Ruby Gem
212
212
  test_files:
213
- - spec/api/publications_pypi_api_spec.rb
213
+ - spec/api/repositories_python_versions_api_spec.rb
214
+ - spec/api/distributions_pypi_api_spec.rb
214
215
  - spec/api/content_packages_api_spec.rb
216
+ - spec/api/publications_pypi_api_spec.rb
215
217
  - spec/api/remotes_python_api_spec.rb
216
- - spec/api/repositories_python_versions_api_spec.rb
217
218
  - spec/api/repositories_python_api_spec.rb
218
- - spec/api/distributions_pypi_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/repository_version_spec.rb
223
- - spec/models/repository_version_response_spec.rb
224
- - spec/models/async_operation_response_spec.rb
225
- - spec/models/content_summary_response_spec.rb
226
- - spec/models/paginated_repository_version_response_list_spec.rb
221
+ - spec/models/python_python_distribution_response_spec.rb
227
222
  - spec/models/content_summary_spec.rb
228
- - spec/models/policy_enum_spec.rb
229
- - spec/models/python_python_package_content_response_spec.rb
230
- - spec/models/python_python_remote_spec.rb
223
+ - spec/models/async_operation_response_spec.rb
224
+ - spec/models/patchedpython_python_remote_spec.rb
231
225
  - spec/models/python_bander_remote_spec.rb
232
- - spec/models/python_python_publication_spec.rb
233
- - spec/models/paginatedpython_python_distribution_response_list_spec.rb
234
- - spec/models/paginatedpython_python_package_content_response_list_spec.rb
235
- - spec/models/python_python_distribution_response_spec.rb
236
- - spec/models/patchedpython_python_repository_spec.rb
226
+ - spec/models/python_python_package_content_response_spec.rb
227
+ - spec/models/paginatedpython_python_repository_response_list_spec.rb
237
228
  - spec/models/python_python_remote_response_spec.rb
238
- - spec/models/repository_add_remove_content_spec.rb
239
- - spec/models/patchedpython_python_distribution_spec.rb
229
+ - spec/models/python_python_publication_response_spec.rb
230
+ - spec/models/python_python_publication_spec.rb
231
+ - spec/models/policy_enum_spec.rb
232
+ - spec/models/content_summary_response_spec.rb
240
233
  - spec/models/python_python_repository_spec.rb
241
- - spec/models/paginatedpython_python_repository_response_list_spec.rb
234
+ - spec/models/paginatedpython_python_package_content_response_list_spec.rb
235
+ - spec/models/repository_version_spec.rb
242
236
  - spec/models/python_python_distribution_spec.rb
243
- - spec/models/python_python_publication_response_spec.rb
244
- - spec/models/repository_sync_url_spec.rb
245
- - spec/models/patchedpython_python_remote_spec.rb
246
- - spec/models/python_python_repository_response_spec.rb
237
+ - spec/models/python_python_remote_spec.rb
238
+ - spec/models/patchedpython_python_distribution_spec.rb
247
239
  - spec/models/paginatedpython_python_remote_response_list_spec.rb
240
+ - spec/models/paginated_repository_version_response_list_spec.rb
241
+ - spec/models/repository_add_remove_content_spec.rb
242
+ - spec/models/patchedpython_python_repository_spec.rb
243
+ - spec/models/repository_version_response_spec.rb
244
+ - spec/models/repository_sync_url_spec.rb
245
+ - spec/models/paginatedpython_python_publication_response_list_spec.rb
246
+ - spec/models/paginatedpython_python_distribution_response_list_spec.rb
248
247
  - spec/models/python_python_package_content_spec.rb
248
+ - spec/models/python_python_repository_response_spec.rb
249
249
  - spec/spec_helper.rb