akeyless 4.2.1 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/docs/BatchEncryptionRequestLine.md +24 -0
- data/docs/BatchEncryptionResponseLine.md +20 -0
- data/docs/Connect.md +2 -0
- data/docs/CreateClassicKey.md +2 -0
- data/docs/CreateDFCKey.md +2 -0
- data/docs/DescribeItem.md +2 -0
- data/docs/ItemGeneralInfo.md +2 -0
- data/docs/UploadRSA.md +2 -0
- data/docs/V2Api.md +126 -0
- data/lib/akeyless/api/v2_api.rb +128 -0
- data/lib/akeyless/models/batch_encryption_request_line.rb +243 -0
- data/lib/akeyless/models/batch_encryption_response_line.rb +223 -0
- data/lib/akeyless/models/connect.rb +11 -1
- data/lib/akeyless/models/create_classic_key.rb +10 -1
- data/lib/akeyless/models/create_dfc_key.rb +10 -1
- data/lib/akeyless/models/describe_item.rb +13 -1
- data/lib/akeyless/models/item_general_info.rb +10 -1
- data/lib/akeyless/models/upload_rsa.rb +10 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +2 -0
- data/spec/models/batch_encryption_request_line_spec.rb +54 -0
- data/spec/models/batch_encryption_response_line_spec.rb +42 -0
- metadata +980 -972
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32f18191c2f73450191c1946ddcb2d3b48616cff2d90d631b348277f75d81266
|
4
|
+
data.tar.gz: befb22741bbbe29570b8a36d8e34584ec80267f1be281b765b0469868327c6a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de51296f535fd57f7ff4ecc8856e7d94d2755986e4e70b98b4f1ba3a8232ff88dfa28ba1fbc485512f33536613ee928f5b7c3489c8bacd1c595d475f664b06bb
|
7
|
+
data.tar.gz: 8f1e9c7016c8c7a6d564e3ba17fa5a8daffc09c265c6bcc866a5d054dfea6c34a401ea52c5e1bf4c7c08220c62d4501086ec3d57f576834b8f7a458301c0bf39
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The purpose of this application is to provide access to Akeyless API.
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0
|
10
|
-
- Package version: 4.2.
|
10
|
+
- Package version: 4.2.2
|
11
11
|
- Generator version: 7.8.0-SNAPSHOT
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
13
|
For more information, please visit [http://akeyless.io](http://akeyless.io)
|
@@ -150,6 +150,7 @@ Class | Method | HTTP request | Description
|
|
150
150
|
*Akeyless::V2Api* | [**create_zero_ssl_target**](docs/V2Api.md#create_zero_ssl_target) | **POST** /create-zerossl-target |
|
151
151
|
*Akeyless::V2Api* | [**createldap_target**](docs/V2Api.md#createldap_target) | **POST** /create-ldap-target |
|
152
152
|
*Akeyless::V2Api* | [**decrypt**](docs/V2Api.md#decrypt) | **POST** /decrypt |
|
153
|
+
*Akeyless::V2Api* | [**decrypt_batch**](docs/V2Api.md#decrypt_batch) | **POST** /decrypt-batch |
|
153
154
|
*Akeyless::V2Api* | [**decrypt_gpg**](docs/V2Api.md#decrypt_gpg) | **POST** /decrypt-gpg |
|
154
155
|
*Akeyless::V2Api* | [**decrypt_pkcs1**](docs/V2Api.md#decrypt_pkcs1) | **POST** /decrypt-pkcs1 |
|
155
156
|
*Akeyless::V2Api* | [**decrypt_with_classic_key**](docs/V2Api.md#decrypt_with_classic_key) | **POST** /decrypt-with-classic-key |
|
@@ -236,6 +237,7 @@ Class | Method | HTTP request | Description
|
|
236
237
|
*Akeyless::V2Api* | [**dynamic_secret_update_snowflake**](docs/V2Api.md#dynamic_secret_update_snowflake) | **POST** /dynamic-secret-update-snowflake |
|
237
238
|
*Akeyless::V2Api* | [**dynamic_secret_update_venafi**](docs/V2Api.md#dynamic_secret_update_venafi) | **POST** /dynamic-secret-update-venafi |
|
238
239
|
*Akeyless::V2Api* | [**encrypt**](docs/V2Api.md#encrypt) | **POST** /encrypt |
|
240
|
+
*Akeyless::V2Api* | [**encrypt_batch**](docs/V2Api.md#encrypt_batch) | **POST** /encrypt-batch |
|
239
241
|
*Akeyless::V2Api* | [**encrypt_gpg**](docs/V2Api.md#encrypt_gpg) | **POST** /encrypt-gpg |
|
240
242
|
*Akeyless::V2Api* | [**encrypt_with_classic_key**](docs/V2Api.md#encrypt_with_classic_key) | **POST** /encrypt-with-classic-key |
|
241
243
|
*Akeyless::V2Api* | [**esm_create**](docs/V2Api.md#esm_create) | **POST** /esm-create |
|
@@ -662,6 +664,8 @@ Class | Method | HTTP request | Description
|
|
662
664
|
- [Akeyless::AzureTargetDetails](docs/AzureTargetDetails.md)
|
663
665
|
- [Akeyless::BastionListEntry](docs/BastionListEntry.md)
|
664
666
|
- [Akeyless::BastionsList](docs/BastionsList.md)
|
667
|
+
- [Akeyless::BatchEncryptionRequestLine](docs/BatchEncryptionRequestLine.md)
|
668
|
+
- [Akeyless::BatchEncryptionResponseLine](docs/BatchEncryptionResponseLine.md)
|
665
669
|
- [Akeyless::CFConfigPart](docs/CFConfigPart.md)
|
666
670
|
- [Akeyless::CacheConfigPart](docs/CacheConfigPart.md)
|
667
671
|
- [Akeyless::CertAccessRules](docs/CertAccessRules.md)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Akeyless::BatchEncryptionRequestLine
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **context** | **Hash<String, String>** | | [optional] |
|
8
|
+
| **data** | **String** | | [optional] |
|
9
|
+
| **item_id** | **Integer** | | [optional] |
|
10
|
+
| **item_version** | **Integer** | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'akeyless'
|
16
|
+
|
17
|
+
instance = Akeyless::BatchEncryptionRequestLine.new(
|
18
|
+
context: null,
|
19
|
+
data: null,
|
20
|
+
item_id: null,
|
21
|
+
item_version: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Akeyless::BatchEncryptionResponseLine
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | **String** | | [optional] |
|
8
|
+
| **error** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'akeyless'
|
14
|
+
|
15
|
+
instance = Akeyless::BatchEncryptionResponseLine.new(
|
16
|
+
data: null,
|
17
|
+
error: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/Connect.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **bastion_gateway_url** | **String** | todo - enable when gw-sra unification is done The Gateway URL (configuration management) address, e.g. http://localhost:8000 | [optional] |
|
7
8
|
| **helper** | **Object** | | [optional] |
|
8
9
|
| **rc_file_override** | **String** | used to override .akeyless-connect.rc in tests | [optional] |
|
9
10
|
| **bastion_ctrl_path** | **String** | The Bastion API path | [optional] |
|
@@ -30,6 +31,7 @@
|
|
30
31
|
require 'akeyless'
|
31
32
|
|
32
33
|
instance = Akeyless::Connect.new(
|
34
|
+
bastion_gateway_url: null,
|
33
35
|
helper: null,
|
34
36
|
rc_file_override: null,
|
35
37
|
bastion_ctrl_path: null,
|
data/docs/CreateClassicKey.md
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
| **certificate_common_name** | **String** | Common name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
|
10
10
|
| **certificate_country** | **String** | Country name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
|
11
11
|
| **certificate_digest_algo** | **String** | Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. | [optional] |
|
12
|
+
| **certificate_format** | **String** | | [optional] |
|
12
13
|
| **certificate_locality** | **String** | Locality for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
|
13
14
|
| **certificate_organization** | **String** | Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
|
14
15
|
| **certificate_province** | **String** | Province name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
|
@@ -38,6 +39,7 @@ instance = Akeyless::CreateClassicKey.new(
|
|
38
39
|
certificate_common_name: null,
|
39
40
|
certificate_country: null,
|
40
41
|
certificate_digest_algo: null,
|
42
|
+
certificate_format: null,
|
41
43
|
certificate_locality: null,
|
42
44
|
certificate_organization: null,
|
43
45
|
certificate_province: null,
|
data/docs/CreateDFCKey.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
| **certificate_common_name** | **String** | Common name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
|
9
9
|
| **certificate_country** | **String** | Country name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
|
10
10
|
| **certificate_digest_algo** | **String** | Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. | [optional] |
|
11
|
+
| **certificate_format** | **String** | | [optional] |
|
11
12
|
| **certificate_locality** | **String** | Locality for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
|
12
13
|
| **certificate_organization** | **String** | Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
|
13
14
|
| **certificate_province** | **String** | Province name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
|
@@ -35,6 +36,7 @@ instance = Akeyless::CreateDFCKey.new(
|
|
35
36
|
certificate_common_name: null,
|
36
37
|
certificate_country: null,
|
37
38
|
certificate_digest_algo: null,
|
39
|
+
certificate_format: null,
|
38
40
|
certificate_locality: null,
|
39
41
|
certificate_organization: null,
|
40
42
|
certificate_province: null,
|
data/docs/DescribeItem.md
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **accessibility** | **String** | for personal password manager | [optional][default to 'regular'] |
|
8
8
|
| **bastion_details** | **Boolean** | Indicate if the item should return with ztb cluster details (url, etc) | [optional][default to false] |
|
9
|
+
| **der_certificate_format** | **Boolean** | The certificate will be displayed in DER format | [optional][default to false] |
|
9
10
|
| **display_id** | **String** | The display id of the item | [optional] |
|
10
11
|
| **gateway_details** | **Boolean** | Indicate if the item should return with clusters details (url, etc) | [optional][default to false] |
|
11
12
|
| **item_id** | **Integer** | Item id of the item | [optional] |
|
@@ -24,6 +25,7 @@ require 'akeyless'
|
|
24
25
|
instance = Akeyless::DescribeItem.new(
|
25
26
|
accessibility: null,
|
26
27
|
bastion_details: null,
|
28
|
+
der_certificate_format: null,
|
27
29
|
display_id: null,
|
28
30
|
gateway_details: null,
|
29
31
|
item_id: null,
|
data/docs/ItemGeneralInfo.md
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **cert_issue_details** | [**CertificateIssueInfo**](CertificateIssueInfo.md) | | [optional] |
|
8
8
|
| **certificate_chain_info** | [**CertificateChainInfo**](CertificateChainInfo.md) | | [optional] |
|
9
|
+
| **certificate_format** | **String** | | [optional] |
|
9
10
|
| **certificates_template_info** | [**CertificateTemplateInfo**](CertificateTemplateInfo.md) | | [optional] |
|
10
11
|
| **classic_key_details** | [**ClassicKeyDetailsInfo**](ClassicKeyDetailsInfo.md) | | [optional] |
|
11
12
|
| **cluster_gw_url** | **String** | | [optional] |
|
@@ -27,6 +28,7 @@ require 'akeyless'
|
|
27
28
|
instance = Akeyless::ItemGeneralInfo.new(
|
28
29
|
cert_issue_details: null,
|
29
30
|
certificate_chain_info: null,
|
31
|
+
certificate_format: null,
|
30
32
|
certificates_template_info: null,
|
31
33
|
classic_key_details: null,
|
32
34
|
cluster_gw_url: null,
|
data/docs/UploadRSA.md
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **alg** | **String** | Key type. options: [RSA1024, RSA2048, RSA3072, RSA4096] | |
|
8
8
|
| **cert_file_data** | **String** | Certificate in a PEM format. | [optional] |
|
9
|
+
| **certificate_format** | **String** | | [optional] |
|
9
10
|
| **customer_frg_id** | **String** | The customer fragment ID that will be used to split the key (if empty, the key will be created independently of a customer fragment) | [optional] |
|
10
11
|
| **delete_protection** | **String** | Protection from accidental deletion of this object [true/false] | [optional] |
|
11
12
|
| **description** | **String** | Description of the object | [optional] |
|
@@ -27,6 +28,7 @@ require 'akeyless'
|
|
27
28
|
instance = Akeyless::UploadRSA.new(
|
28
29
|
alg: null,
|
29
30
|
cert_file_data: null,
|
31
|
+
certificate_format: null,
|
30
32
|
customer_frg_id: null,
|
31
33
|
delete_protection: null,
|
32
34
|
description: null,
|
data/docs/V2Api.md
CHANGED
@@ -94,6 +94,7 @@ All URIs are relative to *https://api.akeyless.io*
|
|
94
94
|
| [**create_zero_ssl_target**](V2Api.md#create_zero_ssl_target) | **POST** /create-zerossl-target | |
|
95
95
|
| [**createldap_target**](V2Api.md#createldap_target) | **POST** /create-ldap-target | |
|
96
96
|
| [**decrypt**](V2Api.md#decrypt) | **POST** /decrypt | |
|
97
|
+
| [**decrypt_batch**](V2Api.md#decrypt_batch) | **POST** /decrypt-batch | |
|
97
98
|
| [**decrypt_gpg**](V2Api.md#decrypt_gpg) | **POST** /decrypt-gpg | |
|
98
99
|
| [**decrypt_pkcs1**](V2Api.md#decrypt_pkcs1) | **POST** /decrypt-pkcs1 | |
|
99
100
|
| [**decrypt_with_classic_key**](V2Api.md#decrypt_with_classic_key) | **POST** /decrypt-with-classic-key | |
|
@@ -180,6 +181,7 @@ All URIs are relative to *https://api.akeyless.io*
|
|
180
181
|
| [**dynamic_secret_update_snowflake**](V2Api.md#dynamic_secret_update_snowflake) | **POST** /dynamic-secret-update-snowflake | |
|
181
182
|
| [**dynamic_secret_update_venafi**](V2Api.md#dynamic_secret_update_venafi) | **POST** /dynamic-secret-update-venafi | |
|
182
183
|
| [**encrypt**](V2Api.md#encrypt) | **POST** /encrypt | |
|
184
|
+
| [**encrypt_batch**](V2Api.md#encrypt_batch) | **POST** /encrypt-batch | |
|
183
185
|
| [**encrypt_gpg**](V2Api.md#encrypt_gpg) | **POST** /encrypt-gpg | |
|
184
186
|
| [**encrypt_with_classic_key**](V2Api.md#encrypt_with_classic_key) | **POST** /encrypt-with-classic-key | |
|
185
187
|
| [**esm_create**](V2Api.md#esm_create) | **POST** /esm-create | |
|
@@ -6117,6 +6119,68 @@ No authorization required
|
|
6117
6119
|
- **Accept**: application/json
|
6118
6120
|
|
6119
6121
|
|
6122
|
+
## decrypt_batch
|
6123
|
+
|
6124
|
+
> <DecryptOutput> decrypt_batch(body)
|
6125
|
+
|
6126
|
+
|
6127
|
+
|
6128
|
+
### Examples
|
6129
|
+
|
6130
|
+
```ruby
|
6131
|
+
require 'time'
|
6132
|
+
require 'akeyless'
|
6133
|
+
|
6134
|
+
api_instance = Akeyless::V2Api.new
|
6135
|
+
body = [Akeyless::BatchEncryptionRequestLine.new] # Array<BatchEncryptionRequestLine> |
|
6136
|
+
|
6137
|
+
begin
|
6138
|
+
|
6139
|
+
result = api_instance.decrypt_batch(body)
|
6140
|
+
p result
|
6141
|
+
rescue Akeyless::ApiError => e
|
6142
|
+
puts "Error when calling V2Api->decrypt_batch: #{e}"
|
6143
|
+
end
|
6144
|
+
```
|
6145
|
+
|
6146
|
+
#### Using the decrypt_batch_with_http_info variant
|
6147
|
+
|
6148
|
+
This returns an Array which contains the response data, status code and headers.
|
6149
|
+
|
6150
|
+
> <Array(<DecryptOutput>, Integer, Hash)> decrypt_batch_with_http_info(body)
|
6151
|
+
|
6152
|
+
```ruby
|
6153
|
+
begin
|
6154
|
+
|
6155
|
+
data, status_code, headers = api_instance.decrypt_batch_with_http_info(body)
|
6156
|
+
p status_code # => 2xx
|
6157
|
+
p headers # => { ... }
|
6158
|
+
p data # => <DecryptOutput>
|
6159
|
+
rescue Akeyless::ApiError => e
|
6160
|
+
puts "Error when calling V2Api->decrypt_batch_with_http_info: #{e}"
|
6161
|
+
end
|
6162
|
+
```
|
6163
|
+
|
6164
|
+
### Parameters
|
6165
|
+
|
6166
|
+
| Name | Type | Description | Notes |
|
6167
|
+
| ---- | ---- | ----------- | ----- |
|
6168
|
+
| **body** | [**Array<BatchEncryptionRequestLine>**](BatchEncryptionRequestLine.md) | | |
|
6169
|
+
|
6170
|
+
### Return type
|
6171
|
+
|
6172
|
+
[**DecryptOutput**](DecryptOutput.md)
|
6173
|
+
|
6174
|
+
### Authorization
|
6175
|
+
|
6176
|
+
No authorization required
|
6177
|
+
|
6178
|
+
### HTTP request headers
|
6179
|
+
|
6180
|
+
- **Content-Type**: application/json
|
6181
|
+
- **Accept**: application/json
|
6182
|
+
|
6183
|
+
|
6120
6184
|
## decrypt_gpg
|
6121
6185
|
|
6122
6186
|
> <DecryptGPGOutput> decrypt_gpg(body)
|
@@ -11451,6 +11515,68 @@ No authorization required
|
|
11451
11515
|
- **Accept**: application/json
|
11452
11516
|
|
11453
11517
|
|
11518
|
+
## encrypt_batch
|
11519
|
+
|
11520
|
+
> <EncryptOutput> encrypt_batch(body)
|
11521
|
+
|
11522
|
+
|
11523
|
+
|
11524
|
+
### Examples
|
11525
|
+
|
11526
|
+
```ruby
|
11527
|
+
require 'time'
|
11528
|
+
require 'akeyless'
|
11529
|
+
|
11530
|
+
api_instance = Akeyless::V2Api.new
|
11531
|
+
body = [Akeyless::BatchEncryptionRequestLine.new] # Array<BatchEncryptionRequestLine> |
|
11532
|
+
|
11533
|
+
begin
|
11534
|
+
|
11535
|
+
result = api_instance.encrypt_batch(body)
|
11536
|
+
p result
|
11537
|
+
rescue Akeyless::ApiError => e
|
11538
|
+
puts "Error when calling V2Api->encrypt_batch: #{e}"
|
11539
|
+
end
|
11540
|
+
```
|
11541
|
+
|
11542
|
+
#### Using the encrypt_batch_with_http_info variant
|
11543
|
+
|
11544
|
+
This returns an Array which contains the response data, status code and headers.
|
11545
|
+
|
11546
|
+
> <Array(<EncryptOutput>, Integer, Hash)> encrypt_batch_with_http_info(body)
|
11547
|
+
|
11548
|
+
```ruby
|
11549
|
+
begin
|
11550
|
+
|
11551
|
+
data, status_code, headers = api_instance.encrypt_batch_with_http_info(body)
|
11552
|
+
p status_code # => 2xx
|
11553
|
+
p headers # => { ... }
|
11554
|
+
p data # => <EncryptOutput>
|
11555
|
+
rescue Akeyless::ApiError => e
|
11556
|
+
puts "Error when calling V2Api->encrypt_batch_with_http_info: #{e}"
|
11557
|
+
end
|
11558
|
+
```
|
11559
|
+
|
11560
|
+
### Parameters
|
11561
|
+
|
11562
|
+
| Name | Type | Description | Notes |
|
11563
|
+
| ---- | ---- | ----------- | ----- |
|
11564
|
+
| **body** | [**Array<BatchEncryptionRequestLine>**](BatchEncryptionRequestLine.md) | | |
|
11565
|
+
|
11566
|
+
### Return type
|
11567
|
+
|
11568
|
+
[**EncryptOutput**](EncryptOutput.md)
|
11569
|
+
|
11570
|
+
### Authorization
|
11571
|
+
|
11572
|
+
No authorization required
|
11573
|
+
|
11574
|
+
### HTTP request headers
|
11575
|
+
|
11576
|
+
- **Content-Type**: application/json
|
11577
|
+
- **Accept**: application/json
|
11578
|
+
|
11579
|
+
|
11454
11580
|
## encrypt_gpg
|
11455
11581
|
|
11456
11582
|
> <EncryptGPGOutput> encrypt_gpg(body)
|
data/lib/akeyless/api/v2_api.rb
CHANGED
@@ -5779,6 +5779,70 @@ module Akeyless
|
|
5779
5779
|
return data, status_code, headers
|
5780
5780
|
end
|
5781
5781
|
|
5782
|
+
# @param body [Array<BatchEncryptionRequestLine>]
|
5783
|
+
# @param [Hash] opts the optional parameters
|
5784
|
+
# @return [DecryptOutput]
|
5785
|
+
def decrypt_batch(body, opts = {})
|
5786
|
+
data, _status_code, _headers = decrypt_batch_with_http_info(body, opts)
|
5787
|
+
data
|
5788
|
+
end
|
5789
|
+
|
5790
|
+
# @param body [Array<BatchEncryptionRequestLine>]
|
5791
|
+
# @param [Hash] opts the optional parameters
|
5792
|
+
# @return [Array<(DecryptOutput, Integer, Hash)>] DecryptOutput data, response status code and response headers
|
5793
|
+
def decrypt_batch_with_http_info(body, opts = {})
|
5794
|
+
if @api_client.config.debugging
|
5795
|
+
@api_client.config.logger.debug 'Calling API: V2Api.decrypt_batch ...'
|
5796
|
+
end
|
5797
|
+
# verify the required parameter 'body' is set
|
5798
|
+
if @api_client.config.client_side_validation && body.nil?
|
5799
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.decrypt_batch"
|
5800
|
+
end
|
5801
|
+
# resource path
|
5802
|
+
local_var_path = '/decrypt-batch'
|
5803
|
+
|
5804
|
+
# query parameters
|
5805
|
+
query_params = opts[:query_params] || {}
|
5806
|
+
|
5807
|
+
# header parameters
|
5808
|
+
header_params = opts[:header_params] || {}
|
5809
|
+
# HTTP header 'Accept' (if needed)
|
5810
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
5811
|
+
# HTTP header 'Content-Type'
|
5812
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
5813
|
+
if !content_type.nil?
|
5814
|
+
header_params['Content-Type'] = content_type
|
5815
|
+
end
|
5816
|
+
|
5817
|
+
# form parameters
|
5818
|
+
form_params = opts[:form_params] || {}
|
5819
|
+
|
5820
|
+
# http body (model)
|
5821
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
5822
|
+
|
5823
|
+
# return_type
|
5824
|
+
return_type = opts[:debug_return_type] || 'DecryptOutput'
|
5825
|
+
|
5826
|
+
# auth_names
|
5827
|
+
auth_names = opts[:debug_auth_names] || []
|
5828
|
+
|
5829
|
+
new_options = opts.merge(
|
5830
|
+
:operation => :"V2Api.decrypt_batch",
|
5831
|
+
:header_params => header_params,
|
5832
|
+
:query_params => query_params,
|
5833
|
+
:form_params => form_params,
|
5834
|
+
:body => post_body,
|
5835
|
+
:auth_names => auth_names,
|
5836
|
+
:return_type => return_type
|
5837
|
+
)
|
5838
|
+
|
5839
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
5840
|
+
if @api_client.config.debugging
|
5841
|
+
@api_client.config.logger.debug "API called: V2Api#decrypt_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5842
|
+
end
|
5843
|
+
return data, status_code, headers
|
5844
|
+
end
|
5845
|
+
|
5782
5846
|
# @param body [DecryptGPG]
|
5783
5847
|
# @param [Hash] opts the optional parameters
|
5784
5848
|
# @return [DecryptGPGOutput]
|
@@ -11275,6 +11339,70 @@ module Akeyless
|
|
11275
11339
|
return data, status_code, headers
|
11276
11340
|
end
|
11277
11341
|
|
11342
|
+
# @param body [Array<BatchEncryptionRequestLine>]
|
11343
|
+
# @param [Hash] opts the optional parameters
|
11344
|
+
# @return [EncryptOutput]
|
11345
|
+
def encrypt_batch(body, opts = {})
|
11346
|
+
data, _status_code, _headers = encrypt_batch_with_http_info(body, opts)
|
11347
|
+
data
|
11348
|
+
end
|
11349
|
+
|
11350
|
+
# @param body [Array<BatchEncryptionRequestLine>]
|
11351
|
+
# @param [Hash] opts the optional parameters
|
11352
|
+
# @return [Array<(EncryptOutput, Integer, Hash)>] EncryptOutput data, response status code and response headers
|
11353
|
+
def encrypt_batch_with_http_info(body, opts = {})
|
11354
|
+
if @api_client.config.debugging
|
11355
|
+
@api_client.config.logger.debug 'Calling API: V2Api.encrypt_batch ...'
|
11356
|
+
end
|
11357
|
+
# verify the required parameter 'body' is set
|
11358
|
+
if @api_client.config.client_side_validation && body.nil?
|
11359
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.encrypt_batch"
|
11360
|
+
end
|
11361
|
+
# resource path
|
11362
|
+
local_var_path = '/encrypt-batch'
|
11363
|
+
|
11364
|
+
# query parameters
|
11365
|
+
query_params = opts[:query_params] || {}
|
11366
|
+
|
11367
|
+
# header parameters
|
11368
|
+
header_params = opts[:header_params] || {}
|
11369
|
+
# HTTP header 'Accept' (if needed)
|
11370
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
11371
|
+
# HTTP header 'Content-Type'
|
11372
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
11373
|
+
if !content_type.nil?
|
11374
|
+
header_params['Content-Type'] = content_type
|
11375
|
+
end
|
11376
|
+
|
11377
|
+
# form parameters
|
11378
|
+
form_params = opts[:form_params] || {}
|
11379
|
+
|
11380
|
+
# http body (model)
|
11381
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
11382
|
+
|
11383
|
+
# return_type
|
11384
|
+
return_type = opts[:debug_return_type] || 'EncryptOutput'
|
11385
|
+
|
11386
|
+
# auth_names
|
11387
|
+
auth_names = opts[:debug_auth_names] || []
|
11388
|
+
|
11389
|
+
new_options = opts.merge(
|
11390
|
+
:operation => :"V2Api.encrypt_batch",
|
11391
|
+
:header_params => header_params,
|
11392
|
+
:query_params => query_params,
|
11393
|
+
:form_params => form_params,
|
11394
|
+
:body => post_body,
|
11395
|
+
:auth_names => auth_names,
|
11396
|
+
:return_type => return_type
|
11397
|
+
)
|
11398
|
+
|
11399
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
11400
|
+
if @api_client.config.debugging
|
11401
|
+
@api_client.config.logger.debug "API called: V2Api#encrypt_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
11402
|
+
end
|
11403
|
+
return data, status_code, headers
|
11404
|
+
end
|
11405
|
+
|
11278
11406
|
# @param body [EncryptGPG]
|
11279
11407
|
# @param [Hash] opts the optional parameters
|
11280
11408
|
# @return [EncryptGPGOutput]
|