Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +0 -79
  3. data/README.md +6 -6
  4. data/docs/InlineResponse200.md +3 -3
  5. data/docs/InlineResponse2001.md +3 -3
  6. data/docs/InlineResponse2002.md +3 -3
  7. data/docs/MavenRemote.md +1 -3
  8. data/lib/pulp_maven_client.rb +1 -1
  9. data/lib/pulp_maven_client/api/content_artifact_api.rb +3 -3
  10. data/lib/pulp_maven_client/api/distributions_maven_api.rb +6 -6
  11. data/lib/pulp_maven_client/api/remotes_maven_api.rb +6 -6
  12. data/lib/pulp_maven_client/api_client.rb +53 -38
  13. data/lib/pulp_maven_client/api_error.rb +1 -1
  14. data/lib/pulp_maven_client/configuration.rb +13 -21
  15. data/lib/pulp_maven_client/models/async_operation_response.rb +1 -1
  16. data/lib/pulp_maven_client/models/inline_response200.rb +11 -11
  17. data/lib/pulp_maven_client/models/inline_response2001.rb +11 -11
  18. data/lib/pulp_maven_client/models/inline_response2002.rb +11 -11
  19. data/lib/pulp_maven_client/models/maven_artifact.rb +1 -1
  20. data/lib/pulp_maven_client/models/maven_distribution.rb +1 -1
  21. data/lib/pulp_maven_client/models/maven_remote.rb +5 -15
  22. data/lib/pulp_maven_client/version.rb +2 -2
  23. data/pulp_maven_client.gemspec +3 -9
  24. data/spec/api/content_artifact_api_spec.rb +1 -1
  25. data/spec/api/distributions_maven_api_spec.rb +1 -1
  26. data/spec/api/remotes_maven_api_spec.rb +1 -1
  27. data/spec/api_client_spec.rb +1 -39
  28. data/spec/configuration_spec.rb +1 -1
  29. data/spec/models/async_operation_response_spec.rb +1 -1
  30. data/spec/models/inline_response2001_spec.rb +4 -4
  31. data/spec/models/inline_response2002_spec.rb +4 -4
  32. data/spec/models/inline_response200_spec.rb +4 -4
  33. data/spec/models/maven_artifact_spec.rb +1 -1
  34. data/spec/models/maven_distribution_spec.rb +1 -1
  35. data/spec/models/maven_remote_spec.rb +2 -8
  36. data/spec/spec_helper.rb +1 -1
  37. metadata +6 -133
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
---
2
2
SHA256:
3
- metadata.gz: cb108fa8eaa118b20bdc7114e6e57f40a7ca350baa0ad09a91b92bf6a0f2a78c
4
- data.tar.gz: a3a9c9ec8090eabf6bcd4719e2c9c0a4dca042b3251e17628e03b5343a47cb6b
3
+ metadata.gz: 5b4965a2df41a54b3e57e89797222a9d9d5951c653e94b12ce1a1656303a13ce
4
+ data.tar.gz: 71b83951f19caf2094ebaddcdb977677ca3df511de141253e7ebe54589d1bc83
5
5
SHA512:
6
- metadata.gz: 812d7a2315f0018897f1e86efb74e4ec2982b9cd5a79eb4c3f38185255a7ce7e0adbcf2eac8ef4ef75b53d50cb818a75abe767f0cd3e21479426d5a9e253d2d4
7
- data.tar.gz: 8bd4028f9bb3434a4d2929de925ee08927cb41d60dc4cbeef1f47db47e96c2aa8b93ec9e3db8b0fe4654f66747c6c6a9d74767e8dcc2e47fbeb7e1efbc49ebaa
6
+ metadata.gz: 845bd969bf56ef6382ba4304a1e816af7900bd95611e4963a576ab925608fe4ea0c3903108a49ae90c07badf1c927766d43be468bd63091149a0914ff2d37f55
7
+ data.tar.gz: d57623570e30c65eee11dcd08f0e0d6f027db0f0ff9322208a0e3dfb8e844ad25d5665181366800b203d09af9fed142bd26e6e0896e0e3aacdc3d4a4756946e1
data/Gemfile.lock DELETED
@@ -1,79 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- pulp_maven_client (0.1.0b3.dev0.1561664543)
5
- json (~> 2.1, >= 2.1.0)
6
- typhoeus (~> 1.0, >= 1.0.1)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- ZenTest (4.11.2)
12
- addressable (2.5.2)
13
- public_suffix (>= 2.0.2, < 4.0)
14
- autotest (4.4.6)
15
- ZenTest (>= 4.4.1)
16
- autotest-fsevent (0.2.14)
17
- sys-uname
18
- autotest-growl (0.2.16)
19
- autotest-rails-pure (4.1.2)
20
- byebug (10.0.2)
21
- coderay (1.1.2)
22
- crack (0.4.3)
23
- safe_yaml (~> 1.0.0)
24
- diff-lcs (1.3)
25
- ethon (0.11.0)
26
- ffi (>= 1.3.0)
27
- ffi (1.9.25)
28
- hashdiff (0.3.7)
29
- json (2.1.0)
30
- method_source (0.9.0)
31
- pry (0.11.3)
32
- coderay (~> 1.1.0)
33
- method_source (~> 0.9.0)
34
- pry-byebug (3.6.0)
35
- byebug (~> 10.0)
36
- pry (~> 0.10)
37
- public_suffix (3.0.3)
38
- rake (12.0.0)
39
- rspec (3.8.0)
40
- rspec-core (~> 3.8.0)
41
- rspec-expectations (~> 3.8.0)
42
- rspec-mocks (~> 3.8.0)
43
- rspec-core (3.8.0)
44
- rspec-support (~> 3.8.0)
45
- rspec-expectations (3.8.1)
46
- diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.8.0)
48
- rspec-mocks (3.8.0)
49
- diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.8.0)
51
- rspec-support (3.8.0)
52
- safe_yaml (1.0.4)
53
- sys-uname (1.0.3)
54
- ffi (>= 1.0.0)
55
- typhoeus (1.3.0)
56
- ethon (>= 0.9.0)
57
- vcr (3.0.3)
58
- webmock (1.24.6)
59
- addressable (>= 2.3.6)
60
- crack (>= 0.3.2)
61
- hashdiff
62
-
63
- PLATFORMS
64
- ruby
65
-
66
- DEPENDENCIES
67
- autotest (~> 4.4, >= 4.4.6)
68
- autotest-fsevent (~> 0.2, >= 0.2.12)
69
- autotest-growl (~> 0.2, >= 0.2.16)
70
- autotest-rails-pure (~> 4.1, >= 4.1.2)
71
- pulp_maven_client!
72
- pry-byebug
73
- rake (~> 12.0.0)
74
- rspec (~> 3.6, >= 3.6.0)
75
- vcr (~> 3.0, >= 3.0.1)
76
- webmock (~> 1.24, >= 1.24.3)
77
-
78
- BUNDLED WITH
79
- 1.16.1
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
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: 0.1.0b3.dev0.1561664543
10
+ - Package version: 0.1.0b3.dev01565206788
11
11
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
13
13
## Installation
@@ -23,16 +23,16 @@ gem build pulp_maven_client.gemspec
23
23
Then either install the gem locally:
24
24
25
25
```shell
26
- gem install ./pulp_maven_client-0.1.0b3.dev0.1561664543.gem
26
+ gem install ./pulp_maven_client-0.1.0b3.dev01565206788.gem
27
27
```
28
28
29
- (for development, run `gem install --dev ./pulp_maven_client-0.1.0b3.dev0.1561664543.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulp_maven_client-0.1.0b3.dev01565206788.gem` to install the development dependencies)
30
30
31
31
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
33
33
Finally add this to the Gemfile:
34
34
35
- gem 'pulp_maven_client', '~> 0.1.0b3.dev0.1561664543'
35
+ gem 'pulp_maven_client', '~> 0.1.0b3.dev01565206788'
36
36
37
37
### Install from Git
38
38
@@ -59,8 +59,8 @@ require 'pulp_maven_client'
59
59
# Setup authorization
60
60
PulpMavenClient.configure do |config|
61
61
# Configure HTTP basic authorization: Basic
62
- config.username = 'YOUR USERNAME'
63
- config.password = 'YOUR PASSWORD'
62
+ config.username = 'YOUR_USERNAME'
63
+ config.password = 'YOUR_PASSWORD'
64
64
end
65
65
66
66
api_instance = PulpMavenClient::ContentArtifactApi.new
data/docs/InlineResponse200.md CHANGED
@@ -4,9 +4,9 @@
4
4
5
5
Name | Type | Description | Notes
6
6
------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
7
8
**_next** | **String** | | [optional]
8
9
**previous** | **String** | | [optional]
9
- **count** | **Integer** | |
10
10
**results** | [**Array&lt;MavenArtifact&gt;**](MavenArtifact.md) | |
11
11
12
12
## Code Sample
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
14
14
```ruby
15
15
require 'PulpMavenClient'
16
16
17
- instance = PulpMavenClient::InlineResponse200.new(_next: null,
17
+ instance = PulpMavenClient::InlineResponse200.new(count: null,
18
+ _next: null,
18
19
previous: null,
19
- count: null,
20
20
results: null)
21
21
```
22
22
data/docs/InlineResponse2001.md CHANGED
@@ -4,9 +4,9 @@
4
4
5
5
Name | Type | Description | Notes
6
6
------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
7
8
**_next** | **String** | | [optional]
8
9
**previous** | **String** | | [optional]
9
- **count** | **Integer** | |
10
10
**results** | [**Array&lt;MavenDistribution&gt;**](MavenDistribution.md) | |
11
11
12
12
## Code Sample
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
14
14
```ruby
15
15
require 'PulpMavenClient'
16
16
17
- instance = PulpMavenClient::InlineResponse2001.new(_next: null,
17
+ instance = PulpMavenClient::InlineResponse2001.new(count: null,
18
+ _next: null,
18
19
previous: null,
19
- count: null,
20
20
results: null)
21
21
```
22
22
data/docs/InlineResponse2002.md CHANGED
@@ -4,9 +4,9 @@
4
4
5
5
Name | Type | Description | Notes
6
6
------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
7
8
**_next** | **String** | | [optional]
8
9
**previous** | **String** | | [optional]
9
- **count** | **Integer** | |
10
10
**results** | [**Array&lt;MavenRemote&gt;**](MavenRemote.md) | |
11
11
12
12
## Code Sample
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
14
14
```ruby
15
15
require 'PulpMavenClient'
16
16
17
- instance = PulpMavenClient::InlineResponse2002.new(_next: null,
17
+ instance = PulpMavenClient::InlineResponse2002.new(count: null,
18
+ _next: null,
18
19
previous: null,
19
- count: null,
20
20
results: null)
21
21
```
22
22
data/docs/MavenRemote.md CHANGED
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
9
9
**_type** | **String** | | [optional]
10
10
**name** | **String** | A unique name for this remote. |
11
11
**url** | **String** | The URL of an external content source. |
12
- **validate** | **Boolean** | If True, the plugin will validate imported artifacts. | [optional]
13
12
**ssl_ca_certificate** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
14
13
**ssl_client_certificate** | **String** | A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
15
14
**ssl_client_key** | **String** | A PEM encoded private key used for authentication. Returns SHA256 sum on GET. | [optional]
@@ -19,7 +18,7 @@ Name | Type | Description | Notes
19
18
**password** | **String** | The password to be used for authentication when syncing. | [optional]
20
19
**_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional]
21
20
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
22
- **policy** | **String** | The policy to use when downloading content. The possible values include: &#39;immediate&#39;, &#39;on_demand&#39;, and &#39;cache_only&#39;. &#39;immediate&#39; is the default. | [optional] [default to &#39;immediate&#39;]
21
+ **policy** | **String** | The policy to use when downloading content. | [optional] [default to &#39;immediate&#39;]
23
22
24
23
## Code Sample
25
24
@@ -31,7 +30,6 @@ instance = PulpMavenClient::MavenRemote.new(_href: null,
31
30
_type: null,
32
31
name: null,
33
32
url: null,
34
- validate: null,
35
33
ssl_ca_certificate: null,
36
34
ssl_client_certificate: null,
37
35
ssl_client_key: null,
data/lib/pulp_maven_client.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/lib/pulp_maven_client/api/content_artifact_api.rb CHANGED
@@ -6,11 +6,11 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
13
- require 'uri'
13
+ require 'cgi'
14
14
15
15
module PulpMavenClient
16
16
class ContentArtifactApi
@@ -190,7 +190,7 @@ module PulpMavenClient
190
190
fail ArgumentError, "Missing the required parameter 'maven_artifact_href' when calling ContentArtifactApi.read"
191
191
end
192
192
# resource path
193
- local_var_path = '{maven_artifact_href}'.sub('{' + 'maven_artifact_href' + '}', maven_artifact_href.to_s)
193
+ local_var_path = '{maven_artifact_href}'.sub('{' + 'maven_artifact_href' + '}', CGI.escape(maven_artifact_href.to_s).gsub('%2F', '/'))
194
194
195
195
# query parameters
196
196
query_params = opts[:query_params] || {}
data/lib/pulp_maven_client/api/distributions_maven_api.rb CHANGED
@@ -6,11 +6,11 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
13
- require 'uri'
13
+ require 'cgi'
14
14
15
15
module PulpMavenClient
16
16
class DistributionsMavenApi
@@ -107,7 +107,7 @@ module PulpMavenClient
107
107
fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling DistributionsMavenApi.delete"
108
108
end
109
109
# resource path
110
- local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', maven_distribution_href.to_s)
110
+ local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
111
111
112
112
# query parameters
113
113
query_params = opts[:query_params] || {}
@@ -255,7 +255,7 @@ module PulpMavenClient
255
255
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsMavenApi.partial_update"
256
256
end
257
257
# resource path
258
- local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', maven_distribution_href.to_s)
258
+ local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
259
259
260
260
# query parameters
261
261
query_params = opts[:query_params] || {}
@@ -319,7 +319,7 @@ module PulpMavenClient
319
319
fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling DistributionsMavenApi.read"
320
320
end
321
321
# resource path
322
- local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', maven_distribution_href.to_s)
322
+ local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
323
323
324
324
# query parameters
325
325
query_params = opts[:query_params] || {}
@@ -387,7 +387,7 @@ module PulpMavenClient
387
387
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsMavenApi.update"
388
388
end
389
389
# resource path
390
- local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', maven_distribution_href.to_s)
390
+ local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
391
391
392
392
# query parameters
393
393
query_params = opts[:query_params] || {}
data/lib/pulp_maven_client/api/remotes_maven_api.rb CHANGED
@@ -6,11 +6,11 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
13
- require 'uri'
13
+ require 'cgi'
14
14
15
15
module PulpMavenClient
16
16
class RemotesMavenApi
@@ -107,7 +107,7 @@ module PulpMavenClient
107
107
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling RemotesMavenApi.delete"
108
108
end
109
109
# resource path
110
- local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
110
+ local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', CGI.escape(maven_remote_href.to_s).gsub('%2F', '/'))
111
111
112
112
# query parameters
113
113
query_params = opts[:query_params] || {}
@@ -261,7 +261,7 @@ module PulpMavenClient
261
261
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesMavenApi.partial_update"
262
262
end
263
263
# resource path
264
- local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
264
+ local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', CGI.escape(maven_remote_href.to_s).gsub('%2F', '/'))
265
265
266
266
# query parameters
267
267
query_params = opts[:query_params] || {}
@@ -325,7 +325,7 @@ module PulpMavenClient
325
325
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling RemotesMavenApi.read"
326
326
end
327
327
# resource path
328
- local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
328
+ local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', CGI.escape(maven_remote_href.to_s).gsub('%2F', '/'))
329
329
330
330
# query parameters
331
331
query_params = opts[:query_params] || {}
@@ -393,7 +393,7 @@ module PulpMavenClient
393
393
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesMavenApi.update"
394
394
end
395
395
# resource path
396
- local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
396
+ local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', CGI.escape(maven_remote_href.to_s).gsub('%2F', '/'))
397
397
398
398
# query parameters
399
399
query_params = opts[:query_params] || {}
data/lib/pulp_maven_client/api_client.rb CHANGED
@@ -6,16 +6,15 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
13
13
require 'date'
14
+ require 'faraday'
14
15
require 'json'
15
16
require 'logger'
16
17
require 'tempfile'
17
- require 'typhoeus'
18
- require 'uri'
19
18
20
19
module PulpMavenClient
21
20
class ApiClient
@@ -47,26 +46,46 @@ module PulpMavenClient
47
46
# @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
48
47
# the data deserialized from response body (could be nil), response status code and response headers.
49
48
def call_api(http_method, path, opts = {})
50
- request = build_request(http_method, path, opts)
51
- response = request.run
49
+ ssl_options = {
50
+ :ca_file => @config.ssl_ca_file,
51
+ :verify => @config.ssl_verify,
52
+ :verify => @config.ssl_verify_mode,
53
+ :client_cert => @config.ssl_client_cert,
54
+ :client_key => @config.ssl_client_key
55
+ }
52
56
53
- if @config.debugging
54
- @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
57
+ connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
58
+ conn.basic_auth(config.username, config.password)
59
+ if opts[:header_params]["Content-Type"] == "multipart/form-data"
60
+ conn.request :multipart
61
+ conn.request :url_encoded
62
+ end
63
+ conn.adapter(Faraday.default_adapter)
55
64
end
56
65
57
- unless response.success?
58
- if response.timed_out?
59
- fail ApiError.new('Connection timed out')
60
- elsif response.code == 0
61
- # Errors from libcurl will be made visible here
62
- fail ApiError.new(:code => 0,
63
- :message => response.return_message)
66
+ begin
67
+ response = connection.public_send(http_method.to_sym.downcase) do |req|
68
+ build_request(http_method, path, req, opts)
69
+ end
70
+
71
+ if @config.debugging
72
+ @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
64
- else
65
- fail ApiError.new(:code => response.code,
66
- :response_headers => response.headers,
67
- :response_body => response.body),
68
- response.status_message
69
73
end
74
+
75
+ unless response.success?
76
+ if response.status == 0
77
+ # Errors from libcurl will be made visible here
78
+ fail ApiError.new(:code => 0,
79
+ :message => response.return_message)
80
+ else
81
+ fail ApiError.new(:code => response.status,
82
+ :response_headers => response.headers,
83
+ :response_body => response.body),
84
+ response.reason_phrase
85
+ end
86
+ end
87
+ rescue Faraday::TimeoutError
88
+ fail ApiError.new('Connection timed out')
70
89
end
71
90
72
91
if opts[:return_type]
@@ -74,7 +93,7 @@ module PulpMavenClient
74
93
else
75
94
data = nil
76
95
end
77
- return data, response.code, response.headers
96
+ return data, response.status, response.headers
78
97
end
79
98
80
99
# Builds the HTTP request
@@ -86,7 +105,7 @@ module PulpMavenClient
86
105
# @option opts [Hash] :form_params Query parameters
87
106
# @option opts [Object] :body HTTP body (JSON/XML)
88
107
# @return [Typhoeus::Request] A Typhoeus Request
89
- def build_request(http_method, path, opts = {})
108
+ def build_request(http_method, path, request, opts = {})
90
109
url = build_request_url(path)
91
110
http_method = http_method.to_sym.downcase
92
111
@@ -96,25 +115,15 @@ module PulpMavenClient
96
115
97
116
update_params_for_auth! header_params, query_params, opts[:auth_names]
98
117
99
- # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
100
- _verify_ssl_host = @config.verify_ssl_host ? 2 : 0
101
-
102
118
req_opts = {
103
119
:method => http_method,
104
120
:headers => header_params,
105
121
:params => query_params,
106
122
:params_encoding => @config.params_encoding,
107
123
:timeout => @config.timeout,
108
- :ssl_verifypeer => @config.verify_ssl,
109
- :ssl_verifyhost => _verify_ssl_host,
110
- :sslcert => @config.cert_file,
111
- :sslkey => @config.key_file,
112
124
:verbose => @config.debugging
113
125
}
114
126
115
- # set custom cert, if provided
116
- req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
117
-
118
127
if [:post, :patch, :put, :delete].include?(http_method)
119
128
req_body = build_request_body(header_params, form_params, opts[:body])
120
129
req_opts.update :body => req_body
@@ -122,8 +131,10 @@ module PulpMavenClient
122
131
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
123
132
end
124
133
end
125
-
126
- request = Typhoeus::Request.new(url, req_opts)
134
+ request.headers = header_params
135
+ request.body = req_body
136
+ request.url url
137
+ request.params = query_params
127
138
download_file(request) if opts[:return_type] == 'File'
128
139
request
129
140
end
@@ -262,7 +273,7 @@ module PulpMavenClient
262
273
def build_request_url(path)
263
274
# Add leading and trailing slashes to path
264
275
path = "/#{path}".gsub(/\/+/, '/')
265
- URI.encode(@config.base_url + path)
276
+ @config.base_url + path
266
277
end
267
278
268
279
# Builds the HTTP request body
@@ -273,13 +284,17 @@ module PulpMavenClient
273
284
# @return [String] HTTP body data in the form of string
274
285
def build_request_body(header_params, form_params, body)
275
286
# http form
276
- if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
277
- header_params['Content-Type'] == 'multipart/form-data'
287
+ if header_params['Content-Type'] == 'application/x-www-form-urlencoded'
288
+ data = URI.encode_www_form(form_params)
289
+ elsif header_params['Content-Type'] == 'multipart/form-data'
278
290
data = {}
279
291
form_params.each do |key, value|
280
292
case value
281
- when ::File, ::Array, nil
282
- # let typhoeus handle File, Array and nil parameters
293
+ when ::File, ::Tempfile
294
+ # TODO hardcode to application/octet-stream, need better way to detect content type
295
+ data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path)
296
+ when ::Array, nil
297
+ # let Faraday handle Array and nil parameters
283
298
data[key] = value
284
299
else
285
300
data[key] = value.to_s
data/lib/pulp_maven_client/api_error.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/lib/pulp_maven_client/configuration.rb CHANGED
@@ -6,12 +6,10 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
13
- require 'uri'
14
-
15
13
module PulpMavenClient
16
14
class Configuration
17
15
# Defines url scheme
@@ -88,33 +86,28 @@ module PulpMavenClient
88
86
# @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
89
87
#
90
88
# @return [true, false]
91
- attr_accessor :verify_ssl
89
+ attr_accessor :ssl_verify
92
90
93
91
### TLS/SSL setting
94
- # Set this to false to skip verifying SSL host name
92
+ # Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
95
- # Default to true.
96
93
#
97
94
# @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
98
95
#
99
- # @return [true, false]
96
+ attr_accessor :ssl_verify_mode
100
- attr_accessor :verify_ssl_host
101
97
102
98
### TLS/SSL setting
103
99
# Set this to customize the certificate file to verify the peer.
104
100
#
105
101
# @return [String] the path to the certificate file
106
- #
102
+ attr_accessor :ssl_ca_file
107
- # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code:
108
- # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145
109
- attr_accessor :ssl_ca_cert
110
103
111
104
### TLS/SSL setting
112
105
# Client certificate file (for client certificate)
113
- attr_accessor :cert_file
106
+ attr_accessor :ssl_client_cert
114
107
115
108
### TLS/SSL setting
116
109
# Client private key file (for client certificate)
117
- attr_accessor :key_file
110
+ attr_accessor :ssl_client_key
118
111
119
112
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
120
113
# Default to nil.
@@ -135,11 +128,11 @@ module PulpMavenClient
135
128
@api_key_prefix = {}
136
129
@timeout = 0
137
130
@client_side_validation = true
138
- @verify_ssl = true
139
- @verify_ssl_host = true
140
- @params_encoding = nil
141
- @cert_file = nil
142
- @key_file = nil
131
+ @ssl_verify = true
132
+ @ssl_verify_mode = nil
133
+ @ssl_ca_file = nil
134
+ @ssl_client_cert = nil
135
+ @ssl_client_key = nil
143
136
@debugging = false
144
137
@inject_format = false
145
138
@force_ending_format = false
@@ -174,8 +167,7 @@ module PulpMavenClient
174
167
end
175
168
176
169
def base_url
177
- url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
170
+ "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
178
- URI.encode(url)
179
171
end
180
172
181
173
# Gets API key (with prefix if set).
data/lib/pulp_maven_client/models/async_operation_response.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/lib/pulp_maven_client/models/inline_response200.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
@@ -14,20 +14,20 @@ require 'date'
14
14
15
15
module PulpMavenClient
16
16
class InlineResponse200
17
+ attr_accessor :count
18
+
17
19
attr_accessor :_next
18
20
19
21
attr_accessor :previous
20
22
21
- attr_accessor :count
22
-
23
23
attr_accessor :results
24
24
25
25
# Attribute mapping from ruby-style variable name to JSON key.
26
26
def self.attribute_map
27
27
{
28
+ :'count' => :'count',
28
29
:'_next' => :'next',
29
30
:'previous' => :'previous',
30
- :'count' => :'count',
31
31
:'results' => :'results'
32
32
}
33
33
end
@@ -35,9 +35,9 @@ module PulpMavenClient
35
35
# Attribute type mapping.
36
36
def self.openapi_types
37
37
{
38
+ :'count' => :'Integer',
38
39
:'_next' => :'String',
39
40
:'previous' => :'String',
40
- :'count' => :'Integer',
41
41
:'results' => :'Array<MavenArtifact>'
42
42
}
43
43
end
@@ -57,6 +57,10 @@ module PulpMavenClient
57
57
h[k.to_sym] = v
58
58
}
59
59
60
+ if attributes.key?(:'count')
61
+ self.count = attributes[:'count']
62
+ end
63
+
60
64
if attributes.key?(:'_next')
61
65
self._next = attributes[:'_next']
62
66
end
@@ -65,10 +69,6 @@ module PulpMavenClient
65
69
self.previous = attributes[:'previous']
66
70
end
67
71
68
- if attributes.key?(:'count')
69
- self.count = attributes[:'count']
70
- end
71
-
72
72
if attributes.key?(:'results')
73
73
if (value = attributes[:'results']).is_a?(Array)
74
74
self.results = value
@@ -104,9 +104,9 @@ module PulpMavenClient
104
104
def ==(o)
105
105
return true if self.equal?(o)
106
106
self.class == o.class &&
107
+ count == o.count &&
107
108
_next == o._next &&
108
109
previous == o.previous &&
109
- count == o.count &&
110
110
results == o.results
111
111
end
112
112
@@ -119,7 +119,7 @@ module PulpMavenClient
119
119
# Calculates hash code according to all attributes.
120
120
# @return [Integer] Hash code
121
121
def hash
122
- [_next, previous, count, results].hash
122
+ [count, _next, previous, results].hash
123
123
end
124
124
125
125
# Builds the object from hash
data/lib/pulp_maven_client/models/inline_response2001.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
@@ -14,20 +14,20 @@ require 'date'
14
14
15
15
module PulpMavenClient
16
16
class InlineResponse2001
17
+ attr_accessor :count
18
+
17
19
attr_accessor :_next
18
20
19
21
attr_accessor :previous
20
22
21
- attr_accessor :count
22
-
23
23
attr_accessor :results
24
24
25
25
# Attribute mapping from ruby-style variable name to JSON key.
26
26
def self.attribute_map
27
27
{
28
+ :'count' => :'count',
28
29
:'_next' => :'next',
29
30
:'previous' => :'previous',
30
- :'count' => :'count',
31
31
:'results' => :'results'
32
32
}
33
33
end
@@ -35,9 +35,9 @@ module PulpMavenClient
35
35
# Attribute type mapping.
36
36
def self.openapi_types
37
37
{
38
+ :'count' => :'Integer',
38
39
:'_next' => :'String',
39
40
:'previous' => :'String',
40
- :'count' => :'Integer',
41
41
:'results' => :'Array<MavenDistribution>'
42
42
}
43
43
end
@@ -57,6 +57,10 @@ module PulpMavenClient
57
57
h[k.to_sym] = v
58
58
}
59
59
60
+ if attributes.key?(:'count')
61
+ self.count = attributes[:'count']
62
+ end
63
+
60
64
if attributes.key?(:'_next')
61
65
self._next = attributes[:'_next']
62
66
end
@@ -65,10 +69,6 @@ module PulpMavenClient
65
69
self.previous = attributes[:'previous']
66
70
end
67
71
68
- if attributes.key?(:'count')
69
- self.count = attributes[:'count']
70
- end
71
-
72
72
if attributes.key?(:'results')
73
73
if (value = attributes[:'results']).is_a?(Array)
74
74
self.results = value
@@ -104,9 +104,9 @@ module PulpMavenClient
104
104
def ==(o)
105
105
return true if self.equal?(o)
106
106
self.class == o.class &&
107
+ count == o.count &&
107
108
_next == o._next &&
108
109
previous == o.previous &&
109
- count == o.count &&
110
110
results == o.results
111
111
end
112
112
@@ -119,7 +119,7 @@ module PulpMavenClient
119
119
# Calculates hash code according to all attributes.
120
120
# @return [Integer] Hash code
121
121
def hash
122
- [_next, previous, count, results].hash
122
+ [count, _next, previous, results].hash
123
123
end
124
124
125
125
# Builds the object from hash
data/lib/pulp_maven_client/models/inline_response2002.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
@@ -14,20 +14,20 @@ require 'date'
14
14
15
15
module PulpMavenClient
16
16
class InlineResponse2002
17
+ attr_accessor :count
18
+
17
19
attr_accessor :_next
18
20
19
21
attr_accessor :previous
20
22
21
- attr_accessor :count
22
-
23
23
attr_accessor :results
24
24
25
25
# Attribute mapping from ruby-style variable name to JSON key.
26
26
def self.attribute_map
27
27
{
28
+ :'count' => :'count',
28
29
:'_next' => :'next',
29
30
:'previous' => :'previous',
30
- :'count' => :'count',
31
31
:'results' => :'results'
32
32
}
33
33
end
@@ -35,9 +35,9 @@ module PulpMavenClient
35
35
# Attribute type mapping.
36
36
def self.openapi_types
37
37
{
38
+ :'count' => :'Integer',
38
39
:'_next' => :'String',
39
40
:'previous' => :'String',
40
- :'count' => :'Integer',
41
41
:'results' => :'Array<MavenRemote>'
42
42
}
43
43
end
@@ -57,6 +57,10 @@ module PulpMavenClient
57
57
h[k.to_sym] = v
58
58
}
59
59
60
+ if attributes.key?(:'count')
61
+ self.count = attributes[:'count']
62
+ end
63
+
60
64
if attributes.key?(:'_next')
61
65
self._next = attributes[:'_next']
62
66
end
@@ -65,10 +69,6 @@ module PulpMavenClient
65
69
self.previous = attributes[:'previous']
66
70
end
67
71
68
- if attributes.key?(:'count')
69
- self.count = attributes[:'count']
70
- end
71
-
72
72
if attributes.key?(:'results')
73
73
if (value = attributes[:'results']).is_a?(Array)
74
74
self.results = value
@@ -104,9 +104,9 @@ module PulpMavenClient
104
104
def ==(o)
105
105
return true if self.equal?(o)
106
106
self.class == o.class &&
107
+ count == o.count &&
107
108
_next == o._next &&
108
109
previous == o.previous &&
109
- count == o.count &&
110
110
results == o.results
111
111
end
112
112
@@ -119,7 +119,7 @@ module PulpMavenClient
119
119
# Calculates hash code according to all attributes.
120
120
# @return [Integer] Hash code
121
121
def hash
122
- [_next, previous, count, results].hash
122
+ [count, _next, previous, results].hash
123
123
end
124
124
125
125
# Builds the object from hash
data/lib/pulp_maven_client/models/maven_artifact.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/lib/pulp_maven_client/models/maven_distribution.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/lib/pulp_maven_client/models/maven_remote.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
@@ -27,9 +27,6 @@ module PulpMavenClient
27
27
# The URL of an external content source.
28
28
attr_accessor :url
29
29
30
- # If True, the plugin will validate imported artifacts.
31
- attr_accessor :validate
32
-
33
30
# A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET.
34
31
attr_accessor :ssl_ca_certificate
35
32
@@ -57,7 +54,7 @@ module PulpMavenClient
57
54
# Total number of simultaneous connections.
58
55
attr_accessor :download_concurrency
59
56
60
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. 'immediate' is the default.
57
+ # The policy to use when downloading content.
61
58
attr_accessor :policy
62
59
63
60
class EnumAttributeValidator
@@ -90,7 +87,6 @@ module PulpMavenClient
90
87
:'_type' => :'_type',
91
88
:'name' => :'name',
92
89
:'url' => :'url',
93
- :'validate' => :'validate',
94
90
:'ssl_ca_certificate' => :'ssl_ca_certificate',
95
91
:'ssl_client_certificate' => :'ssl_client_certificate',
96
92
:'ssl_client_key' => :'ssl_client_key',
@@ -112,7 +108,6 @@ module PulpMavenClient
112
108
:'_type' => :'String',
113
109
:'name' => :'String',
114
110
:'url' => :'String',
115
- :'validate' => :'Boolean',
116
111
:'ssl_ca_certificate' => :'String',
117
112
:'ssl_client_certificate' => :'String',
118
113
:'ssl_client_key' => :'String',
@@ -161,10 +156,6 @@ module PulpMavenClient
161
156
self.url = attributes[:'url']
162
157
end
163
158
164
- if attributes.key?(:'validate')
165
- self.validate = attributes[:'validate']
166
- end
167
-
168
159
if attributes.key?(:'ssl_ca_certificate')
169
160
self.ssl_ca_certificate = attributes[:'ssl_ca_certificate']
170
161
end
@@ -278,7 +269,7 @@ module PulpMavenClient
278
269
return false if !@username.nil? && @username.to_s.length < 1
279
270
return false if !@password.nil? && @password.to_s.length < 1
280
271
return false if !@download_concurrency.nil? && @download_concurrency < 1
281
- policy_validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
272
+ policy_validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
282
273
return false unless policy_validator.valid?(@policy)
283
274
true
284
275
end
@@ -394,7 +385,7 @@ module PulpMavenClient
394
385
# Custom attribute writer method checking allowed values (enum).
395
386
# @param [Object] policy Object to be assigned
396
387
def policy=(policy)
397
- validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
388
+ validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
398
389
unless validator.valid?(policy)
399
390
fail ArgumentError, "invalid value for \"policy\", must be one of #{validator.allowable_values}."
400
391
end
@@ -411,7 +402,6 @@ module PulpMavenClient
411
402
_type == o._type &&
412
403
name == o.name &&
413
404
url == o.url &&
414
- validate == o.validate &&
415
405
ssl_ca_certificate == o.ssl_ca_certificate &&
416
406
ssl_client_certificate == o.ssl_client_certificate &&
417
407
ssl_client_key == o.ssl_client_key &&
@@ -433,7 +423,7 @@ module PulpMavenClient
433
423
# Calculates hash code according to all attributes.
434
424
# @return [Integer] Hash code
435
425
def hash
436
- [_href, _created, _type, name, url, validate, ssl_ca_certificate, ssl_client_certificate, ssl_client_key, ssl_validation, proxy_url, username, password, _last_updated, download_concurrency, policy].hash
426
+ [_href, _created, _type, name, url, ssl_ca_certificate, ssl_client_certificate, ssl_client_key, ssl_validation, proxy_url, username, password, _last_updated, download_concurrency, policy].hash
437
427
end
438
428
439
429
# Builds the object from hash
data/lib/pulp_maven_client/version.rb CHANGED
@@ -6,10 +6,10 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
13
13
module PulpMavenClient
14
- VERSION = '0.1.0b3.dev0.1561664543'
14
+ VERSION = '0.1.0b3.dev01565206788'
15
15
end
data/pulp_maven_client.gemspec CHANGED
@@ -8,7 +8,7 @@
8
8
The version of the OpenAPI document: v3
9
9
10
10
Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.0.0
11
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
12
12
13
13
=end
14
14
@@ -24,19 +24,13 @@ Gem::Specification.new do |s|
24
24
s.homepage = "https://openapi-generator.tech"
25
25
s.summary = "Pulp 3 API Ruby Gem"
26
26
s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
27
- s.license = 'GPLv2'
27
+ s.license = 'GPL-2.0'
28
28
s.required_ruby_version = ">= 1.9"
29
29
30
- s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
30
+ s.add_runtime_dependency 'faraday', '>= 0.14.0'
31
31
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
33
33
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
- s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
- s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
- s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
- s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
- s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
34
41
35
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
42
36
s.test_files = `find spec/*`.split("\n")
data/spec/api/content_artifact_api_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/spec/api/distributions_maven_api_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/spec/api/remotes_maven_api_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/spec/api_client_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
@@ -51,44 +51,6 @@ describe PulpMavenClient::ApiClient do
51
51
end
52
52
end
53
53
54
- describe 'params_encoding in #build_request' do
55
- let(:config) { PulpMavenClient::Configuration.new }
56
- let(:api_client) { PulpMavenClient::ApiClient.new(config) }
57
-
58
- it 'defaults to nil' do
59
- expect(PulpMavenClient::Configuration.default.params_encoding).to eq(nil)
60
- expect(config.params_encoding).to eq(nil)
61
-
62
- request = api_client.build_request(:get, '/test')
63
- expect(request.options[:params_encoding]).to eq(nil)
64
- end
65
-
66
- it 'can be customized' do
67
- config.params_encoding = :multi
68
- request = api_client.build_request(:get, '/test')
69
- expect(request.options[:params_encoding]).to eq(:multi)
70
- end
71
- end
72
-
73
- describe 'timeout in #build_request' do
74
- let(:config) { PulpMavenClient::Configuration.new }
75
- let(:api_client) { PulpMavenClient::ApiClient.new(config) }
76
-
77
- it 'defaults to 0' do
78
- expect(PulpMavenClient::Configuration.default.timeout).to eq(0)
79
- expect(config.timeout).to eq(0)
80
-
81
- request = api_client.build_request(:get, '/test')
82
- expect(request.options[:timeout]).to eq(0)
83
- end
84
-
85
- it 'can be customized' do
86
- config.timeout = 100
87
- request = api_client.build_request(:get, '/test')
88
- expect(request.options[:timeout]).to eq(100)
89
- end
90
- end
91
-
92
54
describe '#deserialize' do
93
55
it "handles Array<Integer>" do
94
56
api_client = PulpMavenClient::ApiClient.new
data/spec/configuration_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/spec/models/async_operation_response_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/spec/models/inline_response2001_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
@@ -32,19 +32,19 @@ describe 'InlineResponse2001' do
32
32
expect(@instance).to be_instance_of(PulpMavenClient::InlineResponse2001)
33
33
end
34
34
end
35
- describe 'test attribute "_next"' do
35
+ describe 'test attribute "count"' do
36
36
it 'should work' do
37
37
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
end
39
39
end
40
40
41
- describe 'test attribute "previous"' do
41
+ describe 'test attribute "_next"' do
42
42
it 'should work' do
43
43
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
end
45
45
end
46
46
47
- describe 'test attribute "count"' do
47
+ describe 'test attribute "previous"' do
48
48
it 'should work' do
49
49
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
end
data/spec/models/inline_response2002_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
@@ -32,19 +32,19 @@ describe 'InlineResponse2002' do
32
32
expect(@instance).to be_instance_of(PulpMavenClient::InlineResponse2002)
33
33
end
34
34
end
35
- describe 'test attribute "_next"' do
35
+ describe 'test attribute "count"' do
36
36
it 'should work' do
37
37
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
end
39
39
end
40
40
41
- describe 'test attribute "previous"' do
41
+ describe 'test attribute "_next"' do
42
42
it 'should work' do
43
43
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
end
45
45
end
46
46
47
- describe 'test attribute "count"' do
47
+ describe 'test attribute "previous"' do
48
48
it 'should work' do
49
49
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
end
data/spec/models/inline_response200_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
@@ -32,19 +32,19 @@ describe 'InlineResponse200' do
32
32
expect(@instance).to be_instance_of(PulpMavenClient::InlineResponse200)
33
33
end
34
34
end
35
- describe 'test attribute "_next"' do
35
+ describe 'test attribute "count"' do
36
36
it 'should work' do
37
37
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
end
39
39
end
40
40
41
- describe 'test attribute "previous"' do
41
+ describe 'test attribute "_next"' do
42
42
it 'should work' do
43
43
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
end
45
45
end
46
46
47
- describe 'test attribute "count"' do
47
+ describe 'test attribute "previous"' do
48
48
it 'should work' do
49
49
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
end
data/spec/models/maven_artifact_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/spec/models/maven_distribution_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
data/spec/models/maven_remote_spec.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
@@ -62,12 +62,6 @@ describe 'MavenRemote' do
62
62
end
63
63
end
64
64
65
- describe 'test attribute "validate"' do
66
- it 'should work' do
67
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
- end
69
- end
70
-
71
65
describe 'test attribute "ssl_ca_certificate"' do
72
66
it 'should work' do
73
67
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -125,7 +119,7 @@ describe 'MavenRemote' do
125
119
describe 'test attribute "policy"' do
126
120
it 'should work' do
127
121
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
122
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
129
123
# validator.allowable_values.each do |value|
130
124
# expect { @instance.policy = value }.not_to raise_error
131
125
# end
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
The version of the OpenAPI document: v3
7
7
8
8
Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
11
11
=end
12
12
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: pulp_maven_client
3
3
version: !ruby/object:Gem::Version
4
- version: 0.1.0b3.dev0.1561664543
4
+ version: 0.1.0b3.dev01565206788
5
5
platform: ruby
6
6
authors:
7
7
- OpenAPI-Generator
8
8
autorequire:
9
9
bindir: bin
10
10
cert_chain: []
11
- date: 2019-06-27 00:00:00.000000000 Z
11
+ date: 2019-08-07 00:00:00.000000000 Z
12
12
dependencies:
13
13
- !ruby/object:Gem::Dependency
14
- name: typhoeus
14
+ name: faraday
15
15
requirement: !ruby/object:Gem::Requirement
16
16
requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
17
- - ">="
21
18
- !ruby/object:Gem::Version
22
- version: 1.0.1
19
+ version: 0.14.0
23
20
type: :runtime
24
21
prerelease: false
25
22
version_requirements: !ruby/object:Gem::Requirement
26
23
requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '1.0'
30
24
- - ">="
31
25
- !ruby/object:Gem::Version
32
- version: 1.0.1
26
+ version: 0.14.0
33
27
- !ruby/object:Gem::Dependency
34
28
name: json
35
29
requirement: !ruby/object:Gem::Requirement
@@ -70,126 +64,6 @@ dependencies:
70
64
- - ">="
71
65
- !ruby/object:Gem::Version
72
66
version: 3.6.0
73
- - !ruby/object:Gem::Dependency
74
- name: vcr
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '3.0'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 3.0.1
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.0'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 3.0.1
93
- - !ruby/object:Gem::Dependency
94
- name: webmock
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '1.24'
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: 1.24.3
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '1.24'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 1.24.3
113
- - !ruby/object:Gem::Dependency
114
- name: autotest
115
- requirement: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '4.4'
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: 4.4.6
123
- type: :development
124
- prerelease: false
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '4.4'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 4.4.6
133
- - !ruby/object:Gem::Dependency
134
- name: autotest-rails-pure
135
- requirement: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '4.1'
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: 4.1.2
143
- type: :development
144
- prerelease: false
145
- version_requirements: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: '4.1'
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 4.1.2
153
- - !ruby/object:Gem::Dependency
154
- name: autotest-growl
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.2'
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- version: 0.2.16
163
- type: :development
164
- prerelease: false
165
- version_requirements: !ruby/object:Gem::Requirement
166
- requirements:
167
- - - "~>"
168
- - !ruby/object:Gem::Version
169
- version: '0.2'
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- version: 0.2.16
173
- - !ruby/object:Gem::Dependency
174
- name: autotest-fsevent
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '0.2'
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: 0.2.12
183
- type: :development
184
- prerelease: false
185
- version_requirements: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - "~>"
188
- - !ruby/object:Gem::Version
189
- version: '0.2'
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: 0.2.12
193
67
description: No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
194
68
email:
195
69
- ''
@@ -198,7 +72,6 @@ extensions: []
198
72
extra_rdoc_files: []
199
73
files:
200
74
- Gemfile
201
- - Gemfile.lock
202
75
- README.md
203
76
- Rakefile
204
77
- docs/AsyncOperationResponse.md
@@ -243,7 +116,7 @@ files:
243
116
- spec/spec_helper.rb
244
117
homepage: https://openapi-generator.tech
245
118
licenses:
246
- - GPLv2
119
+ - GPL-2.0
247
120
metadata: {}
248
121
post_install_message:
249
122
rdoc_options: []