vgs_api_client 0.0.1.alpha202205210037 → 0.0.1.alpha202205210249

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: 4a214dfab7ad3680888ed40e5368a9f3cbb4d0a135b2231cb2c077e2d9473c1c
4
- data.tar.gz: f54f72e6a21d85323a6d59f7e2b10ee52ccf5658f9e1917089f210eb7ece279c
3
+ metadata.gz: 5a2632704605cce5c043722479649a1e6b1e3ac1290a0513432fb4de6bbaeb02
4
+ data.tar.gz: e7d3b262c20ecb41e178956d434d2103234575d6893a7000eccb8fd6e2fb7984
5
5
  SHA512:
6
- metadata.gz: abfae7fdf60285421e457fffd5320ad13fa43f75eb9ea6c5f5d15fc7d2cb4d5e79311365b40241d2b73a174cd94545b43218fb41f980e3bdfa4b6d887caf9ddd
7
- data.tar.gz: 40b9e9eac3ccce0a8d313d9afeeab00ccf25b749e48b79cdcda492aa70845e2f320adbe3a1d2fd6ae4a7e921692221150a29c4dd75985a77a1e0b425ec2ab01b
6
+ metadata.gz: c94d142e8d77b056bdcf42f8cdf8c34e3fd2f67af06188c075c1171e1f98bbb18980910ba9cd6810f1a3c506d721f770cc27352a66878f4f16c28ed63b20a1fa
7
+ data.tar.gz: 44783f8e7e368e35b564a6a850893e2fe5a166f3e9d1796f9af40df69145c55e634496d9e6256445671aeca44aefb3a964b482ac7b89525609731b2c2a1d5891
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1.alpha202205210037
1
+ 0.0.1.alpha202205210249
data/api.yaml CHANGED
@@ -80,14 +80,13 @@ info:
80
80
  contact:
81
81
  email: support@verygoodsecurity.com
82
82
  x-logo:
83
- url: https://www.verygoodsecurity.com/img/press-and-assets/vgs-logo-color.png
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: Visit the VGS documentation homepage
90
- url: https://www.verygoodsecurity.com/docs/
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,268 +111,9 @@ x-tagGroups:
112
111
  - aliases
113
112
 
114
113
  security:
