vgs_api_client 0.0.21 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +27 -27
- data/docker-compose.yaml +3 -6
- data/docs/AliasFormat.md +2 -2
- data/docs/AliasesApi.md +23 -23
- data/docs/ApiError.md +2 -2
- data/docs/CreateAliasesRequest.md +2 -2
- data/docs/CreateAliasesRequestExisting.md +2 -2
- data/docs/CreateAliasesRequestNew.md +2 -2
- data/docs/InlineResponse200.md +2 -2
- data/docs/InlineResponse2001.md +2 -2
- data/docs/InlineResponse201.md +2 -2
- data/docs/InlineResponseDefault.md +2 -2
- data/docs/ModelAlias.md +2 -2
- data/docs/RevealedData.md +2 -2
- data/docs/UpdateAliasRequest.md +2 -2
- data/docs/UpdateAliasRequestData.md +2 -2
- data/git_push.sh +4 -3
- data/lib/vgs_api_client/api/aliases_api.rb +4 -10
- data/lib/vgs_api_client/api_client.rb +7 -7
- data/lib/vgs_api_client/api_error.rb +2 -2
- data/lib/vgs_api_client/configuration.rb +3 -4
- data/lib/vgs_api_client/models/alias_format.rb +2 -2
- data/lib/vgs_api_client/models/api_error.rb +5 -5
- data/lib/vgs_api_client/models/create_aliases_request.rb +5 -33
- data/lib/vgs_api_client/models/create_aliases_request_existing.rb +5 -5
- data/lib/vgs_api_client/models/create_aliases_request_new.rb +5 -5
- data/lib/vgs_api_client/models/inline_response200.rb +5 -5
- data/lib/vgs_api_client/models/inline_response2001.rb +5 -29
- data/lib/vgs_api_client/models/inline_response201.rb +5 -5
- data/lib/vgs_api_client/models/inline_response_default.rb +5 -20
- data/lib/vgs_api_client/models/model_alias.rb +5 -5
- data/lib/vgs_api_client/models/revealed_data.rb +5 -5
- data/lib/vgs_api_client/models/update_alias_request.rb +5 -5
- data/lib/vgs_api_client/models/update_alias_request_data.rb +5 -5
- data/lib/vgs_api_client/version.rb +3 -3
- data/lib/vgs_api_client.rb +3 -3
- data/{docker → publish}/Dockerfile +1 -1
- data/{docker → publish}/build_and_publish.sh +3 -1
- data/spec/api/aliases_api_spec.rb +11 -52
- data/spec/api/test_api_spec.rb +137 -0
- data/spec/api_client_spec.rb +32 -32
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/alias_format_spec.rb +4 -4
- data/spec/models/api_error_spec.rb +4 -4
- data/spec/models/create_aliases_request_existing_spec.rb +4 -4
- data/spec/models/create_aliases_request_new_spec.rb +4 -4
- data/spec/models/create_aliases_request_spec.rb +4 -4
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/inline_response201_spec.rb +4 -4
- data/spec/models/inline_response_default_spec.rb +4 -4
- data/spec/models/model_alias_spec.rb +4 -4
- data/spec/models/revealed_data_spec.rb +4 -4
- data/spec/models/update_alias_request_data_spec.rb +4 -4
- data/spec/models/update_alias_request_spec.rb +4 -4
- data/spec/spec_helper.rb +1 -1
- data/test/Dockerfile +16 -0
- data/vgs_api_client.gemspec +2 -2
- metadata +7 -6
- data/Gemfile.lock +0 -70
- data/docker/Dockerfile.test +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 275b94334cdaa4b30aff6cadbd0d496ceaf1348aa4df066b9d0db8d7f52d1cc0
|
4
|
+
data.tar.gz: d60add139b0706a9db8ce4cd97a3293d265d363f1e7c7fdfa9cd39ead42d8cc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fcc163e687e63f3414aead69a12371b164989e77419093df2c05d3cd576ca81dc422165fcca01be2d8eff1dc04cb152859781425d7e515c1a07b59eea1df7c7
|
7
|
+
data.tar.gz: a63f9fe586e8b871c9ef63fd16299b0320e3d112725d576c70e57d80e420a96bf76b05a41ae734ffc29a16d14a60fbfe50b40aa47a209bccdc52b93f58510d47
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# vgs_api_client
|
2
2
|
|
3
|
-
|
3
|
+
VgsApiClient - the Ruby gem for the Vault HTTP API
|
4
4
|
|
5
5
|
Storing, retrieving, and managing sensitive data within a VGS organization.
|
6
6
|
|
@@ -127,7 +127,7 @@ following response:
|
|
127
127
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
128
128
|
|
129
129
|
- API version: 1.0.0
|
130
|
-
- Package version: 0.0.
|
130
|
+
- Package version: 0.0.26
|
131
131
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
132
132
|
|
133
133
|
## Installation
|
@@ -143,16 +143,16 @@ gem build vgs_api_client.gemspec
|
|
143
143
|
Then either install the gem locally:
|
144
144
|
|
145
145
|
```shell
|
146
|
-
gem install ./vgs_api_client-0.0.
|
146
|
+
gem install ./vgs_api_client-0.0.26.gem
|
147
147
|
```
|
148
148
|
|
149
|
-
(for development, run `gem install --dev ./vgs_api_client-0.0.
|
149
|
+
(for development, run `gem install --dev ./vgs_api_client-0.0.26.gem` to install the development dependencies)
|
150
150
|
|
151
151
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
152
152
|
|
153
153
|
Finally add this to the Gemfile:
|
154
154
|
|
155
|
-
gem 'vgs_api_client', '~> 0.0.
|
155
|
+
gem 'vgs_api_client', '~> 0.0.26'
|
156
156
|
|
157
157
|
### Install from Git
|
158
158
|
|
@@ -177,22 +177,22 @@ Please follow the [installation](#installation) procedure and then run the follo
|
|
177
177
|
require 'vgs_api_client'
|
178
178
|
|
179
179
|
# Setup authorization
|
180
|
-
|
180
|
+
VgsApiClient.configure do |config|
|
181
181
|
# Configure HTTP basic authorization: basicAuth
|
182
182
|
config.username = 'YOUR_USERNAME'
|
183
183
|
config.password = 'YOUR_PASSWORD'
|
184
184
|
end
|
185
185
|
|
186
|
-
api_instance =
|
186
|
+
api_instance = VgsApiClient::AliasesApi.new
|
187
187
|
opts = {
|
188
|
-
create_aliases_request:
|
188
|
+
create_aliases_request: VgsApiClient::CreateAliasesRequest.new({data: [TODO]}) # CreateAliasesRequest |
|
189
189
|
}
|
190
190
|
|
191
191
|
begin
|
192
192
|
#Create aliases
|
193
193
|
result = api_instance.create_aliases(opts)
|
194
194
|
p result
|
195
|
-
rescue
|
195
|
+
rescue VgsApiClient::ApiError => e
|
196
196
|
puts "Exception when calling AliasesApi->create_aliases: #{e}"
|
197
197
|
end
|
198
198
|
|
@@ -204,28 +204,28 @@ All URIs are relative to *https://api.sandbox.verygoodvault.com*
|
|
204
204
|
|
205
205
|
Class | Method | HTTP request | Description
|
206
206
|
------------ | ------------- | ------------- | -------------
|
207
|
-
*
|
208
|
-
*
|
209
|
-
*
|
210
|
-
*
|
211
|
-
*
|
207
|
+
*VgsApiClient::AliasesApi* | [**create_aliases**](docs/AliasesApi.md#create_aliases) | **POST** /aliases | Create aliases
|
208
|
+
*VgsApiClient::AliasesApi* | [**delete_alias**](docs/AliasesApi.md#delete_alias) | **DELETE** /aliases/{alias} | Delete alias
|
209
|
+
*VgsApiClient::AliasesApi* | [**reveal_alias**](docs/AliasesApi.md#reveal_alias) | **GET** /aliases/{alias} | Reveal single alias
|
210
|
+
*VgsApiClient::AliasesApi* | [**reveal_multiple_aliases**](docs/AliasesApi.md#reveal_multiple_aliases) | **GET** /aliases | Reveal multiple aliases
|
211
|
+
*VgsApiClient::AliasesApi* | [**update_alias**](docs/AliasesApi.md#update_alias) | **PUT** /aliases/{alias} | Update data classifiers
|
212
212
|
|
213
213
|
|
214
214
|
## Documentation for Models
|
215
215
|
|
216
|
-
- [
|
217
|
-
- [
|
218
|
-
- [
|
219
|
-
- [
|
220
|
-
- [
|
221
|
-
- [
|
222
|
-
- [
|
223
|
-
- [
|
224
|
-
- [
|
225
|
-
- [
|
226
|
-
- [
|
227
|
-
- [
|
228
|
-
- [
|
216
|
+
- [VgsApiClient::AliasFormat](docs/AliasFormat.md)
|
217
|
+
- [VgsApiClient::ApiError](docs/ApiError.md)
|
218
|
+
- [VgsApiClient::CreateAliasesRequest](docs/CreateAliasesRequest.md)
|
219
|
+
- [VgsApiClient::CreateAliasesRequestExisting](docs/CreateAliasesRequestExisting.md)
|
220
|
+
- [VgsApiClient::CreateAliasesRequestNew](docs/CreateAliasesRequestNew.md)
|
221
|
+
- [VgsApiClient::InlineResponse200](docs/InlineResponse200.md)
|
222
|
+
- [VgsApiClient::InlineResponse2001](docs/InlineResponse2001.md)
|
223
|
+
- [VgsApiClient::InlineResponse201](docs/InlineResponse201.md)
|
224
|
+
- [VgsApiClient::InlineResponseDefault](docs/InlineResponseDefault.md)
|
225
|
+
- [VgsApiClient::ModelAlias](docs/ModelAlias.md)
|
226
|
+
- [VgsApiClient::RevealedData](docs/RevealedData.md)
|
227
|
+
- [VgsApiClient::UpdateAliasRequest](docs/UpdateAliasRequest.md)
|
228
|
+
- [VgsApiClient::UpdateAliasRequestData](docs/UpdateAliasRequestData.md)
|
229
229
|
|
230
230
|
|
231
231
|
## Documentation for Authorization
|
data/docker-compose.yaml
CHANGED
@@ -3,8 +3,7 @@ version: '3.7'
|
|
3
3
|
services:
|
4
4
|
build_and_publish:
|
5
5
|
build:
|
6
|
-
context:
|
7
|
-
dockerfile: Dockerfile
|
6
|
+
context: publish
|
8
7
|
args:
|
9
8
|
GEM_VGS_PUBLISH_TOKEN: ${GEM_VGS_PUBLISH_TOKEN}
|
10
9
|
LIB_VERSION: ${LIB_VERSION}
|
@@ -12,7 +11,5 @@ services:
|
|
12
11
|
- ./:/src/
|
13
12
|
test:
|
14
13
|
build:
|
15
|
-
context:
|
16
|
-
dockerfile: Dockerfile
|
17
|
-
volumes:
|
18
|
-
- ./:/src/
|
14
|
+
context: .
|
15
|
+
dockerfile: test/Dockerfile
|
data/docs/AliasFormat.md
CHANGED
data/docs/AliasesApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::AliasesApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://api.sandbox.verygoodvault.com*
|
4
4
|
|
@@ -25,22 +25,22 @@ Stores multiple values at once & returns their aliases. Alternatively, this end
|
|
25
25
|
require 'time'
|
26
26
|
require 'vgs_api_client'
|
27
27
|
# setup authorization
|
28
|
-
|
28
|
+
VgsApiClient.configure do |config|
|
29
29
|
# Configure HTTP basic authorization: basicAuth
|
30
30
|
config.username = 'YOUR USERNAME'
|
31
31
|
config.password = 'YOUR PASSWORD'
|
32
32
|
end
|
33
33
|
|
34
|
-
api_instance =
|
34
|
+
api_instance = VgsApiClient::AliasesApi.new
|
35
35
|
opts = {
|
36
|
-
create_aliases_request:
|
36
|
+
create_aliases_request: VgsApiClient::CreateAliasesRequest.new({data: [TODO]}) # CreateAliasesRequest |
|
37
37
|
}
|
38
38
|
|
39
39
|
begin
|
40
40
|
# Create aliases
|
41
41
|
result = api_instance.create_aliases(opts)
|
42
42
|
p result
|
43
|
-
rescue
|
43
|
+
rescue VgsApiClient::ApiError => e
|
44
44
|
puts "Error when calling AliasesApi->create_aliases: #{e}"
|
45
45
|
end
|
46
46
|
```
|
@@ -58,7 +58,7 @@ begin
|
|
58
58
|
p status_code # => 2xx
|
59
59
|
p headers # => { ... }
|
60
60
|
p data # => <InlineResponse201>
|
61
|
-
rescue
|
61
|
+
rescue VgsApiClient::ApiError => e
|
62
62
|
puts "Error when calling AliasesApi->create_aliases_with_http_info: #{e}"
|
63
63
|
end
|
64
64
|
```
|
@@ -97,19 +97,19 @@ Removes a single alias.
|
|
97
97
|
require 'time'
|
98
98
|
require 'vgs_api_client'
|
99
99
|
# setup authorization
|
100
|
-
|
100
|
+
VgsApiClient.configure do |config|
|
101
101
|
# Configure HTTP basic authorization: basicAuth
|
102
102
|
config.username = 'YOUR USERNAME'
|
103
103
|
config.password = 'YOUR PASSWORD'
|
104
104
|
end
|
105
105
|
|
106
|
-
api_instance =
|
106
|
+
api_instance = VgsApiClient::AliasesApi.new
|
107
107
|
_alias = 'tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e' # String | Alias to operate on.
|
108
108
|
|
109
109
|
begin
|
110
110
|
# Delete alias
|
111
111
|
api_instance.delete_alias(_alias)
|
112
|
-
rescue
|
112
|
+
rescue VgsApiClient::ApiError => e
|
113
113
|
puts "Error when calling AliasesApi->delete_alias: #{e}"
|
114
114
|
end
|
115
115
|
```
|
@@ -127,7 +127,7 @@ begin
|
|
127
127
|
p status_code # => 2xx
|
128
128
|
p headers # => { ... }
|
129
129
|
p data # => nil
|
130
|
-
rescue
|
130
|
+
rescue VgsApiClient::ApiError => e
|
131
131
|
puts "Error when calling AliasesApi->delete_alias_with_http_info: #{e}"
|
132
132
|
end
|
133
133
|
```
|
@@ -166,20 +166,20 @@ Retrieves a stored value along with its aliases. **NOTE:** This endpoint may ex
|
|
166
166
|
require 'time'
|
167
167
|
require 'vgs_api_client'
|
168
168
|
# setup authorization
|
169
|
-
|
169
|
+
VgsApiClient.configure do |config|
|
170
170
|
# Configure HTTP basic authorization: basicAuth
|
171
171
|
config.username = 'YOUR USERNAME'
|
172
172
|
config.password = 'YOUR PASSWORD'
|
173
173
|
end
|
174
174
|
|
175
|
-
api_instance =
|
175
|
+
api_instance = VgsApiClient::AliasesApi.new
|
176
176
|
_alias = 'tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e' # String | Alias to operate on.
|
177
177
|
|
178
178
|
begin
|
179
179
|
# Reveal single alias
|
180
180
|
result = api_instance.reveal_alias(_alias)
|
181
181
|
p result
|
182
|
-
rescue
|
182
|
+
rescue VgsApiClient::ApiError => e
|
183
183
|
puts "Error when calling AliasesApi->reveal_alias: #{e}"
|
184
184
|
end
|
185
185
|
```
|
@@ -197,7 +197,7 @@ begin
|
|
197
197
|
p status_code # => 2xx
|
198
198
|
p headers # => { ... }
|
199
199
|
p data # => <InlineResponse2001>
|
200
|
-
rescue
|
200
|
+
rescue VgsApiClient::ApiError => e
|
201
201
|
puts "Error when calling AliasesApi->reveal_alias_with_http_info: #{e}"
|
202
202
|
end
|
203
203
|
```
|
@@ -236,20 +236,20 @@ Given a comma separated aliases string, retrieves all associated values stored i
|
|
236
236
|
require 'time'
|
237
237
|
require 'vgs_api_client'
|
238
238
|
# setup authorization
|
239
|
-
|
239
|
+
VgsApiClient.configure do |config|
|
240
240
|
# Configure HTTP basic authorization: basicAuth
|
241
241
|
config.username = 'YOUR USERNAME'
|
242
242
|
config.password = 'YOUR PASSWORD'
|
243
243
|
end
|
244
244
|
|
245
|
-
api_instance =
|
245
|
+
api_instance = VgsApiClient::AliasesApi.new
|
246
246
|
q = 'tok_sandbox_5UpnbMvaihRuRwz5QXwBFw, tok_sandbox_9ToiJHedw1nE1Jfx1qYYgz' # String | Comma-separated aliases string
|
247
247
|
|
248
248
|
begin
|
249
249
|
# Reveal multiple aliases
|
250
250
|
result = api_instance.reveal_multiple_aliases(q)
|
251
251
|
p result
|
252
|
-
rescue
|
252
|
+
rescue VgsApiClient::ApiError => e
|
253
253
|
puts "Error when calling AliasesApi->reveal_multiple_aliases: #{e}"
|
254
254
|
end
|
255
255
|
```
|
@@ -267,7 +267,7 @@ begin
|
|
267
267
|
p status_code # => 2xx
|
268
268
|
p headers # => { ... }
|
269
269
|
p data # => <InlineResponse200>
|
270
|
-
rescue
|
270
|
+
rescue VgsApiClient::ApiError => e
|
271
271
|
puts "Error when calling AliasesApi->reveal_multiple_aliases_with_http_info: #{e}"
|
272
272
|
end
|
273
273
|
```
|
@@ -306,22 +306,22 @@ Apply new classifiers to the value that the specified alias is associated with.
|
|
306
306
|
require 'time'
|
307
307
|
require 'vgs_api_client'
|
308
308
|
# setup authorization
|
309
|
-
|
309
|
+
VgsApiClient.configure do |config|
|
310
310
|
# Configure HTTP basic authorization: basicAuth
|
311
311
|
config.username = 'YOUR USERNAME'
|
312
312
|
config.password = 'YOUR PASSWORD'
|
313
313
|
end
|
314
314
|
|
315
|
-
api_instance =
|
315
|
+
api_instance = VgsApiClient::AliasesApi.new
|
316
316
|
_alias = 'tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e' # String | Alias to operate on.
|
317
317
|
opts = {
|
318
|
-
update_alias_request:
|
318
|
+
update_alias_request: VgsApiClient::UpdateAliasRequest.new({data: VgsApiClient::UpdateAliasRequestData.new({classifiers: ['bank-account']})}) # UpdateAliasRequest |
|
319
319
|
}
|
320
320
|
|
321
321
|
begin
|
322
322
|
# Update data classifiers
|
323
323
|
api_instance.update_alias(_alias, opts)
|
324
|
-
rescue
|
324
|
+
rescue VgsApiClient::ApiError => e
|
325
325
|
puts "Error when calling AliasesApi->update_alias: #{e}"
|
326
326
|
end
|
327
327
|
```
|
@@ -339,7 +339,7 @@ begin
|
|
339
339
|
p status_code # => 2xx
|
340
340
|
p headers # => { ... }
|
341
341
|
p data # => nil
|
342
|
-
rescue
|
342
|
+
rescue VgsApiClient::ApiError => e
|
343
343
|
puts "Error when calling AliasesApi->update_alias_with_http_info: #{e}"
|
344
344
|
end
|
345
345
|
```
|
data/docs/ApiError.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::ApiError
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
```ruby
|
15
15
|
require 'vgs_api_client'
|
16
16
|
|
17
|
-
instance =
|
17
|
+
instance = VgsApiClient::ApiError.new(
|
18
18
|
detail: null,
|
19
19
|
href: null,
|
20
20
|
status: null,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::CreateAliasesRequest
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'vgs_api_client'
|
13
13
|
|
14
|
-
instance =
|
14
|
+
instance = VgsApiClient::CreateAliasesRequest.new(
|
15
15
|
data: null
|
16
16
|
)
|
17
17
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::CreateAliasesRequestExisting
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
```ruby
|
13
13
|
require 'vgs_api_client'
|
14
14
|
|
15
|
-
instance =
|
15
|
+
instance = VgsApiClient::CreateAliasesRequestExisting.new(
|
16
16
|
_alias: tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e,
|
17
17
|
format: null
|
18
18
|
)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::CreateAliasesRequestNew
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
```ruby
|
14
14
|
require 'vgs_api_client'
|
15
15
|
|
16
|
-
instance =
|
16
|
+
instance = VgsApiClient::CreateAliasesRequestNew.new(
|
17
17
|
classifiers: null,
|
18
18
|
format: null,
|
19
19
|
value: 122105155
|
data/docs/InlineResponse200.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::InlineResponse200
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'vgs_api_client'
|
13
13
|
|
14
|
-
instance =
|
14
|
+
instance = VgsApiClient::InlineResponse200.new(
|
15
15
|
data: {"tok_sandbox_5UpnbMvaihRuRwz5QXwBFw":{"aliases":[{"format":"UUID","value":"tok_sandbox_5UpnbMvaihRuRwz5QXwBFw"}],"classifiers":["bank-account"],"created_at":"2019-08-10T11:45:30Z","value":"476673481"},"tok_sandbox_9ToiJHedw1nE1Jfx1qYYgz":{"aliases":[{"format":"UUID","value":"tok_sandbox_9ToiJHedw1nE1Jfx1qYYgz"}],"classifiers":["bank-account"],"created_at":"2019-08-10T11:45:30Z","value":"750360025"}}
|
16
16
|
)
|
17
17
|
```
|
data/docs/InlineResponse2001.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::InlineResponse2001
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'vgs_api_client'
|
13
13
|
|
14
|
-
instance =
|
14
|
+
instance = VgsApiClient::InlineResponse2001.new(
|
15
15
|
data: null
|
16
16
|
)
|
17
17
|
```
|
data/docs/InlineResponse201.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::InlineResponse201
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'vgs_api_client'
|
13
13
|
|
14
|
-
instance =
|
14
|
+
instance = VgsApiClient::InlineResponse201.new(
|
15
15
|
data: null
|
16
16
|
)
|
17
17
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::InlineResponseDefault
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'vgs_api_client'
|
13
13
|
|
14
|
-
instance =
|
14
|
+
instance = VgsApiClient::InlineResponseDefault.new(
|
15
15
|
errors: null
|
16
16
|
)
|
17
17
|
```
|
data/docs/ModelAlias.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::ModelAlias
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
```ruby
|
13
13
|
require 'vgs_api_client'
|
14
14
|
|
15
|
-
instance =
|
15
|
+
instance = VgsApiClient::ModelAlias.new(
|
16
16
|
_alias: tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e,
|
17
17
|
format: null
|
18
18
|
)
|
data/docs/RevealedData.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::RevealedData
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
```ruby
|
15
15
|
require 'vgs_api_client'
|
16
16
|
|
17
|
-
instance =
|
17
|
+
instance = VgsApiClient::RevealedData.new(
|
18
18
|
aliases: null,
|
19
19
|
classifiers: null,
|
20
20
|
created_at: 2019-05-15T12:30:45Z,
|
data/docs/UpdateAliasRequest.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::UpdateAliasRequest
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'vgs_api_client'
|
13
13
|
|
14
|
-
instance =
|
14
|
+
instance = VgsApiClient::UpdateAliasRequest.new(
|
15
15
|
data: null
|
16
16
|
)
|
17
17
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# VgsApiClient::UpdateAliasRequestData
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'vgs_api_client'
|
13
13
|
|
14
|
-
instance =
|
14
|
+
instance = VgsApiClient::UpdateAliasRequestData.new(
|
15
15
|
classifiers: null
|
16
16
|
)
|
17
17
|
```
|
data/git_push.sh
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
3
|
#
|
4
|
-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
5
|
|
6
6
|
git_user_id=$1
|
7
7
|
git_repo_id=$2
|
@@ -38,14 +38,14 @@ git add .
|
|
38
38
|
git commit -m "$release_note"
|
39
39
|
|
40
40
|
# Sets the new remote
|
41
|
-
git_remote
|
41
|
+
git_remote=`git remote`
|
42
42
|
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
43
|
|
44
44
|
if [ "$GIT_TOKEN" = "" ]; then
|
45
45
|
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
46
|
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
47
|
else
|
48
|
-
git remote add origin https://${git_user_id}
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
49
|
fi
|
50
50
|
|
51
51
|
fi
|
@@ -55,3 +55,4 @@ git pull origin master
|
|
55
55
|
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
56
|
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
57
|
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|
@@ -6,13 +6,13 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
|
-
module
|
15
|
+
module VgsApiClient
|
16
16
|
class AliasesApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
@@ -49,10 +49,7 @@ module VgsapiClient
|
|
49
49
|
# HTTP header 'Accept' (if needed)
|
50
50
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
51
|
# HTTP header 'Content-Type'
|
52
|
-
|
53
|
-
if !content_type.nil?
|
54
|
-
header_params['Content-Type'] = content_type
|
55
|
-
end
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
56
53
|
|
57
54
|
# form parameters
|
58
55
|
form_params = opts[:form_params] || {}
|
@@ -309,10 +306,7 @@ module VgsapiClient
|
|
309
306
|
# HTTP header 'Accept' (if needed)
|
310
307
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
311
308
|
# HTTP header 'Content-Type'
|
312
|
-
|
313
|
-
if !content_type.nil?
|
314
|
-
header_params['Content-Type'] = content_type
|
315
|
-
end
|
309
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
316
310
|
|
317
311
|
# form parameters
|
318
312
|
form_params = opts[:form_params] || {}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,7 +17,7 @@ require 'tempfile'
|
|
17
17
|
require 'time'
|
18
18
|
require 'typhoeus'
|
19
19
|
|
20
|
-
module
|
20
|
+
module VgsApiClient
|
21
21
|
class ApiClient
|
22
22
|
# The Configuration object holding settings to be used in the API client.
|
23
23
|
attr_accessor :config
|
@@ -31,7 +31,7 @@ module VgsapiClient
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
32
32
|
def initialize(config = Configuration.default)
|
33
33
|
@config = config
|
34
|
-
@user_agent = "{{ user_agent_client_name }}{{ library_version }}{{ language_name }}/0.0.
|
34
|
+
@user_agent = "{{ user_agent_client_name }}{{ library_version }}{{ language_name }}/0.0.26/ruby"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
@@ -276,7 +276,7 @@ module VgsapiClient
|
|
276
276
|
end
|
277
277
|
else
|
278
278
|
# models (e.g. Pet) or oneOf
|
279
|
-
klass =
|
279
|
+
klass = VgsApiClient.const_get(return_type)
|
280
280
|
klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data)
|
281
281
|
end
|
282
282
|
end
|
@@ -296,7 +296,7 @@ module VgsapiClient
|
|
296
296
|
@config.base_url(opts[:operation]) + path
|
297
297
|
end
|
298
298
|
|
299
|
-
# Update
|
299
|
+
# Update hearder and query params based on authentication settings.
|
300
300
|
#
|
301
301
|
# @param [Hash] header_params Header parameters
|
302
302
|
# @param [Hash] query_params Query parameters
|
@@ -335,8 +335,8 @@ module VgsapiClient
|
|
335
335
|
# @param [Array] content_types array for Content-Type
|
336
336
|
# @return [String] the Content-Type header (e.g. application/json)
|
337
337
|
def select_header_content_type(content_types)
|
338
|
-
#
|
339
|
-
return if content_types.nil? || content_types.empty?
|
338
|
+
# use application/json by default
|
339
|
+
return 'application/json' if content_types.nil? || content_types.empty?
|
340
340
|
# use JSON when present, otherwise use the first one
|
341
341
|
json_content_type = content_types.find { |s| json_mime?(s) }
|
342
342
|
json_content_type || content_types.first
|
@@ -6,11 +6,11 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@verygoodsecurity.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
module
|
13
|
+
module VgsApiClient
|
14
14
|
class ApiError < StandardError
|
15
15
|
attr_reader :code, :response_headers, :response_body
|
16
16
|
|