vgs_api_client 0.0.1.alpha202205202337 → 0.0.1.alpha202205202346

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 466d1ce6ffa623fa8cc02ca65f59a8bcd11718a2dfe20cff3421dc42e2d6f2a2
4
- data.tar.gz: 52af700658d4023067c97e1675b033e0ce718b3a1354539b8de5d431b5cf9fb9
3
+ metadata.gz: 8e6d83fe6298887d7e460c976ae4893f62c879659b93d849196a27183411347b
4
+ data.tar.gz: a920f5df37f5b382968d59837983e4159446188fcff6e847a89c64ebd541fa71
5
5
  SHA512:
6
- metadata.gz: 3daf0cee732b440e6c226bfbd88ca28b49ee3273fd916b795d1fedb18b1b77d07d90d646cc0a11fd27049ef4af117ba422bae4b30f00d8de42a0af8fc4f611a2
7
- data.tar.gz: c265ba7d7ddb03cfdcaf649166a317aaf5dcadfa6c3d8940142d1bb2ccd5f041de60657417c4ac953793b1d2478b8715a569431f68371ee871c6427785babc16
6
+ metadata.gz: 8c8c2bd408a0f7f6aec0ea52ed31cdd4779c2998b9ffed6296e87600817687332c25778e931ca6c1225d94e6ece9defcd9a24713418fcdf9833b2d816200992d
7
+ data.tar.gz: ad3525b0f3c50c2933c0632c65153f9e6e582caab34c24355f4bbf2266539f973ce9bacc929baee1948f6705ceb532e8667b5969ebe5be48fde01ef219dbc1ef
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1.alpha202205202337
1
+ 0.0.1.alpha202205202346
data/api.yaml CHANGED
@@ -213,7 +213,7 @@ paths:
213
213
  put:
214
214
  operationId: updateFunction
215
215
  tags:
216
- - aliases
216
+ - functions
217
217
  summary: Update function
218
218
  description: |
219
219
  Update an existing function definition
@@ -243,6 +243,46 @@ paths:
243
243
  default:
244
244
  $ref: '#/components/responses/ApiErrorsResponse'
245
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
+ "*":
267
+ schema:
268
+ type: string
269
+ format: binary?
270
+ responses:
271
+ '200':
272
+ description: OK
273
+ content:
274
+ "text/plain":
275
+ schema:
276
+ type: string
277
+ example:
278
+ aGVsbG8gd29ybGQK
279
+ "*":
280
+ schema:
281
+ type: string
282
+ format: binary
283
+ default:
284
+ $ref: '#/components/responses/ApiErrorsResponse'
285
+
246
286
  /aliases:
247
287
  post:
248
288
  operationId: createAliases
@@ -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
@@ -209,6 +209,76 @@ module VgsApiClient
209
209
  return data, status_code, headers
210
210
  end
211
211
 
212
+ # Invoke a function
213
+ # Invokes a function
214
+ # @param function_name [String] Name of function to operate on
215
+ # @param [Hash] opts the optional parameters
216
+ # @option opts [String] :body
217
+ # @return [File]
218
+ def invoke_function(function_name, opts = {})
219
+ data, _status_code, _headers = invoke_function_with_http_info(function_name, opts)
220
+ data
221
+ end
222
+
223
+ # Invoke a function
224
+ # Invokes a function
225
+ # @param function_name [String] Name of function to operate on
226
+ # @param [Hash] opts the optional parameters
227
+ # @option opts [String] :body
228
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
229
+ def invoke_function_with_http_info(function_name, opts = {})
230
+ if @api_client.config.debugging
231
+ @api_client.config.logger.debug 'Calling API: FunctionsApi.invoke_function ...'
232
+ end
233
+ # verify the required parameter 'function_name' is set
234
+ if @api_client.config.client_side_validation && function_name.nil?
235
+ fail ArgumentError, "Missing the required parameter 'function_name' when calling FunctionsApi.invoke_function"
236
+ end
237
+ # resource path
238
+ local_var_path = '/functions/{functionName}/invocations'.sub('{' + 'functionName' + '}', CGI.escape(function_name.to_s))
239
+
240
+ # query parameters
241
+ query_params = opts[:query_params] || {}
242
+
243
+ # header parameters
244
+ header_params = opts[:header_params] || {}
245
+ # HTTP header 'Accept' (if needed)
246
+ header_params['Accept'] = @api_client.select_header_accept(['*', 'text/plain', 'application/json'])
247
+ # HTTP header 'Content-Type'
248
+ content_type = @api_client.select_header_content_type(['*', 'text/plain'])
249
+ if !content_type.nil?
250
+ header_params['Content-Type'] = content_type
251
+ end
252
+
253
+ # form parameters
254
+ form_params = opts[:form_params] || {}
255
+
256
+ # http body (model)
257
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
258
+
259
+ # return_type
260
+ return_type = opts[:debug_return_type] || 'File'
261
+
262
+ # auth_names
263
+ auth_names = opts[:debug_auth_names] || ['BasicAuth']
264
+
265
+ new_options = opts.merge(
266
+ :operation => :"FunctionsApi.invoke_function",
267
+ :header_params => header_params,
268
+ :query_params => query_params,
269
+ :form_params => form_params,
270
+ :body => post_body,
271
+ :auth_names => auth_names,
272
+ :return_type => return_type
273
+ )
274
+
275
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
276
+ if @api_client.config.debugging
277
+ @api_client.config.logger.debug "API called: FunctionsApi#invoke_function\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
+ end
279
+ return data, status_code, headers
280
+ end
281
+
212
282
  # Lists all functions