115
- - BasicAuth: []
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
- A:
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
- default:
157
- $ref: '#/components/responses/ApiErrorsResponse'
158
- get:
159
- operationId: listFunctions
160
- summary: Lists all functions
161
- tags:
162
- - functions
163
- description: |
164
- Lists all functions
165
- responses:
166
- '200':
167
- description: OK
168
- content:
169
- application/json:
170
- schema:
171
- type: object
172
- properties:
173
- data:
174
- type: array
175
- items:
176
- $ref: '#/components/schemas/Function'
177
- description: A retrieved function.
178
- minItems: 1
179
- maxItems: 20
180
- default:
181
- $ref: '#/components/responses/ApiErrorsResponse'
182
-
183
- /functions/{functionName}:
184
- parameters:
185
- - $ref: '#/components/parameters/functionName'
186
- get:
187
- operationId: getFunction
188
- tags:
189
- - functions
190
- summary: Retrieve a single function
191
- description: |
192
- Retrieves a function
193
- parameters:
194
- - $ref: '#/components/parameters/functionName'
195
- responses:
196
- '200':
197
- description: OK
198
- content:
199
- application/json:
200
- schema:
201
- type: object
202
- properties:
203
- data:
204
- type: array
205
- items:
206
- $ref: '#/components/schemas/Function'
207
- description: The retrieved function.
208
- minItems: 1
209
- maxItems: 1
210
- default:
211
- $ref: '#/components/responses/ApiErrorsResponse'
212
-
213
- put:
214
- operationId: updateFunction
215
- tags:
216
- - functions
217
- summary: Update function
218
- description: |
219
- Update an existing function definition
220
- requestBody:
221
- content:
222
- application/json:
223
- schema:
224
- $ref: '#/components/schemas/CreateFunctionRequestPayload'
225
- responses:
226
- '200':
227
- description: No Content
228
- default:
229
- $ref: '#/components/responses/ApiErrorsResponse'
230
-
231
- delete:
232
- operationId: deleteFunction
233
- tags:
234
- - functions
235
- summary: Deletes a function
236
- description: |
237
- Removes a single alias.
238
- parameters:
239
- - $ref: '#/components/parameters/functionName'
240
- responses:
241
- '204':
242
- description: No Content
243
- default:
244
- $ref: '#/components/responses/ApiErrorsResponse'
245
-
246
- /functions/{functionName}/invocations:
247
- parameters:
248
- - $ref: '#/components/parameters/functionName'
249
- post:
250
- operationId: invokeFunction
251
- tags:
252
- - functions
253
- summary: Invoke a function
254
- description: |
255
- Invokes a function
256
- parameters:
257
- - $ref: '#/components/parameters/functionName'
258
- requestBody:
259
- content:
260
- "text/plain":
261
- schema:
262
- type: string
263
- format: byte
264
- example:
265
- aGVsbG8gd29ybGQK
266
- description: Stream of bytes base64 encoded up to XX KB in size
267
- application/http:
268
- schema:
269
- type: object
270
- properties:
271
- method:
272
- type: string
273
- enum:
274
- - POST
275
- - PATCH
276
- - DELETE
277
- - PUT
278
- - GET
279
- - HEAD
280
- uri:
281
- type: string
282
- format: uri
283
- example: https://example.com/software/htp/cics/index.html
284
- version:
285
- type: string
286
- enum:
287
- - "1.0"
288
- - "1.1"
289
- headers:
290
- type: array
291
- items:
292
- type: object
293
- properties:
294
- key:
295
- type: string
296
- value:
297
- type: string
298
- body:
299
- type: string
300
- format: string
301
-
302
- description: https://www.iana.org/assignments/media-types/media-types.xhtml
303
- examples:
304
- A:
305
- summary: Invoke a function with a HTTP request payload
306
- value:
307
- method: GET
308
- uri: https://example.com/software/htp/cics/index.html
309
- version: 1.0
310
-
311
- "*":
312
- schema:
313
- type: string
314
- format: binary?
315
- description: Stream of bytes up to XX KB in size
316
- responses:
317
- '200':
318
- description: OK
319
- content:
320
- application/http:
321
- schema:
322
- type: object
323
- properties:
324
- method:
325
- type: string
326
- enum:
327
- - POST
328
- - PATCH
329
- - DELETE
330
- - PUT
331
- - GET
332
- - HEAD
333
- uri:
334
- type: string
335
- format: uri
336
- example: https://example.com/software/htp/cics/index.html
337
- version:
338
- type: string
339
- enum:
340
- - "1.0"
341
- - "1.1"
342
- headers:
343
- type: array
344
- items:
345
- type: object
346
- properties:
347
- key:
348
- type: string
349
- value:
350
- type: string
351
- body:
352
- type: string
353
- format: string
354
-
355
- description: https://www.iana.org/assignments/media-types/media-types.xhtml
356
- example:
357
- method: POST
358
- uri: https://example.com/software/htp/cics/index.html
359
- version: 1.0
360
- headers:
361
- - key: Content-Type
362
- value: text/plain
363
- "text/plain":
364
- schema:
365
- type: string
366
- description: Stream of bytes base64 up to XX KB in size
367
- example:
368
- aGVsbG8gd29ybGQK
369
- "*":
370
- schema:
371
- type: string
372
- format: binary
373
- description: Stream of bytes up to XX KB in size
374
- default:
375
- $ref: '#/components/responses/ApiErrorsResponse'
376
-
377
117
  /aliases:
378
118
  post:
379
119
  operationId: createAliases
@@ -605,41 +345,16 @@ paths:
605
345
  -X DELETE \
606
346
  -u "$USERNAME:$PASSWORD"
607
347
 
348
+
608
349
  components:
609
350
 
610
351
  # See the following links for details:
611
352
  # - https://swagger.io/docs/specification/authentication/basic-authentication/
612
- # https://swagger.io/docs/specification/authentication/
613
353
  securitySchemes:
614
- BasicAuth:
354
+ basicAuth:
615
355
  type: http
616
356
  scheme: basic
