vgs_api_client 0.0.15 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -27
  3. data/docker-compose.yaml +3 -6
  4. data/docs/AliasFormat.md +2 -2
  5. data/docs/AliasesApi.md +23 -23
  6. data/docs/ApiError.md +2 -2
  7. data/docs/CreateAliasesRequest.md +2 -2
  8. data/docs/CreateAliasesRequestExisting.md +2 -2
  9. data/docs/CreateAliasesRequestNew.md +2 -2
  10. data/docs/InlineResponse200.md +2 -2
  11. data/docs/InlineResponse2001.md +2 -2
  12. data/docs/InlineResponse201.md +2 -2
  13. data/docs/InlineResponseDefault.md +2 -2
  14. data/docs/ModelAlias.md +2 -2
  15. data/docs/RevealedData.md +2 -2
  16. data/docs/UpdateAliasRequest.md +2 -2
  17. data/docs/UpdateAliasRequestData.md +2 -2
  18. data/git_push.sh +4 -3
  19. data/lib/vgs_api_client/api/aliases_api.rb +3 -9
  20. data/lib/vgs_api_client/api_client.rb +6 -6
  21. data/lib/vgs_api_client/api_error.rb +1 -1
  22. data/lib/vgs_api_client/configuration.rb +2 -3
  23. data/lib/vgs_api_client/models/alias_format.rb +1 -1
  24. data/lib/vgs_api_client/models/api_error.rb +4 -4
  25. data/lib/vgs_api_client/models/create_aliases_request.rb +4 -4
  26. data/lib/vgs_api_client/models/create_aliases_request_existing.rb +4 -4
  27. data/lib/vgs_api_client/models/create_aliases_request_new.rb +4 -4
  28. data/lib/vgs_api_client/models/inline_response200.rb +4 -4
  29. data/lib/vgs_api_client/models/inline_response2001.rb +4 -4
  30. data/lib/vgs_api_client/models/inline_response201.rb +4 -4
  31. data/lib/vgs_api_client/models/inline_response_default.rb +4 -4
  32. data/lib/vgs_api_client/models/model_alias.rb +4 -4
  33. data/lib/vgs_api_client/models/revealed_data.rb +4 -4
  34. data/lib/vgs_api_client/models/update_alias_request.rb +4 -4
  35. data/lib/vgs_api_client/models/update_alias_request_data.rb +4 -4
  36. data/lib/vgs_api_client/version.rb +2 -2
  37. data/lib/vgs_api_client.rb +2 -2
  38. data/{docker → publish}/Dockerfile +1 -1
  39. data/publish/build_and_publish.sh +13 -0
  40. data/spec/api/aliases_api_spec.rb +11 -52
  41. data/spec/api/test_api_spec.rb +137 -0
  42. data/spec/api_client_spec.rb +31 -31
  43. data/spec/configuration_spec.rb +3 -3
  44. data/spec/models/alias_format_spec.rb +4 -4
  45. data/spec/models/api_error_spec.rb +4 -4
  46. data/spec/models/create_aliases_request_existing_spec.rb +4 -4
  47. data/spec/models/create_aliases_request_new_spec.rb +4 -4
  48. data/spec/models/create_aliases_request_spec.rb +4 -4
  49. data/spec/models/inline_response2001_spec.rb +4 -4
  50. data/spec/models/inline_response200_spec.rb +4 -4
  51. data/spec/models/inline_response201_spec.rb +4 -4
  52. data/spec/models/inline_response_default_spec.rb +4 -4
  53. data/spec/models/model_alias_spec.rb +4 -4
  54. data/spec/models/revealed_data_spec.rb +4 -4
  55. data/spec/models/update_alias_request_data_spec.rb +4 -4
  56. data/spec/models/update_alias_request_spec.rb +4 -4
  57. data/test/Dockerfile +16 -0
  58. data/vgs_api_client.gemspec +1 -1
  59. metadata +16 -15
  60. data/Gemfile.lock +0 -70
  61. data/docker/Dockerfile.test +0 -5
  62. data/docker/build_and_publish.sh +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4af32502c69f76e06cf4f4d69f7d63d1f7d906743557a8d1c87419f75f55794
4
- data.tar.gz: dfd60a7a4e8f01b0d14cf5d33de1e4393ac249b722cf47ed02642064981d40dd
3
+ metadata.gz: a202336f7bf8ac294f42b228fa252932052b7eaca6a2a376206e98eaf94b3053
4
+ data.tar.gz: ebbf5246ade60ef57cc938f5fba3ff8a9bc0de487644373be57c7d749c70847e
5
5
  SHA512:
