vgs_api_client 0.0.1.alpha202205220107 → 0.0.1.alpha202205221656
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/api.yaml +14 -412
- data/lib/openapi_client/api/aliases_api.rb +5 -5
- data/lib/openapi_client/api_client.rb +1 -1
- data/lib/openapi_client/configuration.rb +1 -8
- data/lib/openapi_client/version.rb +1 -1
- data/lib/openapi_client.rb +0 -7
- data/lib/version.rb +1 -1
- data/scripts/assemble/run.sh +1 -1
- data/scripts/test/run.sh +1 -1
- metadata +1 -8
- data/lib/openapi_client/api/functions_api.rb +0 -409
- data/lib/openapi_client/models/create_function_request.rb +0 -253
- data/lib/openapi_client/models/create_function_request_payload.rb +0 -306
- data/lib/openapi_client/models/function.rb +0 -284
- data/lib/openapi_client/models/inline_response2002.rb +0 -245
- data/lib/openapi_client/models/inline_response2003.rb +0 -245
- data/lib/openapi_client/models/update_function_request_payload.rb +0 -224
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bc760d3092f595a02c4372db72631b12a37cd751da757e57d3f9adb00d0f186
|
4
|
+
data.tar.gz: 2edad94986bfe285bd3ee1b1e802d61c17986b00f3b6f78294c154f9e201d8ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e72ada5b14c8b93cafd6a358fcc3d3be34bf37e75203fa0cf97d5e153fdea4f8c0cbdf45f15a6e926dea4d21d668cc71ed5b15b4280bc3be7fdea931d8f5ce79
|
7
|
+
data.tar.gz: d93158b74b0078ae658c7f3ac54b6816d3a27f643b40d8c67a41f0a5879603044feeeefe7fc9677ce230667885a0c68f0f064fe0402e8e8bc8ba86abf1213681
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.1.
|
1
|
+
0.0.1.alpha202205221656
|
data/api.yaml
CHANGED
@@ -3,7 +3,7 @@ info:
|
|
3
3
|
title: Vault HTTP API
|
4
4
|
description: |
|
5
5
|
The VGS Vault HTTP API is used for storing, retrieving, and managing sensitive data (aka Tokenization) within a VGS Vault.
|
6
|
-
|
6
|
+
|
7
7
|
The VGS API is organized around REST. Our API is built with a predictable resource-oriented structure, uses JSON-encoded requests and responses, follows standard HTTP verbs/responses, and uses industry standard authentication.
|
8
8
|
|
9
9
|
## What is VGS
|
@@ -17,13 +17,13 @@ info:
|
|
17
17
|
**Zero Data** is a unique method invented by VGS in 2016 that securely stores data like Tokenization, however it also removes the customer’s environment from PCI scope completely providing maximum security, and minimum compliance scope. [Get started with Zero Data](https://www.verygoodsecurity.com/docs/getting-started/before-you-start).
|
18
18
|
|
19
19
|
Additionally, for scenarios where neither technology is a complete solution, for instance with legacy systems, VGS provides a compliance product which guarantees customers are able to meet their compliance needs no matter what may happen. [Get started with Control](https://www.verygoodsecurity.com/docs/control).
|
20
|
-
|
20
|
+
|
21
21
|
## Learn about Tokenization
|
22
|
-
|
22
|
+
|
23
23
|
- [Create an Account for Free Tokenization](https://dashboard.verygoodsecurity.com/tokenization)
|
24
24
|
- [Try a Tokenization Demo](https://www.verygoodsecurity.com/docs/tokenization/getting-started)
|
25
25
|
- [Install a Tokenization SDK](https://www.verygoodsecurity.com/docs/tokenization/client-libraries)
|
26
|
-
|
26
|
+
|
27
27
|
### Authentication
|
28
28
|
|
29
29
|
This API uses `Basic` authentication.
|
@@ -35,9 +35,9 @@ info:
|
|
35
35
|
[Docs » Guides » Access credentials](https://www.verygoodsecurity.com/docs/settings/access-credentials)
|
36
36
|
|
37
37
|
## Resource Limits
|
38
|
-
|
38
|
+
|
39
39
|
### Data Limits
|
40
|
-
|
40
|
+
|
41
41
|
This API allows storing data up to 32MB in size.
|
42
42
|
|
43
43
|
### Rate Limiting
|
@@ -80,14 +80,13 @@ info:
|
|
80
80
|
contact:
|
81
81
|
email: support@verygoodsecurity.com
|
82
82
|
x-logo:
|
83
|
-
url:
|
83
|
+
url: images/vgs-logo.png
|
84
84
|
href: https://www.verygoodsecurity.com
|
85
85
|
altText: VGS Logo
|
86
|
-
termsOfService: https://www.verygoodsecurity.com/terms-and-conditions
|
87
86
|
|
88
87
|
externalDocs:
|
89
|
-
description:
|
90
|
-
url: https://www.verygoodsecurity.com/
|
88
|
+
description: Find out more about VGS
|
89
|
+
url: https://www.verygoodsecurity.com/
|
91
90
|
|
92
91
|
servers:
|
93
92
|
- url: https://api.sandbox.verygoodvault.com
|
@@ -112,297 +111,9 @@ x-tagGroups:
|
|
112
111
|
- aliases
|
113
112
|
|
114
113
|
security:
|
115
|
-
-
|
114
|
+
- basicAuth: []
|
116
115
|
|
117
116
|
paths:
|
118
|
-
/functions:
|
119
|
-
post:
|
120
|
-
operationId: createFunction
|
121
|
-
summary: Creates a new function
|
122
|
-
tags:
|
123
|
-
- functions
|
124
|
-
description: |
|
125
|
-
Creates a new function.
|
126
|
-
requestBody:
|
127
|
-
content:
|
128
|
-
application/json:
|
129
|
-
schema:
|
130
|
-
$ref: '#/components/schemas/CreateFunctionRequest'
|
131
|
-
examples:
|
132
|
-
CreateFunctionRequestOne:
|
133
|
-
summary: Create a new function
|
134
|
-
value:
|
135
|
-
data:
|
136
|
-
- src: |
|
137
|
-
def process(input, ctx):
|
138
|
-
return input
|
139
|
-
lang: larky
|
140
|
-
name: my-function
|
141
|
-
responses:
|
142
|
-
'201':
|
143
|
-
description: Created
|
144
|
-
content:
|
145
|
-
application/json:
|
146
|
-
schema:
|
147
|
-
type: object
|
148
|
-
properties:
|
149
|
-
data:
|
150
|
-
type: array
|
151
|
-
items:
|
152
|
-
$ref: '#/components/schemas/Function'
|
153
|
-
description: A retrieved function.
|
154
|
-
minItems: 1
|
155
|
-
maxItems: 20
|
156
|
-
examples:
|
157
|
-
CreateFunctionResponseOne:
|
158
|
-
summary: Create a new function
|
159
|
-
value:
|
160
|
-
data:
|
161
|
-
- src: |
|
162
|
-
def process(input, ctx):
|
163
|
-
return input
|
164
|
-
lang: larky
|
165
|
-
name: my-function-46Juzcyx
|
166
|
-
hash: bc1f0c3322091740cead407000af9acc692e7fefd0d96446e07900dcd0f8e308
|
167
|
-
|
168
|
-
default:
|
169
|
-
$ref: '#/components/responses/ApiErrorsResponse'
|
170
|
-
get:
|
171
|
-
operationId: listFunctions
|
172
|
-
summary: Lists all functions
|
173
|
-
tags:
|
174
|
-
- functions
|
175
|
-
description: |
|
176
|
-
Lists all functions
|
177
|
-
responses:
|
178
|
-
'200':
|
179
|
-
description: OK
|
180
|
-
content:
|
181
|
-
application/json:
|
182
|
-
schema:
|
183
|
-
type: object
|
184
|
-
properties:
|
185
|
-
data:
|
186
|
-
type: array
|
187
|
-
items:
|
188
|
-
$ref: '#/components/schemas/Function'
|
189
|
-
description: A retrieved function.
|
190
|
-
minItems: 1
|
191
|
-
maxItems: 20
|
192
|
-
default:
|
193
|
-
$ref: '#/components/responses/ApiErrorsResponse'
|
194
|
-
|
195
|
-
/functions/{functionName}:
|
196
|
-
parameters:
|
197
|
-
- $ref: '#/components/parameters/functionName'
|
198
|
-
get:
|
199
|
-
operationId: getFunction
|
200
|
-
tags:
|
201
|
-
- functions
|
202
|
-
summary: Retrieve a single function
|
203
|
-
description: |
|
204
|
-
Retrieves a function
|
205
|
-
parameters:
|
206
|
-
- $ref: '#/components/parameters/functionName'
|
207
|
-
responses:
|
208
|
-
'200':
|
209
|
-
description: OK
|
210
|
-
content:
|
211
|
-
application/json:
|
212
|
-
schema:
|
213
|
-
type: object
|
214
|
-
properties:
|
215
|
-
data:
|
216
|
-
type: array
|
217
|
-
items:
|
218
|
-
$ref: '#/components/schemas/Function'
|
219
|
-
description: The retrieved function.
|
220
|
-
minItems: 1
|
221
|
-
maxItems: 1
|
222
|
-
examples:
|
223
|
-
UpdateFunctionResponseOne:
|
224
|
-
summary: Update a new function
|
225
|
-
value:
|
226
|
-
data:
|
227
|
-
- src: |
|
228
|
-
def process(input, ctx):
|
229
|
-
return input
|
230
|
-
lang: larky
|
231
|
-
name: my-function-46Juzcyx
|
232
|
-
hash: bc1f0c3322091740cead407000af9acc692e7fefd0d96446e07900dcd0f8e308
|
233
|
-
default:
|
234
|
-
$ref: '#/components/responses/ApiErrorsResponse'
|
235
|
-
|
236
|
-
put:
|
237
|
-
operationId: updateFunction
|
238
|
-
tags:
|
239
|
-
- functions
|
240
|
-
summary: Update function
|
241
|
-
description: |
|
242
|
-
Update an existing function definition
|
243
|
-
requestBody:
|
244
|
-
content:
|
245
|
-
application/json:
|
246
|
-
schema:
|
247
|
-
$ref: '#/components/schemas/UpdateFunctionRequestPayload'
|
248
|
-
responses:
|
249
|
-
'200':
|
250
|
-
description: No Content
|
251
|
-
default:
|
252
|
-
$ref: '#/components/responses/ApiErrorsResponse'
|
253
|
-
|
254
|
-
delete:
|
255
|
-
operationId: deleteFunction
|
256
|
-
tags:
|
257
|
-
- functions
|
258
|
-
summary: Deletes a function
|
259
|
-
description: |
|
260
|
-
Removes a single alias.
|
261
|
-
parameters:
|
262
|
-
- $ref: '#/components/parameters/functionName'
|
263
|
-
responses:
|
264
|
-
'204':
|
265
|
-
description: No Content
|
266
|
-
default:
|
267
|
-
$ref: '#/components/responses/ApiErrorsResponse'
|
268
|
-
|
269
|
-
/functions/{functionName}/invocations:
|
270
|
-
parameters:
|
271
|
-
- $ref: '#/components/parameters/functionName'
|
272
|
-
post:
|
273
|
-
operationId: invokeFunction
|
274
|
-
tags:
|
275
|
-
- functions
|
276
|
-
summary: Invoke a function
|
277
|
-
description: |
|
278
|
-
Invokes a function
|
279
|
-
parameters:
|
280
|
-
- $ref: '#/components/parameters/functionName'
|
281
|
-
requestBody:
|
282
|
-
content:
|
283
|
-
"application/x-www-form-urlencoded":
|
284
|
-
schema:
|
285
|
-
type: string
|
286
|
-
example:
|
287
|
-
hello world
|
288
|
-
description: Stream of bytes up to XX KB in size
|
289
|
-
"text/plain":
|
290
|
-
schema:
|
291
|
-
type: string
|
292
|
-
format: byte
|
293
|
-
example:
|
294
|
-
aGVsbG8gd29ybGQK
|
295
|
-
description: Stream of bytes base64 encoded up to XX KB in size
|
296
|
-
application/http:
|
297
|
-
schema:
|
298
|
-
type: object
|
299
|
-
properties:
|
300
|
-
method:
|
301
|
-
type: string
|
302
|
-
enum:
|
303
|
-
- POST
|
304
|
-
- PATCH
|
305
|
-
- DELETE
|
306
|
-
- PUT
|
307
|
-
- GET
|
308
|
-
- HEAD
|
309
|
-
uri:
|
310
|
-
type: string
|
311
|
-
format: uri
|
312
|
-
example: https://example.com/software/htp/cics/index.html
|
313
|
-
version:
|
314
|
-
type: string
|
315
|
-
enum:
|
316
|
-
- "1.0"
|
317
|
-
- "1.1"
|
318
|
-
headers:
|
319
|
-
type: array
|
320
|
-
items:
|
321
|
-
type: object
|
322
|
-
properties:
|
323
|
-
key:
|
324
|
-
type: string
|
325
|
-
value:
|
326
|
-
type: string
|
327
|
-
body:
|
328
|
-
type: string
|
329
|
-
format: string
|
330
|
-
|
331
|
-
description: https://www.iana.org/assignments/media-types/media-types.xhtml
|
332
|
-
examples:
|
333
|
-
InvokeFunction1:
|
334
|
-
summary: Invoke a function with a HTTP request payload
|
335
|
-
value:
|
336
|
-
method: GET
|
337
|
-
uri: https://example.com/software/htp/cics/index.html
|
338
|
-
version: 1.0
|
339
|
-
|
340
|
-
"*/*":
|
341
|
-
schema:
|
342
|
-
type: string
|
343
|
-
format: binary?
|
344
|
-
description: Stream of bytes up to XX KB in size
|
345
|
-
responses:
|
346
|
-
'200':
|
347
|
-
description: OK
|
348
|
-
content:
|
349
|
-
application/http:
|
350
|
-
schema:
|
351
|
-
type: object
|
352
|
-
properties:
|
353
|
-
method:
|
354
|
-
type: string
|
355
|
-
enum:
|
356
|
-
- POST
|
357
|
-
- PATCH
|
358
|
-
- DELETE
|
359
|
-
- PUT
|
360
|
-
- GET
|
361
|
-
- HEAD
|
362
|
-
uri:
|
363
|
-
type: string
|
364
|
-
format: uri
|
365
|
-
example: https://example.com/software/htp/cics/index.html
|
366
|
-
version:
|
367
|
-
type: string
|
368
|
-
enum:
|
369
|
-
- "1.0"
|
370
|
-
- "1.1"
|
371
|
-
headers:
|
372
|
-
type: array
|
373
|
-
items:
|
374
|
-
type: object
|
375
|
-
properties:
|
376
|
-
key:
|
377
|
-
type: string
|
378
|
-
value:
|
379
|
-
type: string
|
380
|
-
body:
|
381
|
-
type: string
|
382
|
-
format: string
|
383
|
-
|
384
|
-
description: https://www.iana.org/assignments/media-types/media-types.xhtml
|
385
|
-
example:
|
386
|
-
method: POST
|
387
|
-
uri: https://example.com/software/htp/cics/index.html
|
388
|
-
version: 1.0
|
389
|
-
headers:
|
390
|
-
- key: Content-Type
|
391
|
-
value: text/plain
|
392
|
-
"text/plain":
|
393
|
-
schema:
|
394
|
-
type: string
|
395
|
-
description: Stream of bytes base64 up to XX KB in size
|
396
|
-
example:
|
397
|
-
aGVsbG8gd29ybGQK
|
398
|
-
"*":
|
399
|
-
schema:
|
400
|
-
type: string
|
401
|
-
format: binary
|
402
|
-
description: Stream of bytes up to XX KB in size
|
403
|
-
default:
|
404
|
-
$ref: '#/components/responses/ApiErrorsResponse'
|
405
|
-
|
406
117
|
/aliases:
|
407
118
|
post:
|
408
119
|
operationId: createAliases
|
@@ -634,41 +345,16 @@ paths:
|
|
634
345
|
-X DELETE \
|
635
346
|
-u "$USERNAME:$PASSWORD"
|
636
347
|
|
348
|
+
|
637
349
|
components:
|
638
350
|
|
639
351
|
# See the following links for details:
|
640
352
|
# - https://swagger.io/docs/specification/authentication/basic-authentication/
|
641
|
-
# https://swagger.io/docs/specification/authentication/
|
642
353
|
securitySchemes:
|
643
|
-
|
354
|
+
basicAuth:
|
644
355
|
type: http
|
645
356
|
scheme: basic
|
646
|
-
description:
|
647
|
-
The default authentication scheme for [Data API](#data-apis) based requests
|
648
|
-
is [Basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication).
|
649
|
-
OAuth2:
|
650
|
-
type: oauth2
|
651
|
-
flows:
|
652
|
-
authorizationCode:
|
653
|
-
authorizationUrl: https://auth.verygoodsecurity.com/auth/realms/vgs/protocol/openid-connect/auth
|
654
|
-
tokenUrl: https://auth.verygoodsecurity.io/auth/realms/vgs/protocol/openid-connect/token
|
655
|
-
scopes:
|
656
|
-
credentials:read: Read vault credentials without reading secrets
|
657
|
-
credentials:write: Add, delete and manage credentials of vault
|
658
|
-
routes:read: Read your vault routes
|
659
|
-
routes:write: Create, read, update, delete your vault routes
|
660
|
-
vaults:read: Read details of your vaults
|
661
|
-
vaults:write: Read, create, update and delete your vaults
|
662
|
-
upstreams:read: Read your upstreams for SFTP routes
|
663
|
-
upstreams:write: Create and update upstreams for SFTP routes
|
664
|
-
certificates:read: Read certificates setup for your routes
|
665
|
-
certificates:write: Upload and delete certificates for routes
|
666
|
-
hostnames:read: Read/List Custom Hostnames of your vault routes
|
667
|
-
hostnames:write: Create/Delete Custom Hostname of your vault routes
|
668
|
-
functions:read: Read/List Functions
|
669
|
-
functions:write: Create/Delete Functions
|
670
|
-
description: |
|
671
|
-
The default authentication schema for [Management API](#management-apis) based requests.
|
357
|
+
description: The default authentication schema.
|
672
358
|
|
673
359
|
parameters:
|
674
360
|
alias:
|
@@ -680,15 +366,6 @@ components:
|
|
680
366
|
type: string
|
681
367
|
example: tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e
|
682
368
|
|
683
|
-
functionName:
|
684
|
-
name: functionName
|
685
|
-
in: path
|
686
|
-
required: true
|
687
|
-
description: Name of function to operate on
|
688
|
-
schema:
|
689
|
-
type: string
|
690
|
-
example: my-function-46Juzcyx
|
691
|
-
|
692
369
|
responses:
|
693
370
|
ApiErrorsResponse:
|
694
371
|
description: Something went wrong
|
@@ -820,7 +497,7 @@ components:
|
|
820
497
|
default: PERSISTENT
|
821
498
|
description: |
|
822
499
|
Storage medium to use.
|
823
|
-
|
500
|
+
|
824
501
|
VOLATILE results in data being persisted into an in-memory data store for one hour which is required for PCI compliant storage of card security code data.
|
825
502
|
required:
|
826
503
|
- value
|
@@ -855,78 +532,3 @@ components:
|
|
855
532
|
- classifiers
|
856
533
|
required:
|
857
534
|
- data
|
858
|
-
|
859
|
-
CreateFunctionRequest:
|
860
|
-
type: object
|
861
|
-
properties:
|
862
|
-
data:
|
863
|
-
type: array
|
864
|
-
items:
|
865
|
-
oneOf:
|
866
|
-
- $ref: '#/components/schemas/CreateFunctionRequestPayload'
|
867
|
-
minItems: 1
|
868
|
-
maxItems: 20
|
869
|
-
required:
|
870
|
-
- data
|
871
|
-
|
872
|
-
CreateFunctionRequestPayload:
|
873
|
-
type: object
|
874
|
-
properties:
|
875
|
-
name:
|
876
|
-
type: string
|
877
|
-
description: Prefix to name your function
|
878
|
-
pattern: "[a-zA-Z]+([A-Za-z0-9\\-_]){5,28}[a-zA-Z0-9]"
|
879
|
-
example: my-function
|
880
|
-
src:
|
881
|
-
type: string
|
882
|
-
description: Definition of function body
|
883
|
-
example: |
|
884
|
-
def process(input, ctx):
|
885
|
-
return input
|
886
|
-
lang:
|
887
|
-
type: string
|
888
|
-
enum:
|
889
|
-
- larky
|
890
|
-
default: larky
|
891
|
-
description: |
|
892
|
-
Language to write your function in.
|
893
|
-
required:
|
894
|
-
- name
|
895
|
-
- src
|
896
|
-
|
897
|
-
UpdateFunctionRequestPayload:
|
898
|
-
type: object
|
899
|
-
properties:
|
900
|
-
src:
|
901
|
-
type: string
|
902
|
-
description: Definition of function body
|
903
|
-
example: |
|
904
|
-
def process(input, ctx):
|
905
|
-
return input
|
906
|
-
required:
|
907
|
-
- src
|
908
|
-
|
909
|
-
Function:
|
910
|
-
type: object
|
911
|
-
properties:
|
912
|
-
name:
|
913
|
-
type: string
|
914
|
-
example: my-function-46Juzcyx
|
915
|
-
src:
|
916
|
-
type: string
|
917
|
-
description: Definition of function body
|
918
|
-
example: |
|
919
|
-
def process(input, ctx):
|
920
|
-
return input
|
921
|
-
lang:
|
922
|
-
type: string
|
923
|
-
enum:
|
924
|
-
- larky
|
925
|
-
default: larky
|
926
|
-
description: |
|
927
|
-
Language to write your function in.
|
928
|
-
hash:
|
929
|
-
type: string
|
930
|
-
description: SHA256 representation of the function definition
|
931
|
-
example: bc1f0c3322091740cead407000af9acc692e7fefd0d96446e07900dcd0f8e308
|
932
|
-
|
@@ -64,7 +64,7 @@ module VgsApiClient
|
|
64
64
|
return_type = opts[:debug_return_type] || 'InlineResponse201'
|
65
65
|
|
66
66
|
# auth_names
|
67
|
-
auth_names = opts[:debug_auth_names] || ['
|
67
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
68
68
|
|
69
69
|
new_options = opts.merge(
|
70
70
|
:operation => :"AliasesApi.create_aliases",
|
@@ -127,7 +127,7 @@ module VgsApiClient
|
|
127
127
|
return_type = opts[:debug_return_type]
|
128
128
|
|
129
129
|
# auth_names
|
130
|
-
auth_names = opts[:debug_auth_names] || ['
|
130
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
131
131
|
|
132
132
|
new_options = opts.merge(
|
133
133
|
:operation => :"AliasesApi.delete_alias",
|
@@ -190,7 +190,7 @@ module VgsApiClient
|
|
190
190
|
return_type = opts[:debug_return_type] || 'InlineResponse2001'
|
191
191
|
|
192
192
|
# auth_names
|
193
|
-
auth_names = opts[:debug_auth_names] || ['
|
193
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
194
194
|
|
195
195
|
new_options = opts.merge(
|
196
196
|
:operation => :"AliasesApi.reveal_alias",
|
@@ -254,7 +254,7 @@ module VgsApiClient
|
|
254
254
|
return_type = opts[:debug_return_type] || 'InlineResponse200'
|
255
255
|
|
256
256
|
# auth_names
|
257
|
-
auth_names = opts[:debug_auth_names] || ['
|
257
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
258
258
|
|
259
259
|
new_options = opts.merge(
|
260
260
|
:operation => :"AliasesApi.reveal_multiple_aliases",
|
@@ -324,7 +324,7 @@ module VgsApiClient
|
|
324
324
|
return_type = opts[:debug_return_type]
|
325
325
|
|
326
326
|
# auth_names
|
327
|
-
auth_names = opts[:debug_auth_names] || ['
|
327
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
328
328
|
|
329
329
|
new_options = opts.merge(
|
330
330
|
:operation => :"AliasesApi.update_alias",
|
@@ -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 = "vgs-api-client/0.0.1.
|
34
|
+
@user_agent = "vgs-api-client/0.0.1.alpha202205221656/ruby"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
@@ -215,20 +215,13 @@ module VgsApiClient
|
|
215
215
|
# Returns Auth Settings hash for api client.
|
216
216
|
def auth_settings
|
217
217
|
{
|
218
|
-
'
|
218
|
+
'basicAuth' =>
|
219
219
|
{
|
220
220
|
type: 'basic',
|
221
221
|
in: 'header',
|
222
222
|
key: 'Authorization',
|
223
223
|
value: basic_auth_token
|
224
224
|
},
|
225
|
-
'OAuth2' =>
|
226
|
-
{
|
227
|
-
type: 'oauth2',
|
228
|
-
in: 'header',
|
229
|
-
key: 'Authorization',
|
230
|
-
value: "Bearer #{access_token}"
|
231
|
-
},
|
232
225
|
}
|
233
226
|
end
|
234
227
|
|
data/lib/openapi_client.rb
CHANGED
@@ -22,24 +22,17 @@ require 'openapi_client/models/api_error'
|
|
22
22
|
require 'openapi_client/models/create_aliases_request'
|
23
23
|
require 'openapi_client/models/create_aliases_request_new'
|
24
24
|
require 'openapi_client/models/create_aliases_request_reference'
|
25
|
-
require 'openapi_client/models/create_function_request'
|
26
|
-
require 'openapi_client/models/create_function_request_payload'
|
27
|
-
require 'openapi_client/models/function'
|
28
25
|
require 'openapi_client/models/inline_response200'
|
29
26
|
require 'openapi_client/models/inline_response2001'
|
30
|
-
require 'openapi_client/models/inline_response2002'
|
31
|
-
require 'openapi_client/models/inline_response2003'
|
32
27
|
require 'openapi_client/models/inline_response201'
|
33
28
|
require 'openapi_client/models/inline_response_default'
|
34
29
|
require 'openapi_client/models/model_alias'
|
35
30
|
require 'openapi_client/models/revealed_data'
|
36
31
|
require 'openapi_client/models/update_alias_request'
|
37
32
|
require 'openapi_client/models/update_alias_request_data'
|
38
|
-
require 'openapi_client/models/update_function_request_payload'
|
39
33
|
|
40
34
|
# APIs
|
41
35
|
require 'openapi_client/api/aliases_api'
|
42
|
-
require 'openapi_client/api/functions_api'
|
43
36
|
|
44
37
|
module VgsApiClient
|
45
38
|
class << self
|
data/lib/version.rb
CHANGED
data/scripts/assemble/run.sh
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
LIB_VERSION=${LIB_VERSION:-0.0.1.alpha$(date "+%Y%m%d%H%M")}
|
4
4
|
|
5
5
|
# fix version
|
6
|
-
grep -rl 0.0.1.
|
6
|
+
grep -rl 0.0.1.alpha202205221656 . | xargs sed -i "s/0.0.1.alpha202205221656/${LIB_VERSION}/g"
|
7
7
|
|
8
8
|
# build
|
9
9
|
gem build vgs_api_client.gemspec
|
data/scripts/test/run.sh
CHANGED
@@ -5,7 +5,7 @@ set -e
|
|
5
5
|
echo "Installing lib from local sources"
|
6
6
|
# fix version
|
7
7
|
VERSION=0.0.1.alpha$(date "+%Y%m%d%H%M")
|
8
|
-
grep -rl 0.0.1.
|
8
|
+
grep -rl 0.0.1.alpha202205221656 . | xargs sed -i "s/0.0.1.alpha202205221656/$VERSION/g"
|
9
9
|
|
10
10
|
bundle install
|
11
11
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vgs_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.alpha202205221656
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Very Good Security
|
@@ -68,7 +68,6 @@ files:
|
|
68
68
|
- docker-compose.yaml
|
69
69
|
- lib/openapi_client.rb
|
70
70
|
- lib/openapi_client/api/aliases_api.rb
|
71
|
-
- lib/openapi_client/api/functions_api.rb
|
72
71
|
- lib/openapi_client/api_client.rb
|
73
72
|
- lib/openapi_client/api_error.rb
|
74
73
|
- lib/openapi_client/configuration.rb
|
@@ -77,20 +76,14 @@ files:
|
|
77
76
|
- lib/openapi_client/models/create_aliases_request.rb
|
78
77
|
- lib/openapi_client/models/create_aliases_request_new.rb
|
79
78
|
- lib/openapi_client/models/create_aliases_request_reference.rb
|
80
|
-
- lib/openapi_client/models/create_function_request.rb
|
81
|
-
- lib/openapi_client/models/create_function_request_payload.rb
|
82
|
-
- lib/openapi_client/models/function.rb
|
83
79
|
- lib/openapi_client/models/inline_response200.rb
|
84
80
|
- lib/openapi_client/models/inline_response2001.rb
|
85
|
-
- lib/openapi_client/models/inline_response2002.rb
|
86
|
-
- lib/openapi_client/models/inline_response2003.rb
|
87
81
|
- lib/openapi_client/models/inline_response201.rb
|
88
82
|
- lib/openapi_client/models/inline_response_default.rb
|
89
83
|
- lib/openapi_client/models/model_alias.rb
|
90
84
|
- lib/openapi_client/models/revealed_data.rb
|
91
85
|
- lib/openapi_client/models/update_alias_request.rb
|
92
86
|
- lib/openapi_client/models/update_alias_request_data.rb
|
93
|
-
- lib/openapi_client/models/update_function_request_payload.rb
|
94
87
|
- lib/openapi_client/version.rb
|
95
88
|
- lib/version.rb
|
96
89
|
- lib/vgs_api_client.rb
|