213
283
  # Lists all functions
214
284
  # @param [Hash] opts the optional parameters
@@ -265,5 +335,75 @@ module VgsApiClient
265
335
  end
266
336
  return data, status_code, headers
267
337
  end
338
+
339
+ # Update function
340
+ # Update an existing function definition
341
+ # @param function_name [String] Name of function to operate on
342
+ # @param [Hash] opts the optional parameters
343
+ # @option opts [CreateFunctionRequestPayload] :create_function_request_payload
344
+ # @return [nil]
345
+ def update_function(function_name, opts = {})
346
+ update_function_with_http_info(function_name, opts)
347
+ nil
348
+ end
349
+
350
+ # Update function
351
+ # Update an existing function definition
352
+ # @param function_name [String] Name of function to operate on
353
+ # @param [Hash] opts the optional parameters
354
+ # @option opts [CreateFunctionRequestPayload] :create_function_request_payload
355
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
356
+ def update_function_with_http_info(function_name, opts = {})
357
+ if @api_client.config.debugging
358
+ @api_client.config.logger.debug 'Calling API: FunctionsApi.update_function ...'
359
+ end
360
+ # verify the required parameter 'function_name' is set
361
+ if @api_client.config.client_side_validation && function_name.nil?
362
+ fail ArgumentError, "Missing the required parameter 'function_name' when calling FunctionsApi.update_function"
363
+ end
364
+ # resource path
365
+ local_var_path = '/functions/{functionName}'.sub('{' + 'functionName' + '}', CGI.escape(function_name.to_s))
366
+
367
+ # query parameters
368
+ query_params = opts[:query_params] || {}
369
+
370
+ # header parameters
371
+ header_params = opts[:header_params] || {}
372
+ # HTTP header 'Accept' (if needed)
373
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
374
+ # HTTP header 'Content-Type'
375
+ content_type = @api_client.select_header_content_type(['application/json'])
376
+ if !content_type.nil?
377
+ header_params['Content-Type'] = content_type
378
+ end
379
+
380
+ # form parameters
381
+ form_params = opts[:form_params] || {}
382
+
383
+ # http body (model)
384
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_function_request_payload'])
385
+
386
+ # return_type
387
+ return_type = opts[:debug_return_type]
388
+
389
+ # auth_names
390
+ auth_names = opts[:debug_auth_names] || ['BasicAuth']
391
+
392
+ new_options = opts.merge(
393
+ :operation => :"FunctionsApi.update_function",
394
+ :header_params => header_params,
395
+ :query_params => query_params,
396
+ :form_params => form_params,
397
+ :body => post_body,
398
+ :auth_names => auth_names,
399
+ :return_type => return_type
400
+ )
401
+
402
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
403
+ if @api_client.config.debugging
404
+ @api_client.config.logger.debug "API called: FunctionsApi#update_function\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
405
+ end
406
+ return data, status_code, headers
407
+ end
268
408
  end
269
409
  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.alpha202205202346/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.alpha202205202337'
14
+ VERSION = '0.0.1.alpha202205202346'
15
15
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VGS
2
- VERSION = '0.0.1.alpha202205202337'
2
+ VERSION = '0.0.1.alpha202205202346'
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.alpha202205202346 . | xargs sed -i "s/0.0.1.alpha202205202346/${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.alpha202205202346 . | xargs sed -i "s/0.0.1.alpha202205202346/$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.alpha202205202337
4
+ version: 0.0.1.alpha202205202346
5
5
  platform: ruby
6
6
  authors:
7
7
  - Very Good Security