vgs_api_client 0.0.1

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.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +70 -0
  4. data/README.md +237 -0
  5. data/Rakefile +10 -0
  6. data/docs/AliasFormat.md +15 -0
  7. data/docs/AliasesApi.md +366 -0
  8. data/docs/ApiError.md +24 -0
  9. data/docs/CreateAliasesRequest.md +18 -0
  10. data/docs/CreateAliasesRequestExisting.md +20 -0
  11. data/docs/CreateAliasesRequestNew.md +22 -0
  12. data/docs/InlineResponse200.md +18 -0
  13. data/docs/InlineResponse2001.md +18 -0
  14. data/docs/InlineResponse201.md +18 -0
  15. data/docs/InlineResponseDefault.md +18 -0
  16. data/docs/ModelAlias.md +20 -0
  17. data/docs/RevealedData.md +24 -0
  18. data/docs/UpdateAliasRequest.md +18 -0
  19. data/docs/UpdateAliasRequestData.md +18 -0
  20. data/git_push.sh +57 -0
  21. data/lib/vgs_api_client/api/aliases_api.rb +355 -0
  22. data/lib/vgs_api_client/api_client.rb +390 -0
  23. data/lib/vgs_api_client/api_error.rb +57 -0
  24. data/lib/vgs_api_client/configuration.rb +286 -0
  25. data/lib/vgs_api_client/models/alias_format.rb +44 -0
  26. data/lib/vgs_api_client/models/api_error.rb +249 -0
  27. data/lib/vgs_api_client/models/create_aliases_request.rb +225 -0
  28. data/lib/vgs_api_client/models/create_aliases_request_existing.rb +238 -0
  29. data/lib/vgs_api_client/models/create_aliases_request_new.rb +250 -0
  30. data/lib/vgs_api_client/models/inline_response200.rb +220 -0
  31. data/lib/vgs_api_client/models/inline_response2001.rb +221 -0
  32. data/lib/vgs_api_client/models/inline_response201.rb +221 -0
  33. data/lib/vgs_api_client/models/inline_response_default.rb +221 -0
  34. data/lib/vgs_api_client/models/model_alias.rb +228 -0
  35. data/lib/vgs_api_client/models/revealed_data.rb +253 -0
  36. data/lib/vgs_api_client/models/update_alias_request.rb +223 -0
  37. data/lib/vgs_api_client/models/update_alias_request_data.rb +226 -0
  38. data/lib/vgs_api_client/version.rb +15 -0
  39. data/lib/vgs_api_client.rb +53 -0
  40. data/spec/api/aliases_api_spec.rb +137 -0
  41. data/spec/api_client_spec.rb +226 -0
  42. data/spec/configuration_spec.rb +42 -0
  43. data/spec/models/alias_format_spec.rb +28 -0
  44. data/spec/models/api_error_spec.rb +52 -0
  45. data/spec/models/create_aliases_request_existing_spec.rb +40 -0
  46. data/spec/models/create_aliases_request_new_spec.rb +46 -0
  47. data/spec/models/create_aliases_request_spec.rb +34 -0
  48. data/spec/models/inline_response2001_spec.rb +34 -0
  49. data/spec/models/inline_response200_spec.rb +34 -0
  50. data/spec/models/inline_response201_spec.rb +34 -0
  51. data/spec/models/inline_response_default_spec.rb +34 -0
  52. data/spec/models/model_alias_spec.rb +40 -0
  53. data/spec/models/revealed_data_spec.rb +52 -0
  54. data/spec/models/update_alias_request_data_spec.rb +34 -0
  55. data/spec/models/update_alias_request_spec.rb +34 -0
  56. data/spec/spec_helper.rb +111 -0
  57. data/vgs_api_client.gemspec +38 -0
  58. metadata +156 -0
