vgs_api_client 0.0.1.alpha202205202346 → 0.0.1.alpha202205210401

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e6d83fe6298887d7e460c976ae4893f62c879659b93d849196a27183411347b
4
- data.tar.gz: a920f5df37f5b382968d59837983e4159446188fcff6e847a89c64ebd541fa71
3
+ metadata.gz: 3c6208809ab176a04c4a3eb43bf5bea36a2cafa7a64c0717e8890c3050663573
4
+ data.tar.gz: 9cda4a453d85c9d7337963135079611c3fb50194dc894bdb8faea95ab96b8240
5
5
  SHA512:
6
- metadata.gz: 8c8c2bd408a0f7f6aec0ea52ed31cdd4779c2998b9ffed6296e87600817687332c25778e931ca6c1225d94e6ece9defcd9a24713418fcdf9833b2d816200992d
7
- data.tar.gz: ad3525b0f3c50c2933c0632c65153f9e6e582caab34c24355f4bbf2266539f973ce9bacc929baee1948f6705ceb532e8667b5969ebe5be48fde01ef219dbc1ef
6
+ metadata.gz: 5c16f665f080e0be4d2bda5150f4333f0ad56b3790848ba367f21a9d683d610965a188259deaa9d199a4bfa31dea46d45b41b4c6d64ef449cc758a0862e1b600
7
+ data.tar.gz: 5c1e24bac909ed4330e266f44b56754cfa34cca04342b62528a56474e0bc6eb9dbc8f44e8f8a43c3390cd7e7c77ee8e9179adf1c039337fbfaf35e7c3c20e3e4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1.alpha202205202346
1
+ 0.0.1.alpha202205210401
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
@@ -126,10 +126,10 @@ paths:
126
126
  requestBody:
127
127
  content:
128
128
  application/json:
129
- schema:
129
+ schema:
130
130
  $ref: '#/components/schemas/CreateFunctionRequest'
131
131
  examples:
132
- A:
132
+ CreateFunctionOne:
133
133
  summary: Create a new function
134
134
  value:
135
135
  data:
@@ -141,7 +141,7 @@ paths:
141
141
  responses:
142
142
  '201':
143
143
  description: Created
144
- content:
144
+ content:
145
145
  application/json:
146
146
  schema:
147
147
  type: object
@@ -153,6 +153,18 @@ paths:
153
153
  description: A retrieved function.
154
154
  minItems: 1
155
155
  maxItems: 20
156
+ examples:
157
+ CreateFunctionOne:
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
166
+ hash: bc1f0c3322091740cead407000af9acc692e7fefd0d96446e07900dcd0f8e308
167
+
156
168
  default:
157
169
  $ref: '#/components/responses/ApiErrorsResponse'
158
170
  get:
@@ -263,23 +275,114 @@ paths:
263
275
  format: byte
264
276
  example:
265
277
  aGVsbG8gd29ybGQK
278
+ description: Stream of bytes base64 encoded up to XX KB in size
279
+ application/http:
280
+ schema:
281
+ type: object
282
+ properties:
283
+ method:
284
+ type: string
285
+ enum:
286
+ - POST
287
+ - PATCH
288
+ - DELETE
289
+ - PUT
290
+ - GET
291
+ - HEAD
292
+ uri:
293
+ type: string
294
+ format: uri
295
+ example: https://example.com/software/htp/cics/index.html
296
+ version:
297
+ type: string
298
+ enum:
299
+ - "1.0"
300
+ - "1.1"
301
+ headers:
302
+ type: array
303
+ items:
304
+ type: object
305
+ properties:
306
+ key:
307
+ type: string
308
+ value:
309
+ type: string
310
+ body:
311
+ type: string
312
+ format: string
313
+
314
+ description: https://www.iana.org/assignments/media-types/media-types.xhtml
315
+ examples:
316
+ InvokeFunction1:
317
+ summary: Invoke a function with a HTTP request payload
318
+ value:
319
+ method: GET
320
+ uri: https://example.com/software/htp/cics/index.html
321
+ version: 1.0
322
+
266
323
  "*":
267
324
  schema:
268
325
  type: string
269
326
  format: binary?
327
+ description: Stream of bytes up to XX KB in size
270
328
  responses:
271
329
  '200':
272
330
  description: OK
273
331
  content:
332
+ application/http:
333
+ schema:
334
+ type: object
335
+ properties:
336
+ method:
337
+ type: string
338
+ enum:
339
+ - POST
340
+ - PATCH
341
+ - DELETE
342
+ - PUT
343
+ - GET
344
+ - HEAD
345
+ uri:
346
+ type: string
347
+ format: uri
348
+ example: https://example.com/software/htp/cics/index.html
349
+ version:
350
+ type: string
351
+ enum:
352
+ - "1.0"
353
+ - "1.1"
354
+ headers:
355
+ type: array
356
+ items:
357
+ type: object
358
+ properties:
359
+ key:
360
+ type: string
361
+ value:
362
+ type: string
363
+ body:
364
+ type: string
365
+ format: string
366
+
367
+ description: https://www.iana.org/assignments/media-types/media-types.xhtml
368
+ example:
369
+ method: POST
370
+ uri: https://example.com/software/htp/cics/index.html
371
+ version: 1.0
372
+ headers:
373
+ - key: Content-Type
374
+ value: text/plain
274
375
  "text/plain":
275
376
  schema:
276
377
  type: string
378
+ description: Stream of bytes base64 up to XX KB in size
277
379
  example:
278
380
  aGVsbG8gd29ybGQK
279
381
  "*":
280
382
  schema:
281
383
  type: string
282
384
  format: binary
385
+ description: Stream of bytes up to XX KB in size
283
386
  default:
284
387
  $ref: '#/components/responses/ApiErrorsResponse'
285
388
 
@@ -559,7 +662,7 @@ components:
559
662
  schema:
560
663
  type: string
561
664
  example: tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e
562
-
665
+
563
666
  functionName:
564
667
  name: functionName
565
668
  in: path
@@ -700,7 +803,7 @@ components:
700
803
  default: PERSISTENT
701
804
  description: |
702
805
  Storage medium to use.
703
-
806
+
704
807
  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.
705
808
  required:
706
809
  - value
@@ -773,7 +876,7 @@ components:
773
876
  required:
774
877
  - name
775
878
  - src
776
-
879
+
777
880
  Function:
778
881
  type: object
779
882
  properties:
@@ -800,4 +903,4 @@ components:
800
903
  required:
801
904
  - value
802
905
  - format
803
-
906
+
@@ -243,9 +243,9 @@ module VgsApiClient
243
243
  # header parameters
244
244
  header_params = opts[:header_params] || {}
245
245
  # HTTP header 'Accept' (if needed)
246
- header_params['Accept'] = @api_client.select_header_accept(['*', 'text/plain', 'application/json'])
246
+ header_params['Accept'] = @api_client.select_header_accept(['*', 'application/http', 'text/plain', 'application/json'])
247
247
  # HTTP header 'Content-Type'
248
- content_type = @api_client.select_header_content_type(['*', 'text/plain'])
248
+ content_type = @api_client.select_header_content_type(['*', 'application/http', 'text/plain'])
249
249
  if !content_type.nil?
250
250
  header_params['Content-Type'] = content_type
251
251
  end
@@ -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.alpha202205202346/ruby"
34
+ @user_agent = "vgs-api-client/0.0.1.alpha202205210401/ruby"
35
35
  @default_headers = {
36
36
  'Content-Type' => 'application/json',
37
37
  'User-Agent' => @user_agent
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.4.0
11
11
  =end
12
12
 
13
13
  module VgsApiClient
14
- VERSION = '0.0.1.alpha202205202346'
14
+ VERSION = '0.0.1.alpha202205210401'
15
15
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VGS
2
- VERSION = '0.0.1.alpha202205202346'
2
+ VERSION = '0.0.1.alpha202205210401'
3
3
  end
@@ -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.alpha202205202346 . | xargs sed -i "s/0.0.1.alpha202205202346/${LIB_VERSION}/g"
6
+ grep -rl 0.0.1.alpha202205210401 . | xargs sed -i "s/0.0.1.alpha202205210401/${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.alpha202205202346 . | xargs sed -i "s/0.0.1.alpha202205202346/$VERSION/g"
8
+ grep -rl 0.0.1.alpha202205210401 . | xargs sed -i "s/0.0.1.alpha202205210401/$VERSION/g"
9
9
 
10
10
  bundle install
11
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vgs_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha202205202346
4
+ version: 0.0.1.alpha202205210401
5
5
  platform: ruby
6
6
  authors:
7
7
  - Very Good Security
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-20 00:00:00.000000000 Z
11
+ date: 2022-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus