vgs_api_client 0.0.1.alpha202205202337 → 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: 466d1ce6ffa623fa8cc02ca65f59a8bcd11718a2dfe20cff3421dc42e2d6f2a2
4
- data.tar.gz: 52af700658d4023067c97e1675b033e0ce718b3a1354539b8de5d431b5cf9fb9
3
+ metadata.gz: 5a2632704605cce5c043722479649a1e6b1e3ac1290a0513432fb4de6bbaeb02
4
+ data.tar.gz: e7d3b262c20ecb41e178956d434d2103234575d6893a7000eccb8fd6e2fb7984
5
5
  SHA512:
6
- metadata.gz: 3daf0cee732b440e6c226bfbd88ca28b49ee3273fd916b795d1fedb18b1b77d07d90d646cc0a11fd27049ef4af117ba422bae4b30f00d8de42a0af8fc4f611a2
7
- data.tar.gz: c265ba7d7ddb03cfdcaf649166a317aaf5dcadfa6c3d8940142d1bb2ccd5f041de60657417c4ac953793b1d2478b8715a569431f68371ee871c6427785babc16
6
+ metadata.gz: c94d142e8d77b056bdcf42f8cdf8c34e3fd2f67af06188c075c1171e1f98bbb18980910ba9cd6810f1a3c506d721f770cc27352a66878f4f16c28ed63b20a1fa
7
+ data.tar.gz: 44783f8e7e368e35b564a6a850893e2fe5a166f3e9d1796f9af40df69145c55e634496d9e6256445671aeca44aefb3a964b482ac7b89525609731b2c2a1d5891
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1.alpha202205202337
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,137 +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
- - aliases
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
117
  /aliases:
247
118
  post:
248
119
  operationId: createAliases
@@ -474,41 +345,16 @@ paths:
474
345
  -X DELETE \
475
346
  -u "$USERNAME:$PASSWORD"
476
347
 
348
+
477
349
  components:
478
350
 
479
351
  # See the following links for details:
480
352
  # - https://swagger.io/docs/specification/authentication/basic-authentication/
481
- # https://swagger.io/docs/specification/authentication/
482
353
  securitySchemes:
483
- BasicAuth:
354
+ basicAuth:
484
355
  type: http
485
356
  scheme: basic