@@ -0,0 +1,366 @@
1
+ # VgsapiClient::AliasesApi
2
+
3
+ All URIs are relative to *https://api.sandbox.verygoodvault.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_aliases**](AliasesApi.md#create_aliases) | **POST** /aliases | Create aliases |
8
+ | [**delete_alias**](AliasesApi.md#delete_alias) | **DELETE** /aliases/{alias} | Delete alias |
9
+ | [**reveal_alias**](AliasesApi.md#reveal_alias) | **GET** /aliases/{alias} | Reveal single alias |
10
+ | [**reveal_multiple_aliases**](AliasesApi.md#reveal_multiple_aliases) | **GET** /aliases | Reveal multiple aliases |
11
+ | [**update_alias**](AliasesApi.md#update_alias) | **PUT** /aliases/{alias} | Update data classifiers |
12
+
13
+
14
+ ## create_aliases
15
+
16
+ > <InlineResponse201> create_aliases(opts)
17
+
18
+ Create aliases
19
+
20
+ Stores multiple values at once & returns their aliases. Alternatively, this endpoint may be used to associate additional (i.e. secondary) aliases with the same underlying data as the reference alias specified in the request body. **NOTE:** You cannot reference the same alias more than once in a single request.
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'vgs_api_client'
27
+ # setup authorization
28
+ VgsapiClient.configure do |config|
29
+ # Configure HTTP basic authorization: basicAuth
30
+ config.username = 'YOUR USERNAME'
31
+ config.password = 'YOUR PASSWORD'
32
+ end
33
+
34
+ api_instance = VgsapiClient::AliasesApi.new
35
+ opts = {
36
+ create_aliases_request: VgsapiClient::CreateAliasesRequest.new({data: [TODO]}) # CreateAliasesRequest |
37
+ }
38
+
39
+ begin
40
+ # Create aliases
41
+ result = api_instance.create_aliases(opts)
42
+ p result
43
+ rescue VgsapiClient::ApiError => e
44
+ puts "Error when calling AliasesApi->create_aliases: #{e}"
45
+ end
46
+ ```
47
+
48
+ #### Using the create_aliases_with_http_info variant
49
+
50
+ This returns an Array which contains the response data, status code and headers.
51
+
52
+ > <Array(<InlineResponse201>, Integer, Hash)> create_aliases_with_http_info(opts)
53
+
54
+ ```ruby
55
+ begin
56
+ # Create aliases
57
+ data, status_code, headers = api_instance.create_aliases_with_http_info(opts)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => <InlineResponse201>
61
+ rescue VgsapiClient::ApiError => e
62
+ puts "Error when calling AliasesApi->create_aliases_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **create_aliases_request** | [**CreateAliasesRequest**](CreateAliasesRequest.md) | | [optional] |
71
+
72
+ ### Return type
73
+
74
+ [**InlineResponse201**](InlineResponse201.md)
75
+
76
+ ### Authorization
77
+
78
+ [basicAuth](../README.md#basicAuth)
79
+
80
+ ### HTTP request headers
81
+
82
+ - **Content-Type**: application/json
83
+ - **Accept**: application/json
84
+
85
+
86
+ ## delete_alias
87
+
88
+ > delete_alias(_alias)
89
+
90
+ Delete alias
91
+
92
+ Removes a single alias.
93
+
94
+ ### Examples
95
+
96
+ ```ruby
97
+ require 'time'
98
+ require 'vgs_api_client'
99
+ # setup authorization
100
+ VgsapiClient.configure do |config|
101
+ # Configure HTTP basic authorization: basicAuth
102
+ config.username = 'YOUR USERNAME'
103
+ config.password = 'YOUR PASSWORD'
104
+ end
105
+
106
+ api_instance = VgsapiClient::AliasesApi.new
107
+ _alias = 'tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e' # String | Alias to operate on.
108
+
109
+ begin
110
+ # Delete alias
111
+ api_instance.delete_alias(_alias)
112
+ rescue VgsapiClient::ApiError => e
113
+ puts "Error when calling AliasesApi->delete_alias: #{e}"
114
+ end
115
+ ```
116
+
117
+ #### Using the delete_alias_with_http_info variant
118
+
119
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
120
+
121
+ > <Array(nil, Integer, Hash)> delete_alias_with_http_info(_alias)
122
+
123
+ ```ruby
124
+ begin
125
+ # Delete alias
126
+ data, status_code, headers = api_instance.delete_alias_with_http_info(_alias)
127
+ p status_code # => 2xx
128
+ p headers # => { ... }
129
+ p data # => nil
130
+ rescue VgsapiClient::ApiError => e
131
+ puts "Error when calling AliasesApi->delete_alias_with_http_info: #{e}"
132
+ end
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+ | Name | Type | Description | Notes |
138
+ | ---- | ---- | ----------- | ----- |
139
+ | **_alias** | **String** | Alias to operate on. | |
140
+
141
+ ### Return type
142
+
143
+ nil (empty response body)
144
+
145
+ ### Authorization
146
+
147
+ [basicAuth](../README.md#basicAuth)
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: Not defined
152
+ - **Accept**: application/json
153
+
154
+
155
+ ## reveal_alias
156
+
157
+ > <InlineResponse2001> reveal_alias(_alias)
158
+
159
+ Reveal single alias
160
+
161
+ Retrieves a stored value along with its aliases. **NOTE:** This endpoint may expose sensitive data. Therefore, it is disabled by default. To enable it, please contact your VGS account manager or drop us a line at [support@verygoodsecurity.com](mailto:support@verygoodsecurity.com).
162
+
163
+ ### Examples
164
+
165
+ ```ruby
166
+ require 'time'
167
+ require 'vgs_api_client'
168
+ # setup authorization
169
+ VgsapiClient.configure do |config|
170
+ # Configure HTTP basic authorization: basicAuth
171
+ config.username = 'YOUR USERNAME'
172
+ config.password = 'YOUR PASSWORD'
173
+ end
174
+
175
+ api_instance = VgsapiClient::AliasesApi.new
176
+ _alias = 'tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e' # String | Alias to operate on.
177
+
178
+ begin
179
+ # Reveal single alias
180
+ result = api_instance.reveal_alias(_alias)
181
+ p result
182
+ rescue VgsapiClient::ApiError => e
183
+ puts "Error when calling AliasesApi->reveal_alias: #{e}"
184
+ end
185
+ ```
186
+
187
+ #### Using the reveal_alias_with_http_info variant
188
+
189
+ This returns an Array which contains the response data, status code and headers.
190
+
191
+ > <Array(<InlineResponse2001>, Integer, Hash)> reveal_alias_with_http_info(_alias)
192
+
193
+ ```ruby
194
+ begin
195
+ # Reveal single alias
196
+ data, status_code, headers = api_instance.reveal_alias_with_http_info(_alias)
197
+ p status_code # => 2xx
198
+ p headers # => { ... }
199
+ p data # => <InlineResponse2001>
200
+ rescue VgsapiClient::ApiError => e
201
+ puts "Error when calling AliasesApi->reveal_alias_with_http_info: #{e}"
202
+ end
203
+ ```
204
+
205
+ ### Parameters
206
+
207
+ | Name | Type | Description | Notes |
208
+ | ---- | ---- | ----------- | ----- |
209
+ | **_alias** | **String** | Alias to operate on. | |
210
+
211
+ ### Return type
212
+
213
+ [**InlineResponse2001**](InlineResponse2001.md)
214
+
215
+ ### Authorization
216
+
217
+ [basicAuth](../README.md#basicAuth)
218
+
219
+ ### HTTP request headers
220
+
221
+ - **Content-Type**: Not defined
222
+ - **Accept**: application/json
223
+
224
+
225
+ ## reveal_multiple_aliases
226
+
227
+ > <InlineResponse200> reveal_multiple_aliases(q)
228
+
229
+ Reveal multiple aliases
230
+
231
+ Given a list of aliases, retrieves all associated values stored in the vault. **NOTE:** This endpoint may expose sensitive data. Therefore, it is disabled by default. To enable it, please contact your VGS account manager or drop us a line at [support@verygoodsecurity.com](mailto:support@verygoodsecurity.com).
232
+
233
+ ### Examples
234
+
235
+ ```ruby
236
+ require 'time'
237
+ require 'vgs_api_client'
238
+ # setup authorization
239
+ VgsapiClient.configure do |config|
240
+ # Configure HTTP basic authorization: basicAuth
241
+ config.username = 'YOUR USERNAME'
242
+ config.password = 'YOUR PASSWORD'
243
+ end
244
+
245
+ api_instance = VgsapiClient::AliasesApi.new
246
+ q = ['inner_example'] # Array<String> | Comma-separated list of aliases to reveal.
247
+
248
+ begin
249
+ # Reveal multiple aliases
250
+ result = api_instance.reveal_multiple_aliases(q)
251
+ p result
252
+ rescue VgsapiClient::ApiError => e
253
+ puts "Error when calling AliasesApi->reveal_multiple_aliases: #{e}"
254
+ end
255
+ ```
256
+
257
+ #### Using the reveal_multiple_aliases_with_http_info variant
258
+
259
+ This returns an Array which contains the response data, status code and headers.
260
+
261
+ > <Array(<InlineResponse200>, Integer, Hash)> reveal_multiple_aliases_with_http_info(q)
262
+
263
+ ```ruby
264
+ begin
265
+ # Reveal multiple aliases
266
+ data, status_code, headers = api_instance.reveal_multiple_aliases_with_http_info(q)
267
+ p status_code # => 2xx
268
+ p headers # => { ... }
269
+ p data # => <InlineResponse200>
270
+ rescue VgsapiClient::ApiError => e
271
+ puts "Error when calling AliasesApi->reveal_multiple_aliases_with_http_info: #{e}"
272
+ end
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+ | Name | Type | Description | Notes |
278
+ | ---- | ---- | ----------- | ----- |
279
+ | **q** | [**Array&lt;String&gt;**](String.md) | Comma-separated list of aliases to reveal. | |
280
+
281
+ ### Return type
282
+
283
+ [**InlineResponse200**](InlineResponse200.md)
284
+
285
+ ### Authorization
286
+
287
+ [basicAuth](../README.md#basicAuth)
288
+
289
+ ### HTTP request headers
290
+
291
+ - **Content-Type**: Not defined
292
+ - **Accept**: application/json
293
+
294
+
295
+ ## update_alias
296
+
297
+ > update_alias(_alias, opts)
298
+
299
+ Update data classifiers
300
+
301
+ Apply new classifiers to the value that the specified alias is associated with.
302
+
303
+ ### Examples
304
+
305
+ ```ruby
306
+ require 'time'
307
+ require 'vgs_api_client'
308
+ # setup authorization
309
+ VgsapiClient.configure do |config|
310
+ # Configure HTTP basic authorization: basicAuth
311
+ config.username = 'YOUR USERNAME'
312
+ config.password = 'YOUR PASSWORD'
313
+ end
314
+
315
+ api_instance = VgsapiClient::AliasesApi.new
316
+ _alias = 'tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e' # String | Alias to operate on.
317
+ opts = {
318
+ update_alias_request: VgsapiClient::UpdateAliasRequest.new({data: VgsapiClient::UpdateAliasRequestData.new({classifiers: ['bank-account']})}) # UpdateAliasRequest |
319
+ }
320
+
321
+ begin
322
+ # Update data classifiers
323
+ api_instance.update_alias(_alias, opts)
324
+ rescue VgsapiClient::ApiError => e
325
+ puts "Error when calling AliasesApi->update_alias: #{e}"
326
+ end
327
+ ```
328
+
329
+ #### Using the update_alias_with_http_info variant
330
+
331
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
332
+
333
+ > <Array(nil, Integer, Hash)> update_alias_with_http_info(_alias, opts)
334
+
335
+ ```ruby
336
+ begin
337
+ # Update data classifiers
338
+ data, status_code, headers = api_instance.update_alias_with_http_info(_alias, opts)
339
+ p status_code # => 2xx
340
+ p headers # => { ... }
341
+ p data # => nil
342
+ rescue VgsapiClient::ApiError => e
343
+ puts "Error when calling AliasesApi->update_alias_with_http_info: #{e}"
344
+ end
345
+ ```
346
+
347
+ ### Parameters
348
+
349
+ | Name | Type | Description | Notes |
350
+ | ---- | ---- | ----------- | ----- |
351
+ | **_alias** | **String** | Alias to operate on. | |
352
+ | **update_alias_request** | [**UpdateAliasRequest**](UpdateAliasRequest.md) | | [optional] |
353
+
354
+ ### Return type
355
+
356
+ nil (empty response body)
357
+
358
+ ### Authorization
359
+
360
+ [basicAuth](../README.md#basicAuth)
361
+
362
+ ### HTTP request headers
363
+
364
+ - **Content-Type**: application/json
365
+ - **Accept**: application/json
366
+
data/docs/ApiError.md ADDED
@@ -0,0 +1,24 @@
1
+ # VgsapiClient::ApiError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **detail** | **String** | Explanation of what exactly went wrong. | [optional] |
8
+ | **href** | **String** | Request URL. | [optional] |
9
+ | **status** | **Integer** | HTTP status code. | [optional] |
10
+ | **title** | **String** | High-level reason of why the request failed. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'vgs_api_client'
16
+
17
+ instance = VgsapiClient::ApiError.new(
18
+ detail: null,
19
+ href: null,
20
+ status: null,
21
+ title: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # VgsapiClient::CreateAliasesRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array&lt;OneOfCreateAliasesRequestNewCreateAliasesRequestExisting&gt;**](OneOfCreateAliasesRequestNewCreateAliasesRequestExisting.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'vgs_api_client'
13
+
14
+ instance = VgsapiClient::CreateAliasesRequest.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # VgsapiClient::CreateAliasesRequestExisting
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **_alias** | **String** | Existing alias to use as a reference. | |
8
+ | **format** | [**AliasFormat**](AliasFormat.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'vgs_api_client'
14
+
15
+ instance = VgsapiClient::CreateAliasesRequestExisting.new(
16
+ _alias: tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e,
17
+ format: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # VgsapiClient::CreateAliasesRequestNew
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **classifiers** | **Array&lt;String&gt;** | List of tags to classify the value with. | [optional] |
8
+ | **format** | [**AliasFormat**](AliasFormat.md) | | |
9
+ | **value** | **String** | Raw value to encrypt &amp; store in the vault. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'vgs_api_client'
15
+
16
+ instance = VgsapiClient::CreateAliasesRequestNew.new(
17
+ classifiers: null,
18
+ format: null,
19
+ value: 122105155
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # VgsapiClient::InlineResponse200
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Hash&lt;String, RevealedData&gt;**](RevealedData.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'vgs_api_client'
13
+
14
+ instance = VgsapiClient::InlineResponse200.new(
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
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # VgsapiClient::InlineResponse2001
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array&lt;RevealedData&gt;**](RevealedData.md) | The retrieved value. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'vgs_api_client'
13
+
14
+ instance = VgsapiClient::InlineResponse2001.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # VgsapiClient::InlineResponse201
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array&lt;RevealedData&gt;**](RevealedData.md) | List of stored values along with their aliases. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'vgs_api_client'
13
+
14
+ instance = VgsapiClient::InlineResponse201.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # VgsapiClient::InlineResponseDefault
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **errors** | [**Array&lt;ApiError&gt;**](ApiError.md) | List of errors that occurred while processing the request. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'vgs_api_client'
13
+
14
+ instance = VgsapiClient::InlineResponseDefault.new(
15
+ errors: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # VgsapiClient::ModelAlias
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **_alias** | **String** | Opaque string used to substitute the raw value. | [optional] |
8
+ | **format** | [**AliasFormat**](AliasFormat.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'vgs_api_client'
14
+
15
+ instance = VgsapiClient::ModelAlias.new(
16
+ _alias: tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e,
17
+ format: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # VgsapiClient::RevealedData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **aliases** | [**Array&lt;ModelAlias&gt;**](ModelAlias.md) | List of aliases associated with the value. | [optional] |
8
+ | **classifiers** | **Array&lt;String&gt;** | List of tags the value is classified with. | [optional] |
9
+ | **created_at** | **Time** | Creation time, in UTC. | [optional] |
10
+ | **value** | **String** | Decrypted value stored in the vault. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'vgs_api_client'
16
+
17
+ instance = VgsapiClient::RevealedData.new(
18
+ aliases: null,
19
+ classifiers: null,
20
+ created_at: 2019-05-15T12:30:45Z,
21
+ value: 122105155
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # VgsapiClient::UpdateAliasRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**UpdateAliasRequestData**](UpdateAliasRequestData.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'vgs_api_client'
13
+
14
+ instance = VgsapiClient::UpdateAliasRequest.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # VgsapiClient::UpdateAliasRequestData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **classifiers** | **Array&lt;String&gt;** | List of tags to classify the value with. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'vgs_api_client'
13
+
14
+ instance = VgsapiClient::UpdateAliasRequestData.new(
15
+ classifiers: null
16
+ )
17
+ ```
18
+
data/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="verygoodsecurity"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="vgs-api-client-ruby"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'