pulp_certguard_client 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/docs/CertguardRHSMCertGuard.md +1 -1
- data/docs/CertguardRHSMCertGuardResponse.md +1 -1
- data/docs/CertguardX509CertGuard.md +1 -1
- data/docs/CertguardX509CertGuardResponse.md +1 -1
- data/docs/PatchedcertguardRHSMCertGuard.md +1 -1
- data/docs/PatchedcertguardX509CertGuard.md +1 -1
- data/lib/pulp_certguard_client/api/contentguards_rhsm_api.rb +1 -1
- data/lib/pulp_certguard_client/api/contentguards_x509_api.rb +1 -1
- data/lib/pulp_certguard_client/api_client.rb +12 -8
- data/lib/pulp_certguard_client/api_error.rb +1 -1
- data/lib/pulp_certguard_client/configuration.rb +8 -1
- data/lib/pulp_certguard_client/models/certguard_rhsm_cert_guard.rb +2 -2
- data/lib/pulp_certguard_client/models/certguard_rhsm_cert_guard_response.rb +2 -2
- data/lib/pulp_certguard_client/models/certguard_x509_cert_guard.rb +2 -2
- data/lib/pulp_certguard_client/models/certguard_x509_cert_guard_response.rb +2 -2
- data/lib/pulp_certguard_client/models/paginatedcertguard_rhsm_cert_guard_response_list.rb +1 -1
- data/lib/pulp_certguard_client/models/paginatedcertguard_x509_cert_guard_response_list.rb +1 -1
- data/lib/pulp_certguard_client/models/patchedcertguard_rhsm_cert_guard.rb +2 -2
- data/lib/pulp_certguard_client/models/patchedcertguard_x509_cert_guard.rb +2 -2
- data/lib/pulp_certguard_client/version.rb +2 -2
- data/lib/pulp_certguard_client.rb +1 -1
- data/pulp_certguard_client.gemspec +1 -1
- data/spec/api/contentguards_rhsm_api_spec.rb +1 -1
- data/spec/api/contentguards_x509_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/certguard_rhsm_cert_guard_response_spec.rb +1 -1
- data/spec/models/certguard_rhsm_cert_guard_spec.rb +1 -1
- data/spec/models/certguard_x509_cert_guard_response_spec.rb +1 -1
- data/spec/models/certguard_x509_cert_guard_spec.rb +1 -1
- data/spec/models/paginatedcertguard_rhsm_cert_guard_response_list_spec.rb +1 -1
- data/spec/models/paginatedcertguard_x509_cert_guard_response_list_spec.rb +1 -1
- data/spec/models/patchedcertguard_rhsm_cert_guard_spec.rb +1 -1
- data/spec/models/patchedcertguard_x509_cert_guard_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33e29a4897632b801db32fb0bc41c107f0cfab0b8c457ef09e31a49d15d7426b
|
4
|
+
data.tar.gz: 73b2447fc4ac7a812523fba446f0c4a21e7678bbe83c1dad009e3bf66248b1f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69a9fcbc061289a3a14f20c21156908200396d1b93478c769873c889cf611954d716d0a3a475027908913121025484af45af47aa8dc3ab199d87b21f487d0320
|
7
|
+
data.tar.gz: 63d1268ee7b3d3b524d77c5b7b7b73da06278cf2f8b22c0f00087e66772a1a29f232c1422f9076124929e3cf2a7ae1ce0438f16f4c8476e76f00c484e91cde02
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 1.
|
10
|
+
- Package version: 1.4.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_certguard_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_certguard_client-1.
|
27
|
+
gem install ./pulp_certguard_client-1.4.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_certguard_client-1.
|
30
|
+
(for development, run `gem install --dev ./pulp_certguard_client-1.4.0.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_certguard_client', '~> 1.
|
36
|
+
gem 'pulp_certguard_client', '~> 1.4.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**name** | **String** | The unique name. |
|
8
8
|
**description** | **String** | An optional description. | [optional]
|
9
|
-
**ca_certificate** | **String** |
|
9
|
+
**ca_certificate** | **String** | A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity. |
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
9
|
**name** | **String** | The unique name. |
|
10
10
|
**description** | **String** | An optional description. | [optional]
|
11
|
-
**ca_certificate** | **String** |
|
11
|
+
**ca_certificate** | **String** | A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity. |
|
12
12
|
|
13
13
|
## Code Sample
|
14
14
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**name** | **String** | The unique name. |
|
8
8
|
**description** | **String** | An optional description. | [optional]
|
9
|
-
**ca_certificate** | **String** |
|
9
|
+
**ca_certificate** | **String** | A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity. |
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
9
|
**name** | **String** | The unique name. |
|
10
10
|
**description** | **String** | An optional description. | [optional]
|
11
|
-
**ca_certificate** | **String** |
|
11
|
+
**ca_certificate** | **String** | A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity. |
|
12
12
|
|
13
13
|
## Code Sample
|
14
14
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**name** | **String** | The unique name. | [optional]
|
8
8
|
**description** | **String** | An optional description. | [optional]
|
9
|
-
**ca_certificate** | **String** |
|
9
|
+
**ca_certificate** | **String** | A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity. | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**name** | **String** | The unique name. | [optional]
|
8
8
|
**description** | **String** | An optional description. | [optional]
|
9
|
-
**ca_certificate** | **String** |
|
9
|
+
**ca_certificate** | **String** | A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity. | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -53,8 +53,10 @@ module PulpCertguardClient
|
|
53
53
|
:client_cert => @config.ssl_client_cert,
|
54
54
|
:client_key => @config.ssl_client_key
|
55
55
|
}
|
56
|
-
|
57
|
-
|
56
|
+
request_options = {
|
57
|
+
:params_encoder => @config.params_encoder
|
58
|
+
}
|
59
|
+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
|
58
60
|
conn.basic_auth(config.username, config.password)
|
59
61
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
60
62
|
conn.request :multipart
|
@@ -285,11 +287,13 @@ module PulpCertguardClient
|
|
285
287
|
tempfile.write(chunk)
|
286
288
|
end
|
287
289
|
request.on_complete do |response|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
290
|
+
if tempfile
|
291
|
+
tempfile.close
|
292
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
293
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
294
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
295
|
+
"explicitly with `tempfile.delete`"
|
296
|
+
end
|
293
297
|
end
|
294
298
|
end
|
295
299
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -109,6 +109,12 @@ module PulpCertguardClient
|
|
109
109
|
# Client private key file (for client certificate)
|
110
110
|
attr_accessor :ssl_client_key
|
111
111
|
|
112
|
+
# Set this to customize parameters encoder of array parameter.
|
113
|
+
# Default to nil. Faraday uses NestedParamsEncoder when nil.
|
114
|
+
#
|
115
|
+
# @see The params_encoder option of Faraday. Related source code:
|
116
|
+
# https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
|
117
|
+
attr_accessor :params_encoder
|
112
118
|
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
113
119
|
# Default to nil.
|
114
120
|
#
|
@@ -133,6 +139,7 @@ module PulpCertguardClient
|
|
133
139
|
@ssl_ca_file = nil
|
134
140
|
@ssl_client_cert = nil
|
135
141
|
@ssl_client_key = nil
|
142
|
+
@params_encoder = nil
|
136
143
|
@debugging = false
|
137
144
|
@inject_format = false
|
138
145
|
@force_ending_format = false
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,7 +21,7 @@ module PulpCertguardClient
|
|
21
21
|
# An optional description.
|
22
22
|
attr_accessor :description
|
23
23
|
|
24
|
-
#
|
24
|
+
# A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity.
|
25
25
|
attr_accessor :ca_certificate
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,7 +26,7 @@ module PulpCertguardClient
|
|
26
26
|
# An optional description.
|
27
27
|
attr_accessor :description
|
28
28
|
|
29
|
-
#
|
29
|
+
# A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity.
|
30
30
|
attr_accessor :ca_certificate
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,7 +21,7 @@ module PulpCertguardClient
|
|
21
21
|
# An optional description.
|
22
22
|
attr_accessor :description
|
23
23
|
|
24
|
-
#
|
24
|
+
# A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity.
|
25
25
|
attr_accessor :ca_certificate
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,7 +26,7 @@ module PulpCertguardClient
|
|
26
26
|
# An optional description.
|
27
27
|
attr_accessor :description
|
28
28
|
|
29
|
-
#
|
29
|
+
# A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity.
|
30
30
|
attr_accessor :ca_certificate
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,7 +21,7 @@ module PulpCertguardClient
|
|
21
21
|
# An optional description.
|
22
22
|
attr_accessor :description
|
23
23
|
|
24
|
-
#
|
24
|
+
# A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity.
|
25
25
|
attr_accessor :ca_certificate
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,7 +21,7 @@ module PulpCertguardClient
|
|
21
21
|
# An optional description.
|
22
22
|
attr_accessor :description
|
23
23
|
|
24
|
-
#
|
24
|
+
# A Certificate Authority (CA) certificate (or a bundle thereof) used to verify client-certificate authenticity.
|
25
25
|
attr_accessor :ca_certificate
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -6,10 +6,10 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpCertguardClient
|
14
|
-
VERSION = '1.
|
14
|
+
VERSION = '1.4.0'
|
15
15
|
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -118,7 +118,7 @@ describe PulpCertguardClient::ApiClient do
|
|
118
118
|
end
|
119
119
|
|
120
120
|
it 'fails for invalid collection format' do
|
121
|
-
expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
121
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
data/spec/configuration_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_certguard_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -142,12 +142,12 @@ test_files:
|
|
142
142
|
- spec/api/contentguards_x509_api_spec.rb
|
143
143
|
- spec/api_client_spec.rb
|
144
144
|
- spec/configuration_spec.rb
|
145
|
-
- spec/models/certguard_rhsm_cert_guard_response_spec.rb
|
146
|
-
- spec/models/patchedcertguard_rhsm_cert_guard_spec.rb
|
147
|
-
- spec/models/patchedcertguard_x509_cert_guard_spec.rb
|
148
|
-
- spec/models/paginatedcertguard_x509_cert_guard_response_list_spec.rb
|
149
|
-
- spec/models/certguard_rhsm_cert_guard_spec.rb
|
150
145
|
- spec/models/certguard_x509_cert_guard_spec.rb
|
151
146
|
- spec/models/certguard_x509_cert_guard_response_spec.rb
|
147
|
+
- spec/models/certguard_rhsm_cert_guard_response_spec.rb
|
148
|
+
- spec/models/certguard_rhsm_cert_guard_spec.rb
|
152
149
|
- spec/models/paginatedcertguard_rhsm_cert_guard_response_list_spec.rb
|
150
|
+
- spec/models/patchedcertguard_x509_cert_guard_spec.rb
|
151
|
+
- spec/models/paginatedcertguard_x509_cert_guard_response_list_spec.rb
|
152
|
+
- spec/models/patchedcertguard_rhsm_cert_guard_spec.rb
|
153
153
|
- spec/spec_helper.rb
|