617
- description: |
618
- The default authentication scheme for [Data API](#data-apis) based requests
619
- is [Basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication).
620
- OAuth2:
621
- type: oauth2
622
- flows:
623
- authorizationCode:
624
- authorizationUrl: https://auth.verygoodsecurity.com/auth/realms/vgs/protocol/openid-connect/auth
625
- tokenUrl: https://auth.verygoodsecurity.io/auth/realms/vgs/protocol/openid-connect/token
626
- scopes:
627
- credentials:read: Read vault credentials without reading secrets
628
- credentials:write: Add, delete and manage credentials of vault
629
- routes:read: Read your vault routes
630
- routes:write: Create, read, update, delete your vault routes
631
- vaults:read: Read details of your vaults
632
- vaults:write: Read, create, update and delete your vaults
633
- upstreams:read: Read your upstreams for SFTP routes
634
- upstreams:write: Create and update upstreams for SFTP routes
635
- certificates:read: Read certificates setup for your routes
636
- certificates:write: Upload and delete certificates for routes
637
- hostnames:read: Read/List Custom Hostnames of your vault routes
638
- hostnames:write: Create/Delete Custom Hostname of your vault routes
639
- functions:read: Read/List Functions
640
- functions:write: Create/Delete Functions
641
- description: |
642
- The default authentication schema for [Management API](#management-apis) based requests.
357
+ description: The default authentication schema.
643
358
 
644
359
  parameters:
645
360
  alias:
@@ -650,15 +365,6 @@ components:
650
365
  schema:
651
366
  type: string
652
367
  example: tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e
653
-
654
- functionName:
655
- name: functionName
656
- in: path
657
- required: true
658
- description: Name of function to operate on
659
- schema:
660
- type: string
661
- example: my-function-46Juzcyx
662
368
 
663
369
  responses:
664
370
  ApiErrorsResponse:
@@ -826,69 +532,3 @@ components:
826
532
  - classifiers
827
533
  required:
828
534
  - data
829
-
830
- CreateFunctionRequest:
831
- type: object
832
- properties:
833
- data:
834
- type: array
835
- items:
836
- oneOf:
837
- - $ref: '#/components/schemas/CreateFunctionRequestPayload'
838
- minItems: 1
839
- maxItems: 20
840
- required:
841
- - data
842
-
843
- CreateFunctionRequestPayload:
844
- type: object
845
- properties:
846
- name:
847
- type: string
848
- description: Prefix to name your function
849
- pattern: "[a-zA-Z]+([A-Za-z0-9\\-_]){5,28}[a-zA-Z0-9]"
850
- example: my-function
851
- src:
852
- type: string
853
- description: Definition of function body
854
- example: |
855
- def process(input, ctx):
856
- return input
857
- lang:
858
- type: string
859
- enum:
860
- - larky
861
- default: larky
862
- description: |
863
- Language to write your function in.
864
- required:
865
- - name
866
- - src
867
-
868
- Function:
869
- type: object
870
- properties:
871
- name:
872
- type: string
873
- example: my-function-46Juzcyx
874
- src:
875
- type: string
876
- description: Definition of function body
877
- example: |
878
- def process(input, ctx):
879
- return input
880
- lang:
881
- type: string
882
- enum:
883
- - larky
884
- default: larky
885
- description: |
886
- Language to write your function in.
887
- hash:
888
- type: string
889
- description: SHA256 representation of the function definition
890
- example: bc1f0c3322091740cead407000af9acc692e7fefd0d96446e07900dcd0f8e308
891
- required:
892
- - value
893
- - format
894
-
@@ -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] || ['BasicAuth']
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] || ['BasicAuth']
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] || ['BasicAuth']
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] || ['BasicAuth']
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] || ['BasicAuth']
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.alpha202205210037/ruby"
34
+ @user_agent = "vgs-api-client/0.0.1.alpha202205210249/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
- 'BasicAuth' =>
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
 
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.4.0
11
11
  =end
12
12
 
13
13
  module VgsApiClient
14
- VERSION = '0.0.1.alpha202205210037'
14
+ VERSION = '0.0.1.alpha202205210249'
15
15
  end
@@ -22,13 +22,8 @@ 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'
@@ -38,7 +33,6 @@ require 'openapi_client/models/update_alias_request_data'
38
33
 
39
34
  # APIs
40
35
  require 'openapi_client/api/aliases_api'
41
- require 'openapi_client/api/functions_api'
42
36
 
43
37
  module VgsApiClient
44
38
  class << self
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VGS
2
- VERSION = '0.0.1.alpha202205210037'
2
+ VERSION = '0.0.1.alpha202205210249'
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.alpha202205210037 . | xargs sed -i "s/0.0.1.alpha202205210037/${LIB_VERSION}/g"
6
+ grep -rl 0.0.1.alpha202205210249 . | xargs sed -i "s/0.0.1.alpha202205210249/${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.alpha202205210037 . | xargs sed -i "s/0.0.1.alpha202205210037/$VERSION/g"
8
+ grep -rl 0.0.1.alpha202205210249 . | xargs sed -i "s/0.0.1.alpha202205210249/$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.alpha202205210037
4
+ version: 0.0.1.alpha202205210249
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,13 +76,8 @@ 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