diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index bf551134..d7e749bc 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -71,6 +71,8 @@ docs/AzurePayload.md docs/AzureTargetDetails.md docs/BastionListEntry.md docs/BastionsList.md +docs/BatchEncryptionRequestLine.md +docs/BatchEncryptionResponseLine.md docs/CFConfigPart.md docs/CacheConfigPart.md docs/CertAccessRules.md @@ -1102,6 +1104,8 @@ src/main/java/io/akeyless/client/model/AzurePayload.java src/main/java/io/akeyless/client/model/AzureTargetDetails.java src/main/java/io/akeyless/client/model/BastionListEntry.java src/main/java/io/akeyless/client/model/BastionsList.java +src/main/java/io/akeyless/client/model/BatchEncryptionRequestLine.java +src/main/java/io/akeyless/client/model/BatchEncryptionResponseLine.java src/main/java/io/akeyless/client/model/CFConfigPart.java src/main/java/io/akeyless/client/model/CacheConfigPart.java src/main/java/io/akeyless/client/model/CertAccessRules.java @@ -2038,3 +2042,5 @@ src/main/java/io/akeyless/client/model/WindowsService.java src/main/java/io/akeyless/client/model/WindowsServiceAttributes.java src/main/java/io/akeyless/client/model/WindowsTargetDetails.java src/main/java/io/akeyless/client/model/ZeroSSLTargetDetails.java +src/test/java/io/akeyless/client/model/BatchEncryptionRequestLineTest.java +src/test/java/io/akeyless/client/model/BatchEncryptionResponseLineTest.java diff --git a/README.md b/README.md index 6cbe899a..cee17466 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,7 @@ Class | Method | HTTP request | Description *V2Api* | [**createZeroSSLTarget**](docs/V2Api.md#createZeroSSLTarget) | **POST** /create-zerossl-target | *V2Api* | [**createldapTarget**](docs/V2Api.md#createldapTarget) | **POST** /create-ldap-target | *V2Api* | [**decrypt**](docs/V2Api.md#decrypt) | **POST** /decrypt | +*V2Api* | [**decryptBatch**](docs/V2Api.md#decryptBatch) | **POST** /decrypt-batch | *V2Api* | [**decryptGPG**](docs/V2Api.md#decryptGPG) | **POST** /decrypt-gpg | *V2Api* | [**decryptPKCS1**](docs/V2Api.md#decryptPKCS1) | **POST** /decrypt-pkcs1 | *V2Api* | [**decryptWithClassicKey**](docs/V2Api.md#decryptWithClassicKey) | **POST** /decrypt-with-classic-key | @@ -281,6 +282,7 @@ Class | Method | HTTP request | Description *V2Api* | [**dynamicSecretUpdateSnowflake**](docs/V2Api.md#dynamicSecretUpdateSnowflake) | **POST** /dynamic-secret-update-snowflake | *V2Api* | [**dynamicSecretUpdateVenafi**](docs/V2Api.md#dynamicSecretUpdateVenafi) | **POST** /dynamic-secret-update-venafi | *V2Api* | [**encrypt**](docs/V2Api.md#encrypt) | **POST** /encrypt | +*V2Api* | [**encryptBatch**](docs/V2Api.md#encryptBatch) | **POST** /encrypt-batch | *V2Api* | [**encryptGPG**](docs/V2Api.md#encryptGPG) | **POST** /encrypt-gpg | *V2Api* | [**encryptWithClassicKey**](docs/V2Api.md#encryptWithClassicKey) | **POST** /encrypt-with-classic-key | *V2Api* | [**esmCreate**](docs/V2Api.md#esmCreate) | **POST** /esm-create | @@ -707,6 +709,8 @@ Class | Method | HTTP request | Description - [AzureTargetDetails](docs/AzureTargetDetails.md) - [BastionListEntry](docs/BastionListEntry.md) - [BastionsList](docs/BastionsList.md) + - [BatchEncryptionRequestLine](docs/BatchEncryptionRequestLine.md) + - [BatchEncryptionResponseLine](docs/BatchEncryptionResponseLine.md) - [CFConfigPart](docs/CFConfigPart.md) - [CacheConfigPart](docs/CacheConfigPart.md) - [CertAccessRules](docs/CertAccessRules.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index d6713747..6c66621f 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -2630,6 +2630,35 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json + /decrypt-batch: + post: + operationId: decryptBatch + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BatchEncryptionRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/decryptOutput' + description: decryptResponse wraps response body. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/JSONError' + description: |- + errorResponse wraps any error to return it as a JSON object with one "error" + field. + tags: + - v2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json /decrypt-gpg: post: operationId: decryptGPG @@ -5103,6 +5132,35 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json + /encrypt-batch: + post: + operationId: encryptBatch + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BatchEncryptionRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/encryptOutput' + description: encryptResponse wraps response body. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/JSONError' + description: |- + errorResponse wraps any error to return it as a JSON object with one "error" + field. + tags: + - v2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json /encrypt-gpg: post: operationId: encryptGPG @@ -16003,6 +16061,12 @@ components: schema: $ref: '#/components/schemas/createLdapTargetOutput' description: createldapTargetResponse wraps response body. + decryptBatchResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/decryptBatchOutput' + description: decryptBatchResponse wraps response body. decryptFileResponse: content: application/json: @@ -16523,6 +16587,12 @@ components: schema: $ref: '#/components/schemas/dynamicSecretUpdateOutput' description: dynamicSecretUpdateVenafiResponse wraps response body. + encryptBatchResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/encryptBatchOutput' + description: encryptBatchResponse wraps response body. encryptFileResponse: content: application/json: @@ -21327,6 +21397,52 @@ components: x-go-name: Clusters type: object x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types + BatchEncryptionRequest: + items: + $ref: '#/components/schemas/BatchEncryptionRequestLine' + type: array + x-go-package: akeyless.io/akeyless-main-repo/go/src/client/commands + BatchEncryptionRequestLine: + example: + item_version: 6 + data: data + item_id: 0 + context: + key: context + properties: + context: + additionalProperties: + type: string + type: object + x-go-name: EncContext + data: + type: string + x-go-name: DataBase64 + item_id: + format: int64 + type: integer + x-go-name: ItemId + item_version: + format: int32 + type: integer + x-go-name: ItemVersion + type: object + x-go-package: akeyless.io/akeyless-main-repo/go/src/client/commands + BatchEncryptionResponse: + items: + $ref: '#/components/schemas/BatchEncryptionResponseLine' + type: array + x-go-package: akeyless.io/akeyless-main-repo/go/src/client/commands + BatchEncryptionResponseLine: + properties: + data: + type: string + x-go-name: DataBase64 + error: + type: string + x-go-name: Error + type: object + x-go-package: akeyless.io/akeyless-main-repo/go/src/client/commands CAMode: type: string x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types @@ -21757,6 +21873,9 @@ components: x-go-name: SecondsBefore type: object x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types + CertificateFormat: + type: string + x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types CertificateInfo: example: email_addresses: @@ -22567,6 +22686,7 @@ components: Connect: description: Connect is a command that performs secure remote access example: + BastionGatewayUrl: BastionGatewayUrl cert-issuer-name: cert-issuer-name ssh-legacy-signing-alg: false ssh-command: ssh-command @@ -22587,6 +22707,11 @@ components: RcFileOverride: RcFileOverride justification: justification properties: + BastionGatewayUrl: + description: |- + todo - enable when gw-sra unification is done + The Gateway URL (configuration management) address, e.g. http://localhost:8000 + type: string Helper: type: object x-go-package: akeyless.io/akeyless-main-repo/go/src/client/commands @@ -22677,6 +22802,7 @@ components: description: CreateClassicKey is a command that creates classic key example: protection-key-name: protection-key-name + certificate-format: certificate-format metadata: metadata certificate-digest-algo: certificate-digest-algo certificate-locality: certificate-locality @@ -22725,6 +22851,9 @@ components: Currently, we support only "sha256" so we hide this option for CLI. type: string x-go-name: CertificateDigestAlgo + certificate-format: + type: string + x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types certificate-locality: description: Locality for the generated certificate. Relevant only for generate-self-signed-certificate. type: string @@ -27682,6 +27811,7 @@ components: pattern: pattern alphabet: alphabet cluster_gw_url: cluster_gw_url + certificate_format: certificate_format display_metadata: display_metadata dynamic_secret_producer_details: k8s_allowed_namespaces: k8s_allowed_namespaces @@ -28405,6 +28535,7 @@ components: pattern: pattern alphabet: alphabet cluster_gw_url: cluster_gw_url + certificate_format: certificate_format display_metadata: display_metadata dynamic_secret_producer_details: k8s_allowed_namespaces: k8s_allowed_namespaces @@ -28500,6 +28631,9 @@ components: $ref: '#/components/schemas/CertificateIssueInfo' certificate_chain_info: $ref: '#/components/schemas/CertificateChainInfo' + certificate_format: + type: string + x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types certificates_template_info: $ref: '#/components/schemas/CertificateTemplateInfo' classic_key_details: @@ -30991,6 +31125,7 @@ components: pattern: pattern alphabet: alphabet cluster_gw_url: cluster_gw_url + certificate_format: certificate_format display_metadata: display_metadata dynamic_secret_producer_details: k8s_allowed_namespaces: k8s_allowed_namespaces @@ -31751,6 +31886,7 @@ components: pattern: pattern alphabet: alphabet cluster_gw_url: cluster_gw_url + certificate_format: certificate_format display_metadata: display_metadata dynamic_secret_producer_details: k8s_allowed_namespaces: k8s_allowed_namespaces @@ -32533,6 +32669,7 @@ components: pattern: pattern alphabet: alphabet cluster_gw_url: cluster_gw_url + certificate_format: certificate_format display_metadata: display_metadata dynamic_secret_producer_details: k8s_allowed_namespaces: k8s_allowed_namespaces @@ -33293,6 +33430,7 @@ components: pattern: pattern alphabet: alphabet cluster_gw_url: cluster_gw_url + certificate_format: certificate_format display_metadata: display_metadata dynamic_secret_producer_details: k8s_allowed_namespaces: k8s_allowed_namespaces @@ -44601,6 +44739,9 @@ components: Currently, we support only "sha256" so we hide this option for CLI. type: string x-go-name: CertificateDigestAlgo + certificate-format: + type: string + x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types certificate-locality: description: Locality for the generated certificate. Relevant only for generate-self-signed-certificate. type: string @@ -47500,6 +47641,8 @@ components: - key-name type: object x-go-package: akeyless.io/akeyless-main-repo/go/src/client/commands + decryptBatchOutput: + $ref: '#/components/schemas/BatchEncryptionResponse' decryptFile: properties: cyphertext-header: @@ -48323,6 +48466,11 @@ components: (url, etc) type: boolean x-go-name: WithBastionDetails + der-certificate-format: + default: false + description: The certificate will be displayed in DER format + type: boolean + x-go-name: DerCertificateFormat display-id: description: The display id of the item type: string @@ -55496,6 +55644,8 @@ components: an AES key. type: object x-go-package: akeyless.io/akeyless-main-repo/go/src/client/commands + encryptBatchOutput: + $ref: '#/components/schemas/BatchEncryptionResponse' encryptFile: properties: display-id: @@ -100646,6 +100796,9 @@ components: description: Certificate in a PEM format. type: string x-go-name: CertFileData + certificate-format: + type: string + x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types customer-frg-id: description: |- The customer fragment ID that will be used to split the key (if empty, diff --git a/build.gradle b/build.gradle index 079e2728..38b98362 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'io.akeyless' -version = '4.2.1' +version = '4.2.2' buildscript { repositories { diff --git a/build.sbt b/build.sbt index 03566f3b..dba1a599 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "io.akeyless", name := "akeyless-java", - version := "4.2.1", + version := "4.2.2", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/BatchEncryptionRequestLine.md b/docs/BatchEncryptionRequestLine.md new file mode 100644 index 00000000..95e0011b --- /dev/null +++ b/docs/BatchEncryptionRequestLine.md @@ -0,0 +1,16 @@ + + +# BatchEncryptionRequestLine + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | **Map<String, String>** | | [optional] +**data** | **String** | | [optional] +**itemId** | **Long** | | [optional] +**itemVersion** | **Integer** | | [optional] + + + diff --git a/docs/BatchEncryptionResponseLine.md b/docs/BatchEncryptionResponseLine.md new file mode 100644 index 00000000..cf6e58a0 --- /dev/null +++ b/docs/BatchEncryptionResponseLine.md @@ -0,0 +1,14 @@ + + +# BatchEncryptionResponseLine + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **String** | | [optional] +**error** | **String** | | [optional] + + + diff --git a/docs/Connect.md b/docs/Connect.md index 478f9f53..191bca07 100644 --- a/docs/Connect.md +++ b/docs/Connect.md @@ -8,6 +8,7 @@ Connect is a command that performs secure remote access Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**bastionGatewayUrl** | **String** | todo - enable when gw-sra unification is done The Gateway URL (configuration management) address, e.g. http://localhost:8000 | [optional] **helper** | **Object** | | [optional] **rcFileOverride** | **String** | used to override .akeyless-connect.rc in tests | [optional] **bastionCtrlPath** | **String** | The Bastion API path | [optional] diff --git a/docs/CreateClassicKey.md b/docs/CreateClassicKey.md index ad26dee6..f1043ff9 100644 --- a/docs/CreateClassicKey.md +++ b/docs/CreateClassicKey.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **certificateCommonName** | **String** | Common name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] **certificateCountry** | **String** | Country name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] **certificateDigestAlgo** | **String** | Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. | [optional] +**certificateFormat** | **String** | | [optional] **certificateLocality** | **String** | Locality for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] **certificateOrganization** | **String** | Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] **certificateProvince** | **String** | Province name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] diff --git a/docs/CreateDFCKey.md b/docs/CreateDFCKey.md index aa0fd66c..db8b734b 100644 --- a/docs/CreateDFCKey.md +++ b/docs/CreateDFCKey.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **certificateCommonName** | **String** | Common name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] **certificateCountry** | **String** | Country name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] **certificateDigestAlgo** | **String** | Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. | [optional] +**certificateFormat** | **String** | | [optional] **certificateLocality** | **String** | Locality for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] **certificateOrganization** | **String** | Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] **certificateProvince** | **String** | Province name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] diff --git a/docs/DescribeItem.md b/docs/DescribeItem.md index beec945d..0bc46ae9 100644 --- a/docs/DescribeItem.md +++ b/docs/DescribeItem.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessibility** | **String** | for personal password manager | [optional] **bastionDetails** | **Boolean** | Indicate if the item should return with ztb cluster details (url, etc) | [optional] +**derCertificateFormat** | **Boolean** | The certificate will be displayed in DER format | [optional] **displayId** | **String** | The display id of the item | [optional] **gatewayDetails** | **Boolean** | Indicate if the item should return with clusters details (url, etc) | [optional] **itemId** | **Long** | Item id of the item | [optional] diff --git a/docs/ItemGeneralInfo.md b/docs/ItemGeneralInfo.md index fe44150d..ce0af005 100644 --- a/docs/ItemGeneralInfo.md +++ b/docs/ItemGeneralInfo.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **certIssueDetails** | [**CertificateIssueInfo**](CertificateIssueInfo.md) | | [optional] **certificateChainInfo** | [**CertificateChainInfo**](CertificateChainInfo.md) | | [optional] +**certificateFormat** | **String** | | [optional] **certificatesTemplateInfo** | [**CertificateTemplateInfo**](CertificateTemplateInfo.md) | | [optional] **classicKeyDetails** | [**ClassicKeyDetailsInfo**](ClassicKeyDetailsInfo.md) | | [optional] **clusterGwUrl** | **String** | | [optional] diff --git a/docs/UploadRSA.md b/docs/UploadRSA.md index ae7f4d30..78adc2d0 100644 --- a/docs/UploadRSA.md +++ b/docs/UploadRSA.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **alg** | **String** | Key type. options: [RSA1024, RSA2048, RSA3072, RSA4096] | **certFileData** | **String** | Certificate in a PEM format. | [optional] +**certificateFormat** | **String** | | [optional] **customerFrgId** | **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] **deleteProtection** | **String** | Protection from accidental deletion of this object [true/false] | [optional] **description** | **String** | Description of the object | [optional] diff --git a/docs/V2Api.md b/docs/V2Api.md index 3fa6754a..ccacfb6c 100644 --- a/docs/V2Api.md +++ b/docs/V2Api.md @@ -94,6 +94,7 @@ Method | HTTP request | Description [**createZeroSSLTarget**](V2Api.md#createZeroSSLTarget) | **POST** /create-zerossl-target | [**createldapTarget**](V2Api.md#createldapTarget) | **POST** /create-ldap-target | [**decrypt**](V2Api.md#decrypt) | **POST** /decrypt | +[**decryptBatch**](V2Api.md#decryptBatch) | **POST** /decrypt-batch | [**decryptGPG**](V2Api.md#decryptGPG) | **POST** /decrypt-gpg | [**decryptPKCS1**](V2Api.md#decryptPKCS1) | **POST** /decrypt-pkcs1 | [**decryptWithClassicKey**](V2Api.md#decryptWithClassicKey) | **POST** /decrypt-with-classic-key | @@ -180,6 +181,7 @@ Method | HTTP request | Description [**dynamicSecretUpdateSnowflake**](V2Api.md#dynamicSecretUpdateSnowflake) | **POST** /dynamic-secret-update-snowflake | [**dynamicSecretUpdateVenafi**](V2Api.md#dynamicSecretUpdateVenafi) | **POST** /dynamic-secret-update-venafi | [**encrypt**](V2Api.md#encrypt) | **POST** /encrypt | +[**encryptBatch**](V2Api.md#encryptBatch) | **POST** /encrypt-batch | [**encryptGPG**](V2Api.md#encryptGPG) | **POST** /encrypt-gpg | [**encryptWithClassicKey**](V2Api.md#encryptWithClassicKey) | **POST** /encrypt-with-classic-key | [**esmCreate**](V2Api.md#esmCreate) | **POST** /esm-create | @@ -6028,6 +6030,67 @@ No authorization required **200** | decryptResponse wraps response body. | - | **0** | errorResponse wraps any error to return it as a JSON object with one \"error\" field. | - | + +# **decryptBatch** +> DecryptOutput decryptBatch(body) + + + +### Example +```java +// Import classes: +import io.akeyless.client.ApiClient; +import io.akeyless.client.ApiException; +import io.akeyless.client.Configuration; +import io.akeyless.client.models.*; +import io.akeyless.client.api.V2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.akeyless.io"); + + V2Api apiInstance = new V2Api(defaultClient); + List body = Arrays.asList(); // List | + try { + DecryptOutput result = apiInstance.decryptBatch(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling V2Api#decryptBatch"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**List<BatchEncryptionRequestLine>**](BatchEncryptionRequestLine.md)| | + +### Return type + +[**DecryptOutput**](DecryptOutput.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | decryptResponse wraps response body. | - | +**0** | errorResponse wraps any error to return it as a JSON object with one \"error\" field. | - | + # **decryptGPG** > DecryptGPGOutput decryptGPG(body) @@ -11273,6 +11336,67 @@ No authorization required **200** | encryptResponse wraps response body. | - | **0** | errorResponse wraps any error to return it as a JSON object with one \"error\" field. | - | + +# **encryptBatch** +> EncryptOutput encryptBatch(body) + + + +### Example +```java +// Import classes: +import io.akeyless.client.ApiClient; +import io.akeyless.client.ApiException; +import io.akeyless.client.Configuration; +import io.akeyless.client.models.*; +import io.akeyless.client.api.V2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.akeyless.io"); + + V2Api apiInstance = new V2Api(defaultClient); + List body = Arrays.asList(); // List | + try { + EncryptOutput result = apiInstance.encryptBatch(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling V2Api#encryptBatch"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**List<BatchEncryptionRequestLine>**](BatchEncryptionRequestLine.md)| | + +### Return type + +[**EncryptOutput**](EncryptOutput.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | encryptResponse wraps response body. | - | +**0** | errorResponse wraps any error to return it as a JSON object with one \"error\" field. | - | + # **encryptGPG** > EncryptGPGOutput encryptGPG(body) diff --git a/pom.xml b/pom.xml index af7efbaf..403f389e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ akeyless-java jar akeyless-java - 4.2.1 + 4.2.2 https://github.com/akeylesslabs/akeyless-java Akeyless Java SDK diff --git a/src/main/java/io/akeyless/client/ApiClient.java b/src/main/java/io/akeyless/client/ApiClient.java index b26500ec..3f290743 100644 --- a/src/main/java/io/akeyless/client/ApiClient.java +++ b/src/main/java/io/akeyless/client/ApiClient.java @@ -129,7 +129,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/4.2.1/java"); + setUserAgent("OpenAPI-Generator/4.2.2/java"); authentications = new HashMap(); } diff --git a/src/main/java/io/akeyless/client/api/V2Api.java b/src/main/java/io/akeyless/client/api/V2Api.java index 1bf8b9c8..3a54bd4f 100644 --- a/src/main/java/io/akeyless/client/api/V2Api.java +++ b/src/main/java/io/akeyless/client/api/V2Api.java @@ -68,6 +68,7 @@ import io.akeyless.client.model.AuthMethodUpdateUniversalIdentity; import io.akeyless.client.model.AuthOutput; import io.akeyless.client.model.BastionsList; +import io.akeyless.client.model.BatchEncryptionRequestLine; import io.akeyless.client.model.CacheConfigPart; import io.akeyless.client.model.Configure; import io.akeyless.client.model.ConfigureOutput; @@ -12672,6 +12673,137 @@ public okhttp3.Call decryptAsync(Decrypt body, final ApiCallback localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for decryptBatch + * @param body (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 decryptResponse wraps response body. -
0 errorResponse wraps any error to return it as a JSON object with one \"error\" field. -
+ */ + public okhttp3.Call decryptBatchCall(List body, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/decrypt-batch"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call decryptBatchValidateBeforeCall(List body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling decryptBatch(Async)"); + } + + + okhttp3.Call localVarCall = decryptBatchCall(body, _callback); + return localVarCall; + + } + + /** + * + * + * @param body (required) + * @return DecryptOutput + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 decryptResponse wraps response body. -
0 errorResponse wraps any error to return it as a JSON object with one \"error\" field. -
+ */ + public DecryptOutput decryptBatch(List body) throws ApiException { + ApiResponse localVarResp = decryptBatchWithHttpInfo(body); + return localVarResp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DecryptOutput> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 decryptResponse wraps response body. -
0 errorResponse wraps any error to return it as a JSON object with one \"error\" field. -
+ */ + public ApiResponse decryptBatchWithHttpInfo(List body) throws ApiException { + okhttp3.Call localVarCall = decryptBatchValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 decryptResponse wraps response body. -
0 errorResponse wraps any error to return it as a JSON object with one \"error\" field. -
+ */ + public okhttp3.Call decryptBatchAsync(List body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = decryptBatchValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for decryptGPG * @param body (required) @@ -23924,6 +24056,137 @@ public okhttp3.Call encryptAsync(Encrypt body, final ApiCallback localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for encryptBatch + * @param body (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 encryptResponse wraps response body. -
0 errorResponse wraps any error to return it as a JSON object with one \"error\" field. -
+ */ + public okhttp3.Call encryptBatchCall(List body, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/encrypt-batch"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call encryptBatchValidateBeforeCall(List body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling encryptBatch(Async)"); + } + + + okhttp3.Call localVarCall = encryptBatchCall(body, _callback); + return localVarCall; + + } + + /** + * + * + * @param body (required) + * @return EncryptOutput + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 encryptResponse wraps response body. -
0 errorResponse wraps any error to return it as a JSON object with one \"error\" field. -
+ */ + public EncryptOutput encryptBatch(List body) throws ApiException { + ApiResponse localVarResp = encryptBatchWithHttpInfo(body); + return localVarResp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<EncryptOutput> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 encryptResponse wraps response body. -
0 errorResponse wraps any error to return it as a JSON object with one \"error\" field. -
+ */ + public ApiResponse encryptBatchWithHttpInfo(List body) throws ApiException { + okhttp3.Call localVarCall = encryptBatchValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 encryptResponse wraps response body. -
0 errorResponse wraps any error to return it as a JSON object with one \"error\" field. -
+ */ + public okhttp3.Call encryptBatchAsync(List body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = encryptBatchValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for encryptGPG * @param body (required) diff --git a/src/main/java/io/akeyless/client/model/BatchEncryptionRequestLine.java b/src/main/java/io/akeyless/client/model/BatchEncryptionRequestLine.java new file mode 100644 index 00000000..bcaf275b --- /dev/null +++ b/src/main/java/io/akeyless/client/model/BatchEncryptionRequestLine.java @@ -0,0 +1,198 @@ +/* + * Akeyless API + * The purpose of this application is to provide access to Akeyless API. + * + * The version of the OpenAPI document: 2.0 + * Contact: support@akeyless.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.akeyless.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * BatchEncryptionRequestLine + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BatchEncryptionRequestLine { + public static final String SERIALIZED_NAME_CONTEXT = "context"; + @SerializedName(SERIALIZED_NAME_CONTEXT) + private Map context = null; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private String data; + + public static final String SERIALIZED_NAME_ITEM_ID = "item_id"; + @SerializedName(SERIALIZED_NAME_ITEM_ID) + private Long itemId; + + public static final String SERIALIZED_NAME_ITEM_VERSION = "item_version"; + @SerializedName(SERIALIZED_NAME_ITEM_VERSION) + private Integer itemVersion; + + public BatchEncryptionRequestLine() { + } + + public BatchEncryptionRequestLine context(Map context) { + + this.context = context; + return this; + } + + public BatchEncryptionRequestLine putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Get context + * @return context + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Map getContext() { + return context; + } + + + public void setContext(Map context) { + this.context = context; + } + + + public BatchEncryptionRequestLine data(String data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getData() { + return data; + } + + + public void setData(String data) { + this.data = data; + } + + + public BatchEncryptionRequestLine itemId(Long itemId) { + + this.itemId = itemId; + return this; + } + + /** + * Get itemId + * @return itemId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getItemId() { + return itemId; + } + + + public void setItemId(Long itemId) { + this.itemId = itemId; + } + + + public BatchEncryptionRequestLine itemVersion(Integer itemVersion) { + + this.itemVersion = itemVersion; + return this; + } + + /** + * Get itemVersion + * @return itemVersion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getItemVersion() { + return itemVersion; + } + + + public void setItemVersion(Integer itemVersion) { + this.itemVersion = itemVersion; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchEncryptionRequestLine batchEncryptionRequestLine = (BatchEncryptionRequestLine) o; + return Objects.equals(this.context, batchEncryptionRequestLine.context) && + Objects.equals(this.data, batchEncryptionRequestLine.data) && + Objects.equals(this.itemId, batchEncryptionRequestLine.itemId) && + Objects.equals(this.itemVersion, batchEncryptionRequestLine.itemVersion); + } + + @Override + public int hashCode() { + return Objects.hash(context, data, itemId, itemVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchEncryptionRequestLine {\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" itemId: ").append(toIndentedString(itemId)).append("\n"); + sb.append(" itemVersion: ").append(toIndentedString(itemVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/akeyless/client/model/BatchEncryptionResponseLine.java b/src/main/java/io/akeyless/client/model/BatchEncryptionResponseLine.java new file mode 100644 index 00000000..72f78d4a --- /dev/null +++ b/src/main/java/io/akeyless/client/model/BatchEncryptionResponseLine.java @@ -0,0 +1,129 @@ +/* + * Akeyless API + * The purpose of this application is to provide access to Akeyless API. + * + * The version of the OpenAPI document: 2.0 + * Contact: support@akeyless.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.akeyless.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * BatchEncryptionResponseLine + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BatchEncryptionResponseLine { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private String data; + + public static final String SERIALIZED_NAME_ERROR = "error"; + @SerializedName(SERIALIZED_NAME_ERROR) + private String error; + + public BatchEncryptionResponseLine() { + } + + public BatchEncryptionResponseLine data(String data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getData() { + return data; + } + + + public void setData(String data) { + this.data = data; + } + + + public BatchEncryptionResponseLine error(String error) { + + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getError() { + return error; + } + + + public void setError(String error) { + this.error = error; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchEncryptionResponseLine batchEncryptionResponseLine = (BatchEncryptionResponseLine) o; + return Objects.equals(this.data, batchEncryptionResponseLine.data) && + Objects.equals(this.error, batchEncryptionResponseLine.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchEncryptionResponseLine {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/io/akeyless/client/model/Connect.java b/src/main/java/io/akeyless/client/model/Connect.java index d518d9f8..34076858 100644 --- a/src/main/java/io/akeyless/client/model/Connect.java +++ b/src/main/java/io/akeyless/client/model/Connect.java @@ -30,6 +30,10 @@ @ApiModel(description = "Connect is a command that performs secure remote access") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Connect { + public static final String SERIALIZED_NAME_BASTION_GATEWAY_URL = "BastionGatewayUrl"; + @SerializedName(SERIALIZED_NAME_BASTION_GATEWAY_URL) + private String bastionGatewayUrl; + public static final String SERIALIZED_NAME_HELPER = "Helper"; @SerializedName(SERIALIZED_NAME_HELPER) private Object helper; @@ -109,6 +113,29 @@ public class Connect { public Connect() { } + public Connect bastionGatewayUrl(String bastionGatewayUrl) { + + this.bastionGatewayUrl = bastionGatewayUrl; + return this; + } + + /** + * todo - enable when gw-sra unification is done The Gateway URL (configuration management) address, e.g. http://localhost:8000 + * @return bastionGatewayUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "todo - enable when gw-sra unification is done The Gateway URL (configuration management) address, e.g. http://localhost:8000") + + public String getBastionGatewayUrl() { + return bastionGatewayUrl; + } + + + public void setBastionGatewayUrl(String bastionGatewayUrl) { + this.bastionGatewayUrl = bastionGatewayUrl; + } + + public Connect helper(Object helper) { this.helper = helper; @@ -555,7 +582,8 @@ public boolean equals(Object o) { return false; } Connect connect = (Connect) o; - return Objects.equals(this.helper, connect.helper) && + return Objects.equals(this.bastionGatewayUrl, connect.bastionGatewayUrl) && + Objects.equals(this.helper, connect.helper) && Objects.equals(this.rcFileOverride, connect.rcFileOverride) && Objects.equals(this.bastionCtrlPath, connect.bastionCtrlPath) && Objects.equals(this.bastionCtrlPort, connect.bastionCtrlPort) && @@ -578,13 +606,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(helper, rcFileOverride, bastionCtrlPath, bastionCtrlPort, bastionCtrlProto, bastionCtrlSubdomain, certIssuerName, identityFile, json, justification, name, sshCommand, sshExtraArgs, sshLegacySigningAlg, target, token, uidToken, useSshAgent, viaBastion); + return Objects.hash(bastionGatewayUrl, helper, rcFileOverride, bastionCtrlPath, bastionCtrlPort, bastionCtrlProto, bastionCtrlSubdomain, certIssuerName, identityFile, json, justification, name, sshCommand, sshExtraArgs, sshLegacySigningAlg, target, token, uidToken, useSshAgent, viaBastion); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Connect {\n"); + sb.append(" bastionGatewayUrl: ").append(toIndentedString(bastionGatewayUrl)).append("\n"); sb.append(" helper: ").append(toIndentedString(helper)).append("\n"); sb.append(" rcFileOverride: ").append(toIndentedString(rcFileOverride)).append("\n"); sb.append(" bastionCtrlPath: ").append(toIndentedString(bastionCtrlPath)).append("\n"); diff --git a/src/main/java/io/akeyless/client/model/CreateClassicKey.java b/src/main/java/io/akeyless/client/model/CreateClassicKey.java index 30f71ac2..f2524749 100644 --- a/src/main/java/io/akeyless/client/model/CreateClassicKey.java +++ b/src/main/java/io/akeyless/client/model/CreateClassicKey.java @@ -52,6 +52,10 @@ public class CreateClassicKey { @SerializedName(SERIALIZED_NAME_CERTIFICATE_DIGEST_ALGO) private String certificateDigestAlgo; + public static final String SERIALIZED_NAME_CERTIFICATE_FORMAT = "certificate-format"; + @SerializedName(SERIALIZED_NAME_CERTIFICATE_FORMAT) + private String certificateFormat; + public static final String SERIALIZED_NAME_CERTIFICATE_LOCALITY = "certificate-locality"; @SerializedName(SERIALIZED_NAME_CERTIFICATE_LOCALITY) private String certificateLocality; @@ -238,6 +242,29 @@ public void setCertificateDigestAlgo(String certificateDigestAlgo) { } + public CreateClassicKey certificateFormat(String certificateFormat) { + + this.certificateFormat = certificateFormat; + return this; + } + + /** + * Get certificateFormat + * @return certificateFormat + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCertificateFormat() { + return certificateFormat; + } + + + public void setCertificateFormat(String certificateFormat) { + this.certificateFormat = certificateFormat; + } + + public CreateClassicKey certificateLocality(String certificateLocality) { this.certificateLocality = certificateLocality; @@ -651,6 +678,7 @@ public boolean equals(Object o) { Objects.equals(this.certificateCommonName, createClassicKey.certificateCommonName) && Objects.equals(this.certificateCountry, createClassicKey.certificateCountry) && Objects.equals(this.certificateDigestAlgo, createClassicKey.certificateDigestAlgo) && + Objects.equals(this.certificateFormat, createClassicKey.certificateFormat) && Objects.equals(this.certificateLocality, createClassicKey.certificateLocality) && Objects.equals(this.certificateOrganization, createClassicKey.certificateOrganization) && Objects.equals(this.certificateProvince, createClassicKey.certificateProvince) && @@ -672,7 +700,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(alg, certFileData, certificateCommonName, certificateCountry, certificateDigestAlgo, certificateLocality, certificateOrganization, certificateProvince, certificateTtl, confFileData, deleteProtection, description, generateSelfSignedCertificate, gpgAlg, json, keyData, metadata, name, protectionKeyName, tags, token, uidToken); + return Objects.hash(alg, certFileData, certificateCommonName, certificateCountry, certificateDigestAlgo, certificateFormat, certificateLocality, certificateOrganization, certificateProvince, certificateTtl, confFileData, deleteProtection, description, generateSelfSignedCertificate, gpgAlg, json, keyData, metadata, name, protectionKeyName, tags, token, uidToken); } @Override @@ -684,6 +712,7 @@ public String toString() { sb.append(" certificateCommonName: ").append(toIndentedString(certificateCommonName)).append("\n"); sb.append(" certificateCountry: ").append(toIndentedString(certificateCountry)).append("\n"); sb.append(" certificateDigestAlgo: ").append(toIndentedString(certificateDigestAlgo)).append("\n"); + sb.append(" certificateFormat: ").append(toIndentedString(certificateFormat)).append("\n"); sb.append(" certificateLocality: ").append(toIndentedString(certificateLocality)).append("\n"); sb.append(" certificateOrganization: ").append(toIndentedString(certificateOrganization)).append("\n"); sb.append(" certificateProvince: ").append(toIndentedString(certificateProvince)).append("\n"); diff --git a/src/main/java/io/akeyless/client/model/CreateDFCKey.java b/src/main/java/io/akeyless/client/model/CreateDFCKey.java index ee459440..488efae0 100644 --- a/src/main/java/io/akeyless/client/model/CreateDFCKey.java +++ b/src/main/java/io/akeyless/client/model/CreateDFCKey.java @@ -47,6 +47,10 @@ public class CreateDFCKey { @SerializedName(SERIALIZED_NAME_CERTIFICATE_DIGEST_ALGO) private String certificateDigestAlgo; + public static final String SERIALIZED_NAME_CERTIFICATE_FORMAT = "certificate-format"; + @SerializedName(SERIALIZED_NAME_CERTIFICATE_FORMAT) + private String certificateFormat; + public static final String SERIALIZED_NAME_CERTIFICATE_LOCALITY = "certificate-locality"; @SerializedName(SERIALIZED_NAME_CERTIFICATE_LOCALITY) private String certificateLocality; @@ -206,6 +210,29 @@ public void setCertificateDigestAlgo(String certificateDigestAlgo) { } + public CreateDFCKey certificateFormat(String certificateFormat) { + + this.certificateFormat = certificateFormat; + return this; + } + + /** + * Get certificateFormat + * @return certificateFormat + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCertificateFormat() { + return certificateFormat; + } + + + public void setCertificateFormat(String certificateFormat) { + this.certificateFormat = certificateFormat; + } + + public CreateDFCKey certificateLocality(String certificateLocality) { this.certificateLocality = certificateLocality; @@ -595,6 +622,7 @@ public boolean equals(Object o) { Objects.equals(this.certificateCommonName, createDFCKey.certificateCommonName) && Objects.equals(this.certificateCountry, createDFCKey.certificateCountry) && Objects.equals(this.certificateDigestAlgo, createDFCKey.certificateDigestAlgo) && + Objects.equals(this.certificateFormat, createDFCKey.certificateFormat) && Objects.equals(this.certificateLocality, createDFCKey.certificateLocality) && Objects.equals(this.certificateOrganization, createDFCKey.certificateOrganization) && Objects.equals(this.certificateProvince, createDFCKey.certificateProvince) && @@ -615,7 +643,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(alg, certificateCommonName, certificateCountry, certificateDigestAlgo, certificateLocality, certificateOrganization, certificateProvince, certificateTtl, confFileData, customerFrgId, deleteProtection, description, generateSelfSignedCertificate, json, metadata, name, splitLevel, tag, token, uidToken); + return Objects.hash(alg, certificateCommonName, certificateCountry, certificateDigestAlgo, certificateFormat, certificateLocality, certificateOrganization, certificateProvince, certificateTtl, confFileData, customerFrgId, deleteProtection, description, generateSelfSignedCertificate, json, metadata, name, splitLevel, tag, token, uidToken); } @Override @@ -626,6 +654,7 @@ public String toString() { sb.append(" certificateCommonName: ").append(toIndentedString(certificateCommonName)).append("\n"); sb.append(" certificateCountry: ").append(toIndentedString(certificateCountry)).append("\n"); sb.append(" certificateDigestAlgo: ").append(toIndentedString(certificateDigestAlgo)).append("\n"); + sb.append(" certificateFormat: ").append(toIndentedString(certificateFormat)).append("\n"); sb.append(" certificateLocality: ").append(toIndentedString(certificateLocality)).append("\n"); sb.append(" certificateOrganization: ").append(toIndentedString(certificateOrganization)).append("\n"); sb.append(" certificateProvince: ").append(toIndentedString(certificateProvince)).append("\n"); diff --git a/src/main/java/io/akeyless/client/model/DescribeItem.java b/src/main/java/io/akeyless/client/model/DescribeItem.java index efd2d947..1613e67c 100644 --- a/src/main/java/io/akeyless/client/model/DescribeItem.java +++ b/src/main/java/io/akeyless/client/model/DescribeItem.java @@ -37,6 +37,10 @@ public class DescribeItem { @SerializedName(SERIALIZED_NAME_BASTION_DETAILS) private Boolean bastionDetails = false; + public static final String SERIALIZED_NAME_DER_CERTIFICATE_FORMAT = "der-certificate-format"; + @SerializedName(SERIALIZED_NAME_DER_CERTIFICATE_FORMAT) + private Boolean derCertificateFormat = false; + public static final String SERIALIZED_NAME_DISPLAY_ID = "display-id"; @SerializedName(SERIALIZED_NAME_DISPLAY_ID) private String displayId; @@ -122,6 +126,29 @@ public void setBastionDetails(Boolean bastionDetails) { } + public DescribeItem derCertificateFormat(Boolean derCertificateFormat) { + + this.derCertificateFormat = derCertificateFormat; + return this; + } + + /** + * The certificate will be displayed in DER format + * @return derCertificateFormat + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The certificate will be displayed in DER format") + + public Boolean getDerCertificateFormat() { + return derCertificateFormat; + } + + + public void setDerCertificateFormat(Boolean derCertificateFormat) { + this.derCertificateFormat = derCertificateFormat; + } + + public DescribeItem displayId(String displayId) { this.displayId = displayId; @@ -340,6 +367,7 @@ public boolean equals(Object o) { DescribeItem describeItem = (DescribeItem) o; return Objects.equals(this.accessibility, describeItem.accessibility) && Objects.equals(this.bastionDetails, describeItem.bastionDetails) && + Objects.equals(this.derCertificateFormat, describeItem.derCertificateFormat) && Objects.equals(this.displayId, describeItem.displayId) && Objects.equals(this.gatewayDetails, describeItem.gatewayDetails) && Objects.equals(this.itemId, describeItem.itemId) && @@ -353,7 +381,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(accessibility, bastionDetails, displayId, gatewayDetails, itemId, json, name, servicesDetails, showVersions, token, uidToken); + return Objects.hash(accessibility, bastionDetails, derCertificateFormat, displayId, gatewayDetails, itemId, json, name, servicesDetails, showVersions, token, uidToken); } @Override @@ -362,6 +390,7 @@ public String toString() { sb.append("class DescribeItem {\n"); sb.append(" accessibility: ").append(toIndentedString(accessibility)).append("\n"); sb.append(" bastionDetails: ").append(toIndentedString(bastionDetails)).append("\n"); + sb.append(" derCertificateFormat: ").append(toIndentedString(derCertificateFormat)).append("\n"); sb.append(" displayId: ").append(toIndentedString(displayId)).append("\n"); sb.append(" gatewayDetails: ").append(toIndentedString(gatewayDetails)).append("\n"); sb.append(" itemId: ").append(toIndentedString(itemId)).append("\n"); diff --git a/src/main/java/io/akeyless/client/model/ItemGeneralInfo.java b/src/main/java/io/akeyless/client/model/ItemGeneralInfo.java index a6eaebd9..85d9965b 100644 --- a/src/main/java/io/akeyless/client/model/ItemGeneralInfo.java +++ b/src/main/java/io/akeyless/client/model/ItemGeneralInfo.java @@ -49,6 +49,10 @@ public class ItemGeneralInfo { @SerializedName(SERIALIZED_NAME_CERTIFICATE_CHAIN_INFO) private CertificateChainInfo certificateChainInfo; + public static final String SERIALIZED_NAME_CERTIFICATE_FORMAT = "certificate_format"; + @SerializedName(SERIALIZED_NAME_CERTIFICATE_FORMAT) + private String certificateFormat; + public static final String SERIALIZED_NAME_CERTIFICATES_TEMPLATE_INFO = "certificates_template_info"; @SerializedName(SERIALIZED_NAME_CERTIFICATES_TEMPLATE_INFO) private CertificateTemplateInfo certificatesTemplateInfo; @@ -146,6 +150,29 @@ public void setCertificateChainInfo(CertificateChainInfo certificateChainInfo) { } + public ItemGeneralInfo certificateFormat(String certificateFormat) { + + this.certificateFormat = certificateFormat; + return this; + } + + /** + * Get certificateFormat + * @return certificateFormat + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCertificateFormat() { + return certificateFormat; + } + + + public void setCertificateFormat(String certificateFormat) { + this.certificateFormat = certificateFormat; + } + + public ItemGeneralInfo certificatesTemplateInfo(CertificateTemplateInfo certificatesTemplateInfo) { this.certificatesTemplateInfo = certificatesTemplateInfo; @@ -433,6 +460,7 @@ public boolean equals(Object o) { ItemGeneralInfo itemGeneralInfo = (ItemGeneralInfo) o; return Objects.equals(this.certIssueDetails, itemGeneralInfo.certIssueDetails) && Objects.equals(this.certificateChainInfo, itemGeneralInfo.certificateChainInfo) && + Objects.equals(this.certificateFormat, itemGeneralInfo.certificateFormat) && Objects.equals(this.certificatesTemplateInfo, itemGeneralInfo.certificatesTemplateInfo) && Objects.equals(this.classicKeyDetails, itemGeneralInfo.classicKeyDetails) && Objects.equals(this.clusterGwUrl, itemGeneralInfo.clusterGwUrl) && @@ -449,7 +477,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(certIssueDetails, certificateChainInfo, certificatesTemplateInfo, classicKeyDetails, clusterGwUrl, displayMetadata, dynamicSecretProducerDetails, importerInfo, oidcClientInfo, passwordPolicy, rotatedSecretDetails, secureRemoteAccessDetails, staticSecretInfo, tokenizerInfo); + return Objects.hash(certIssueDetails, certificateChainInfo, certificateFormat, certificatesTemplateInfo, classicKeyDetails, clusterGwUrl, displayMetadata, dynamicSecretProducerDetails, importerInfo, oidcClientInfo, passwordPolicy, rotatedSecretDetails, secureRemoteAccessDetails, staticSecretInfo, tokenizerInfo); } @Override @@ -458,6 +486,7 @@ public String toString() { sb.append("class ItemGeneralInfo {\n"); sb.append(" certIssueDetails: ").append(toIndentedString(certIssueDetails)).append("\n"); sb.append(" certificateChainInfo: ").append(toIndentedString(certificateChainInfo)).append("\n"); + sb.append(" certificateFormat: ").append(toIndentedString(certificateFormat)).append("\n"); sb.append(" certificatesTemplateInfo: ").append(toIndentedString(certificatesTemplateInfo)).append("\n"); sb.append(" classicKeyDetails: ").append(toIndentedString(classicKeyDetails)).append("\n"); sb.append(" clusterGwUrl: ").append(toIndentedString(clusterGwUrl)).append("\n"); diff --git a/src/main/java/io/akeyless/client/model/UploadRSA.java b/src/main/java/io/akeyless/client/model/UploadRSA.java index 4d479bee..b444b424 100644 --- a/src/main/java/io/akeyless/client/model/UploadRSA.java +++ b/src/main/java/io/akeyless/client/model/UploadRSA.java @@ -39,6 +39,10 @@ public class UploadRSA { @SerializedName(SERIALIZED_NAME_CERT_FILE_DATA) private String certFileData; + public static final String SERIALIZED_NAME_CERTIFICATE_FORMAT = "certificate-format"; + @SerializedName(SERIALIZED_NAME_CERTIFICATE_FORMAT) + private String certificateFormat; + public static final String SERIALIZED_NAME_CUSTOMER_FRG_ID = "customer-frg-id"; @SerializedName(SERIALIZED_NAME_CUSTOMER_FRG_ID) private String customerFrgId; @@ -136,6 +140,29 @@ public void setCertFileData(String certFileData) { } + public UploadRSA certificateFormat(String certificateFormat) { + + this.certificateFormat = certificateFormat; + return this; + } + + /** + * Get certificateFormat + * @return certificateFormat + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCertificateFormat() { + return certificateFormat; + } + + + public void setCertificateFormat(String certificateFormat) { + this.certificateFormat = certificateFormat; + } + + public UploadRSA customerFrgId(String customerFrgId) { this.customerFrgId = customerFrgId; @@ -431,6 +458,7 @@ public boolean equals(Object o) { UploadRSA uploadRSA = (UploadRSA) o; return Objects.equals(this.alg, uploadRSA.alg) && Objects.equals(this.certFileData, uploadRSA.certFileData) && + Objects.equals(this.certificateFormat, uploadRSA.certificateFormat) && Objects.equals(this.customerFrgId, uploadRSA.customerFrgId) && Objects.equals(this.deleteProtection, uploadRSA.deleteProtection) && Objects.equals(this.description, uploadRSA.description) && @@ -447,7 +475,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(alg, certFileData, customerFrgId, deleteProtection, description, json, metadata, name, overwrite, rsaFileData, splitLevel, tag, token, uidToken); + return Objects.hash(alg, certFileData, certificateFormat, customerFrgId, deleteProtection, description, json, metadata, name, overwrite, rsaFileData, splitLevel, tag, token, uidToken); } @Override @@ -456,6 +484,7 @@ public String toString() { sb.append("class UploadRSA {\n"); sb.append(" alg: ").append(toIndentedString(alg)).append("\n"); sb.append(" certFileData: ").append(toIndentedString(certFileData)).append("\n"); + sb.append(" certificateFormat: ").append(toIndentedString(certificateFormat)).append("\n"); sb.append(" customerFrgId: ").append(toIndentedString(customerFrgId)).append("\n"); sb.append(" deleteProtection: ").append(toIndentedString(deleteProtection)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); diff --git a/src/test/java/io/akeyless/client/model/BatchEncryptionRequestLineTest.java b/src/test/java/io/akeyless/client/model/BatchEncryptionRequestLineTest.java new file mode 100644 index 00000000..3b626795 --- /dev/null +++ b/src/test/java/io/akeyless/client/model/BatchEncryptionRequestLineTest.java @@ -0,0 +1,78 @@ +/* + * Akeyless API + * The purpose of this application is to provide access to Akeyless API. + * + * The version of the OpenAPI document: 2.0 + * Contact: support@akeyless.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.akeyless.client.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for BatchEncryptionRequestLine + */ +public class BatchEncryptionRequestLineTest { + private final BatchEncryptionRequestLine model = new BatchEncryptionRequestLine(); + + /** + * Model tests for BatchEncryptionRequestLine + */ + @Test + public void testBatchEncryptionRequestLine() { + // TODO: test BatchEncryptionRequestLine + } + + /** + * Test the property 'context' + */ + @Test + public void contextTest() { + // TODO: test context + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'itemId' + */ + @Test + public void itemIdTest() { + // TODO: test itemId + } + + /** + * Test the property 'itemVersion' + */ + @Test + public void itemVersionTest() { + // TODO: test itemVersion + } + +} diff --git a/src/test/java/io/akeyless/client/model/BatchEncryptionResponseLineTest.java b/src/test/java/io/akeyless/client/model/BatchEncryptionResponseLineTest.java new file mode 100644 index 00000000..b2d2836e --- /dev/null +++ b/src/test/java/io/akeyless/client/model/BatchEncryptionResponseLineTest.java @@ -0,0 +1,59 @@ +/* + * Akeyless API + * The purpose of this application is to provide access to Akeyless API. + * + * The version of the OpenAPI document: 2.0 + * Contact: support@akeyless.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.akeyless.client.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for BatchEncryptionResponseLine + */ +public class BatchEncryptionResponseLineTest { + private final BatchEncryptionResponseLine model = new BatchEncryptionResponseLine(); + + /** + * Model tests for BatchEncryptionResponseLine + */ + @Test + public void testBatchEncryptionResponseLine() { + // TODO: test BatchEncryptionResponseLine + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'error' + */ + @Test + public void errorTest() { + // TODO: test error + } + +}