akeyless 3.3.4 → 3.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -1
  3. data/docs/CertificateTemplateInfo.md +32 -0
  4. data/docs/CreateClassicKey.md +16 -0
  5. data/docs/CreateDFCKey.md +16 -0
  6. data/docs/CreateKey.md +16 -0
  7. data/docs/DSProducerDetails.md +8 -2
  8. data/docs/DeriveKey.md +40 -0
  9. data/docs/DeriveKeyOutput.md +20 -0
  10. data/docs/EventAction.md +26 -0
  11. data/docs/GatewayCreateProducerCertificateAutomation.md +6 -4
  12. data/docs/GatewayUpdateProducerCertificateAutomation.md +6 -4
  13. data/docs/ItemGeneralInfo.md +2 -0
  14. data/docs/SignDataWithClassicKey.md +34 -0
  15. data/docs/SignOutput.md +18 -0
  16. data/docs/TargetTypeDetailsInput.md +8 -2
  17. data/docs/V2Api.md +252 -0
  18. data/docs/VerifyDataWithClassicKey.md +36 -0
  19. data/lib/akeyless/api/v2_api.rb +256 -0
  20. data/lib/akeyless/models/certificate_template_info.rb +282 -0
  21. data/lib/akeyless/models/create_classic_key.rb +81 -1
  22. data/lib/akeyless/models/create_dfc_key.rb +81 -1
  23. data/lib/akeyless/models/create_key.rb +81 -1
  24. data/lib/akeyless/models/derive_key.rb +362 -0
  25. data/lib/akeyless/models/derive_key_output.rb +228 -0
  26. data/lib/akeyless/models/ds_producer_details.rb +30 -1
  27. data/lib/akeyless/models/event_action.rb +272 -0
  28. data/lib/akeyless/models/gateway_create_producer_certificate_automation.rb +30 -18
  29. data/lib/akeyless/models/gateway_update_producer_certificate_automation.rb +30 -18
  30. data/lib/akeyless/models/item_general_info.rb +10 -1
  31. data/lib/akeyless/models/sign_data_with_classic_key.rb +326 -0
  32. data/lib/akeyless/models/sign_output.rb +219 -0
  33. data/lib/akeyless/models/target_type_details_input.rb +30 -1
  34. data/lib/akeyless/models/verify_data_with_classic_key.rb +336 -0
  35. data/lib/akeyless/version.rb +1 -1
  36. data/lib/akeyless.rb +7 -0
  37. data/spec/models/certificate_template_info_spec.rb +76 -0
  38. data/spec/models/derive_key_output_spec.rb +40 -0
  39. data/spec/models/derive_key_spec.rb +100 -0
  40. data/spec/models/event_action_spec.rb +58 -0
  41. data/spec/models/sign_data_with_classic_key_spec.rb +82 -0
  42. data/spec/models/sign_output_spec.rb +34 -0
  43. data/spec/models/verify_data_with_classic_key_spec.rb +88 -0
  44. metadata +30 -2