486
- description: |
487
- The default authentication scheme for [Data API](#data-apis) based requests
488
- is [Basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication).
489
- OAuth2:
490
- type: oauth2
491
- flows:
492
- authorizationCode:
493
- authorizationUrl: https://auth.verygoodsecurity.com/auth/realms/vgs/protocol/openid-connect/auth
494
- tokenUrl: https://auth.verygoodsecurity.io/auth/realms/vgs/protocol/openid-connect/token
495
- scopes:
496
- credentials:read: Read vault credentials without reading secrets
497
- credentials:write: Add, delete and manage credentials of vault
498
- routes:read: Read your vault routes
499
- routes:write: Create, read, update, delete your vault routes
500
- vaults:read: Read details of your vaults
501
- vaults:write: Read, create, update and delete your vaults
502
- upstreams:read: Read your upstreams for SFTP routes
503
- upstreams:write: Create and update upstreams for SFTP routes
504
- certificates:read: Read certificates setup for your routes
505
- certificates:write: Upload and delete certificates for routes
506
- hostnames:read: Read/List Custom Hostnames of your vault routes
507
- hostnames:write: Create/Delete Custom Hostname of your vault routes
508
- functions:read: Read/List Functions
509
- functions:write: Create/Delete Functions
510
- description: |
511
- The default authentication schema for [Management API](#management-apis) based requests.
357
+ description: The default authentication schema.
512
358
 
513
359
  parameters:
514
360
  alias:
@@ -519,15 +365,6 @@ components:
519
365
  schema:
520
366
  type: string
521
367
  example: tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e
522
-
523
- functionName:
524
- name: functionName
525
- in: path
526
- required: true
527
- description: Name of function to operate on
528
- schema:
529
- type: string
530
- example: my-function-46Juzcyx
531
368
 
532
369
  responses:
533
370
  ApiErrorsResponse:
@@ -695,69 +532,3 @@ components:
695
532
  - classifiers
696
533
  required:
697
534
  - data
698
-
699
- CreateFunctionRequest:
700
- type: object
701
- properties:
702
- data:
703
- type: array
704
- items:
705
- oneOf:
706
- - $ref: '#/components/schemas/CreateFunctionRequestPayload'
707
- minItems: 1
708
- maxItems: 20
709
- required:
710
- - data
711
-
712
- CreateFunctionRequestPayload:
713
- type: object
714
- properties:
715
- name:
716
- type: string
717
- description: Prefix to name your function
718
- pattern: "[a-zA-Z]+([A-Za-z0-9\\-_]){5,28}[a-zA-Z0-9]"
719
- example: my-function
720
- src:
721
- type: string
722
- description: Definition of function body
723
- example: |
724
- def process(input, ctx):
725
- return input
726
- lang:
727
- type: string
728
- enum:
729
- - larky
730
- default: larky
731
- description: |
732
- Language to write your function in.
733
- required:
734
- - name
735
- - src
736
-
737
- Function:
738
- type: object
739
- properties:
740
- name:
741
- type: string
742
- example: my-function-46Juzcyx
743
- src:
744
- type: string
745
- description: Definition of function body
746
- example: |
747
- def process(input, ctx):
748
- return input
749
- lang:
750
- type: string
751
- enum:
752
- - larky
753
- default: larky
754
- description: |
755
- Language to write your function in.
756
- hash:
757
- type: string
758
- description: SHA256 representation of the function definition
759
- example: bc1f0c3322091740cead407000af9acc692e7fefd0d96446e07900dcd0f8e308
760
- required:
761
- - value
762
- - format
763
-
@@ -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",
@@ -342,75 +342,5 @@ module VgsApiClient
342
342
  end
343
343
  return data, status_code, headers
344
344
  end
345
-
346
- # Update function
347
- # Update an existing function definition
348
- # @param function_name [String] Name of function to operate on
349
- # @param [Hash] opts the optional parameters
350
- # @option opts [CreateFunctionRequestPayload] :create_function_request_payload
351
- # @return [nil]
352
- def update_function(function_name, opts = {})
353
- update_function_with_http_info(function_name, opts)
354
- nil
355
- end
356
-
357
- # Update function
358
- # Update an existing function definition
359
- # @param function_name [String] Name of function to operate on
360
- # @param [Hash] opts the optional parameters
361
- # @option opts [CreateFunctionRequestPayload] :create_function_request_payload
362
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
363
- def update_function_with_http_info(function_name, opts = {})
364
- if @api_client.config.debugging
365
- @api_client.config.logger.debug 'Calling API: AliasesApi.update_function ...'
366
- end
367
- # verify the required parameter 'function_name' is set
368
- if @api_client.config.client_side_validation && function_name.nil?
369
- fail ArgumentError, "Missing the required parameter 'function_name' when calling AliasesApi.update_function"
370
- end
371
- # resource path
372
- local_var_path = '/functions/{functionName}'.sub('{' + 'functionName' + '}', CGI.escape(function_name.to_s))
373
-
374
- # query parameters
375
- query_params = opts[:query_params] || {}
376
-
377
- # header parameters
378
- header_params = opts[:header_params] || {}
379
- # HTTP header 'Accept' (if needed)
380
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
381
- # HTTP header 'Content-Type'
382
- content_type = @api_client.select_header_content_type(['application/json'])
383
- if !content_type.nil?
384
- header_params['Content-Type'] = content_type
385
- end
386
-
387
- # form parameters
388
- form_params = opts[:form_params] || {}
389
-
390
- # http body (model)
391
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_function_request_payload'])
392
-
393
- # return_type
394
- return_type = opts[:debug_return_type]
395
-
396
- # auth_names
397
- auth_names = opts[:debug_auth_names] || ['BasicAuth']
398
-
399
- new_options = opts.merge(
400
- :operation => :"AliasesApi.update_function",
401
- :header_params => header_params,
402
- :query_params => query_params,
403
- :form_params => form_params,
404
- :body => post_body,
405
- :auth_names => auth_names,
406
- :return_type => return_type
407
- )
408
-
409
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
410
- if @api_client.config.debugging
411
- @api_client.config.logger.debug "API called: AliasesApi#update_function\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
412
- end
413
- return data, status_code, headers
414
- end
415
345
  end
416
346
  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.alpha202205202337/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.alpha202205202337'
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.alpha202205202337'
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.alpha202205202337 . | xargs sed -i "s/0.0.1.alpha202205202337/${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.alpha202205202337 . | xargs sed -i "s/0.0.1.alpha202205202337/$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,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.alpha202205202337
4
+ version: 0.0.1.alpha202205210249
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
@@ -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