From daf7f10688a5b5bbb1d7197c9f39fd1390d24421 Mon Sep 17 00:00:00 2001 From: Tatyana Date: Sun, 10 Dec 2023 13:17:08 +0200 Subject: [PATCH] patch: Adding new Service credentials secret type --- .../v2/SecretsManagerExamples.java | 2 +- .../secrets_manager/v2/SecretsManager.java | 2 +- .../v2/model/ArbitrarySecret.java | 18 +- .../v2/model/ArbitrarySecretMetadata.java | 18 +- .../v2/model/ArbitrarySecretPrototype.java | 18 +- .../v2/model/ArbitrarySecretVersion.java | 18 +- .../model/ArbitrarySecretVersionMetadata.java | 18 +- .../v2/model/Configuration.java | 32 +- .../v2/model/ConfigurationMetadata.java | 32 +- .../v2/model/ConfigurationPrototype.java | 10 +- .../v2/model/GetSecretByNameTypeOptions.java | 22 +- .../v2/model/IAMCredentialsConfiguration.java | 23 +- .../IAMCredentialsConfigurationMetadata.java | 23 +- .../IAMCredentialsConfigurationPrototype.java | 5 +- .../v2/model/IAMCredentialsSecret.java | 18 +- .../model/IAMCredentialsSecretMetadata.java | 18 +- .../model/IAMCredentialsSecretPrototype.java | 18 +- .../v2/model/IAMCredentialsSecretVersion.java | 18 +- .../IAMCredentialsSecretVersionMetadata.java | 18 +- .../v2/model/ImportedCertificate.java | 18 +- .../v2/model/ImportedCertificateMetadata.java | 18 +- .../model/ImportedCertificatePrototype.java | 18 +- .../v2/model/ImportedCertificateVersion.java | 18 +- .../ImportedCertificateVersionMetadata.java | 18 +- .../secrets_manager/v2/model/KVSecret.java | 18 +- .../v2/model/KVSecretMetadata.java | 18 +- .../v2/model/KVSecretPrototype.java | 18 +- .../v2/model/KVSecretVersion.java | 18 +- .../v2/model/KVSecretVersionMetadata.java | 18 +- .../v2/model/PrivateCertificate.java | 18 +- ...ertificateConfigurationIntermediateCA.java | 23 +- ...teConfigurationIntermediateCAMetadata.java | 23 +- ...eConfigurationIntermediateCAPrototype.java | 5 +- ...PrivateCertificateConfigurationRootCA.java | 23 +- ...ertificateConfigurationRootCAMetadata.java | 23 +- ...rtificateConfigurationRootCAPrototype.java | 5 +- ...ivateCertificateConfigurationTemplate.java | 23 +- ...tificateConfigurationTemplateMetadata.java | 23 +- ...ificateConfigurationTemplatePrototype.java | 5 +- .../v2/model/PrivateCertificateMetadata.java | 18 +- .../v2/model/PrivateCertificatePrototype.java | 18 +- .../v2/model/PrivateCertificateVersion.java | 18 +- .../PrivateCertificateVersionMetadata.java | 18 +- .../v2/model/PublicCertificate.java | 18 +- ...CertificateConfigurationCALetsEncrypt.java | 23 +- ...ateConfigurationCALetsEncryptMetadata.java | 23 +- ...teConfigurationCALetsEncryptPrototype.java | 5 +- ...ConfigurationDNSClassicInfrastructure.java | 23 +- ...ationDNSClassicInfrastructureMetadata.java | 23 +- ...tionDNSClassicInfrastructurePrototype.java | 5 +- ...ConfigurationDNSCloudInternetServices.java | 23 +- ...ationDNSCloudInternetServicesMetadata.java | 23 +- ...tionDNSCloudInternetServicesPrototype.java | 5 +- .../v2/model/PublicCertificateMetadata.java | 18 +- .../v2/model/PublicCertificatePrototype.java | 18 +- .../v2/model/PublicCertificateVersion.java | 18 +- .../PublicCertificateVersionMetadata.java | 18 +- .../secrets_manager/v2/model/Secret.java | 387 ++++++++++-------- .../secrets_manager/v2/model/SecretLocks.java | 22 +- .../v2/model/SecretMetadata.java | 382 ++++++++--------- .../v2/model/SecretMetadataPatch.java | 14 +- .../v2/model/SecretPrototype.java | 50 ++- .../v2/model/SecretVersion.java | 180 ++++---- .../v2/model/SecretVersionMetadata.java | 99 +++-- .../v2/model/SecretVersionPrototype.java | 1 + .../v2/model/UsernamePasswordSecret.java | 18 +- .../model/UsernamePasswordSecretMetadata.java | 18 +- .../UsernamePasswordSecretPrototype.java | 18 +- .../model/UsernamePasswordSecretVersion.java | 18 +- ...UsernamePasswordSecretVersionMetadata.java | 18 +- .../secrets_manager/v2/SecretsManagerIT.java | 18 + .../v2/SecretsManagerTest.java | 18 + ...IAMCredentialsSecretMetadataPatchTest.java | 10 +- .../IAMCredentialsSecretPrototypeTest.java | 6 +- 74 files changed, 1303 insertions(+), 971 deletions(-) diff --git a/modules/examples/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerExamples.java b/modules/examples/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerExamples.java index 47702c6f..41ff2deb 100644 --- a/modules/examples/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerExamples.java +++ b/modules/examples/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerExamples.java @@ -744,7 +744,7 @@ public static void main(String[] args) throws Exception { System.out.println("createNotificationsRegistration() result:"); // begin-create_notifications_registration CreateNotificationsRegistrationOptions createNotificationsRegistrationOptions = new CreateNotificationsRegistrationOptions.Builder() - .eventNotificationsInstanceCrn("crn:v1:staging:public:event-notifications:us-south:a/791f5fb10986423e97aa8512f18b7e65:d959ec5c-276a-43a4-97d6-77e69ac03b1e::") + .eventNotificationsInstanceCrn("crn:v1:bluemix:public:event-notifications:us-south:a/22018f3c34ff4ff193698d15ca316946:578ad1a4-2fd8-4e66-95d5-79a842ba91f8::") .eventNotificationsSourceName("My Secrets Manager") .eventNotificationsSourceDescription("Optional description of this source in an Event Notifications instance.") .build(); diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManager.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManager.java index 36b3f8dd..491e993b 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManager.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManager.java @@ -12,7 +12,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.77.0-42417df0-20230811-192318 + * IBM OpenAPI SDK Code Generator Version: 3.82.1-2082d402-20231115-195014 */ package com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2; diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecret.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecret.java index 3d2bc613..fc32a003 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecret.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecret.java @@ -18,24 +18,26 @@ public class ArbitrarySecret extends Secret { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretMetadata.java index 7b9dea7d..c10b705b 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretMetadata.java @@ -18,24 +18,26 @@ public class ArbitrarySecretMetadata extends SecretMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretPrototype.java index 8c8f94eb..4718972d 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretPrototype.java @@ -23,24 +23,26 @@ public class ArbitrarySecretPrototype extends SecretPrototype { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretVersion.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretVersion.java index a2b278d2..22fb5b49 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretVersion.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretVersion.java @@ -18,24 +18,26 @@ public class ArbitrarySecretVersion extends SecretVersion { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretVersionMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretVersionMetadata.java index b64c5b4f..faa50a48 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretVersionMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ArbitrarySecretVersionMetadata.java @@ -18,24 +18,26 @@ public class ArbitrarySecretVersionMetadata extends SecretVersionMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/Configuration.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/Configuration.java index 1a94ae3e..01730580 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/Configuration.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/Configuration.java @@ -46,7 +46,10 @@ public class Configuration extends GenericModel { } /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -66,24 +69,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** @@ -297,7 +302,10 @@ protected Configuration() { } /** * Gets the configType. * - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. * * @return the configType */ @@ -319,8 +327,8 @@ public String getName() { /** * Gets the secretType. * - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. * * @return the secretType */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ConfigurationMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ConfigurationMetadata.java index af47079f..5836d51c 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ConfigurationMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ConfigurationMetadata.java @@ -45,7 +45,10 @@ public class ConfigurationMetadata extends GenericModel { } /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -65,24 +68,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** @@ -175,7 +180,10 @@ protected ConfigurationMetadata() { } /** * Gets the configType. * - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. * * @return the configType */ @@ -197,8 +205,8 @@ public String getName() { /** * Gets the secretType. * - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. * * @return the secretType */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ConfigurationPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ConfigurationPrototype.java index 4a5abf2e..44850a29 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ConfigurationPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ConfigurationPrototype.java @@ -45,7 +45,10 @@ public class ConfigurationPrototype extends GenericModel { } /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -244,7 +247,10 @@ protected ConfigurationPrototype() { } /** * Gets the configType. * - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. * * @return the configType */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/GetSecretByNameTypeOptions.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/GetSecretByNameTypeOptions.java index 29f580bf..929cf158 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/GetSecretByNameTypeOptions.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/GetSecretByNameTypeOptions.java @@ -20,24 +20,26 @@ public class GetSecretByNameTypeOptions extends GenericModel { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } protected String secretType; @@ -151,8 +153,8 @@ public Builder newBuilder() { /** * Gets the secretType. * - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. * * @return the secretType */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfiguration.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfiguration.java index e0b0e02e..83de19bb 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfiguration.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfiguration.java @@ -18,7 +18,10 @@ public class IAMCredentialsConfiguration extends Configuration { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfigurationMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfigurationMetadata.java index 71898ed5..c2bd6ad1 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfigurationMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfigurationMetadata.java @@ -18,7 +18,10 @@ public class IAMCredentialsConfigurationMetadata extends ConfigurationMetadata { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfigurationPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfigurationPrototype.java index 650d1d92..15e0ab6f 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfigurationPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsConfigurationPrototype.java @@ -18,7 +18,10 @@ public class IAMCredentialsConfigurationPrototype extends ConfigurationPrototype { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecret.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecret.java index 3fd5e3fb..32563586 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecret.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecret.java @@ -18,24 +18,26 @@ public class IAMCredentialsSecret extends Secret { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretMetadata.java index 4884b756..cb51eecd 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretMetadata.java @@ -18,24 +18,26 @@ public class IAMCredentialsSecretMetadata extends SecretMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretPrototype.java index cfbd8506..cc4b2fa6 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretPrototype.java @@ -22,24 +22,26 @@ public class IAMCredentialsSecretPrototype extends SecretPrototype { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretVersion.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretVersion.java index d34cdb25..d5e2a34b 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretVersion.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretVersion.java @@ -18,24 +18,26 @@ public class IAMCredentialsSecretVersion extends SecretVersion { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretVersionMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretVersionMetadata.java index 51222cdd..ccc5a31c 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretVersionMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretVersionMetadata.java @@ -18,24 +18,26 @@ public class IAMCredentialsSecretVersionMetadata extends SecretVersionMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificate.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificate.java index c7c13ffb..083a65ac 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificate.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificate.java @@ -18,24 +18,26 @@ public class ImportedCertificate extends Secret { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateMetadata.java index 5ebf40f0..b3366c5f 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateMetadata.java @@ -18,24 +18,26 @@ public class ImportedCertificateMetadata extends SecretMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificatePrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificatePrototype.java index b20c7888..2a580bc8 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificatePrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificatePrototype.java @@ -22,24 +22,26 @@ public class ImportedCertificatePrototype extends SecretPrototype { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateVersion.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateVersion.java index dd404ec1..b80c4b27 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateVersion.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateVersion.java @@ -18,24 +18,26 @@ public class ImportedCertificateVersion extends SecretVersion { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateVersionMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateVersionMetadata.java index 8ae18863..62739608 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateVersionMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/ImportedCertificateVersionMetadata.java @@ -18,24 +18,26 @@ public class ImportedCertificateVersionMetadata extends SecretVersionMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecret.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecret.java index 849fd53a..2128d842 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecret.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecret.java @@ -18,24 +18,26 @@ public class KVSecret extends Secret { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretMetadata.java index 1515d7ff..686a82b3 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretMetadata.java @@ -18,24 +18,26 @@ public class KVSecretMetadata extends SecretMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretPrototype.java index b5c8aae1..b2554630 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretPrototype.java @@ -22,24 +22,26 @@ public class KVSecretPrototype extends SecretPrototype { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretVersion.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretVersion.java index 4a1630dc..1ba53876 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretVersion.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretVersion.java @@ -18,24 +18,26 @@ public class KVSecretVersion extends SecretVersion { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretVersionMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretVersionMetadata.java index 119c8059..e5a373b0 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretVersionMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/KVSecretVersionMetadata.java @@ -18,24 +18,26 @@ public class KVSecretVersionMetadata extends SecretVersionMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificate.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificate.java index 41511ab5..d965148e 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificate.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificate.java @@ -18,24 +18,26 @@ public class PrivateCertificate extends Secret { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCA.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCA.java index c5243605..775dbf85 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCA.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCA.java @@ -18,7 +18,10 @@ public class PrivateCertificateConfigurationIntermediateCA extends Configuration { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCAMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCAMetadata.java index fb8e737a..a7bf78cf 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCAMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCAMetadata.java @@ -18,7 +18,10 @@ public class PrivateCertificateConfigurationIntermediateCAMetadata extends ConfigurationMetadata { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCAPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCAPrototype.java index 0aa4fe5b..149a8c6c 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCAPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationIntermediateCAPrototype.java @@ -21,7 +21,10 @@ public class PrivateCertificateConfigurationIntermediateCAPrototype extends ConfigurationPrototype { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCA.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCA.java index d9aa21cd..431afe65 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCA.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCA.java @@ -18,7 +18,10 @@ public class PrivateCertificateConfigurationRootCA extends Configuration { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCAMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCAMetadata.java index 894c51df..224660c2 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCAMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCAMetadata.java @@ -18,7 +18,10 @@ public class PrivateCertificateConfigurationRootCAMetadata extends ConfigurationMetadata { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCAPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCAPrototype.java index 305c7a9d..44814ca4 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCAPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationRootCAPrototype.java @@ -21,7 +21,10 @@ public class PrivateCertificateConfigurationRootCAPrototype extends ConfigurationPrototype { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplate.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplate.java index 2c7e0d6b..a76e1d5a 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplate.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplate.java @@ -18,7 +18,10 @@ public class PrivateCertificateConfigurationTemplate extends Configuration { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplateMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplateMetadata.java index eeebf294..b2369379 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplateMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplateMetadata.java @@ -18,7 +18,10 @@ public class PrivateCertificateConfigurationTemplateMetadata extends ConfigurationMetadata { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplatePrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplatePrototype.java index bee15054..2d995131 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplatePrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateConfigurationTemplatePrototype.java @@ -23,7 +23,10 @@ public class PrivateCertificateConfigurationTemplatePrototype extends ConfigurationPrototype { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateMetadata.java index c189a264..8328b102 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateMetadata.java @@ -18,24 +18,26 @@ public class PrivateCertificateMetadata extends SecretMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificatePrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificatePrototype.java index 3fd95180..5460e2fe 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificatePrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificatePrototype.java @@ -22,24 +22,26 @@ public class PrivateCertificatePrototype extends SecretPrototype { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateVersion.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateVersion.java index d415e0a6..55d41922 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateVersion.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateVersion.java @@ -18,24 +18,26 @@ public class PrivateCertificateVersion extends SecretVersion { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateVersionMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateVersionMetadata.java index e3e63205..7b1e5c67 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateVersionMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PrivateCertificateVersionMetadata.java @@ -18,24 +18,26 @@ public class PrivateCertificateVersionMetadata extends SecretVersionMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificate.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificate.java index a9acbe97..1be48f43 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificate.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificate.java @@ -18,24 +18,26 @@ public class PublicCertificate extends Secret { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncrypt.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncrypt.java index 0ae42016..8937aa90 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncrypt.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncrypt.java @@ -18,7 +18,10 @@ public class PublicCertificateConfigurationCALetsEncrypt extends Configuration { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncryptMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncryptMetadata.java index 75f5383a..78d2cb06 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncryptMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncryptMetadata.java @@ -18,7 +18,10 @@ public class PublicCertificateConfigurationCALetsEncryptMetadata extends ConfigurationMetadata { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncryptPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncryptPrototype.java index b24493b8..93d396d1 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncryptPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationCALetsEncryptPrototype.java @@ -18,7 +18,10 @@ public class PublicCertificateConfigurationCALetsEncryptPrototype extends ConfigurationPrototype { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructure.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructure.java index 021f18d2..3c60decc 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructure.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructure.java @@ -18,7 +18,10 @@ public class PublicCertificateConfigurationDNSClassicInfrastructure extends Configuration { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructureMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructureMetadata.java index ede99c61..25ad414d 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructureMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructureMetadata.java @@ -18,7 +18,10 @@ public class PublicCertificateConfigurationDNSClassicInfrastructureMetadata extends ConfigurationMetadata { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructurePrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructurePrototype.java index 87954199..0745c7e9 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructurePrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSClassicInfrastructurePrototype.java @@ -18,7 +18,10 @@ public class PublicCertificateConfigurationDNSClassicInfrastructurePrototype extends ConfigurationPrototype { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServices.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServices.java index a975fbcc..81d82453 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServices.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServices.java @@ -18,7 +18,10 @@ public class PublicCertificateConfigurationDNSCloudInternetServices extends Configuration { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServicesMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServicesMetadata.java index b00e0eec..1dd3aa3c 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServicesMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServicesMetadata.java @@ -18,7 +18,10 @@ public class PublicCertificateConfigurationDNSCloudInternetServicesMetadata extends ConfigurationMetadata { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ @@ -38,24 +41,26 @@ public interface ConfigType { } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServicesPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServicesPrototype.java index 3b8854b1..a36b14fd 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServicesPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateConfigurationDNSCloudInternetServicesPrototype.java @@ -18,7 +18,10 @@ public class PublicCertificateConfigurationDNSCloudInternetServicesPrototype extends ConfigurationPrototype { /** - * The configuration type. + * The configuration type. Can be one of: iam_credentials_configuration, public_cert_configuration_ca_lets_encrypt, + * public_cert_configuration_dns_classic_infrastructure, public_cert_configuration_dns_cloud_internet_services, + * private_cert_configuration_root_ca, private_cert_configuration_intermediate_ca, + * private_cert_configuration_template. */ public interface ConfigType { /** public_cert_configuration_ca_lets_encrypt. */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateMetadata.java index cd8903b5..fc4495aa 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateMetadata.java @@ -18,24 +18,26 @@ public class PublicCertificateMetadata extends SecretMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificatePrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificatePrototype.java index b4689599..d4e59b7b 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificatePrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificatePrototype.java @@ -22,24 +22,26 @@ public class PublicCertificatePrototype extends SecretPrototype { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateVersion.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateVersion.java index 8a7dec68..a8ff461b 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateVersion.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateVersion.java @@ -18,24 +18,26 @@ public class PublicCertificateVersion extends SecretVersion { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateVersionMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateVersionMetadata.java index 3548dbae..27fd7a6b 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateVersionMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/PublicCertificateVersionMetadata.java @@ -18,24 +18,26 @@ public class PublicCertificateVersionMetadata extends SecretVersionMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/Secret.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/Secret.java index 1ff20312..d9d297d9 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/Secret.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/Secret.java @@ -24,11 +24,12 @@ * * Classes which extend this class: * - ArbitrarySecret + * - IAMCredentialsSecret * - ImportedCertificate - * - PublicCertificate - * - PrivateCertificate * - KVSecret - * - IAMCredentialsSecret + * - PrivateCertificate + * - PublicCertificate + * - ServiceCredentialsSecret * - UsernamePasswordSecret */ public class Secret extends GenericModel { @@ -38,33 +39,36 @@ public class Secret extends GenericModel { static { discriminatorMapping = new java.util.HashMap<>(); discriminatorMapping.put("arbitrary", ArbitrarySecret.class); + discriminatorMapping.put("iam_credentials", IAMCredentialsSecret.class); discriminatorMapping.put("imported_cert", ImportedCertificate.class); - discriminatorMapping.put("public_cert", PublicCertificate.class); - discriminatorMapping.put("private_cert", PrivateCertificate.class); discriminatorMapping.put("kv", KVSecret.class); - discriminatorMapping.put("iam_credentials", IAMCredentialsSecret.class); + discriminatorMapping.put("private_cert", PrivateCertificate.class); + discriminatorMapping.put("public_cert", PublicCertificate.class); + discriminatorMapping.put("service_credentials", ServiceCredentialsSecret.class); discriminatorMapping.put("username_password", UsernamePasswordSecret.class); } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** @@ -111,6 +115,22 @@ public interface StateDescription { @SerializedName("expiration_date") protected Date expirationDate; protected String payload; + protected String ttl; + @SerializedName("access_groups") + protected List accessGroups; + @SerializedName("api_key_id") + protected String apiKeyId; + @SerializedName("service_id") + protected String serviceId; + @SerializedName("service_id_is_static") + protected Boolean serviceIdIsStatic; + @SerializedName("reuse_api_key") + protected Boolean reuseApiKey; + protected RotationPolicy rotation; + @SerializedName("next_rotation_date") + protected Date nextRotationDate; + @SerializedName("api_key") + protected String apiKey; @SerializedName("signing_algorithm") protected String signingAlgorithm; @SerializedName("alt_names") @@ -131,19 +151,11 @@ public interface StateDescription { protected String intermediate; @SerializedName("private_key") protected String privateKey; - @SerializedName("issuance_info") - protected CertificateIssuanceInfo issuanceInfo; - protected RotationPolicy rotation; - @SerializedName("bundle_certs") - protected Boolean bundleCerts; - protected String ca; - protected String dns; + protected Map data; @SerializedName("certificate_authority") protected String certificateAuthority; @SerializedName("certificate_template") protected String certificateTemplate; - @SerializedName("next_rotation_date") - protected Date nextRotationDate; @SerializedName("revocation_time_seconds") protected Long revocationTimeSeconds; @SerializedName("revocation_time_rfc3339") @@ -152,20 +164,15 @@ public interface StateDescription { protected String issuingCa; @SerializedName("ca_chain") protected List caChain; - protected Map data; - protected String ttl; - @SerializedName("access_groups") - protected List accessGroups; - @SerializedName("api_key_id") - protected String apiKeyId; - @SerializedName("service_id") - protected String serviceId; - @SerializedName("service_id_is_static") - protected Boolean serviceIdIsStatic; - @SerializedName("reuse_api_key") - protected Boolean reuseApiKey; - @SerializedName("api_key") - protected String apiKey; + @SerializedName("issuance_info") + protected CertificateIssuanceInfo issuanceInfo; + @SerializedName("bundle_certs") + protected Boolean bundleCerts; + protected String ca; + protected String dns; + @SerializedName("source_service") + protected ServiceCredentialsSecretSourceService sourceService; + protected ServiceCredentialsSecretCredentials credentials; protected String username; protected String password; @@ -303,8 +310,8 @@ public String getSecretGroupId() { /** * Gets the secretType. * - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. * * @return the secretType */ @@ -380,6 +387,133 @@ public String getPayload() { return payload; } + /** + * Gets the ttl. + * + * The time-to-live (TTL) or lease duration to assign to credentials that are generated. Supported secret types: + * iam_credentials, service_credentials. The TTL defines how long generated credentials remain valid. The value can be + * either an integer that specifies the number of seconds, or the string representation of a duration, such as + * `1440m` or `24h`. For the iam_credentials secret type, the TTL field is mandatory. The minimum duration is 1 + * minute. The maximum is 90 days. For the service_credentials secret type, the TTL field is optional. If it is set + * the minimum duration is 1 day. The maximum is 90 days. By default, the TTL is set to 0. + * + * @return the ttl + */ + public String getTtl() { + return ttl; + } + + /** + * Gets the accessGroups. + * + * Access Groups that you can use for an `iam_credentials` secret. + * + * Up to 10 Access Groups can be used for each secret. + * + * @return the accessGroups + */ + public List getAccessGroups() { + return accessGroups; + } + + /** + * Gets the apiKeyId. + * + * The ID of the API key that is generated for this secret. + * + * @return the apiKeyId + */ + public String getApiKeyId() { + return apiKeyId; + } + + /** + * Gets the serviceId. + * + * The service ID under which the API key (see the `api_key` field) is created. + * + * If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation, and adds it + * to the access groups that you assign. + * + * Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or + * retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not + * include the `access_groups` parameter. + * + * @return the serviceId + */ + public String getServiceId() { + return serviceId; + } + + /** + * Gets the serviceIdIsStatic. + * + * Indicates whether an `iam_credentials` secret was created with a static service ID. + * + * If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to + * `false`, the service ID was generated by Secrets Manager. + * + * @return the serviceIdIsStatic + */ + public Boolean isServiceIdIsStatic() { + return serviceIdIsStatic; + } + + /** + * Gets the reuseApiKey. + * + * (IAM credentials) This parameter indicates whether to reuse the service ID and API key for future read operations. + * + * If it is set to `true`, the service reuses the current credentials. If it is set to `false`, a new service ID and + * API key are generated each time that the secret is read or accessed. + * + * @return the reuseApiKey + */ + public Boolean isReuseApiKey() { + return reuseApiKey; + } + + /** + * Gets the rotation. + * + * This field indicates whether Secrets Manager rotates your secrets automatically. Supported secret types: + * username_password, private_cert, public_cert, iam_credentials. + * + * @return the rotation + */ + public RotationPolicy getRotation() { + return rotation; + } + + /** + * Gets the nextRotationDate. + * + * The date that the secret is scheduled for automatic rotation. + * + * The service automatically creates a new version of the secret on its next rotation date. This field exists only for + * secrets that can be auto-rotated and an existing rotation policy. + * + * @return the nextRotationDate + */ + public Date getNextRotationDate() { + return nextRotationDate; + } + + /** + * Gets the apiKey. + * + * The API key that is generated for this secret. + * + * After the secret reaches the end of its lease, the API key is deleted automatically. See the `time-to-live` field + * to understand the duration of the lease. If you want to continue to use the same API key for future read + * operations, see the `reuse_api_key` field. + * + * @return the apiKey + */ + public String getApiKey() { + return apiKey; + } + /** * Gets the signingAlgorithm. * @@ -518,59 +652,14 @@ public String getPrivateKey() { } /** - * Gets the issuanceInfo. - * - * Issuance information that is associated with your certificate. - * - * @return the issuanceInfo - */ - public CertificateIssuanceInfo getIssuanceInfo() { - return issuanceInfo; - } - - /** - * Gets the rotation. - * - * This field indicates whether Secrets Manager rotates your secrets automatically. Supported secret types: - * username_password, private_cert, public_cert, iam_credentials. - * - * @return the rotation - */ - public RotationPolicy getRotation() { - return rotation; - } - - /** - * Gets the bundleCerts. - * - * Indicates whether the issued certificate is bundled with intermediate certificates. - * - * @return the bundleCerts - */ - public Boolean isBundleCerts() { - return bundleCerts; - } - - /** - * Gets the ca. - * - * The name of the certificate authority configuration. - * - * @return the ca - */ - public String getCa() { - return ca; - } - - /** - * Gets the dns. + * Gets the data. * - * The name of the DNS provider configuration. + * The payload data of a key-value secret. * - * @return the dns + * @return the data */ - public String getDns() { - return dns; + public Map getData() { + return data; } /** @@ -595,20 +684,6 @@ public String getCertificateTemplate() { return certificateTemplate; } - /** - * Gets the nextRotationDate. - * - * The date that the secret is scheduled for automatic rotation. - * - * The service automatically creates a new version of the secret on its next rotation date. This field exists only for - * secrets that can be auto-rotated and an existing rotation policy. - * - * @return the nextRotationDate - */ - public Date getNextRotationDate() { - return nextRotationDate; - } - /** * Gets the revocationTimeSeconds. * @@ -654,115 +729,69 @@ public List getCaChain() { } /** - * Gets the data. - * - * The payload data of a key-value secret. - * - * @return the data - */ - public Map getData() { - return data; - } - - /** - * Gets the ttl. - * - * The time-to-live (TTL) or lease duration to assign to credentials that are generated. - * - * For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be - * either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` - * or `24h`. - * - * The minimum duration is 1 minute. The maximum is 90 days. - * - * @return the ttl - */ - public String getTtl() { - return ttl; - } - - /** - * Gets the accessGroups. - * - * Access Groups that you can use for an `iam_credentials` secret. + * Gets the issuanceInfo. * - * Up to 10 Access Groups can be used for each secret. + * Issuance information that is associated with your certificate. * - * @return the accessGroups + * @return the issuanceInfo */ - public List getAccessGroups() { - return accessGroups; + public CertificateIssuanceInfo getIssuanceInfo() { + return issuanceInfo; } /** - * Gets the apiKeyId. + * Gets the bundleCerts. * - * The ID of the API key that is generated for this secret. + * Indicates whether the issued certificate is bundled with intermediate certificates. * - * @return the apiKeyId + * @return the bundleCerts */ - public String getApiKeyId() { - return apiKeyId; + public Boolean isBundleCerts() { + return bundleCerts; } /** - * Gets the serviceId. - * - * The service ID under which the API key (see the `api_key` field) is created. - * - * If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation, and adds it - * to the access groups that you assign. + * Gets the ca. * - * Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or - * retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not - * include the `access_groups` parameter. + * The name of the certificate authority configuration. * - * @return the serviceId + * @return the ca */ - public String getServiceId() { - return serviceId; + public String getCa() { + return ca; } /** - * Gets the serviceIdIsStatic. - * - * Indicates whether an `iam_credentials` secret was created with a static service ID. + * Gets the dns. * - * If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to - * `false`, the service ID was generated by Secrets Manager. + * The name of the DNS provider configuration. * - * @return the serviceIdIsStatic + * @return the dns */ - public Boolean isServiceIdIsStatic() { - return serviceIdIsStatic; + public String getDns() { + return dns; } /** - * Gets the reuseApiKey. + * Gets the sourceService. * - * (IAM credentials) This parameter indicates whether to reuse the service ID and API key for future read operations. + * The properties that are required to create the service credentials for the specified source service instance. * - * If it is set to `true`, the service reuses the current credentials. If it is set to `false`, a new service ID and - * API key are generated each time that the secret is read or accessed. - * - * @return the reuseApiKey + * @return the sourceService */ - public Boolean isReuseApiKey() { - return reuseApiKey; + public ServiceCredentialsSecretSourceService getSourceService() { + return sourceService; } /** - * Gets the apiKey. + * Gets the credentials. * - * The API key that is generated for this secret. - * - * After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically. If you - * want to continue to use the same API key for future read operations, see the `reuse_api_key` field. + * The properties of the service credentials secret payload. * - * @return the apiKey + * @return the credentials */ - public String getApiKey() { - return apiKey; + public ServiceCredentialsSecretCredentials getCredentials() { + return credentials; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretLocks.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretLocks.java index dde362d4..a94935b8 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretLocks.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretLocks.java @@ -23,24 +23,26 @@ public class SecretLocks extends GenericModel { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } @SerializedName("secret_id") @@ -80,8 +82,8 @@ public String getSecretGroupId() { /** * Gets the secretType. * - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. * * @return the secretType */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretMetadata.java index 318f2823..91b21fde 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretMetadata.java @@ -24,12 +24,13 @@ * * Classes which extend this class: * - ArbitrarySecretMetadata + * - IAMCredentialsSecretMetadata * - ImportedCertificateMetadata - * - PublicCertificateMetadata * - KVSecretMetadata - * - UsernamePasswordSecretMetadata - * - IAMCredentialsSecretMetadata * - PrivateCertificateMetadata + * - PublicCertificateMetadata + * - ServiceCredentialsSecretMetadata + * - UsernamePasswordSecretMetadata */ public class SecretMetadata extends GenericModel { @SuppressWarnings("unused") @@ -37,34 +38,37 @@ public class SecretMetadata extends GenericModel { protected static java.util.Map> discriminatorMapping; static { discriminatorMapping = new java.util.HashMap<>(); + discriminatorMapping.put("arbitrary", ArbitrarySecretMetadata.class); + discriminatorMapping.put("iam_credentials", IAMCredentialsSecretMetadata.class); discriminatorMapping.put("imported_cert", ImportedCertificateMetadata.class); - discriminatorMapping.put("public_cert", PublicCertificateMetadata.class); discriminatorMapping.put("kv", KVSecretMetadata.class); - discriminatorMapping.put("username_password", UsernamePasswordSecretMetadata.class); - discriminatorMapping.put("iam_credentials", IAMCredentialsSecretMetadata.class); - discriminatorMapping.put("arbitrary", ArbitrarySecretMetadata.class); discriminatorMapping.put("private_cert", PrivateCertificateMetadata.class); + discriminatorMapping.put("public_cert", PublicCertificateMetadata.class); + discriminatorMapping.put("service_credentials", ServiceCredentialsSecretMetadata.class); + discriminatorMapping.put("username_password", UsernamePasswordSecretMetadata.class); } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** @@ -110,6 +114,20 @@ public interface StateDescription { protected Long versionsTotal; @SerializedName("expiration_date") protected Date expirationDate; + protected String ttl; + @SerializedName("access_groups") + protected List accessGroups; + @SerializedName("api_key_id") + protected String apiKeyId; + @SerializedName("service_id") + protected String serviceId; + @SerializedName("service_id_is_static") + protected Boolean serviceIdIsStatic; + @SerializedName("reuse_api_key") + protected Boolean reuseApiKey; + protected RotationPolicy rotation; + @SerializedName("next_rotation_date") + protected Date nextRotationDate; @SerializedName("signing_algorithm") protected String signingAlgorithm; @SerializedName("alt_names") @@ -126,26 +144,6 @@ public interface StateDescription { @SerializedName("serial_number") protected String serialNumber; protected CertificateValidity validity; - @SerializedName("issuance_info") - protected CertificateIssuanceInfo issuanceInfo; - protected RotationPolicy rotation; - @SerializedName("bundle_certs") - protected Boolean bundleCerts; - protected String ca; - protected String dns; - @SerializedName("next_rotation_date") - protected Date nextRotationDate; - protected String ttl; - @SerializedName("access_groups") - protected List accessGroups; - @SerializedName("api_key_id") - protected String apiKeyId; - @SerializedName("service_id") - protected String serviceId; - @SerializedName("service_id_is_static") - protected Boolean serviceIdIsStatic; - @SerializedName("reuse_api_key") - protected Boolean reuseApiKey; @SerializedName("certificate_authority") protected String certificateAuthority; @SerializedName("certificate_template") @@ -154,6 +152,14 @@ public interface StateDescription { protected Long revocationTimeSeconds; @SerializedName("revocation_time_rfc3339") protected Date revocationTimeRfc3339; + @SerializedName("issuance_info") + protected CertificateIssuanceInfo issuanceInfo; + @SerializedName("bundle_certs") + protected Boolean bundleCerts; + protected String ca; + protected String dns; + @SerializedName("source_service") + protected ServiceCredentialsSecretSourceService sourceService; protected SecretMetadata() { } @@ -289,8 +295,8 @@ public String getSecretGroupId() { /** * Gets the secretType. * - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. * * @return the secretType */ @@ -356,116 +362,89 @@ public Date getExpirationDate() { } /** - * Gets the signingAlgorithm. + * Gets the ttl. * - * The identifier for the cryptographic algorithm that is used by the issuing certificate authority to sign a - * certificate. + * The time-to-live (TTL) or lease duration to assign to credentials that are generated. Supported secret types: + * iam_credentials, service_credentials. The TTL defines how long generated credentials remain valid. The value can be + * either an integer that specifies the number of seconds, or the string representation of a duration, such as + * `1440m` or `24h`. For the iam_credentials secret type, the TTL field is mandatory. The minimum duration is 1 + * minute. The maximum is 90 days. For the service_credentials secret type, the TTL field is optional. If it is set + * the minimum duration is 1 day. The maximum is 90 days. By default, the TTL is set to 0. * - * @return the signingAlgorithm + * @return the ttl */ - public String getSigningAlgorithm() { - return signingAlgorithm; + public String getTtl() { + return ttl; } /** - * Gets the altNames. - * - * With the Subject Alternative Name field, you can specify additional hostnames to be protected by a single SSL - * certificate. + * Gets the accessGroups. * - * @return the altNames - */ - public List getAltNames() { - return altNames; - } - - /** - * Gets the commonName. + * Access Groups that you can use for an `iam_credentials` secret. * - * The Common Name (CN) represents the server name protected by the SSL certificate. + * Up to 10 Access Groups can be used for each secret. * - * @return the commonName + * @return the accessGroups */ - public String getCommonName() { - return commonName; + public List getAccessGroups() { + return accessGroups; } /** - * Gets the intermediateIncluded. + * Gets the apiKeyId. * - * Indicates whether the certificate was imported with an associated intermediate certificate. + * The ID of the API key that is generated for this secret. * - * @return the intermediateIncluded + * @return the apiKeyId */ - public Boolean isIntermediateIncluded() { - return intermediateIncluded; + public String getApiKeyId() { + return apiKeyId; } /** - * Gets the issuer. + * Gets the serviceId. * - * The distinguished name that identifies the entity that signed and issued the certificate. + * The service ID under which the API key (see the `api_key` field) is created. * - * @return the issuer - */ - public String getIssuer() { - return issuer; - } - - /** - * Gets the keyAlgorithm. + * If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation, and adds it + * to the access groups that you assign. * - * The identifier for the cryptographic algorithm used to generate the public key that is associated with the - * certificate. + * Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or + * retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not + * include the `access_groups` parameter. * - * @return the keyAlgorithm + * @return the serviceId */ - public String getKeyAlgorithm() { - return keyAlgorithm; + public String getServiceId() { + return serviceId; } /** - * Gets the privateKeyIncluded. - * - * Indicates whether the certificate was imported with an associated private key. + * Gets the serviceIdIsStatic. * - * @return the privateKeyIncluded - */ - public Boolean isPrivateKeyIncluded() { - return privateKeyIncluded; - } - - /** - * Gets the serialNumber. + * Indicates whether an `iam_credentials` secret was created with a static service ID. * - * The unique serial number that was assigned to a certificate by the issuing certificate authority. + * If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to + * `false`, the service ID was generated by Secrets Manager. * - * @return the serialNumber + * @return the serviceIdIsStatic */ - public String getSerialNumber() { - return serialNumber; + public Boolean isServiceIdIsStatic() { + return serviceIdIsStatic; } /** - * Gets the validity. - * - * The date and time that the certificate validity period begins and ends. + * Gets the reuseApiKey. * - * @return the validity - */ - public CertificateValidity getValidity() { - return validity; - } - - /** - * Gets the issuanceInfo. + * (IAM credentials) This parameter indicates whether to reuse the service ID and API key for future read operations. * - * Issuance information that is associated with your certificate. + * If it is set to `true`, the service reuses the current credentials. If it is set to `false`, a new service ID and + * API key are generated each time that the secret is read or accessed. * - * @return the issuanceInfo + * @return the reuseApiKey */ - public CertificateIssuanceInfo getIssuanceInfo() { - return issuanceInfo; + public Boolean isReuseApiKey() { + return reuseApiKey; } /** @@ -481,137 +460,119 @@ public RotationPolicy getRotation() { } /** - * Gets the bundleCerts. + * Gets the nextRotationDate. * - * Indicates whether the issued certificate is bundled with intermediate certificates. + * The date that the secret is scheduled for automatic rotation. * - * @return the bundleCerts + * The service automatically creates a new version of the secret on its next rotation date. This field exists only for + * secrets that can be auto-rotated and an existing rotation policy. + * + * @return the nextRotationDate */ - public Boolean isBundleCerts() { - return bundleCerts; + public Date getNextRotationDate() { + return nextRotationDate; } /** - * Gets the ca. + * Gets the signingAlgorithm. * - * The name of the certificate authority configuration. + * The identifier for the cryptographic algorithm that is used by the issuing certificate authority to sign a + * certificate. * - * @return the ca + * @return the signingAlgorithm */ - public String getCa() { - return ca; + public String getSigningAlgorithm() { + return signingAlgorithm; } /** - * Gets the dns. + * Gets the altNames. * - * The name of the DNS provider configuration. + * With the Subject Alternative Name field, you can specify additional hostnames to be protected by a single SSL + * certificate. * - * @return the dns + * @return the altNames */ - public String getDns() { - return dns; + public List getAltNames() { + return altNames; } /** - * Gets the nextRotationDate. - * - * The date that the secret is scheduled for automatic rotation. + * Gets the commonName. * - * The service automatically creates a new version of the secret on its next rotation date. This field exists only for - * secrets that can be auto-rotated and an existing rotation policy. + * The Common Name (CN) represents the server name protected by the SSL certificate. * - * @return the nextRotationDate + * @return the commonName */ - public Date getNextRotationDate() { - return nextRotationDate; + public String getCommonName() { + return commonName; } /** - * Gets the ttl. - * - * The time-to-live (TTL) or lease duration to assign to credentials that are generated. - * - * For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be - * either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` - * or `24h`. + * Gets the intermediateIncluded. * - * The minimum duration is 1 minute. The maximum is 90 days. + * Indicates whether the certificate was imported with an associated intermediate certificate. * - * @return the ttl + * @return the intermediateIncluded */ - public String getTtl() { - return ttl; + public Boolean isIntermediateIncluded() { + return intermediateIncluded; } /** - * Gets the accessGroups. - * - * Access Groups that you can use for an `iam_credentials` secret. + * Gets the issuer. * - * Up to 10 Access Groups can be used for each secret. + * The distinguished name that identifies the entity that signed and issued the certificate. * - * @return the accessGroups + * @return the issuer */ - public List getAccessGroups() { - return accessGroups; + public String getIssuer() { + return issuer; } /** - * Gets the apiKeyId. + * Gets the keyAlgorithm. * - * The ID of the API key that is generated for this secret. + * The identifier for the cryptographic algorithm used to generate the public key that is associated with the + * certificate. * - * @return the apiKeyId + * @return the keyAlgorithm */ - public String getApiKeyId() { - return apiKeyId; + public String getKeyAlgorithm() { + return keyAlgorithm; } /** - * Gets the serviceId. - * - * The service ID under which the API key (see the `api_key` field) is created. - * - * If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation, and adds it - * to the access groups that you assign. + * Gets the privateKeyIncluded. * - * Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or - * retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not - * include the `access_groups` parameter. + * Indicates whether the certificate was imported with an associated private key. * - * @return the serviceId + * @return the privateKeyIncluded */ - public String getServiceId() { - return serviceId; + public Boolean isPrivateKeyIncluded() { + return privateKeyIncluded; } /** - * Gets the serviceIdIsStatic. - * - * Indicates whether an `iam_credentials` secret was created with a static service ID. + * Gets the serialNumber. * - * If it is set to `true`, the service ID for the secret was provided by the user at secret creation. If it is set to - * `false`, the service ID was generated by Secrets Manager. + * The unique serial number that was assigned to a certificate by the issuing certificate authority. * - * @return the serviceIdIsStatic + * @return the serialNumber */ - public Boolean isServiceIdIsStatic() { - return serviceIdIsStatic; + public String getSerialNumber() { + return serialNumber; } /** - * Gets the reuseApiKey. - * - * (IAM credentials) This parameter indicates whether to reuse the service ID and API key for future read operations. + * Gets the validity. * - * If it is set to `true`, the service reuses the current credentials. If it is set to `false`, a new service ID and - * API key are generated each time that the secret is read or accessed. + * The date and time that the certificate validity period begins and ends. * - * @return the reuseApiKey + * @return the validity */ - public Boolean isReuseApiKey() { - return reuseApiKey; + public CertificateValidity getValidity() { + return validity; } /** @@ -657,5 +618,60 @@ public Long getRevocationTimeSeconds() { public Date getRevocationTimeRfc3339() { return revocationTimeRfc3339; } + + /** + * Gets the issuanceInfo. + * + * Issuance information that is associated with your certificate. + * + * @return the issuanceInfo + */ + public CertificateIssuanceInfo getIssuanceInfo() { + return issuanceInfo; + } + + /** + * Gets the bundleCerts. + * + * Indicates whether the issued certificate is bundled with intermediate certificates. + * + * @return the bundleCerts + */ + public Boolean isBundleCerts() { + return bundleCerts; + } + + /** + * Gets the ca. + * + * The name of the certificate authority configuration. + * + * @return the ca + */ + public String getCa() { + return ca; + } + + /** + * Gets the dns. + * + * The name of the DNS provider configuration. + * + * @return the dns + */ + public String getDns() { + return dns; + } + + /** + * Gets the sourceService. + * + * The properties that are required to create the service credentials for the specified source service instance. + * + * @return the sourceService + */ + public ServiceCredentialsSecretSourceService getSourceService() { + return sourceService; + } } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretMetadataPatch.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretMetadataPatch.java index 2ab0a022..61526340 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretMetadataPatch.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretMetadataPatch.java @@ -30,6 +30,7 @@ * - KVSecretMetadataPatch * - PrivateCertificateMetadataPatch * - PublicCertificateMetadataPatch + * - ServiceCredentialsSecretMetadataPatch * - UsernamePasswordSecretMetadataPatch */ public class SecretMetadataPatch extends GenericModel { @@ -114,13 +115,12 @@ public Date expirationDate() { /** * Gets the ttl. * - * The time-to-live (TTL) or lease duration to assign to credentials that are generated. - * - * For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be - * either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` - * or `24h`. - * - * The minimum duration is 1 minute. The maximum is 90 days. + * The time-to-live (TTL) or lease duration to assign to credentials that are generated. Supported secret types: + * iam_credentials, service_credentials. The TTL defines how long generated credentials remain valid. The value can be + * either an integer that specifies the number of seconds, or the string representation of a duration, such as + * `1440m` or `24h`. For the iam_credentials secret type, the TTL field is mandatory. The minimum duration is 1 + * minute. The maximum is 90 days. For the service_credentials secret type, the TTL field is optional. If it is set + * the minimum duration is 1 day. The maximum is 90 days. By default, the TTL is set to 0. * * @return the ttl */ diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretPrototype.java index 73efb766..d3cbb555 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretPrototype.java @@ -29,6 +29,7 @@ * - KVSecretPrototype * - PrivateCertificatePrototype * - PublicCertificatePrototype + * - ServiceCredentialsSecretPrototype * - UsernamePasswordSecretPrototype */ public class SecretPrototype extends GenericModel { @@ -43,28 +44,31 @@ public class SecretPrototype extends GenericModel { discriminatorMapping.put("kv", KVSecretPrototype.class); discriminatorMapping.put("private_cert", PrivateCertificatePrototype.class); discriminatorMapping.put("public_cert", PublicCertificatePrototype.class); + discriminatorMapping.put("service_credentials", ServiceCredentialsSecretPrototype.class); discriminatorMapping.put("username_password", UsernamePasswordSecretPrototype.class); } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** @@ -138,6 +142,8 @@ public interface PrivateKeyFormat { protected String dns; @SerializedName("bundle_certs") protected Boolean bundleCerts; + @SerializedName("source_service") + protected ServiceCredentialsSecretSourceService sourceService; protected String username; protected String password; @@ -222,8 +228,8 @@ public String secretGroupId() { /** * Gets the secretType. * - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. * * @return the secretType */ @@ -256,13 +262,12 @@ public Map versionCustomMetadata() { /** * Gets the ttl. * - * The time-to-live (TTL) or lease duration to assign to credentials that are generated. - * - * For `iam_credentials` secrets, the TTL defines for how long each generated API key remains valid. The value can be - * either an integer that specifies the number of seconds, or the string representation of a duration, such as `120m` - * or `24h`. - * - * The minimum duration is 1 minute. The maximum is 90 days. + * The time-to-live (TTL) or lease duration to assign to credentials that are generated. Supported secret types: + * iam_credentials, service_credentials. The TTL defines how long generated credentials remain valid. The value can be + * either an integer that specifies the number of seconds, or the string representation of a duration, such as + * `1440m` or `24h`. For the iam_credentials secret type, the TTL field is mandatory. The minimum duration is 1 + * minute. The maximum is 90 days. For the service_credentials secret type, the TTL field is optional. If it is set + * the minimum duration is 1 day. The maximum is 90 days. By default, the TTL is set to 0. * * @return the ttl */ @@ -541,6 +546,17 @@ public Boolean bundleCerts() { return bundleCerts; } + /** + * Gets the sourceService. + * + * The properties that are required to create the service credentials for the specified source service instance. + * + * @return the sourceService + */ + public ServiceCredentialsSecretSourceService sourceService() { + return sourceService; + } + /** * Gets the username. * diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersion.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersion.java index 5994c2a2..52557352 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersion.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersion.java @@ -24,12 +24,13 @@ * * Classes which extend this class: * - ArbitrarySecretVersion + * - IAMCredentialsSecretVersion * - ImportedCertificateVersion - * - PublicCertificateVersion * - KVSecretVersion - * - UsernamePasswordSecretVersion - * - IAMCredentialsSecretVersion * - PrivateCertificateVersion + * - PublicCertificateVersion + * - ServiceCredentialsSecretVersion + * - UsernamePasswordSecretVersion */ public class SecretVersion extends GenericModel { @SuppressWarnings("unused") @@ -38,33 +39,36 @@ public class SecretVersion extends GenericModel { static { discriminatorMapping = new java.util.HashMap<>(); discriminatorMapping.put("arbitrary", ArbitrarySecretVersion.class); + discriminatorMapping.put("iam_credentials", IAMCredentialsSecretVersion.class); discriminatorMapping.put("imported_cert", ImportedCertificateVersion.class); - discriminatorMapping.put("public_cert", PublicCertificateVersion.class); discriminatorMapping.put("kv", KVSecretVersion.class); - discriminatorMapping.put("username_password", UsernamePasswordSecretVersion.class); - discriminatorMapping.put("iam_credentials", IAMCredentialsSecretVersion.class); discriminatorMapping.put("private_cert", PrivateCertificateVersion.class); + discriminatorMapping.put("public_cert", PublicCertificateVersion.class); + discriminatorMapping.put("service_credentials", ServiceCredentialsSecretVersion.class); + discriminatorMapping.put("username_password", UsernamePasswordSecretVersion.class); } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** @@ -102,6 +106,12 @@ public interface Alias { @SerializedName("expiration_date") protected Date expirationDate; protected String payload; + @SerializedName("api_key_id") + protected String apiKeyId; + @SerializedName("service_id") + protected String serviceId; + @SerializedName("api_key") + protected String apiKey; @SerializedName("serial_number") protected String serialNumber; protected CertificateValidity validity; @@ -110,18 +120,15 @@ public interface Alias { @SerializedName("private_key") protected String privateKey; protected Map data; - protected String username; - protected String password; - @SerializedName("api_key_id") - protected String apiKeyId; - @SerializedName("service_id") - protected String serviceId; - @SerializedName("api_key") - protected String apiKey; @SerializedName("issuing_ca") protected String issuingCa; @SerializedName("ca_chain") protected List caChain; + @SerializedName("resource_key") + protected ServiceCredentialsResourceKey resourceKey; + protected ServiceCredentialsSecretCredentials credentials; + protected String username; + protected String password; protected SecretVersion() { } @@ -195,8 +202,8 @@ public String getSecretName() { /** * Gets the secretType. * - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. * * @return the secretType */ @@ -283,6 +290,50 @@ public String getPayload() { return payload; } + /** + * Gets the apiKeyId. + * + * The ID of the API key that is generated for this secret. + * + * @return the apiKeyId + */ + public String getApiKeyId() { + return apiKeyId; + } + + /** + * Gets the serviceId. + * + * The service ID under which the API key (see the `api_key` field) is created. + * + * If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation, and adds it + * to the access groups that you assign. + * + * Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or + * retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not + * include the `access_groups` parameter. + * + * @return the serviceId + */ + public String getServiceId() { + return serviceId; + } + + /** + * Gets the apiKey. + * + * The API key that is generated for this secret. + * + * After the secret reaches the end of its lease, the API key is deleted automatically. See the `time-to-live` field + * to understand the duration of the lease. If you want to continue to use the same API key for future read + * operations, see the `reuse_api_key` field. + * + * @return the apiKey + */ + public String getApiKey() { + return apiKey; + } + /** * Gets the serialNumber. * @@ -352,90 +403,69 @@ public Map getData() { } /** - * Gets the username. + * Gets the issuingCa. * - * The username that is assigned to an `username_password` secret. + * The PEM-encoded certificate of the certificate authority that signed and issued this certificate. * - * @return the username + * @return the issuingCa */ - public String getUsername() { - return username; + public String getIssuingCa() { + return issuingCa; } /** - * Gets the password. + * Gets the caChain. * - * The password that is assigned to an `username_password` secret. + * The chain of certificate authorities that are associated with the certificate. * - * @return the password + * @return the caChain */ - public String getPassword() { - return password; + public List getCaChain() { + return caChain; } /** - * Gets the apiKeyId. + * Gets the resourceKey. * - * The ID of the API key that is generated for this secret. + * The source service resource key data of the generated service credentials. * - * @return the apiKeyId + * @return the resourceKey */ - public String getApiKeyId() { - return apiKeyId; + public ServiceCredentialsResourceKey getResourceKey() { + return resourceKey; } /** - * Gets the serviceId. + * Gets the credentials. * - * The service ID under which the API key (see the `api_key` field) is created. + * The properties of the service credentials secret payload. * - * If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation, and adds it - * to the access groups that you assign. - * - * Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or - * retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not - * include the `access_groups` parameter. - * - * @return the serviceId + * @return the credentials */ - public String getServiceId() { - return serviceId; + public ServiceCredentialsSecretCredentials getCredentials() { + return credentials; } /** - * Gets the apiKey. - * - * The API key that is generated for this secret. - * - * After the secret reaches the end of its lease (see the `ttl` field), the API key is deleted automatically. If you - * want to continue to use the same API key for future read operations, see the `reuse_api_key` field. - * - * @return the apiKey - */ - public String getApiKey() { - return apiKey; - } - - /** - * Gets the issuingCa. + * Gets the username. * - * The PEM-encoded certificate of the certificate authority that signed and issued this certificate. + * The username that is assigned to an `username_password` secret. * - * @return the issuingCa + * @return the username */ - public String getIssuingCa() { - return issuingCa; + public String getUsername() { + return username; } /** - * Gets the caChain. + * Gets the password. * - * The chain of certificate authorities that are associated with the certificate. + * The password that is assigned to an `username_password` secret. * - * @return the caChain + * @return the password */ - public List getCaChain() { - return caChain; + public String getPassword() { + return password; } } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersionMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersionMetadata.java index 79566db5..1225b653 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersionMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersionMetadata.java @@ -23,12 +23,13 @@ * * Classes which extend this class: * - ArbitrarySecretVersionMetadata - * - PublicCertificateVersionMetadata + * - IAMCredentialsSecretVersionMetadata * - ImportedCertificateVersionMetadata * - KVSecretVersionMetadata - * - UsernamePasswordSecretVersionMetadata - * - IAMCredentialsSecretVersionMetadata * - PrivateCertificateVersionMetadata + * - PublicCertificateVersionMetadata + * - ServiceCredentialsSecretVersionMetadata + * - UsernamePasswordSecretVersionMetadata */ public class SecretVersionMetadata extends GenericModel { @SuppressWarnings("unused") @@ -37,33 +38,36 @@ public class SecretVersionMetadata extends GenericModel { static { discriminatorMapping = new java.util.HashMap<>(); discriminatorMapping.put("arbitrary", ArbitrarySecretVersionMetadata.class); + discriminatorMapping.put("iam_credentials", IAMCredentialsSecretVersionMetadata.class); discriminatorMapping.put("imported_cert", ImportedCertificateVersionMetadata.class); - discriminatorMapping.put("public_cert", PublicCertificateVersionMetadata.class); discriminatorMapping.put("kv", KVSecretVersionMetadata.class); - discriminatorMapping.put("username_password", UsernamePasswordSecretVersionMetadata.class); - discriminatorMapping.put("iam_credentials", IAMCredentialsSecretVersionMetadata.class); discriminatorMapping.put("private_cert", PrivateCertificateVersionMetadata.class); + discriminatorMapping.put("public_cert", PublicCertificateVersionMetadata.class); + discriminatorMapping.put("service_credentials", ServiceCredentialsSecretVersionMetadata.class); + discriminatorMapping.put("username_password", UsernamePasswordSecretVersionMetadata.class); } /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** @@ -100,13 +104,15 @@ public interface Alias { protected String secretId; @SerializedName("expiration_date") protected Date expirationDate; - @SerializedName("serial_number") - protected String serialNumber; - protected CertificateValidity validity; @SerializedName("api_key_id") protected String apiKeyId; @SerializedName("service_id") protected String serviceId; + @SerializedName("serial_number") + protected String serialNumber; + protected CertificateValidity validity; + @SerializedName("resource_key") + protected ServiceCredentialsResourceKey resourceKey; protected SecretVersionMetadata() { } @@ -180,8 +186,8 @@ public String getSecretName() { /** * Gets the secretType. * - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. * * @return the secretType */ @@ -257,28 +263,6 @@ public Date getExpirationDate() { return expirationDate; } - /** - * Gets the serialNumber. - * - * The unique serial number that was assigned to a certificate by the issuing certificate authority. - * - * @return the serialNumber - */ - public String getSerialNumber() { - return serialNumber; - } - - /** - * Gets the validity. - * - * The date and time that the certificate validity period begins and ends. - * - * @return the validity - */ - public CertificateValidity getValidity() { - return validity; - } - /** * Gets the apiKeyId. * @@ -307,5 +291,38 @@ public String getApiKeyId() { public String getServiceId() { return serviceId; } + + /** + * Gets the serialNumber. + * + * The unique serial number that was assigned to a certificate by the issuing certificate authority. + * + * @return the serialNumber + */ + public String getSerialNumber() { + return serialNumber; + } + + /** + * Gets the validity. + * + * The date and time that the certificate validity period begins and ends. + * + * @return the validity + */ + public CertificateValidity getValidity() { + return validity; + } + + /** + * Gets the resourceKey. + * + * The source service resource key data of the generated service credentials. + * + * @return the resourceKey + */ + public ServiceCredentialsResourceKey getResourceKey() { + return resourceKey; + } } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersionPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersionPrototype.java index e98cc5c9..59be7682 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersionPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/SecretVersionPrototype.java @@ -28,6 +28,7 @@ * - KVSecretVersionPrototype * - PrivateCertificateVersionPrototype * - PublicCertificateVersionPrototype + * - ServiceCredentialsSecretVersionPrototype * - UsernamePasswordSecretVersionPrototype */ public class SecretVersionPrototype extends GenericModel { diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecret.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecret.java index e163a51f..e8a04001 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecret.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecret.java @@ -18,24 +18,26 @@ public class UsernamePasswordSecret extends Secret { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretMetadata.java index dfe6ccd0..9bf7c065 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretMetadata.java @@ -18,24 +18,26 @@ public class UsernamePasswordSecretMetadata extends SecretMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretPrototype.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretPrototype.java index 48556999..2b14837c 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretPrototype.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretPrototype.java @@ -23,24 +23,26 @@ public class UsernamePasswordSecretPrototype extends SecretPrototype { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretVersion.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretVersion.java index b87ac3ef..4228f26b 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretVersion.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretVersion.java @@ -18,24 +18,26 @@ public class UsernamePasswordSecretVersion extends SecretVersion { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretVersionMetadata.java b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretVersionMetadata.java index c592aad4..2c4ef339 100644 --- a/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretVersionMetadata.java +++ b/modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/UsernamePasswordSecretVersionMetadata.java @@ -18,24 +18,26 @@ public class UsernamePasswordSecretVersionMetadata extends SecretVersionMetadata { /** - * The secret type. Supported types are arbitrary, certificates (imported, public, and private), IAM credentials, - * key-value, and user credentials. + * The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, + * service_credentials, kv, and username_password. */ public interface SecretType { /** arbitrary. */ String ARBITRARY = "arbitrary"; - /** imported_cert. */ - String IMPORTED_CERT = "imported_cert"; - /** public_cert. */ - String PUBLIC_CERT = "public_cert"; /** iam_credentials. */ String IAM_CREDENTIALS = "iam_credentials"; + /** imported_cert. */ + String IMPORTED_CERT = "imported_cert"; /** kv. */ String KV = "kv"; - /** username_password. */ - String USERNAME_PASSWORD = "username_password"; /** private_cert. */ String PRIVATE_CERT = "private_cert"; + /** public_cert. */ + String PUBLIC_CERT = "public_cert"; + /** service_credentials. */ + String SERVICE_CREDENTIALS = "service_credentials"; + /** username_password. */ + String USERNAME_PASSWORD = "username_password"; } /** diff --git a/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerIT.java b/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerIT.java index 974764c5..e4806876 100644 --- a/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerIT.java +++ b/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerIT.java @@ -37,6 +37,7 @@ import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ConfigurationPatch; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ConfigurationPrototype; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ConfigurationsPager; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.CosHmacKeys; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.CreateConfigurationActionOptions; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.CreateConfigurationOptions; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.CreateNotificationsRegistrationOptions; @@ -188,6 +189,23 @@ import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.SecretsLocksPager; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.SecretsLocksPaginatedCollection; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.SecretsPager; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsResourceKey; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecret; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretCredentials; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretMetadata; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretMetadataPatch; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretPrototype; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretSourceService; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretVersion; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretVersionMetadata; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretVersionPrototype; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceIam; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceIamApikey; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceIamRole; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceIamServiceid; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceInstance; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceParameters; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceRole; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.UpdateConfigurationOptions; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.UpdateSecretGroupOptions; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.UpdateSecretMetadataOptions; diff --git a/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerTest.java b/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerTest.java index df707f3a..336ba134 100644 --- a/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerTest.java +++ b/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/SecretsManagerTest.java @@ -38,6 +38,7 @@ import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ConfigurationPatch; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ConfigurationPrototype; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ConfigurationsPager; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.CosHmacKeys; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.CreateConfigurationActionOptions; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.CreateConfigurationOptions; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.CreateNotificationsRegistrationOptions; @@ -189,6 +190,23 @@ import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.SecretsLocksPager; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.SecretsLocksPaginatedCollection; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.SecretsPager; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsResourceKey; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecret; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretCredentials; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretMetadata; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretMetadataPatch; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretPrototype; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretSourceService; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretVersion; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretVersionMetadata; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSecretVersionPrototype; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceIam; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceIamApikey; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceIamRole; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceIamServiceid; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceInstance; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceParameters; +import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.ServiceCredentialsSourceServiceRole; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.UpdateConfigurationOptions; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.UpdateSecretGroupOptions; import com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.UpdateSecretMetadataOptions; diff --git a/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretMetadataPatchTest.java b/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretMetadataPatchTest.java index a893d8e6..abd1bd07 100644 --- a/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretMetadataPatchTest.java +++ b/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretMetadataPatchTest.java @@ -47,14 +47,14 @@ public void testIAMCredentialsSecretMetadataPatch() throws Throwable { .description("Extended description for this secret.") .labels(java.util.Arrays.asList("my-label")) .customMetadata(java.util.Collections.singletonMap("anyKey", "anyValue")) - .ttl("30m") + .ttl("1d") .rotation(rotationPolicyModel) .build(); assertEquals(iamCredentialsSecretMetadataPatchModel.name(), "my-secret-example"); assertEquals(iamCredentialsSecretMetadataPatchModel.description(), "Extended description for this secret."); assertEquals(iamCredentialsSecretMetadataPatchModel.labels(), java.util.Arrays.asList("my-label")); assertEquals(iamCredentialsSecretMetadataPatchModel.customMetadata(), java.util.Collections.singletonMap("anyKey", "anyValue")); - assertEquals(iamCredentialsSecretMetadataPatchModel.ttl(), "30m"); + assertEquals(iamCredentialsSecretMetadataPatchModel.ttl(), "1d"); assertEquals(iamCredentialsSecretMetadataPatchModel.rotation(), rotationPolicyModel); String json = TestUtilities.serialize(iamCredentialsSecretMetadataPatchModel); @@ -64,7 +64,7 @@ public void testIAMCredentialsSecretMetadataPatch() throws Throwable { assertEquals(iamCredentialsSecretMetadataPatchModelNew.name(), "my-secret-example"); assertEquals(iamCredentialsSecretMetadataPatchModelNew.description(), "Extended description for this secret."); assertEquals(iamCredentialsSecretMetadataPatchModelNew.customMetadata().toString(), java.util.Collections.singletonMap("anyKey", "anyValue").toString()); - assertEquals(iamCredentialsSecretMetadataPatchModelNew.ttl(), "30m"); + assertEquals(iamCredentialsSecretMetadataPatchModelNew.ttl(), "1d"); assertEquals(iamCredentialsSecretMetadataPatchModelNew.rotation().toString(), rotationPolicyModel.toString()); } @Test @@ -80,7 +80,7 @@ public void testIAMCredentialsSecretMetadataPatchAsPatch() throws Throwable { .description("Extended description for this secret.") .labels(java.util.Arrays.asList("my-label")) .customMetadata(java.util.Collections.singletonMap("anyKey", "anyValue")) - .ttl("30m") + .ttl("1d") .rotation(rotationPolicyModel) .build(); @@ -90,7 +90,7 @@ public void testIAMCredentialsSecretMetadataPatchAsPatch() throws Throwable { assertEquals(mergePatch.get("description"), "Extended description for this secret."); assertTrue(mergePatch.containsKey("labels")); assertTrue(mergePatch.containsKey("custom_metadata")); - assertEquals(mergePatch.get("ttl"), "30m"); + assertEquals(mergePatch.get("ttl"), "1d"); assertTrue(mergePatch.containsKey("rotation")); } diff --git a/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretPrototypeTest.java b/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretPrototypeTest.java index a12e63bd..d8905e44 100644 --- a/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretPrototypeTest.java +++ b/modules/secrets-manager/src/test/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v2/model/IAMCredentialsSecretPrototypeTest.java @@ -47,7 +47,7 @@ public void testIAMCredentialsSecretPrototype() throws Throwable { .description("Extended description for this secret.") .secretGroupId("default") .labels(java.util.Arrays.asList("my-label")) - .ttl("30m") + .ttl("1d") .accessGroups(java.util.Arrays.asList("AccessGroupId-45884031-54be-4dd7-86ff-112511e92699")) .serviceId("ServiceId-bb4ccc31-bd31-493a-bb58-52ec399800be") .reuseApiKey(true) @@ -60,7 +60,7 @@ public void testIAMCredentialsSecretPrototype() throws Throwable { assertEquals(iamCredentialsSecretPrototypeModel.description(), "Extended description for this secret."); assertEquals(iamCredentialsSecretPrototypeModel.secretGroupId(), "default"); assertEquals(iamCredentialsSecretPrototypeModel.labels(), java.util.Arrays.asList("my-label")); - assertEquals(iamCredentialsSecretPrototypeModel.ttl(), "30m"); + assertEquals(iamCredentialsSecretPrototypeModel.ttl(), "1d"); assertEquals(iamCredentialsSecretPrototypeModel.accessGroups(), java.util.Arrays.asList("AccessGroupId-45884031-54be-4dd7-86ff-112511e92699")); assertEquals(iamCredentialsSecretPrototypeModel.serviceId(), "ServiceId-bb4ccc31-bd31-493a-bb58-52ec399800be"); assertEquals(iamCredentialsSecretPrototypeModel.reuseApiKey(), Boolean.valueOf(true)); @@ -76,7 +76,7 @@ public void testIAMCredentialsSecretPrototype() throws Throwable { assertEquals(iamCredentialsSecretPrototypeModelNew.name(), "my-secret-example"); assertEquals(iamCredentialsSecretPrototypeModelNew.description(), "Extended description for this secret."); assertEquals(iamCredentialsSecretPrototypeModelNew.secretGroupId(), "default"); - assertEquals(iamCredentialsSecretPrototypeModelNew.ttl(), "30m"); + assertEquals(iamCredentialsSecretPrototypeModelNew.ttl(), "1d"); assertEquals(iamCredentialsSecretPrototypeModelNew.serviceId(), "ServiceId-bb4ccc31-bd31-493a-bb58-52ec399800be"); assertEquals(iamCredentialsSecretPrototypeModelNew.reuseApiKey(), Boolean.valueOf(true)); assertEquals(iamCredentialsSecretPrototypeModelNew.rotation().toString(), rotationPolicyModel.toString());