data/docs/V2Api.md CHANGED
@@ -72,6 +72,7 @@ All URIs are relative to *https://api.akeyless.io*
72
72
  | [**delete_target**](V2Api.md#delete_target) | **POST** /delete-target | |
73
73
  | [**delete_target_association**](V2Api.md#delete_target_association) | **POST** /delete-assoc-target-item | |
74
74
  | [**delete_targets**](V2Api.md#delete_targets) | **POST** /delete-targets | |
75
+ | [**derive_key**](V2Api.md#derive_key) | **POST** /derive-key | |
75
76
  | [**describe_assoc**](V2Api.md#describe_assoc) | **POST** /describe-role-am-assoc | |
76
77
  | [**describe_item**](V2Api.md#describe_item) | **POST** /describe-item | |
77
78
  | [**describe_permissions**](V2Api.md#describe_permissions) | **POST** /describe-permissions | |
@@ -85,6 +86,7 @@ All URIs are relative to *https://api.akeyless.io*
85
86
  | [**esm_get**](V2Api.md#esm_get) | **POST** /esm-get | |
86
87
  | [**esm_list**](V2Api.md#esm_list) | **POST** /esm-list | |
87
88
  | [**esm_update**](V2Api.md#esm_update) | **POST** /esm-update | |
89
+ | [**event_action**](V2Api.md#event_action) | **POST** /event-action | |
88
90
  | [**export_classic_key**](V2Api.md#export_classic_key) | **POST** /export-classic-key | |
89
91
  | [**gateway_create_k8_s_auth_config**](V2Api.md#gateway_create_k8_s_auth_config) | **POST** /gateway-create-k8s-auth-config | |
90
92
  | [**gateway_create_migration**](V2Api.md#gateway_create_migration) | **POST** /gateway-create-migration | |
@@ -213,6 +215,7 @@ All URIs are relative to *https://api.akeyless.io*
213
215
  | [**set_item_state**](V2Api.md#set_item_state) | **POST** /set-item-state | |
214
216
  | [**set_role_rule**](V2Api.md#set_role_rule) | **POST** /set-role-rule | |
215
217
  | [**share_item**](V2Api.md#share_item) | **POST** /share-item | |
218
+ | [**sign_data_with_classic_key**](V2Api.md#sign_data_with_classic_key) | **POST** /sign-data-with-classic-key | |
216
219
  | [**sign_gpg**](V2Api.md#sign_gpg) | **POST** /sign-gpg | |
217
220
  | [**sign_jwt_with_classic_key**](V2Api.md#sign_jwt_with_classic_key) | **POST** /sign-jwt-with-classic-key | |
218
221
  | [**sign_pkcs1**](V2Api.md#sign_pkcs1) | **POST** /sign-pkcs1 | |
@@ -277,6 +280,7 @@ All URIs are relative to *https://api.akeyless.io*
277
280
  | [**update_zero_ssl_target**](V2Api.md#update_zero_ssl_target) | **POST** /update-zerossl-target | |
278
281
  | [**upload_rsa**](V2Api.md#upload_rsa) | **POST** /upload-rsa | |
279
282
  | [**validate_token**](V2Api.md#validate_token) | **POST** /validate-token | |
283
+ | [**verify_data_with_classic_key**](V2Api.md#verify_data_with_classic_key) | **POST** /verify-data-with-classic-key | |
280
284
  | [**verify_gpg**](V2Api.md#verify_gpg) | **POST** /verify-gpg | |
281
285
  | [**verify_jwt_with_classic_key**](V2Api.md#verify_jwt_with_classic_key) | **POST** /verify-jwt-with-classic-key | |
282
286
  | [**verify_pkcs1**](V2Api.md#verify_pkcs1) | **POST** /verify-pkcs1 | |
@@ -4499,6 +4503,68 @@ No authorization required
4499
4503
  - **Accept**: application/json
4500
4504
 
4501
4505
 
4506
+ ## derive_key
4507
+
4508
+ > <DeriveKeyOutput> derive_key(body)
4509
+
4510
+
4511
+
4512
+ ### Examples
4513
+
4514
+ ```ruby
4515
+ require 'time'
4516
+ require 'akeyless'
4517
+
4518
+ api_instance = Akeyless::V2Api.new
4519
+ body = Akeyless::DeriveKey.new({alg: 'alg_example', iter: 3.56, key_len: 3.56, name: 'name_example'}) # DeriveKey |
4520
+
4521
+ begin
4522
+
4523
+ result = api_instance.derive_key(body)
4524
+ p result
4525
+ rescue Akeyless::ApiError => e
4526
+ puts "Error when calling V2Api->derive_key: #{e}"
4527
+ end
4528
+ ```
4529
+
4530
+ #### Using the derive_key_with_http_info variant
4531
+
4532
+ This returns an Array which contains the response data, status code and headers.
4533
+
4534
+ > <Array(<DeriveKeyOutput>, Integer, Hash)> derive_key_with_http_info(body)
4535
+
4536
+ ```ruby
4537
+ begin
4538
+
4539
+ data, status_code, headers = api_instance.derive_key_with_http_info(body)
4540
+ p status_code # => 2xx
4541
+ p headers # => { ... }
4542
+ p data # => <DeriveKeyOutput>
4543
+ rescue Akeyless::ApiError => e
4544
+ puts "Error when calling V2Api->derive_key_with_http_info: #{e}"
4545
+ end
4546
+ ```
4547
+
4548
+ ### Parameters
4549
+
4550
+ | Name | Type | Description | Notes |
4551
+ | ---- | ---- | ----------- | ----- |
4552
+ | **body** | [**DeriveKey**](DeriveKey.md) | | |
4553
+
4554
+ ### Return type
4555
+
4556
+ [**DeriveKeyOutput**](DeriveKeyOutput.md)
4557
+
4558
+ ### Authorization
4559
+
4560
+ No authorization required
4561
+
4562
+ ### HTTP request headers
4563
+
4564
+ - **Content-Type**: application/json
4565
+ - **Accept**: application/json
4566
+
4567
+
4502
4568
  ## describe_assoc
4503
4569
 
4504
4570
  > <RoleAssociationDetails> describe_assoc(body)
@@ -5302,6 +5368,68 @@ No authorization required
5302
5368
  - **Accept**: application/json
5303
5369
 
5304
5370
 
5371
+ ## event_action
5372
+
5373
+ > Object event_action(body)
5374
+
5375
+
5376
+
5377
+ ### Examples
5378
+
5379
+ ```ruby
5380
+ require 'time'
5381
+ require 'akeyless'
5382
+
5383
+ api_instance = Akeyless::V2Api.new
5384
+ body = Akeyless::EventAction.new({action: 'action_example', event_id: 3.56}) # EventAction |
5385
+
5386
+ begin
5387
+
5388
+ result = api_instance.event_action(body)
5389
+ p result
5390
+ rescue Akeyless::ApiError => e
5391
+ puts "Error when calling V2Api->event_action: #{e}"
5392
+ end
5393
+ ```
5394
+
5395
+ #### Using the event_action_with_http_info variant
5396
+
5397
+ This returns an Array which contains the response data, status code and headers.
5398
+
5399
+ > <Array(Object, Integer, Hash)> event_action_with_http_info(body)
5400
+
5401
+ ```ruby
5402
+ begin
5403
+
5404
+ data, status_code, headers = api_instance.event_action_with_http_info(body)
5405
+ p status_code # => 2xx
5406
+ p headers # => { ... }
5407
+ p data # => Object
5408
+ rescue Akeyless::ApiError => e
5409
+ puts "Error when calling V2Api->event_action_with_http_info: #{e}"
5410
+ end
5411
+ ```
5412
+
5413
+ ### Parameters
5414
+
5415
+ | Name | Type | Description | Notes |
5416
+ | ---- | ---- | ----------- | ----- |
5417
+ | **body** | [**EventAction**](EventAction.md) | | |
5418
+
5419
+ ### Return type
5420
+
5421
+ **Object**
5422
+
5423
+ ### Authorization
5424
+
5425
+ No authorization required
5426
+
5427
+ ### HTTP request headers
5428
+
5429
+ - **Content-Type**: application/json
5430
+ - **Accept**: application/json
5431
+
5432
+
5305
5433
  ## export_classic_key
5306
5434
 
5307
5435
  > <ExportClassicKeyOutput> export_classic_key(body)
@@ -13262,6 +13390,68 @@ No authorization required
13262
13390
  - **Accept**: application/json
13263
13391
 
13264
13392
 
13393
+ ## sign_data_with_classic_key
13394
+
13395
+ > <SignOutput> sign_data_with_classic_key(body)
13396
+
13397
+
13398
+
13399
+ ### Examples
13400
+
13401
+ ```ruby
13402
+ require 'time'
13403
+ require 'akeyless'
13404
+
13405
+ api_instance = Akeyless::V2Api.new
13406
+ body = Akeyless::SignDataWithClassicKey.new({data: 'data_example', display_id: 'display_id_example', name: 'name_example', version: 37}) # SignDataWithClassicKey |
13407
+
13408
+ begin
13409
+
13410
+ result = api_instance.sign_data_with_classic_key(body)
13411
+ p result
13412
+ rescue Akeyless::ApiError => e
13413
+ puts "Error when calling V2Api->sign_data_with_classic_key: #{e}"
13414
+ end
13415
+ ```
13416
+
13417
+ #### Using the sign_data_with_classic_key_with_http_info variant
13418
+
13419
+ This returns an Array which contains the response data, status code and headers.
13420
+
13421
+ > <Array(<SignOutput>, Integer, Hash)> sign_data_with_classic_key_with_http_info(body)
13422
+
13423
+ ```ruby
13424
+ begin
13425
+
13426
+ data, status_code, headers = api_instance.sign_data_with_classic_key_with_http_info(body)
13427
+ p status_code # => 2xx
13428
+ p headers # => { ... }
13429
+ p data # => <SignOutput>
13430
+ rescue Akeyless::ApiError => e
13431
+ puts "Error when calling V2Api->sign_data_with_classic_key_with_http_info: #{e}"
13432
+ end
13433
+ ```
13434
+
13435
+ ### Parameters
13436
+
13437
+ | Name | Type | Description | Notes |
13438
+ | ---- | ---- | ----------- | ----- |
13439
+ | **body** | [**SignDataWithClassicKey**](SignDataWithClassicKey.md) | | |
13440
+
13441
+ ### Return type
13442
+
13443
+ [**SignOutput**](SignOutput.md)
13444
+
13445
+ ### Authorization
13446
+
13447
+ No authorization required
13448
+
13449
+ ### HTTP request headers
13450
+
13451
+ - **Content-Type**: application/json
13452
+ - **Accept**: application/json
13453
+
13454
+
13265
13455
  ## sign_gpg
13266
13456
 
13267
13457
  > <SignGPGOutput> sign_gpg(body)
@@ -17227,6 +17417,68 @@ No authorization required
17227
17417
  - **Accept**: application/json
17228
17418
 
17229
17419
 
17420
+ ## verify_data_with_classic_key
17421
+
17422
+ > <VerifyPKICertOutput> verify_data_with_classic_key(body)
17423
+
17424
+
17425
+
17426
+ ### Examples
17427
+
17428
+ ```ruby
17429
+ require 'time'
17430
+ require 'akeyless'
17431
+
17432
+ api_instance = Akeyless::V2Api.new
17433
+ body = Akeyless::VerifyDataWithClassicKey.new({data: 'data_example', key_name: 'key_name_example', signature: 'signature_example', version: 37}) # VerifyDataWithClassicKey |
17434
+
17435
+ begin
17436
+
17437
+ result = api_instance.verify_data_with_classic_key(body)
17438
+ p result
17439
+ rescue Akeyless::ApiError => e
17440
+ puts "Error when calling V2Api->verify_data_with_classic_key: #{e}"
17441
+ end
17442
+ ```
17443
+
17444
+ #### Using the verify_data_with_classic_key_with_http_info variant
17445
+
17446
+ This returns an Array which contains the response data, status code and headers.
17447
+
17448
+ > <Array(<VerifyPKICertOutput>, Integer, Hash)> verify_data_with_classic_key_with_http_info(body)
17449
+
17450
+ ```ruby
17451
+ begin
17452
+
17453
+ data, status_code, headers = api_instance.verify_data_with_classic_key_with_http_info(body)
17454
+ p status_code # => 2xx
17455
+ p headers # => { ... }
17456
+ p data # => <VerifyPKICertOutput>
17457
+ rescue Akeyless::ApiError => e
17458
+ puts "Error when calling V2Api->verify_data_with_classic_key_with_http_info: #{e}"
17459
+ end
17460
+ ```
17461
+
17462
+ ### Parameters
17463
+
17464
+ | Name | Type | Description | Notes |
17465
+ | ---- | ---- | ----------- | ----- |
17466
+ | **body** | [**VerifyDataWithClassicKey**](VerifyDataWithClassicKey.md) | | |
17467
+
17468
+ ### Return type
17469
+
17470
+ [**VerifyPKICertOutput**](VerifyPKICertOutput.md)
17471
+
17472
+ ### Authorization
17473
+
17474
+ No authorization required
17475
+
17476
+ ### HTTP request headers
17477
+
17478
+ - **Content-Type**: application/json
17479
+ - **Accept**: application/json
17480
+
17481
+
17230
17482
  ## verify_gpg
17231
17483
 
17232
17484
  > Object verify_gpg(body)
@@ -0,0 +1,36 @@
1
+ # Akeyless::VerifyDataWithClassicKey
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | **String** | Data | |
8
+ | **display_id** | **String** | The display id of the key to use in the verification process | [optional] |
9
+ | **hashed** | **Boolean** | Defines whether the data should be hashed as part of the signing. If true, the data will not be hashed | [optional][default to false] |
10
+ | **hashing_method** | **String** | HashingMethod | [optional][default to &#39;SHA256&#39;] |
11
+ | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
12
+ | **key_name** | **String** | The name of the key to use in the verification process | |
13
+ | **signature** | **String** | The data&#39;s signature in a Base64 format. | |
14
+ | **token** | **String** | Authentication token (see &#x60;/auth&#x60; and &#x60;/configure&#x60;) | [optional] |
15
+ | **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
16
+ | **version** | **Integer** | classic key version | |
17
+
18
+ ## Example
19
+
20
+ ```ruby
21
+ require 'akeyless'
22
+
23
+ instance = Akeyless::VerifyDataWithClassicKey.new(
24
+ data: null,
25
+ display_id: null,
26
+ hashed: null,
27
+ hashing_method: null,
28
+ json: null,
29
+ key_name: null,
30
+ signature: null,
31
+ token: null,
32
+ uid_token: null,
33
+ version: null
34
+ )
35
+ ```
36
+
@@ -4371,6 +4371,70 @@ module Akeyless
4371
4371
  return data, status_code, headers
4372
4372
  end
4373
4373
 
4374
+ # @param body [DeriveKey]
4375
+ # @param [Hash] opts the optional parameters
4376
+ # @return [DeriveKeyOutput]
4377
+ def derive_key(body, opts = {})
4378
+ data, _status_code, _headers = derive_key_with_http_info(body, opts)
4379
+ data
4380
+ end
4381
+
4382
+ # @param body [DeriveKey]
4383
+ # @param [Hash] opts the optional parameters
4384
+ # @return [Array<(DeriveKeyOutput, Integer, Hash)>] DeriveKeyOutput data, response status code and response headers
4385
+ def derive_key_with_http_info(body, opts = {})
4386
+ if @api_client.config.debugging
4387
+ @api_client.config.logger.debug 'Calling API: V2Api.derive_key ...'
4388
+ end
4389
+ # verify the required parameter 'body' is set
4390
+ if @api_client.config.client_side_validation && body.nil?
4391
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.derive_key"
4392
+ end
4393
+ # resource path
4394
+ local_var_path = '/derive-key'
4395
+
4396
+ # query parameters
4397
+ query_params = opts[:query_params] || {}
4398
+
4399
+ # header parameters
4400
+ header_params = opts[:header_params] || {}
4401
+ # HTTP header 'Accept' (if needed)
4402
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4403
+ # HTTP header 'Content-Type'
4404
+ content_type = @api_client.select_header_content_type(['application/json'])
4405
+ if !content_type.nil?
4406
+ header_params['Content-Type'] = content_type
4407
+ end
4408
+
4409
+ # form parameters
4410
+ form_params = opts[:form_params] || {}
4411
+
4412
+ # http body (model)
4413
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
4414
+
4415
+ # return_type
4416
+ return_type = opts[:debug_return_type] || 'DeriveKeyOutput'
4417
+
4418
+ # auth_names
4419
+ auth_names = opts[:debug_auth_names] || []
4420
+
4421
+ new_options = opts.merge(
4422
+ :operation => :"V2Api.derive_key",
4423
+ :header_params => header_params,
4424
+ :query_params => query_params,
4425
+ :form_params => form_params,
4426
+ :body => post_body,
4427
+ :auth_names => auth_names,
4428
+ :return_type => return_type
4429
+ )
4430
+
4431
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4432
+ if @api_client.config.debugging
4433
+ @api_client.config.logger.debug "API called: V2Api#derive_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4434
+ end
4435
+ return data, status_code, headers
4436
+ end
4437
+
4374
4438
  # @param body [DescribeAssoc]
4375
4439
  # @param [Hash] opts the optional parameters
4376
4440
  # @return [RoleAssociationDetails]
@@ -5192,6 +5256,70 @@ module Akeyless
5192
5256
  return data, status_code, headers
5193
5257
  end
5194
5258
 
5259
+ # @param body [EventAction]
5260
+ # @param [Hash] opts the optional parameters
5261
+ # @return [Object]
5262
+ def event_action(body, opts = {})
5263
+ data, _status_code, _headers = event_action_with_http_info(body, opts)
5264
+ data
5265
+ end
5266
+
5267
+ # @param body [EventAction]
5268
+ # @param [Hash] opts the optional parameters
5269
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
5270
+ def event_action_with_http_info(body, opts = {})
5271
+ if @api_client.config.debugging
5272
+ @api_client.config.logger.debug 'Calling API: V2Api.event_action ...'
5273
+ end
5274
+ # verify the required parameter 'body' is set
5275
+ if @api_client.config.client_side_validation && body.nil?
5276
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.event_action"
5277
+ end
5278
+ # resource path
5279
+ local_var_path = '/event-action'
5280
+
5281
+ # query parameters
5282
+ query_params = opts[:query_params] || {}
5283
+
5284
+ # header parameters
5285
+ header_params = opts[:header_params] || {}
5286
+ # HTTP header 'Accept' (if needed)
5287
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5288
+ # HTTP header 'Content-Type'
5289
+ content_type = @api_client.select_header_content_type(['application/json'])
5290
+ if !content_type.nil?
5291
+ header_params['Content-Type'] = content_type
5292
+ end
5293
+
5294
+ # form parameters
5295
+ form_params = opts[:form_params] || {}
5296
+
5297
+ # http body (model)
5298
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
5299
+
5300
+ # return_type
5301
+ return_type = opts[:debug_return_type] || 'Object'
5302
+
5303
+ # auth_names
5304
+ auth_names = opts[:debug_auth_names] || []
5305
+
5306
+ new_options = opts.merge(
5307
+ :operation => :"V2Api.event_action",
5308
+ :header_params => header_params,
5309
+ :query_params => query_params,
5310
+ :form_params => form_params,
5311
+ :body => post_body,
5312
+ :auth_names => auth_names,
5313
+ :return_type => return_type
5314
+ )
5315
+
5316
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
5317
+ if @api_client.config.debugging
5318
+ @api_client.config.logger.debug "API called: V2Api#event_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5319
+ end
5320
+ return data, status_code, headers
5321
+ end
5322
+
5195
5323
  # @param body [ExportClassicKey]
5196
5324
  # @param [Hash] opts the optional parameters
5197
5325
  # @return [ExportClassicKeyOutput]
@@ -13294,6 +13422,70 @@ module Akeyless
13294
13422
  return data, status_code, headers
13295
13423
  end
13296
13424
 
13425
+ # @param body [SignDataWithClassicKey]
13426
+ # @param [Hash] opts the optional parameters
13427
+ # @return [SignOutput]
13428
+ def sign_data_with_classic_key(body, opts = {})
13429
+ data, _status_code, _headers = sign_data_with_classic_key_with_http_info(body, opts)
13430
+ data
13431
+ end
13432
+
13433
+ # @param body [SignDataWithClassicKey]
13434
+ # @param [Hash] opts the optional parameters
13435
+ # @return [Array<(SignOutput, Integer, Hash)>] SignOutput data, response status code and response headers
13436
+ def sign_data_with_classic_key_with_http_info(body, opts = {})
13437
+ if @api_client.config.debugging
13438
+ @api_client.config.logger.debug 'Calling API: V2Api.sign_data_with_classic_key ...'
13439
+ end
13440
+ # verify the required parameter 'body' is set
13441
+ if @api_client.config.client_side_validation && body.nil?
13442
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.sign_data_with_classic_key"
13443
+ end
13444
+ # resource path
13445
+ local_var_path = '/sign-data-with-classic-key'
13446
+
13447
+ # query parameters
13448
+ query_params = opts[:query_params] || {}
13449
+
13450
+ # header parameters
13451
+ header_params = opts[:header_params] || {}
13452
+ # HTTP header 'Accept' (if needed)
13453
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
13454
+ # HTTP header 'Content-Type'
13455
+ content_type = @api_client.select_header_content_type(['application/json'])
13456
+ if !content_type.nil?
13457
+ header_params['Content-Type'] = content_type
13458
+ end
13459
+
13460
+ # form parameters
13461
+ form_params = opts[:form_params] || {}
13462
+
13463
+ # http body (model)
13464
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
13465
+
13466
+ # return_type
13467
+ return_type = opts[:debug_return_type] || 'SignOutput'
13468
+
13469
+ # auth_names
13470
+ auth_names = opts[:debug_auth_names] || []
13471
+
13472
+ new_options = opts.merge(
13473
+ :operation => :"V2Api.sign_data_with_classic_key",
13474
+ :header_params => header_params,
13475
+ :query_params => query_params,
13476
+ :form_params => form_params,
13477
+ :body => post_body,
13478
+ :auth_names => auth_names,
13479
+ :return_type => return_type
13480
+ )
13481
+
13482
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
13483
+ if @api_client.config.debugging
13484
+ @api_client.config.logger.debug "API called: V2Api#sign_data_with_classic_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13485
+ end
13486
+ return data, status_code, headers
13487
+ end
13488
+
13297
13489
  # @param body [SignGPG]
13298
13490
  # @param [Hash] opts the optional parameters
13299
13491
  # @return [SignGPGOutput]
@@ -17379,6 +17571,70 @@ module Akeyless
17379
17571
  return data, status_code, headers
17380
17572
  end
17381
17573
 
17574
+ # @param body [VerifyDataWithClassicKey]
17575
+ # @param [Hash] opts the optional parameters
17576
+ # @return [VerifyPKICertOutput]
17577
+ def verify_data_with_classic_key(body, opts = {})
17578
+ data, _status_code, _headers = verify_data_with_classic_key_with_http_info(body, opts)
17579
+ data
17580
+ end
17581
+
17582
+ # @param body [VerifyDataWithClassicKey]
17583
+ # @param [Hash] opts the optional parameters
17584
+ # @return [Array<(VerifyPKICertOutput, Integer, Hash)>] VerifyPKICertOutput data, response status code and response headers
17585
+ def verify_data_with_classic_key_with_http_info(body, opts = {})
17586
+ if @api_client.config.debugging
17587
+ @api_client.config.logger.debug 'Calling API: V2Api.verify_data_with_classic_key ...'
17588
+ end
17589
+ # verify the required parameter 'body' is set
17590
+ if @api_client.config.client_side_validation && body.nil?
17591
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.verify_data_with_classic_key"
17592
+ end
17593
+ # resource path
17594
+ local_var_path = '/verify-data-with-classic-key'
17595
+
17596
+ # query parameters
17597
+ query_params = opts[:query_params] || {}
17598
+
17599
+ # header parameters
17600
+ header_params = opts[:header_params] || {}
17601
+ # HTTP header 'Accept' (if needed)
17602
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
17603
+ # HTTP header 'Content-Type'
17604
+ content_type = @api_client.select_header_content_type(['application/json'])
17605
+ if !content_type.nil?
17606
+ header_params['Content-Type'] = content_type
17607
+ end
17608
+
17609
+ # form parameters
17610
+ form_params = opts[:form_params] || {}
17611
+
17612
+ # http body (model)
17613
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
17614
+
17615
+ # return_type
17616
+ return_type = opts[:debug_return_type] || 'VerifyPKICertOutput'
17617
+
17618
+ # auth_names
17619
+ auth_names = opts[:debug_auth_names] || []
17620
+
17621
+ new_options = opts.merge(
17622
+ :operation => :"V2Api.verify_data_with_classic_key",
17623
+ :header_params => header_params,
17624
+ :query_params => query_params,
17625
+ :form_params => form_params,
17626
+ :body => post_body,
17627
+ :auth_names => auth_names,
17628
+ :return_type => return_type
17629
+ )
17630
+
17631
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17632
+ if @api_client.config.debugging
17633
+ @api_client.config.logger.debug "API called: V2Api#verify_data_with_classic_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
17634
+ end
17635
+ return data, status_code, headers
17636
+ end
17637
+
17382
17638
  # @param body [VerifyGPG]
17383
17639
  # @param [Hash] opts the optional parameters
17384
17640
  # @return [Object]