6
- metadata.gz: b6301fee2029e0e9f62d2b4c350a658b540f5a164a1fb506bbb691eb799b6bae46516cf64c3e8142794bee0def369824911cbd5adfddd73853ad3b996c27d1c7
7
- data.tar.gz: 1b4905f0245e43e253c98df0996c4831717b150d0593c334e795f96a7fa6b583700c9a8eee46cd2ba51b6003054e58e5e0c4003129f88eede14be80db309acfb
6
+ metadata.gz: 3e0795189737b8213e67e8a71539a06ec88e271a214605b55ed1795d25cce5a2c44a6a8943c86ce274f0c1cb779a784cc18734b1fee1978ed1f9fa5e8f13d65d
7
+ data.tar.gz: a499c1c304d6682a81a7970d0acbfc18183fe2e37fb8967d93457a9638e748cd8e67bd8eefaae915703c1e11a841253a7b21e957b3f1151a5c782340d4e14f07
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # vgs_api_client
2
2
 
3
- VgsapiClient - the Ruby gem for the Vault HTTP API
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.1
130
+ - Package version: 0.0.27
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.1.gem
146
+ gem install ./vgs_api_client-0.0.27.gem
147
147
  ```
148
148
 
149
- (for development, run `gem install --dev ./vgs_api_client-0.0.1.gem` to install the development dependencies)
149
+ (for development, run `gem install --dev ./vgs_api_client-0.0.27.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.1'
155
+ gem 'vgs_api_client', '~> 0.0.27'
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
- VgsapiClient.configure do |config|
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 = VgsapiClient::AliasesApi.new
186
+ api_instance = VgsApiClient::AliasesApi.new
187
187
  opts = {
188
- create_aliases_request: VgsapiClient::CreateAliasesRequest.new({data: [TODO]}) # CreateAliasesRequest |
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 VgsapiClient::ApiError => e
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
- *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
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
- - [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)
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: docker
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: docker
16
- dockerfile: Dockerfile.test
17
- volumes:
18
- - ./:/src/
14
+ context: .
15
+ dockerfile: test/Dockerfile
data/docs/AliasFormat.md CHANGED
@@ -1,4 +1,4 @@
1
- # VgsapiClient::AliasFormat
1
+ # VgsApiClient::AliasFormat
2
2
 
3
3
  ## Properties
4
4
 
@@ -10,6 +10,6 @@
10
10
  ```ruby
11
11
  require 'vgs_api_client'
12
12
 
13
- instance = VgsapiClient::AliasFormat.new()
13
+ instance = VgsApiClient::AliasFormat.new()
14
14
  ```
15
15
 
data/docs/AliasesApi.md CHANGED
@@ -1,4 +1,4 @@
1
- # VgsapiClient::AliasesApi
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
- VgsapiClient.configure do |config|
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 = VgsapiClient::AliasesApi.new
34
+ api_instance = VgsApiClient::AliasesApi.new
35
35
  opts = {
36
- create_aliases_request: VgsapiClient::CreateAliasesRequest.new({data: [TODO]}) # CreateAliasesRequest |
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 VgsapiClient::ApiError => e
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 VgsapiClient::ApiError => e
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
- VgsapiClient.configure do |config|
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 = VgsapiClient::AliasesApi.new
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 VgsapiClient::ApiError => e
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 VgsapiClient::ApiError => e
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
- VgsapiClient.configure do |config|
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 = VgsapiClient::AliasesApi.new
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 VgsapiClient::ApiError => e
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 VgsapiClient::ApiError => e
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
- VgsapiClient.configure do |config|
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 = VgsapiClient::AliasesApi.new
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 VgsapiClient::ApiError => e
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 VgsapiClient::ApiError => e
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
- VgsapiClient.configure do |config|
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 = VgsapiClient::AliasesApi.new
315
+ api_instance = VgsApiClient::AliasesApi.new
316
316
  _alias = 'tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e' # String | Alias to operate on.
317
317
  opts = {
318
- update_alias_request: VgsapiClient::UpdateAliasRequest.new({data: VgsapiClient::UpdateAliasRequestData.new({classifiers: ['bank-account']})}) # UpdateAliasRequest |
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 VgsapiClient::ApiError => e
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 VgsapiClient::ApiError => e
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
- # VgsapiClient::ApiError
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 = VgsapiClient::ApiError.new(
17
+ instance = VgsApiClient::ApiError.new(
18
18
  detail: null,
19
19
  href: null,
20
20
  status: null,
@@ -1,4 +1,4 @@
1
- # VgsapiClient::CreateAliasesRequest
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 = VgsapiClient::CreateAliasesRequest.new(
14
+ instance = VgsApiClient::CreateAliasesRequest.new(
15
15
  data: null
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # VgsapiClient::CreateAliasesRequestExisting
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 = VgsapiClient::CreateAliasesRequestExisting.new(
15
+ instance = VgsApiClient::CreateAliasesRequestExisting.new(
16
16
  _alias: tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e,
17
17
  format: null
18
18
  )
@@ -1,4 +1,4 @@
1
- # VgsapiClient::CreateAliasesRequestNew
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 = VgsapiClient::CreateAliasesRequestNew.new(
16
+ instance = VgsApiClient::CreateAliasesRequestNew.new(
17
17
  classifiers: null,
18
18
  format: null,
19
19
  value: 122105155
@@ -1,4 +1,4 @@
1
- # VgsapiClient::InlineResponse200
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 = VgsapiClient::InlineResponse200.new(
14
+ instance = VgsApiClient::InlineResponse200.new(
15
15
  data: {&quot;tok_sandbox_5UpnbMvaihRuRwz5QXwBFw&quot;:{&quot;aliases&quot;:[{&quot;format&quot;:&quot;UUID&quot;,&quot;value&quot;:&quot;tok_sandbox_5UpnbMvaihRuRwz5QXwBFw&quot;}],&quot;classifiers&quot;:[&quot;bank-account&quot;],&quot;created_at&quot;:&quot;2019-08-10T11:45:30Z&quot;,&quot;value&quot;:&quot;476673481&quot;},&quot;tok_sandbox_9ToiJHedw1nE1Jfx1qYYgz&quot;:{&quot;aliases&quot;:[{&quot;format&quot;:&quot;UUID&quot;,&quot;value&quot;:&quot;tok_sandbox_9ToiJHedw1nE1Jfx1qYYgz&quot;}],&quot;classifiers&quot;:[&quot;bank-account&quot;],&quot;created_at&quot;:&quot;2019-08-10T11:45:30Z&quot;,&quot;value&quot;:&quot;750360025&quot;}}
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # VgsapiClient::InlineResponse2001
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 = VgsapiClient::InlineResponse2001.new(
14
+ instance = VgsApiClient::InlineResponse2001.new(
15
15
  data: null
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # VgsapiClient::InlineResponse201
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 = VgsapiClient::InlineResponse201.new(
14
+ instance = VgsApiClient::InlineResponse201.new(
15
15
  data: null
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # VgsapiClient::InlineResponseDefault
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 = VgsapiClient::InlineResponseDefault.new(
14
+ instance = VgsApiClient::InlineResponseDefault.new(
15
15
  errors: null
16
16
  )
17
17
  ```
data/docs/ModelAlias.md CHANGED
@@ -1,4 +1,4 @@
1
- # VgsapiClient::ModelAlias
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 = VgsapiClient::ModelAlias.new(
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
- # VgsapiClient::RevealedData
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 = VgsapiClient::RevealedData.new(
17
+ instance = VgsApiClient::RevealedData.new(
18
18
  aliases: null,
19
19
  classifiers: null,
20
20
  created_at: 2019-05-15T12:30:45Z,
@@ -1,4 +1,4 @@
1
- # VgsapiClient::UpdateAliasRequest
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 = VgsapiClient::UpdateAliasRequest.new(
14
+ instance = VgsApiClient::UpdateAliasRequest.new(
15
15
  data: null
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # VgsapiClient::UpdateAliasRequestData
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 = VgsapiClient::UpdateAliasRequestData.new(
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-petstore-perl "minor update" "gitlab.com"
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=$(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}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
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
+
@@ -12,7 +12,7 @@ OpenAPI Generator version: 5.0.1-SNAPSHOT
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module VgsapiClient
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
- content_type = @api_client.select_header_content_type(['application/json'])
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
- content_type = @api_client.select_header_content_type(['application/json'])
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] || {}
@@ -17,7 +17,7 @@ require 'tempfile'
17
17
  require 'time'
18
18
  require 'typhoeus'
19
19
 
20
- module VgsapiClient
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.1/ruby"
34
+ @user_agent = "{{ user_agent_client_name }}{{ library_version }}{{ language_name }}/0.0.27/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 = VgsapiClient.const_get(return_type)
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 header and query params based on authentication settings.
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
- # return nil by default
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
@@ -10,7 +10,7 @@ OpenAPI Generator version: 5.0.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- module VgsapiClient
13
+ module VgsApiClient
14
14
  class ApiError < StandardError
15
15
  attr_reader :code, :response_headers, :response_body
16
16
 
@@ -10,7 +10,7 @@ OpenAPI Generator version: 5.0.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- module VgsapiClient
13
+ module VgsApiClient
14
14
  class Configuration
15
15
  # Defines url scheme
16
16
  attr_accessor :scheme
@@ -147,13 +147,13 @@ module VgsapiClient
147
147
  @server_operation_variables = {}
148
148
  @api_key = {}
149
149
  @api_key_prefix = {}
150
+ @timeout = 0
150
151
  @client_side_validation = true
151
152
  @verify_ssl = true
152
153
  @verify_ssl_host = true
153
154
  @params_encoding = nil
154
155
  @cert_file = nil
155
156
  @key_file = nil
156
- @timeout = 0
157
157
  @debugging = false
158
158
  @inject_format = false
159
159
  @force_ending_format = false
@@ -281,6 +281,5 @@ module VgsapiClient
281
281
 
282
282
  url
283
283
  end
284
-
285
284
  end
286
285
  end