diff --git a/bmc-accessgovernancecp/src/main/resources/com/oracle/bmc/accessgovernancecp/client.properties b/bmc-accessgovernancecp/src/main/resources/com/oracle/bmc/accessgovernancecp/client.properties index a2b7b97cc6f..1c3308869cd 100644 --- a/bmc-accessgovernancecp/src/main/resources/com/oracle/bmc/accessgovernancecp/client.properties +++ b/bmc-accessgovernancecp/src/main/resources/com/oracle/bmc/accessgovernancecp/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220518") \ No newline at end of file diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 7b03e3f1785..5345296bd59 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -35,6 +35,7 @@ run + com.google.protobuf:protoc:3.21.5 ${project.basedir}/src/main/protobuf diff --git a/bmc-adm/src/main/resources/com/oracle/bmc/adm/client.properties b/bmc-adm/src/main/resources/com/oracle/bmc/adm/client.properties index a7e6b460bf4..ab37a53ecd8 100644 --- a/bmc-adm/src/main/resources/com/oracle/bmc/adm/client.properties +++ b/bmc-adm/src/main/resources/com/oracle/bmc/adm/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220421") \ No newline at end of file diff --git a/bmc-aidataplatform/src/main/resources/com/oracle/bmc/aidataplatform/client.properties b/bmc-aidataplatform/src/main/resources/com/oracle/bmc/aidataplatform/client.properties index 9b45431e7b4..88b3fc566cc 100644 --- a/bmc-aidataplatform/src/main/resources/com/oracle/bmc/aidataplatform/client.properties +++ b/bmc-aidataplatform/src/main/resources/com/oracle/bmc/aidataplatform/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240831") \ No newline at end of file diff --git a/bmc-aidocument/src/main/resources/com/oracle/bmc/aidocument/client.properties b/bmc-aidocument/src/main/resources/com/oracle/bmc/aidocument/client.properties index ffd087ea129..f1953e2efdd 100644 --- a/bmc-aidocument/src/main/resources/com/oracle/bmc/aidocument/client.properties +++ b/bmc-aidocument/src/main/resources/com/oracle/bmc/aidocument/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") \ No newline at end of file diff --git a/bmc-ailanguage/src/main/resources/com/oracle/bmc/ailanguage/client.properties b/bmc-ailanguage/src/main/resources/com/oracle/bmc/ailanguage/client.properties index fa6a6e2f837..33f60ec6a64 100644 --- a/bmc-ailanguage/src/main/resources/com/oracle/bmc/ailanguage/client.properties +++ b/bmc-ailanguage/src/main/resources/com/oracle/bmc/ailanguage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001") \ No newline at end of file diff --git a/bmc-aispeech/src/main/resources/com/oracle/bmc/aispeech/client.properties b/bmc-aispeech/src/main/resources/com/oracle/bmc/aispeech/client.properties index fe1d1766a80..f8d64d5017f 100644 --- a/bmc-aispeech/src/main/resources/com/oracle/bmc/aispeech/client.properties +++ b/bmc-aispeech/src/main/resources/com/oracle/bmc/aispeech/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220101") \ No newline at end of file diff --git a/bmc-aivision/src/main/resources/com/oracle/bmc/aivision/client.properties b/bmc-aivision/src/main/resources/com/oracle/bmc/aivision/client.properties index 82a3a0dc005..22b424413b8 100644 --- a/bmc-aivision/src/main/resources/com/oracle/bmc/aivision/client.properties +++ b/bmc-aivision/src/main/resources/com/oracle/bmc/aivision/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") \ No newline at end of file diff --git a/bmc-analytics/src/main/resources/com/oracle/bmc/analytics/client.properties b/bmc-analytics/src/main/resources/com/oracle/bmc/analytics/client.properties index b152fb43c8b..184d86ff1b9 100644 --- a/bmc-analytics/src/main/resources/com/oracle/bmc/analytics/client.properties +++ b/bmc-analytics/src/main/resources/com/oracle/bmc/analytics/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") \ No newline at end of file diff --git a/bmc-announcementsservice/src/main/resources/com/oracle/bmc/announcementsservice/client.properties b/bmc-announcementsservice/src/main/resources/com/oracle/bmc/announcementsservice/client.properties index 0fa1c728a5f..7c18145b116 100644 --- a/bmc-announcementsservice/src/main/resources/com/oracle/bmc/announcementsservice/client.properties +++ b/bmc-announcementsservice/src/main/resources/com/oracle/bmc/announcementsservice/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") \ No newline at end of file diff --git a/bmc-apiaccesscontrol/src/main/resources/com/oracle/bmc/apiaccesscontrol/client.properties b/bmc-apiaccesscontrol/src/main/resources/com/oracle/bmc/apiaccesscontrol/client.properties index 56c4ecd6313..bbae243ca85 100644 --- a/bmc-apiaccesscontrol/src/main/resources/com/oracle/bmc/apiaccesscontrol/client.properties +++ b/bmc-apiaccesscontrol/src/main/resources/com/oracle/bmc/apiaccesscontrol/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241130") \ No newline at end of file diff --git a/bmc-apigateway/src/main/resources/com/oracle/bmc/apigateway/client.properties b/bmc-apigateway/src/main/resources/com/oracle/bmc/apigateway/client.properties index e264c893ece..480985dbe1f 100644 --- a/bmc-apigateway/src/main/resources/com/oracle/bmc/apigateway/client.properties +++ b/bmc-apigateway/src/main/resources/com/oracle/bmc/apigateway/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190501") \ No newline at end of file diff --git a/bmc-apiplatform/src/main/resources/com/oracle/bmc/apiplatform/client.properties b/bmc-apiplatform/src/main/resources/com/oracle/bmc/apiplatform/client.properties index bcee046440d..aa76221dc9c 100644 --- a/bmc-apiplatform/src/main/resources/com/oracle/bmc/apiplatform/client.properties +++ b/bmc-apiplatform/src/main/resources/com/oracle/bmc/apiplatform/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240829") \ No newline at end of file diff --git a/bmc-apmconfig/src/main/resources/com/oracle/bmc/apmconfig/client.properties b/bmc-apmconfig/src/main/resources/com/oracle/bmc/apmconfig/client.properties index b3e37348cd0..d83f97dca9e 100644 --- a/bmc-apmconfig/src/main/resources/com/oracle/bmc/apmconfig/client.properties +++ b/bmc-apmconfig/src/main/resources/com/oracle/bmc/apmconfig/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") \ No newline at end of file diff --git a/bmc-apmcontrolplane/src/main/resources/com/oracle/bmc/apmcontrolplane/client.properties b/bmc-apmcontrolplane/src/main/resources/com/oracle/bmc/apmcontrolplane/client.properties index d08316a30f3..ede911e979d 100644 --- a/bmc-apmcontrolplane/src/main/resources/com/oracle/bmc/apmcontrolplane/client.properties +++ b/bmc-apmcontrolplane/src/main/resources/com/oracle/bmc/apmcontrolplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") \ No newline at end of file diff --git a/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/PasswordInText.java b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/PasswordInText.java index 17e697b9746..818b451a205 100644 --- a/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/PasswordInText.java +++ b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/PasswordInText.java @@ -28,7 +28,7 @@ public final class PasswordInText extends Password { public static class Builder { /** Password. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Password. @@ -36,12 +36,18 @@ public static class Builder { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -74,19 +80,40 @@ public Builder toBuilder() { @Deprecated public PasswordInText(String password) { super(); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public PasswordInText( + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password) { + super(); this.password = password; } /** Password. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * Password. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * Password. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-apmsynthetics/src/main/resources/com/oracle/bmc/apmsynthetics/client.properties b/bmc-apmsynthetics/src/main/resources/com/oracle/bmc/apmsynthetics/client.properties index d08316a30f3..ede911e979d 100644 --- a/bmc-apmsynthetics/src/main/resources/com/oracle/bmc/apmsynthetics/client.properties +++ b/bmc-apmsynthetics/src/main/resources/com/oracle/bmc/apmsynthetics/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") \ No newline at end of file diff --git a/bmc-apmtraces/src/main/resources/com/oracle/bmc/apmtraces/client.properties b/bmc-apmtraces/src/main/resources/com/oracle/bmc/apmtraces/client.properties index d08316a30f3..ede911e979d 100644 --- a/bmc-apmtraces/src/main/resources/com/oracle/bmc/apmtraces/client.properties +++ b/bmc-apmtraces/src/main/resources/com/oracle/bmc/apmtraces/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") \ No newline at end of file diff --git a/bmc-appmgmtcontrol/src/main/resources/com/oracle/bmc/appmgmtcontrol/client.properties b/bmc-appmgmtcontrol/src/main/resources/com/oracle/bmc/appmgmtcontrol/client.properties index c8f200afda2..828793d638b 100644 --- a/bmc-appmgmtcontrol/src/main/resources/com/oracle/bmc/appmgmtcontrol/client.properties +++ b/bmc-appmgmtcontrol/src/main/resources/com/oracle/bmc/appmgmtcontrol/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210330") \ No newline at end of file diff --git a/bmc-artifacts/src/main/resources/com/oracle/bmc/artifacts/client.properties b/bmc-artifacts/src/main/resources/com/oracle/bmc/artifacts/client.properties index 57fa7f4b072..80d9875bfaf 100644 --- a/bmc-artifacts/src/main/resources/com/oracle/bmc/artifacts/client.properties +++ b/bmc-artifacts/src/main/resources/com/oracle/bmc/artifacts/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-audit/src/main/resources/com/oracle/bmc/audit/client.properties b/bmc-audit/src/main/resources/com/oracle/bmc/audit/client.properties index cb48a79abfc..8e0089cae22 100644 --- a/bmc-audit/src/main/resources/com/oracle/bmc/audit/client.properties +++ b/bmc-audit/src/main/resources/com/oracle/bmc/audit/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190901") \ No newline at end of file diff --git a/bmc-autoscaling/src/main/resources/com/oracle/bmc/autoscaling/client.properties b/bmc-autoscaling/src/main/resources/com/oracle/bmc/autoscaling/client.properties index 2e8976d0c65..ff6dc40ddc0 100644 --- a/bmc-autoscaling/src/main/resources/com/oracle/bmc/autoscaling/client.properties +++ b/bmc-autoscaling/src/main/resources/com/oracle/bmc/autoscaling/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181001") \ No newline at end of file diff --git a/bmc-bastion/src/main/resources/com/oracle/bmc/bastion/client.properties b/bmc-bastion/src/main/resources/com/oracle/bmc/bastion/client.properties index 7aa65eb7911..a8d6c501cc1 100644 --- a/bmc-bastion/src/main/resources/com/oracle/bmc/bastion/client.properties +++ b/bmc-bastion/src/main/resources/com/oracle/bmc/bastion/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210331") \ No newline at end of file diff --git a/bmc-batch/src/main/resources/com/oracle/bmc/batch/client.properties b/bmc-batch/src/main/resources/com/oracle/bmc/batch/client.properties index 4b014c64bd6..d6883da9696 100644 --- a/bmc-batch/src/main/resources/com/oracle/bmc/batch/client.properties +++ b/bmc-batch/src/main/resources/com/oracle/bmc/batch/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251031") \ No newline at end of file diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateBdsMetastoreConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateBdsMetastoreConfigurationDetails.java index 1d376e36213..c5105ee69a5 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateBdsMetastoreConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateBdsMetastoreConfigurationDetails.java @@ -23,10 +23,22 @@ public final class ActivateBdsMetastoreConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"bdsApiKeyPassphrase", "clusterAdminPassword", "secretId"}) public ActivateBdsMetastoreConfigurationDetails( String bdsApiKeyPassphrase, String clusterAdminPassword, String secretId) { super(); + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"bdsApiKeyPassphrase", "clusterAdminPassword", "secretId"}) + public ActivateBdsMetastoreConfigurationDetails( + char[] bdsApiKeyPassphrase, char[] clusterAdminPassword, String secretId) { + super(); this.bdsApiKeyPassphrase = bdsApiKeyPassphrase; this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -38,7 +50,7 @@ public static class Builder { * Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. */ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private String bdsApiKeyPassphrase; + private char[] bdsApiKeyPassphrase; /** * Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. @@ -46,14 +58,21 @@ public static class Builder { * @param bdsApiKeyPassphrase the value to set * @return this builder */ - public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + public Builder bdsApiKeyPassphrase(char[] bdsApiKeyPassphrase) { this.bdsApiKeyPassphrase = bdsApiKeyPassphrase; this.__explicitlySet__.add("bdsApiKeyPassphrase"); return this; } + + public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("bdsApiKeyPassphrase"); + return this; + } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -61,11 +80,18 @@ public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -121,27 +147,53 @@ public Builder toBuilder() { /** Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. */ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private final String bdsApiKeyPassphrase; + private final char[] bdsApiKeyPassphrase; /** - * Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. + * Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. * * @return the value + * @deprecated Use getBdsApiKeyPassphrase__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getBdsApiKeyPassphrase() { + return bdsApiKeyPassphrase != null ? new String(bdsApiKeyPassphrase) : null; + } + + /** + * Base-64 encoded passphrase of the BDS Api Key. Set only if metastore's type is EXTERNAL. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") + public char[] getBdsApiKeyPassphrase__AsCharArray() { return bdsApiKeyPassphrase; } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.java index d3988c3aacf..d7a791c2c88 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.java @@ -23,13 +23,26 @@ public final class ActivateIamUserSyncConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public ActivateIamUserSyncConfigurationDetails( + String clusterAdminPassword, + String secretId, + Boolean isPosixAttributesAdditionRequired) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.isPosixAttributesAdditionRequired = isPosixAttributesAdditionRequired; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", "isPosixAttributesAdditionRequired" }) public ActivateIamUserSyncConfigurationDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Boolean isPosixAttributesAdditionRequired) { super(); @@ -42,7 +55,7 @@ public ActivateIamUserSyncConfigurationDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -50,11 +63,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -129,14 +149,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.java index 501f5943fe7..bdd20ebca84 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.java @@ -23,6 +23,21 @@ public final class ActivateUpstConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public ActivateUpstConfigurationDetails( + String clusterAdminPassword, + String secretId, + String vaultId, + String masterEncryptionKeyId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.vaultId = vaultId; + this.masterEncryptionKeyId = masterEncryptionKeyId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -30,7 +45,7 @@ public final class ActivateUpstConfigurationDetails "masterEncryptionKeyId" }) public ActivateUpstConfigurationDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, String vaultId, String masterEncryptionKeyId) { @@ -45,7 +60,7 @@ public ActivateUpstConfigurationDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -53,11 +68,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -157,14 +179,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddAutoScalingConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddAutoScalingConfigurationDetails.java index b12acad8bc7..372e2f8b1ae 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddAutoScalingConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddAutoScalingConfigurationDetails.java @@ -23,6 +23,27 @@ public final class AddAutoScalingConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public AddAutoScalingConfigurationDetails( + String displayName, + Node.NodeType nodeType, + Boolean isEnabled, + String clusterAdminPassword, + String secretId, + AutoScalePolicy policy, + AddAutoScalePolicyDetails policyDetails) { + super(); + this.displayName = displayName; + this.nodeType = nodeType; + this.isEnabled = isEnabled; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.policy = policy; + this.policyDetails = policyDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "nodeType", @@ -36,7 +57,7 @@ public AddAutoScalingConfigurationDetails( String displayName, Node.NodeType nodeType, Boolean isEnabled, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, AutoScalePolicy policy, AddAutoScalePolicyDetails policyDetails) { @@ -107,7 +128,7 @@ public Builder isEnabled(Boolean isEnabled) { } /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. @@ -115,11 +136,18 @@ public Builder isEnabled(Boolean isEnabled) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -258,14 +286,27 @@ public Boolean getIsEnabled() { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddBlockStorageDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddBlockStorageDetails.java index d3c6a7d3770..7b618cd8526 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddBlockStorageDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddBlockStorageDetails.java @@ -23,6 +23,23 @@ public final class AddBlockStorageDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public AddBlockStorageDetails( + String clusterAdminPassword, + String secretId, + Long blockVolumeSizeInGBs, + NodeType nodeType, + java.util.List nodeIds) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.nodeType = nodeType; + this.nodeIds = nodeIds; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -31,7 +48,7 @@ public final class AddBlockStorageDetails "nodeIds" }) public AddBlockStorageDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Long blockVolumeSizeInGBs, NodeType nodeType, @@ -48,7 +65,7 @@ public AddBlockStorageDetails( public static class Builder { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. @@ -56,11 +73,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -183,14 +207,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddCloudSqlDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddCloudSqlDetails.java index cc415a4edb8..135d275dcbf 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddCloudSqlDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddCloudSqlDetails.java @@ -23,6 +23,21 @@ public final class AddCloudSqlDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public AddCloudSqlDetails( + String shape, + ShapeConfigDetails shapeConfig, + Long blockVolumeSizeInGBs, + String clusterAdminPassword) { + super(); + this.shape = shape; + this.shapeConfig = shapeConfig; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "shape", "shapeConfig", @@ -33,7 +48,7 @@ public AddCloudSqlDetails( String shape, ShapeConfigDetails shapeConfig, Long blockVolumeSizeInGBs, - String clusterAdminPassword) { + char[] clusterAdminPassword) { super(); this.shape = shape; this.shapeConfig = shapeConfig; @@ -88,7 +103,7 @@ public Builder blockVolumeSizeInGBs(Long blockVolumeSizeInGBs) { } /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. @@ -96,12 +111,19 @@ public Builder blockVolumeSizeInGBs(Long blockVolumeSizeInGBs) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -184,14 +206,27 @@ public Long getBlockVolumeSizeInGBs() { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddKafkaDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddKafkaDetails.java index 271974eb7fb..e93e351e52c 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddKafkaDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddKafkaDetails.java @@ -22,6 +22,25 @@ public final class AddKafkaDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public AddKafkaDetails( + String shape, + Integer numberOfKafkaNodes, + ShapeConfigDetails shapeConfig, + Long blockVolumeSizeInGBs, + String clusterAdminPassword, + String secretId) { + super(); + this.shape = shape; + this.numberOfKafkaNodes = numberOfKafkaNodes; + this.shapeConfig = shapeConfig; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "shape", "numberOfKafkaNodes", @@ -35,7 +54,7 @@ public AddKafkaDetails( Integer numberOfKafkaNodes, ShapeConfigDetails shapeConfig, Long blockVolumeSizeInGBs, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId) { super(); this.shape = shape; @@ -108,7 +127,7 @@ public Builder blockVolumeSizeInGBs(Long blockVolumeSizeInGBs) { } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -116,11 +135,18 @@ public Builder blockVolumeSizeInGBs(Long blockVolumeSizeInGBs) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -240,14 +266,27 @@ public Long getBlockVolumeSizeInGBs() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddMasterNodesDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddMasterNodesDetails.java index ad642b27a09..5e9db270c82 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddMasterNodesDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddMasterNodesDetails.java @@ -23,6 +23,25 @@ public final class AddMasterNodesDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public AddMasterNodesDetails( + String clusterAdminPassword, + String secretId, + Integer numberOfMasterNodes, + String shape, + Long blockVolumeSizeInGBs, + ShapeConfigDetails shapeConfig) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.numberOfMasterNodes = numberOfMasterNodes; + this.shape = shape; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.shapeConfig = shapeConfig; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -32,7 +51,7 @@ public final class AddMasterNodesDetails "shapeConfig" }) public AddMasterNodesDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Integer numberOfMasterNodes, String shape, @@ -51,7 +70,7 @@ public AddMasterNodesDetails( public static class Builder { /** Base-64 encoded Cluster Admin Password for cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. @@ -59,11 +78,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -191,14 +217,27 @@ public Builder toBuilder() { /** Base-64 encoded Cluster Admin Password for cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded Cluster Admin Password for cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddUtilityNodesDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddUtilityNodesDetails.java index 459279e608d..eb4c7f51ff0 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddUtilityNodesDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddUtilityNodesDetails.java @@ -23,6 +23,25 @@ public final class AddUtilityNodesDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public AddUtilityNodesDetails( + String clusterAdminPassword, + String secretId, + Integer numberOfUtilityNodes, + String shape, + Long blockVolumeSizeInGBs, + ShapeConfigDetails shapeConfig) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.numberOfUtilityNodes = numberOfUtilityNodes; + this.shape = shape; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.shapeConfig = shapeConfig; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -32,7 +51,7 @@ public final class AddUtilityNodesDetails "shapeConfig" }) public AddUtilityNodesDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Integer numberOfUtilityNodes, String shape, @@ -51,7 +70,7 @@ public AddUtilityNodesDetails( public static class Builder { /** Base-64 encoded Cluster Admin Password for cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. @@ -59,11 +78,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -191,14 +217,27 @@ public Builder toBuilder() { /** Base-64 encoded Cluster Admin Password for cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded Cluster Admin Password for cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddWorkerNodesDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddWorkerNodesDetails.java index ab08869f3fb..81ab32aa758 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddWorkerNodesDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/AddWorkerNodesDetails.java @@ -23,6 +23,27 @@ public final class AddWorkerNodesDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public AddWorkerNodesDetails( + String clusterAdminPassword, + String secretId, + Integer numberOfWorkerNodes, + NodeType nodeType, + String shape, + Long blockVolumeSizeInGBs, + ShapeConfigDetails shapeConfig) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.numberOfWorkerNodes = numberOfWorkerNodes; + this.nodeType = nodeType; + this.shape = shape; + this.blockVolumeSizeInGBs = blockVolumeSizeInGBs; + this.shapeConfig = shapeConfig; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -33,7 +54,7 @@ public final class AddWorkerNodesDetails "shapeConfig" }) public AddWorkerNodesDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Integer numberOfWorkerNodes, NodeType nodeType, @@ -54,7 +75,7 @@ public AddWorkerNodesDetails( public static class Builder { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. @@ -62,11 +83,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -221,14 +249,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstanceResetPasswordDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstanceResetPasswordDetails.java index 81ef8b00a1b..85c2d7b997a 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstanceResetPasswordDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstanceResetPasswordDetails.java @@ -23,10 +23,21 @@ public final class BdsInstanceResetPasswordDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "service"}) public BdsInstanceResetPasswordDetails( String clusterAdminPassword, String secretId, Service service) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.service = service; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "service"}) + public BdsInstanceResetPasswordDetails( + char[] clusterAdminPassword, String secretId, Service service) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; this.service = service; @@ -36,7 +47,7 @@ public BdsInstanceResetPasswordDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -44,11 +55,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -119,14 +137,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeShapeDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeShapeDetails.java index 8d3732e2828..7327b9668b3 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeShapeDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeShapeDetails.java @@ -23,10 +23,21 @@ public final class ChangeShapeDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "nodes"}) public ChangeShapeDetails( String clusterAdminPassword, String secretId, ChangeShapeNodes nodes) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.nodes = nodes; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "nodes"}) + public ChangeShapeDetails( + char[] clusterAdminPassword, String secretId, ChangeShapeNodes nodes) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; this.nodes = nodes; @@ -36,7 +47,7 @@ public ChangeShapeDetails( public static class Builder { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. @@ -44,11 +55,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -112,14 +130,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java index f69c74c1e09..e5faca8800a 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java @@ -23,6 +23,22 @@ public final class CreateBdsApiKeyDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateBdsApiKeyDetails( + String userId, + String passphrase, + String defaultRegion, + String keyAlias, + String domainOcid) { + super(); + this.userId = userId; + this.passphrase = passphrase != null ? passphrase.toCharArray() : null; + this.defaultRegion = defaultRegion; + this.keyAlias = keyAlias; + this.domainOcid = domainOcid; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "userId", "passphrase", @@ -32,7 +48,7 @@ public final class CreateBdsApiKeyDetails }) public CreateBdsApiKeyDetails( String userId, - String passphrase, + char[] passphrase, String defaultRegion, String keyAlias, String domainOcid) { @@ -65,7 +81,7 @@ public Builder userId(String userId) { * Base64 passphrase used to secure the private key which will be created on user behalf. */ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") - private String passphrase; + private char[] passphrase; /** * Base64 passphrase used to secure the private key which will be created on user behalf. @@ -73,11 +89,17 @@ public Builder userId(String userId) { * @param passphrase the value to set * @return this builder */ - public Builder passphrase(String passphrase) { + public Builder passphrase(char[] passphrase) { this.passphrase = passphrase; this.__explicitlySet__.add("passphrase"); return this; } + + public Builder passphrase(String passphrase) { + this.passphrase = passphrase != null ? passphrase.toCharArray() : null; + this.__explicitlySet__.add("passphrase"); + return this; + } /** * The name of the region to establish the Object Storage endpoint. See * https://docs.oracle.com/en-us/iaas/api/#/en/identity/20160918/Region/ for additional @@ -202,14 +224,27 @@ public String getUserId() { /** Base64 passphrase used to secure the private key which will be created on user behalf. */ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") - private final String passphrase; + private final char[] passphrase; /** * Base64 passphrase used to secure the private key which will be created on user behalf. * * @return the value + * @deprecated Use getPassphrase__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassphrase() { + return passphrase != null ? new String(passphrase) : null; + } + + /** + * Base64 passphrase used to secure the private key which will be created on user behalf. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("passphrase") + public char[] getPassphrase__AsCharArray() { return passphrase; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCertificateConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCertificateConfigurationDetails.java index 39c0e539246..94de3e1c7f9 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCertificateConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCertificateConfigurationDetails.java @@ -23,6 +23,25 @@ public final class CreateBdsCertificateConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateBdsCertificateConfigurationDetails( + String displayName, + String certificateAuthorityId, + BdsCertificateConfiguration.Type certificateType, + String compartmentId, + String clusterAdminPassword, + String secretId) { + super(); + this.displayName = displayName; + this.certificateAuthorityId = certificateAuthorityId; + this.certificateType = certificateType; + this.compartmentId = compartmentId; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "certificateAuthorityId", @@ -36,7 +55,7 @@ public CreateBdsCertificateConfigurationDetails( String certificateAuthorityId, BdsCertificateConfiguration.Type certificateType, String compartmentId, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId) { super(); this.displayName = displayName; @@ -123,7 +142,7 @@ public Builder compartmentId(String compartmentId) { } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -131,11 +150,18 @@ public Builder compartmentId(String compartmentId) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -269,14 +295,27 @@ public String getCompartmentId() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java index 9656c2b085f..d6f27cc935e 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java @@ -23,6 +23,49 @@ public final class CreateBdsInstanceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateBdsInstanceDetails( + String compartmentId, + String displayName, + BdsInstance.ClusterVersion clusterVersion, + String clusterPublicKey, + String clusterAdminPassword, + String secretId, + Boolean isSecretReused, + Boolean isHighAvailability, + Boolean isSecure, + NetworkConfig networkConfig, + String bootstrapScriptUrl, + java.util.List nodes, + String kerberosRealmName, + java.util.Map freeformTags, + java.util.Map> definedTags, + String kmsKeyId, + BdsInstance.ClusterProfile clusterProfile, + BdsClusterVersionSummary bdsClusterVersionSummary) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.clusterVersion = clusterVersion; + this.clusterPublicKey = clusterPublicKey; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.isSecretReused = isSecretReused; + this.isHighAvailability = isHighAvailability; + this.isSecure = isSecure; + this.networkConfig = networkConfig; + this.bootstrapScriptUrl = bootstrapScriptUrl; + this.nodes = nodes; + this.kerberosRealmName = kerberosRealmName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.kmsKeyId = kmsKeyId; + this.clusterProfile = clusterProfile; + this.bdsClusterVersionSummary = bdsClusterVersionSummary; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "compartmentId", "displayName", @@ -48,7 +91,7 @@ public CreateBdsInstanceDetails( String displayName, BdsInstance.ClusterVersion clusterVersion, String clusterPublicKey, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Boolean isSecretReused, Boolean isHighAvailability, @@ -150,7 +193,7 @@ public Builder clusterPublicKey(String clusterPublicKey) { * if the secretId is specified. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. Not required @@ -159,11 +202,18 @@ public Builder clusterPublicKey(String clusterPublicKey) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -517,15 +567,29 @@ public String getClusterPublicKey() { * the secretId is specified. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. Not required if * the secretId is specified. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. Not required if + * the secretId is specified. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsMetastoreConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsMetastoreConfigurationDetails.java index ac6b4c61a8c..f1c88e33708 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsMetastoreConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsMetastoreConfigurationDetails.java @@ -23,6 +23,26 @@ public final class CreateBdsMetastoreConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateBdsMetastoreConfigurationDetails( + String displayName, + String metastoreId, + String bdsApiKeyId, + String bdsApiKeyPassphrase, + String clusterAdminPassword, + String secretId) { + super(); + this.displayName = displayName; + this.metastoreId = metastoreId; + this.bdsApiKeyId = bdsApiKeyId; + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "metastoreId", @@ -35,8 +55,8 @@ public CreateBdsMetastoreConfigurationDetails( String displayName, String metastoreId, String bdsApiKeyId, - String bdsApiKeyPassphrase, - String clusterAdminPassword, + char[] bdsApiKeyPassphrase, + char[] clusterAdminPassword, String secretId) { super(); this.displayName = displayName; @@ -96,7 +116,7 @@ public Builder bdsApiKeyId(String bdsApiKeyId) { } /** Base-64 encoded passphrase of the BDS Api Key. */ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private String bdsApiKeyPassphrase; + private char[] bdsApiKeyPassphrase; /** * Base-64 encoded passphrase of the BDS Api Key. @@ -104,14 +124,21 @@ public Builder bdsApiKeyId(String bdsApiKeyId) { * @param bdsApiKeyPassphrase the value to set * @return this builder */ - public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + public Builder bdsApiKeyPassphrase(char[] bdsApiKeyPassphrase) { this.bdsApiKeyPassphrase = bdsApiKeyPassphrase; this.__explicitlySet__.add("bdsApiKeyPassphrase"); return this; } + + public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("bdsApiKeyPassphrase"); + return this; + } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -119,11 +146,18 @@ public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -232,27 +266,53 @@ public String getBdsApiKeyId() { /** Base-64 encoded passphrase of the BDS Api Key. */ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private final String bdsApiKeyPassphrase; + private final char[] bdsApiKeyPassphrase; /** * Base-64 encoded passphrase of the BDS Api Key. * * @return the value + * @deprecated Use getBdsApiKeyPassphrase__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getBdsApiKeyPassphrase() { + return bdsApiKeyPassphrase != null ? new String(bdsApiKeyPassphrase) : null; + } + + /** + * Base-64 encoded passphrase of the BDS Api Key. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") + public char[] getBdsApiKeyPassphrase__AsCharArray() { return bdsApiKeyPassphrase; } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java index 385b98e90b4..41372ab0aec 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java @@ -23,6 +23,27 @@ public final class CreateIdentityConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateIdentityConfigurationDetails( + String clusterAdminPassword, + String secretId, + String displayName, + String identityDomainId, + String confidentialApplicationId, + UpstConfigurationDetails upstConfigurationDetails, + IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.displayName = displayName; + this.identityDomainId = identityDomainId; + this.confidentialApplicationId = confidentialApplicationId; + this.upstConfigurationDetails = upstConfigurationDetails; + this.iamUserSyncConfigurationDetails = iamUserSyncConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -33,7 +54,7 @@ public final class CreateIdentityConfigurationDetails "iamUserSyncConfigurationDetails" }) public CreateIdentityConfigurationDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, String displayName, String identityDomainId, @@ -54,7 +75,7 @@ public CreateIdentityConfigurationDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -62,11 +83,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -214,14 +242,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java index baccded3c68..dd4bdef196a 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java @@ -23,6 +23,25 @@ public final class CreateNodeReplaceConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateNodeReplaceConfigurationDetails( + LevelTypeDetails levelTypeDetails, + String displayName, + String clusterAdminPassword, + String secretId, + NodeReplaceConfiguration.MetricType metricType, + Integer durationInMinutes) { + super(); + this.levelTypeDetails = levelTypeDetails; + this.displayName = displayName; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.metricType = metricType; + this.durationInMinutes = durationInMinutes; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "levelTypeDetails", "displayName", @@ -34,7 +53,7 @@ public final class CreateNodeReplaceConfigurationDetails public CreateNodeReplaceConfigurationDetails( LevelTypeDetails levelTypeDetails, String displayName, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, NodeReplaceConfiguration.MetricType metricType, Integer durationInMinutes) { @@ -81,7 +100,7 @@ public Builder displayName(String displayName) { } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -89,11 +108,18 @@ public Builder displayName(String displayName) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -221,14 +247,27 @@ public String getDisplayName() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateResourcePrincipalConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateResourcePrincipalConfigurationDetails.java index 9ccefffe692..dcf5067583c 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateResourcePrincipalConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateResourcePrincipalConfigurationDetails.java @@ -23,6 +23,21 @@ public final class CreateResourcePrincipalConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateResourcePrincipalConfigurationDetails( + String displayName, + String clusterAdminPassword, + String secretId, + Integer sessionTokenLifeSpanDurationInHours) { + super(); + this.displayName = displayName; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.sessionTokenLifeSpanDurationInHours = sessionTokenLifeSpanDurationInHours; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "clusterAdminPassword", @@ -31,7 +46,7 @@ public final class CreateResourcePrincipalConfigurationDetails }) public CreateResourcePrincipalConfigurationDetails( String displayName, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Integer sessionTokenLifeSpanDurationInHours) { super(); @@ -66,7 +81,7 @@ public Builder displayName(String displayName) { } /** Base-64 encoded Cluster Admin Password for cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. @@ -74,11 +89,18 @@ public Builder displayName(String displayName) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -174,14 +196,27 @@ public String getDisplayName() { /** Base-64 encoded Cluster Admin Password for cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded Cluster Admin Password for cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.java index 1963defa8a9..836213dc3a0 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.java @@ -23,8 +23,17 @@ public final class DeactivateIamUserSyncConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public DeactivateIamUserSyncConfigurationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public DeactivateIamUserSyncConfigurationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -34,7 +43,7 @@ public DeactivateIamUserSyncConfigurationDetails(String clusterAdminPassword, St public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -42,11 +51,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -99,14 +115,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.java index 4cb150d2001..384022379ac 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.java @@ -23,8 +23,17 @@ public final class DeactivateUpstConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public DeactivateUpstConfigurationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public DeactivateUpstConfigurationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -34,7 +43,7 @@ public DeactivateUpstConfigurationDetails(String clusterAdminPassword, String se public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -42,11 +51,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -99,14 +115,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DisableCertificateDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DisableCertificateDetails.java index e0f03a64af2..02e1637c16f 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DisableCertificateDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DisableCertificateDetails.java @@ -23,10 +23,21 @@ public final class DisableCertificateDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "services"}) public DisableCertificateDetails( String clusterAdminPassword, String secretId, java.util.List services) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.services = services; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "services"}) + public DisableCertificateDetails( + char[] clusterAdminPassword, String secretId, java.util.List services) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; this.services = services; @@ -36,7 +47,7 @@ public DisableCertificateDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -44,11 +55,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -119,14 +137,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/EnableCertificateDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/EnableCertificateDetails.java index 4f3e06c990a..0100a166002 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/EnableCertificateDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/EnableCertificateDetails.java @@ -23,6 +23,25 @@ public final class EnableCertificateDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public EnableCertificateDetails( + String clusterAdminPassword, + String secretId, + java.util.List services, + String rootCertificate, + java.util.List hostCertDetails, + String serverKeyPassword) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.services = services; + this.rootCertificate = rootCertificate; + this.hostCertDetails = hostCertDetails; + this.serverKeyPassword = serverKeyPassword != null ? serverKeyPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -32,12 +51,12 @@ public final class EnableCertificateDetails "serverKeyPassword" }) public EnableCertificateDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, java.util.List services, String rootCertificate, java.util.List hostCertDetails, - String serverKeyPassword) { + char[] serverKeyPassword) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -51,7 +70,7 @@ public EnableCertificateDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -59,11 +78,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -136,7 +162,7 @@ public Builder hostCertDetails(java.util.List hostCertDetails) } /** Base-64 encoded password for CA certificate's private key. This value can be empty. */ @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") - private String serverKeyPassword; + private char[] serverKeyPassword; /** * Base-64 encoded password for CA certificate's private key. This value can be empty. @@ -144,12 +170,19 @@ public Builder hostCertDetails(java.util.List hostCertDetails) * @param serverKeyPassword the value to set * @return this builder */ - public Builder serverKeyPassword(String serverKeyPassword) { + public Builder serverKeyPassword(char[] serverKeyPassword) { this.serverKeyPassword = serverKeyPassword; this.__explicitlySet__.add("serverKeyPassword"); return this; } + public Builder serverKeyPassword(String serverKeyPassword) { + this.serverKeyPassword = + serverKeyPassword != null ? serverKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("serverKeyPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -203,14 +236,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } @@ -278,14 +324,27 @@ public java.util.List getHostCertDetails() { /** Base-64 encoded password for CA certificate's private key. This value can be empty. */ @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") - private final String serverKeyPassword; + private final char[] serverKeyPassword; /** - * Base-64 encoded password for CA certificate's private key. This value can be empty. + * Base-64 encoded password for CA certificate's private key. This value can be empty. * * @return the value + * @deprecated Use getServerKeyPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getServerKeyPassword() { + return serverKeyPassword != null ? new String(serverKeyPassword) : null; + } + + /** + * Base-64 encoded password for CA certificate's private key. This value can be empty. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") + public char[] getServerKeyPassword__AsCharArray() { return serverKeyPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ExecuteBootstrapScriptDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ExecuteBootstrapScriptDetails.java index 2f5a2669267..a62fbcca623 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ExecuteBootstrapScriptDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ExecuteBootstrapScriptDetails.java @@ -23,10 +23,21 @@ public final class ExecuteBootstrapScriptDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "bootstrapScriptUrl"}) public ExecuteBootstrapScriptDetails( String clusterAdminPassword, String secretId, String bootstrapScriptUrl) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.bootstrapScriptUrl = bootstrapScriptUrl; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId", "bootstrapScriptUrl"}) + public ExecuteBootstrapScriptDetails( + char[] clusterAdminPassword, String secretId, String bootstrapScriptUrl) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; this.bootstrapScriptUrl = bootstrapScriptUrl; @@ -36,7 +47,7 @@ public ExecuteBootstrapScriptDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -44,11 +55,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -123,14 +141,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ForceRefreshResourcePrincipalDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ForceRefreshResourcePrincipalDetails.java index d942d69e725..0fe57c1fa25 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ForceRefreshResourcePrincipalDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ForceRefreshResourcePrincipalDetails.java @@ -23,8 +23,17 @@ public final class ForceRefreshResourcePrincipalDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public ForceRefreshResourcePrincipalDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public ForceRefreshResourcePrincipalDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -34,7 +43,7 @@ public ForceRefreshResourcePrincipalDetails(String clusterAdminPassword, String public static class Builder { /** Base-64 encoded Cluster Admin Password for cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. @@ -42,11 +51,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -99,14 +115,27 @@ public Builder toBuilder() { /** Base-64 encoded Cluster Admin Password for cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded Cluster Admin Password for cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/GenerateBdsCertificateDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/GenerateBdsCertificateDetails.java index 6578b782a83..1c82a7f0bd9 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/GenerateBdsCertificateDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/GenerateBdsCertificateDetails.java @@ -23,6 +23,19 @@ public final class GenerateBdsCertificateDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public GenerateBdsCertificateDetails( + ManageBdsCertificateLevelTypeDetails manageCertificateLevelTypeDetails, + String clusterAdminPassword, + String secretId) { + super(); + this.manageCertificateLevelTypeDetails = manageCertificateLevelTypeDetails; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "manageCertificateLevelTypeDetails", "clusterAdminPassword", @@ -30,7 +43,7 @@ public final class GenerateBdsCertificateDetails }) public GenerateBdsCertificateDetails( ManageBdsCertificateLevelTypeDetails manageCertificateLevelTypeDetails, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId) { super(); this.manageCertificateLevelTypeDetails = manageCertificateLevelTypeDetails; @@ -52,7 +65,7 @@ public Builder manageCertificateLevelTypeDetails( } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -60,11 +73,18 @@ public Builder manageCertificateLevelTypeDetails( * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -130,14 +150,27 @@ public ManageBdsCertificateLevelTypeDetails getManageCertificateLevelTypeDetails /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallOsPatchDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallOsPatchDetails.java index 5b8b53b1a03..36036c5b972 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallOsPatchDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallOsPatchDetails.java @@ -23,6 +23,23 @@ public final class InstallOsPatchDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public InstallOsPatchDetails( + String osPatchVersion, + String clusterAdminPassword, + String secretId, + PatchingConfigs patchingConfigs, + Boolean isDryRun) { + super(); + this.osPatchVersion = osPatchVersion; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.patchingConfigs = patchingConfigs; + this.isDryRun = isDryRun; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "osPatchVersion", "clusterAdminPassword", @@ -32,7 +49,7 @@ public final class InstallOsPatchDetails }) public InstallOsPatchDetails( String osPatchVersion, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, PatchingConfigs patchingConfigs, Boolean isDryRun) { @@ -63,7 +80,7 @@ public Builder osPatchVersion(String osPatchVersion) { } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -71,11 +88,18 @@ public Builder osPatchVersion(String osPatchVersion) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -178,14 +202,27 @@ public String getOsPatchVersion() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallPatchDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallPatchDetails.java index 976a414749b..5f87bbedc35 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallPatchDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/InstallPatchDetails.java @@ -23,6 +23,21 @@ public final class InstallPatchDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public InstallPatchDetails( + String version, + String clusterAdminPassword, + String secretId, + OdhPatchingConfig patchingConfig) { + super(); + this.version = version; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.patchingConfig = patchingConfig; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "version", "clusterAdminPassword", @@ -31,7 +46,7 @@ public final class InstallPatchDetails }) public InstallPatchDetails( String version, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, OdhPatchingConfig patchingConfig) { super(); @@ -60,7 +75,7 @@ public Builder version(String version) { } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -68,11 +83,18 @@ public Builder version(String version) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -156,14 +178,27 @@ public String getVersion() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.java index 4ff05c1e92c..3ee74712e0a 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.java @@ -23,8 +23,17 @@ public final class RefreshConfidentialApplicationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RefreshConfidentialApplicationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RefreshConfidentialApplicationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -34,7 +43,7 @@ public RefreshConfidentialApplicationDetails(String clusterAdminPassword, String public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -42,11 +51,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -99,14 +115,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.java index 63fab02fa26..e4186d6e744 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.java @@ -23,8 +23,17 @@ public final class RefreshUpstTokenExchangeKeytabDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RefreshUpstTokenExchangeKeytabDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RefreshUpstTokenExchangeKeytabDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -34,7 +43,7 @@ public RefreshUpstTokenExchangeKeytabDetails(String clusterAdminPassword, String public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -42,11 +51,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -99,14 +115,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveAutoScalingConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveAutoScalingConfigurationDetails.java index a981d032d8f..9627db04bc8 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveAutoScalingConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveAutoScalingConfigurationDetails.java @@ -23,8 +23,17 @@ public final class RemoveAutoScalingConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RemoveAutoScalingConfigurationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RemoveAutoScalingConfigurationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -34,7 +43,7 @@ public RemoveAutoScalingConfigurationDetails(String clusterAdminPassword, String public static class Builder { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. @@ -42,11 +51,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -99,14 +115,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveCloudSqlDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveCloudSqlDetails.java index 2928d5e0f1a..0f2b6776189 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveCloudSqlDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveCloudSqlDetails.java @@ -23,8 +23,16 @@ public final class RemoveCloudSqlDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword"}) public RemoveCloudSqlDetails(String clusterAdminPassword) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword"}) + public RemoveCloudSqlDetails(char[] clusterAdminPassword) { super(); this.clusterAdminPassword = clusterAdminPassword; } @@ -33,7 +41,7 @@ public RemoveCloudSqlDetails(String clusterAdminPassword) { public static class Builder { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. @@ -41,12 +49,19 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -78,14 +93,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveKafkaDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveKafkaDetails.java index 990d225236d..05d04863b62 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveKafkaDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveKafkaDetails.java @@ -24,8 +24,17 @@ public final class RemoveKafkaDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RemoveKafkaDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RemoveKafkaDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -35,7 +44,7 @@ public RemoveKafkaDetails(String clusterAdminPassword, String secretId) { public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -43,11 +52,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -99,14 +115,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeDetails.java index e91342ee1b3..9a206b2912c 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeDetails.java @@ -23,6 +23,21 @@ public final class RemoveNodeDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public RemoveNodeDetails( + String clusterAdminPassword, + String secretId, + Boolean isForceRemoveEnabled, + String nodeId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.isForceRemoveEnabled = isForceRemoveEnabled; + this.nodeId = nodeId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -30,7 +45,7 @@ public final class RemoveNodeDetails "nodeId" }) public RemoveNodeDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Boolean isForceRemoveEnabled, String nodeId) { @@ -45,7 +60,7 @@ public RemoveNodeDetails( public static class Builder { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. @@ -53,11 +68,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -151,14 +173,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java index a059cc297d9..f8069435a78 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java @@ -23,8 +23,17 @@ public final class RemoveNodeReplaceConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RemoveNodeReplaceConfigurationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RemoveNodeReplaceConfigurationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -34,7 +43,7 @@ public RemoveNodeReplaceConfigurationDetails(String clusterAdminPassword, String public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -42,11 +51,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -99,14 +115,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodesDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodesDetails.java index 5679da90edb..2984932d6c5 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodesDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodesDetails.java @@ -23,6 +23,21 @@ public final class RemoveNodesDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public RemoveNodesDetails( + String clusterAdminPassword, + String secretId, + Boolean isForceRemoveEnabled, + java.util.List instanceIds) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.isForceRemoveEnabled = isForceRemoveEnabled; + this.instanceIds = instanceIds; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -30,7 +45,7 @@ public final class RemoveNodesDetails "instanceIds" }) public RemoveNodesDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, Boolean isForceRemoveEnabled, java.util.List instanceIds) { @@ -45,7 +60,7 @@ public RemoveNodesDetails( public static class Builder { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. @@ -53,11 +68,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -151,14 +173,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveResourcePrincipalConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveResourcePrincipalConfigurationDetails.java index 5a1f02a4821..bd23e296d7a 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveResourcePrincipalConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveResourcePrincipalConfigurationDetails.java @@ -23,10 +23,20 @@ public final class RemoveResourcePrincipalConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public RemoveResourcePrincipalConfigurationDetails( String clusterAdminPassword, String secretId) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public RemoveResourcePrincipalConfigurationDetails( + char[] clusterAdminPassword, String secretId) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; } @@ -35,7 +45,7 @@ public RemoveResourcePrincipalConfigurationDetails( public static class Builder { /** Base-64 encoded Cluster Admin Password for cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. @@ -43,11 +53,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -100,14 +117,27 @@ public Builder toBuilder() { /** Base-64 encoded Cluster Admin Password for cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded Cluster Admin Password for cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded Cluster Admin Password for cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewBdsCertificateDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewBdsCertificateDetails.java index 21a13adf1dc..36c7b7ce66f 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewBdsCertificateDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewBdsCertificateDetails.java @@ -23,6 +23,19 @@ public final class RenewBdsCertificateDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public RenewBdsCertificateDetails( + ManageBdsCertificateLevelTypeDetails manageCertificateLevelTypeDetails, + String clusterAdminPassword, + String secretId) { + super(); + this.manageCertificateLevelTypeDetails = manageCertificateLevelTypeDetails; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "manageCertificateLevelTypeDetails", "clusterAdminPassword", @@ -30,7 +43,7 @@ public final class RenewBdsCertificateDetails }) public RenewBdsCertificateDetails( ManageBdsCertificateLevelTypeDetails manageCertificateLevelTypeDetails, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId) { super(); this.manageCertificateLevelTypeDetails = manageCertificateLevelTypeDetails; @@ -52,7 +65,7 @@ public Builder manageCertificateLevelTypeDetails( } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -60,11 +73,18 @@ public Builder manageCertificateLevelTypeDetails( * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -130,14 +150,27 @@ public ManageBdsCertificateLevelTypeDetails getManageCertificateLevelTypeDetails /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewCertificateDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewCertificateDetails.java index c39e49171f9..f5581291d5e 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewCertificateDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RenewCertificateDetails.java @@ -23,6 +23,25 @@ public final class RenewCertificateDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public RenewCertificateDetails( + String clusterAdminPassword, + String secretId, + java.util.List services, + String rootCertificate, + java.util.List hostCertDetails, + String serverKeyPassword) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.services = services; + this.rootCertificate = rootCertificate; + this.hostCertDetails = hostCertDetails; + this.serverKeyPassword = serverKeyPassword != null ? serverKeyPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -32,12 +51,12 @@ public final class RenewCertificateDetails "serverKeyPassword" }) public RenewCertificateDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, java.util.List services, String rootCertificate, java.util.List hostCertDetails, - String serverKeyPassword) { + char[] serverKeyPassword) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -51,7 +70,7 @@ public RenewCertificateDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -59,11 +78,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -140,7 +166,7 @@ public Builder hostCertDetails(java.util.List hostCertDetails) } /** Base-64 encoded password for CA certificate's private key. This value can be empty. */ @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") - private String serverKeyPassword; + private char[] serverKeyPassword; /** * Base-64 encoded password for CA certificate's private key. This value can be empty. @@ -148,12 +174,19 @@ public Builder hostCertDetails(java.util.List hostCertDetails) * @param serverKeyPassword the value to set * @return this builder */ - public Builder serverKeyPassword(String serverKeyPassword) { + public Builder serverKeyPassword(char[] serverKeyPassword) { this.serverKeyPassword = serverKeyPassword; this.__explicitlySet__.add("serverKeyPassword"); return this; } + public Builder serverKeyPassword(String serverKeyPassword) { + this.serverKeyPassword = + serverKeyPassword != null ? serverKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("serverKeyPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -207,14 +240,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } @@ -286,14 +332,27 @@ public java.util.List getHostCertDetails() { /** Base-64 encoded password for CA certificate's private key. This value can be empty. */ @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") - private final String serverKeyPassword; + private final char[] serverKeyPassword; /** - * Base-64 encoded password for CA certificate's private key. This value can be empty. + * Base-64 encoded password for CA certificate's private key. This value can be empty. * * @return the value + * @deprecated Use getServerKeyPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getServerKeyPassword() { + return serverKeyPassword != null ? new String(serverKeyPassword) : null; + } + + /** + * Base-64 encoded password for CA certificate's private key. This value can be empty. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("serverKeyPassword") + public char[] getServerKeyPassword__AsCharArray() { return serverKeyPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java index df4edbf5c5d..d36d502144e 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java @@ -23,6 +23,23 @@ public final class ReplaceNodeDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public ReplaceNodeDetails( + String nodeHostName, + String nodeBackupId, + String clusterAdminPassword, + String secretId, + String shape) { + super(); + this.nodeHostName = nodeHostName; + this.nodeBackupId = nodeBackupId; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.shape = shape; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "nodeHostName", "nodeBackupId", @@ -33,7 +50,7 @@ public final class ReplaceNodeDetails public ReplaceNodeDetails( String nodeHostName, String nodeBackupId, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, String shape) { super(); @@ -80,7 +97,7 @@ public Builder nodeBackupId(String nodeBackupId) { } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -88,11 +105,18 @@ public Builder nodeBackupId(String nodeBackupId) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -203,14 +227,27 @@ public String getNodeBackupId() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/SetDefaultBdsCertificateConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/SetDefaultBdsCertificateConfigurationDetails.java index dcb9bb8ccc5..ced8d6c56c6 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/SetDefaultBdsCertificateConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/SetDefaultBdsCertificateConfigurationDetails.java @@ -23,10 +23,20 @@ public final class SetDefaultBdsCertificateConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public SetDefaultBdsCertificateConfigurationDetails( String clusterAdminPassword, String secretId) { super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public SetDefaultBdsCertificateConfigurationDetails( + char[] clusterAdminPassword, String secretId) { + super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; } @@ -35,7 +45,7 @@ public SetDefaultBdsCertificateConfigurationDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -43,11 +53,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -100,14 +117,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java index eb46e06e4cd..3106c416309 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java @@ -23,13 +23,26 @@ public final class StartBdsInstanceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public StartBdsInstanceDetails( + String clusterAdminPassword, + String secretId, + StartClusterShapeConfigs startClusterShapeConfigs) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.startClusterShapeConfigs = startClusterShapeConfigs; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", "startClusterShapeConfigs" }) public StartBdsInstanceDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, StartClusterShapeConfigs startClusterShapeConfigs) { super(); @@ -42,7 +55,7 @@ public StartBdsInstanceDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -50,11 +63,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -121,14 +141,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StopBdsInstanceDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StopBdsInstanceDetails.java index 21b79486ac5..9a869845e72 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StopBdsInstanceDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StopBdsInstanceDetails.java @@ -23,11 +23,22 @@ public final class StopBdsInstanceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"isForceStopJobs", "clusterAdminPassword", "secretId"}) public StopBdsInstanceDetails( Boolean isForceStopJobs, String clusterAdminPassword, String secretId) { super(); this.isForceStopJobs = isForceStopJobs; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"isForceStopJobs", "clusterAdminPassword", "secretId"}) + public StopBdsInstanceDetails( + Boolean isForceStopJobs, char[] clusterAdminPassword, String secretId) { + super(); + this.isForceStopJobs = isForceStopJobs; this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; } @@ -53,7 +64,7 @@ public Builder isForceStopJobs(Boolean isForceStopJobs) { } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -61,11 +72,18 @@ public Builder isForceStopJobs(Boolean isForceStopJobs) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -134,14 +152,27 @@ public Boolean getIsForceStopJobs() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsMetastoreConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsMetastoreConfigurationDetails.java index a43a4d5f8d5..e79fb846906 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsMetastoreConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsMetastoreConfigurationDetails.java @@ -23,8 +23,17 @@ public final class TestBdsMetastoreConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) public TestBdsMetastoreConfigurationDetails(String clusterAdminPassword, String secretId) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "secretId"}) + public TestBdsMetastoreConfigurationDetails(char[] clusterAdminPassword, String secretId) { super(); this.clusterAdminPassword = clusterAdminPassword; this.secretId = secretId; @@ -34,7 +43,7 @@ public TestBdsMetastoreConfigurationDetails(String clusterAdminPassword, String public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -42,11 +51,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -99,14 +115,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsObjectStorageConnectionDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsObjectStorageConnectionDetails.java index 299d8753c00..ebb814c2666 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsObjectStorageConnectionDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/TestBdsObjectStorageConnectionDetails.java @@ -23,11 +23,21 @@ public final class TestBdsObjectStorageConnectionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"objectStorageUri", "passphrase", "objectStorageRegion"}) public TestBdsObjectStorageConnectionDetails( String objectStorageUri, String passphrase, String objectStorageRegion) { super(); this.objectStorageUri = objectStorageUri; + this.passphrase = passphrase != null ? passphrase.toCharArray() : null; + this.objectStorageRegion = objectStorageRegion; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"objectStorageUri", "passphrase", "objectStorageRegion"}) + public TestBdsObjectStorageConnectionDetails( + String objectStorageUri, char[] passphrase, String objectStorageRegion) { + super(); + this.objectStorageUri = objectStorageUri; this.passphrase = passphrase; this.objectStorageRegion = objectStorageRegion; } @@ -57,7 +67,7 @@ public Builder objectStorageUri(String objectStorageUri) { * Base64 passphrase used to secure the private key which will be created on user behalf. */ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") - private String passphrase; + private char[] passphrase; /** * Base64 passphrase used to secure the private key which will be created on user behalf. @@ -65,11 +75,17 @@ public Builder objectStorageUri(String objectStorageUri) { * @param passphrase the value to set * @return this builder */ - public Builder passphrase(String passphrase) { + public Builder passphrase(char[] passphrase) { this.passphrase = passphrase; this.__explicitlySet__.add("passphrase"); return this; } + + public Builder passphrase(String passphrase) { + this.passphrase = passphrase != null ? passphrase.toCharArray() : null; + this.__explicitlySet__.add("passphrase"); + return this; + } /** * The name of the region to establish the Object Storage endpoint. Example us-phoenix-1 . */ @@ -144,14 +160,27 @@ public String getObjectStorageUri() { /** Base64 passphrase used to secure the private key which will be created on user behalf. */ @com.fasterxml.jackson.annotation.JsonProperty("passphrase") - private final String passphrase; + private final char[] passphrase; /** * Base64 passphrase used to secure the private key which will be created on user behalf. * * @return the value + * @deprecated Use getPassphrase__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassphrase() { + return passphrase != null ? new String(passphrase) : null; + } + + /** + * Base64 passphrase used to secure the private key which will be created on user behalf. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("passphrase") + public char[] getPassphrase__AsCharArray() { return passphrase; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateAutoScalingConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateAutoScalingConfigurationDetails.java index 570636e3467..893f67d9079 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateAutoScalingConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateAutoScalingConfigurationDetails.java @@ -23,6 +23,25 @@ public final class UpdateAutoScalingConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateAutoScalingConfigurationDetails( + String displayName, + Boolean isEnabled, + String clusterAdminPassword, + String secretId, + AutoScalePolicy policy, + UpdateAutoScalePolicyDetails policyDetails) { + super(); + this.displayName = displayName; + this.isEnabled = isEnabled; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.policy = policy; + this.policyDetails = policyDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "isEnabled", @@ -34,7 +53,7 @@ public final class UpdateAutoScalingConfigurationDetails public UpdateAutoScalingConfigurationDetails( String displayName, Boolean isEnabled, - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, AutoScalePolicy policy, UpdateAutoScalePolicyDetails policyDetails) { @@ -85,7 +104,7 @@ public Builder isEnabled(Boolean isEnabled) { } /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. @@ -93,11 +112,18 @@ public Builder isEnabled(Boolean isEnabled) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -215,14 +241,27 @@ public Boolean getIsEnabled() { /** Base-64 encoded password for the cluster (and Cloudera Manager) admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster (and Cloudera Manager) admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsMetastoreConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsMetastoreConfigurationDetails.java index bca8cf85a29..3eafebc6b70 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsMetastoreConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsMetastoreConfigurationDetails.java @@ -23,6 +23,24 @@ public final class UpdateBdsMetastoreConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateBdsMetastoreConfigurationDetails( + String displayName, + String bdsApiKeyId, + String bdsApiKeyPassphrase, + String clusterAdminPassword, + String secretId) { + super(); + this.displayName = displayName; + this.bdsApiKeyId = bdsApiKeyId; + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "bdsApiKeyId", @@ -33,8 +51,8 @@ public final class UpdateBdsMetastoreConfigurationDetails public UpdateBdsMetastoreConfigurationDetails( String displayName, String bdsApiKeyId, - String bdsApiKeyPassphrase, - String clusterAdminPassword, + char[] bdsApiKeyPassphrase, + char[] clusterAdminPassword, String secretId) { super(); this.displayName = displayName; @@ -82,7 +100,7 @@ public Builder bdsApiKeyId(String bdsApiKeyId) { } /** Base-64 encoded passphrase of the BDS Api Key. */ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private String bdsApiKeyPassphrase; + private char[] bdsApiKeyPassphrase; /** * Base-64 encoded passphrase of the BDS Api Key. @@ -90,14 +108,21 @@ public Builder bdsApiKeyId(String bdsApiKeyId) { * @param bdsApiKeyPassphrase the value to set * @return this builder */ - public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + public Builder bdsApiKeyPassphrase(char[] bdsApiKeyPassphrase) { this.bdsApiKeyPassphrase = bdsApiKeyPassphrase; this.__explicitlySet__.add("bdsApiKeyPassphrase"); return this; } + + public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { + this.bdsApiKeyPassphrase = + bdsApiKeyPassphrase != null ? bdsApiKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("bdsApiKeyPassphrase"); + return this; + } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -105,11 +130,18 @@ public Builder bdsApiKeyPassphrase(String bdsApiKeyPassphrase) { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -205,27 +237,53 @@ public String getBdsApiKeyId() { /** Base-64 encoded passphrase of the BDS Api Key. */ @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") - private final String bdsApiKeyPassphrase; + private final char[] bdsApiKeyPassphrase; /** * Base-64 encoded passphrase of the BDS Api Key. * * @return the value + * @deprecated Use getBdsApiKeyPassphrase__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getBdsApiKeyPassphrase() { + return bdsApiKeyPassphrase != null ? new String(bdsApiKeyPassphrase) : null; + } + + /** + * Base-64 encoded passphrase of the BDS Api Key. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsApiKeyPassphrase") + public char[] getBdsApiKeyPassphrase__AsCharArray() { return bdsApiKeyPassphrase; } /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.java index 4737d6ee33f..5982818fe82 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.java @@ -23,6 +23,21 @@ public final class UpdateIdentityConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateIdentityConfigurationDetails( + String clusterAdminPassword, + String secretId, + UpstConfigurationDetails upstConfigurationDetails, + IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails) { + super(); + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.secretId = secretId; + this.upstConfigurationDetails = upstConfigurationDetails; + this.iamUserSyncConfigurationDetails = iamUserSyncConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "clusterAdminPassword", "secretId", @@ -30,7 +45,7 @@ public final class UpdateIdentityConfigurationDetails "iamUserSyncConfigurationDetails" }) public UpdateIdentityConfigurationDetails( - String clusterAdminPassword, + char[] clusterAdminPassword, String secretId, UpstConfigurationDetails upstConfigurationDetails, IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails) { @@ -45,7 +60,7 @@ public UpdateIdentityConfigurationDetails( public static class Builder { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private String clusterAdminPassword; + private char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. @@ -53,11 +68,18 @@ public static class Builder { * @param clusterAdminPassword the value to set * @return this builder */ - public Builder clusterAdminPassword(String clusterAdminPassword) { + public Builder clusterAdminPassword(char[] clusterAdminPassword) { this.clusterAdminPassword = clusterAdminPassword; this.__explicitlySet__.add("clusterAdminPassword"); return this; } + + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = + clusterAdminPassword != null ? clusterAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } /** The secretId for the clusterAdminPassword. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -138,14 +160,27 @@ public Builder toBuilder() { /** Base-64 encoded password for the cluster admin user. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") - private final String clusterAdminPassword; + private final char[] clusterAdminPassword; /** * Base-64 encoded password for the cluster admin user. * * @return the value + * @deprecated Use getClusterAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClusterAdminPassword() { + return clusterAdminPassword != null ? new String(clusterAdminPassword) : null; + } + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + public char[] getClusterAdminPassword__AsCharArray() { return clusterAdminPassword; } diff --git a/bmc-bds/src/main/resources/com/oracle/bmc/bds/client.properties b/bmc-bds/src/main/resources/com/oracle/bmc/bds/client.properties index cf6b911f33f..937c08b276b 100644 --- a/bmc-bds/src/main/resources/com/oracle/bmc/bds/client.properties +++ b/bmc-bds/src/main/resources/com/oracle/bmc/bds/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") \ No newline at end of file diff --git a/bmc-blockchain/src/main/resources/com/oracle/bmc/blockchain/client.properties b/bmc-blockchain/src/main/resources/com/oracle/bmc/blockchain/client.properties index 4a35aaf424f..33cb49bb057 100644 --- a/bmc-blockchain/src/main/resources/com/oracle/bmc/blockchain/client.properties +++ b/bmc-blockchain/src/main/resources/com/oracle/bmc/blockchain/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20191010") \ No newline at end of file diff --git a/bmc-budget/src/main/resources/com/oracle/bmc/budget/client.properties b/bmc-budget/src/main/resources/com/oracle/bmc/budget/client.properties index c880b420e09..0c51985ab8f 100644 --- a/bmc-budget/src/main/resources/com/oracle/bmc/budget/client.properties +++ b/bmc-budget/src/main/resources/com/oracle/bmc/budget/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") \ No newline at end of file diff --git a/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties b/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties index 8e17d670de4..b38cd3dd5df 100644 --- a/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties +++ b/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") \ No newline at end of file diff --git a/bmc-certificates/src/main/resources/com/oracle/bmc/certificates/client.properties b/bmc-certificates/src/main/resources/com/oracle/bmc/certificates/client.properties index a25f8b19fe0..c2d7fe58279 100644 --- a/bmc-certificates/src/main/resources/com/oracle/bmc/certificates/client.properties +++ b/bmc-certificates/src/main/resources/com/oracle/bmc/certificates/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210224") \ No newline at end of file diff --git a/bmc-certificatesmanagement/src/main/resources/com/oracle/bmc/certificatesmanagement/client.properties b/bmc-certificatesmanagement/src/main/resources/com/oracle/bmc/certificatesmanagement/client.properties index a25f8b19fe0..c2d7fe58279 100644 --- a/bmc-certificatesmanagement/src/main/resources/com/oracle/bmc/certificatesmanagement/client.properties +++ b/bmc-certificatesmanagement/src/main/resources/com/oracle/bmc/certificatesmanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210224") \ No newline at end of file diff --git a/bmc-cims/src/main/resources/com/oracle/bmc/cims/client.properties b/bmc-cims/src/main/resources/com/oracle/bmc/cims/client.properties index 2f1181bf156..c56fb668ada 100644 --- a/bmc-cims/src/main/resources/com/oracle/bmc/cims/client.properties +++ b/bmc-cims/src/main/resources/com/oracle/bmc/cims/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") \ No newline at end of file diff --git a/bmc-cloudbridge/src/main/resources/com/oracle/bmc/cloudbridge/client.properties b/bmc-cloudbridge/src/main/resources/com/oracle/bmc/cloudbridge/client.properties index dc692898b19..c037f1f9fdd 100644 --- a/bmc-cloudbridge/src/main/resources/com/oracle/bmc/cloudbridge/client.properties +++ b/bmc-cloudbridge/src/main/resources/com/oracle/bmc/cloudbridge/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") \ No newline at end of file diff --git a/bmc-cloudguard/src/main/resources/com/oracle/bmc/cloudguard/client.properties b/bmc-cloudguard/src/main/resources/com/oracle/bmc/cloudguard/client.properties index 40b4e55d62c..65d8333ecee 100644 --- a/bmc-cloudguard/src/main/resources/com/oracle/bmc/cloudguard/client.properties +++ b/bmc-cloudguard/src/main/resources/com/oracle/bmc/cloudguard/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200131") \ No newline at end of file diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/LogicalUnit.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/LogicalUnit.java index 28595f5c476..93dc6dbe8aa 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/LogicalUnit.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/LogicalUnit.java @@ -20,6 +20,50 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class LogicalUnit extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + public LogicalUnit( + String address, + Long discardMaxSizeInBytes, + Boolean isDiscardZeroesData, + String diskId, + String id, + Integer lunMapping, + LunStatus lunStatus, + String password, + Integer paths, + Integer port, + String portal, + String productId, + String serial, + Integer size, + String storageDomainId, + String target, + String username, + String vendorId, + String volumeGroupId) { + super(); + this.address = address; + this.discardMaxSizeInBytes = discardMaxSizeInBytes; + this.isDiscardZeroesData = isDiscardZeroesData; + this.diskId = diskId; + this.id = id; + this.lunMapping = lunMapping; + this.lunStatus = lunStatus; + this.password = password != null ? password.toCharArray() : null; + this.paths = paths; + this.port = port; + this.portal = portal; + this.productId = productId; + this.serial = serial; + this.size = size; + this.storageDomainId = storageDomainId; + this.target = target; + this.username = username; + this.vendorId = vendorId; + this.volumeGroupId = volumeGroupId; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "address", @@ -50,7 +94,7 @@ public LogicalUnit( String id, Integer lunMapping, LunStatus lunStatus, - String password, + char[] password, Integer paths, Integer port, String portal, @@ -201,7 +245,7 @@ public Builder lunStatus(LunStatus lunStatus) { } /** Password of the logical unit. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Password of the logical unit. @@ -209,11 +253,17 @@ public Builder lunStatus(LunStatus lunStatus) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** Paths of the logical unit. */ @com.fasterxml.jackson.annotation.JsonProperty("paths") private Integer paths; @@ -618,14 +668,27 @@ public LunStatus getLunStatus() { /** Password of the logical unit. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * Password of the logical unit. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * Password of the logical unit. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Storage.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Storage.java index c6e97a2fbd9..45dde1a1d06 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Storage.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Storage.java @@ -20,6 +20,54 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class Storage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + public Storage( + String id, + String address, + String comment, + String storageDescription, + java.util.List driverOptions, + java.util.List driverSensitiveOptions, + java.util.List logicalUnits, + String mountOptions, + Integer nfsRetrans, + Integer nfsTimeo, + NfsVersion nfsVersion, + Boolean isOverrideLuns, + String password, + Integer paths, + Integer port, + String portal, + String target, + String username, + Type type, + String vfsType, + VolumeGroup volumeGroup) { + super(); + this.id = id; + this.address = address; + this.comment = comment; + this.storageDescription = storageDescription; + this.driverOptions = driverOptions; + this.driverSensitiveOptions = driverSensitiveOptions; + this.logicalUnits = logicalUnits; + this.mountOptions = mountOptions; + this.nfsRetrans = nfsRetrans; + this.nfsTimeo = nfsTimeo; + this.nfsVersion = nfsVersion; + this.isOverrideLuns = isOverrideLuns; + this.password = password != null ? password.toCharArray() : null; + this.paths = paths; + this.port = port; + this.portal = portal; + this.target = target; + this.username = username; + this.type = type; + this.vfsType = vfsType; + this.volumeGroup = volumeGroup; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "id", @@ -57,7 +105,7 @@ public Storage( Integer nfsTimeo, NfsVersion nfsVersion, Boolean isOverrideLuns, - String password, + char[] password, Integer paths, Integer port, String portal, @@ -278,7 +326,7 @@ public Builder isOverrideLuns(Boolean isOverrideLuns) { } /** Password of the host storage. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Password of the host storage. @@ -286,11 +334,17 @@ public Builder isOverrideLuns(Boolean isOverrideLuns) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** Paths of the host storage. */ @com.fasterxml.jackson.annotation.JsonProperty("paths") private Integer paths; @@ -716,14 +770,27 @@ public Boolean getIsOverrideLuns() { /** Password of the host storage. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * Password of the host storage. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * Password of the host storage. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-cloudmigrations/src/main/resources/com/oracle/bmc/cloudmigrations/client.properties b/bmc-cloudmigrations/src/main/resources/com/oracle/bmc/cloudmigrations/client.properties index eff104fb647..ed279eb9c05 100644 --- a/bmc-cloudmigrations/src/main/resources/com/oracle/bmc/cloudmigrations/client.properties +++ b/bmc-cloudmigrations/src/main/resources/com/oracle/bmc/cloudmigrations/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220919") \ No newline at end of file diff --git a/bmc-clusterplacementgroups/src/main/resources/com/oracle/bmc/clusterplacementgroups/client.properties b/bmc-clusterplacementgroups/src/main/resources/com/oracle/bmc/clusterplacementgroups/client.properties index e1ec1b6b372..b3d50c497b7 100644 --- a/bmc-clusterplacementgroups/src/main/resources/com/oracle/bmc/clusterplacementgroups/client.properties +++ b/bmc-clusterplacementgroups/src/main/resources/com/oracle/bmc/clusterplacementgroups/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") \ No newline at end of file diff --git a/bmc-common/src/main/resources/com/oracle/bmc/sdk.properties b/bmc-common/src/main/resources/com/oracle/bmc/sdk.properties index fc19667c275..110020cedd8 100644 --- a/bmc-common/src/main/resources/com/oracle/bmc/sdk.properties +++ b/bmc-common/src/main/resources/com/oracle/bmc/sdk.properties @@ -7,5 +7,5 @@ sdk.version = ${pom.version} # Clients generated using a codegen version between the minimum and maximum # expressed below are compatible with the version of oci-java-sdk-common in this module. -java.minimum.client.codegen.version = 2.145 +java.minimum.client.codegen.version = 2.163 java.maximum.client.codegen.version = ${oci.codegen.version} diff --git a/bmc-computecloudatcustomer/src/main/resources/com/oracle/bmc/computecloudatcustomer/client.properties b/bmc-computecloudatcustomer/src/main/resources/com/oracle/bmc/computecloudatcustomer/client.properties index 315cca0f3fb..46e5510306a 100644 --- a/bmc-computecloudatcustomer/src/main/resources/com/oracle/bmc/computecloudatcustomer/client.properties +++ b/bmc-computecloudatcustomer/src/main/resources/com/oracle/bmc/computecloudatcustomer/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221208") \ No newline at end of file diff --git a/bmc-computeinstanceagent/src/main/resources/com/oracle/bmc/computeinstanceagent/client.properties b/bmc-computeinstanceagent/src/main/resources/com/oracle/bmc/computeinstanceagent/client.properties index a828f14b385..1ee4e1e67ac 100644 --- a/bmc-computeinstanceagent/src/main/resources/com/oracle/bmc/computeinstanceagent/client.properties +++ b/bmc-computeinstanceagent/src/main/resources/com/oracle/bmc/computeinstanceagent/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180530") \ No newline at end of file diff --git a/bmc-containerengine/src/main/resources/com/oracle/bmc/containerengine/client.properties b/bmc-containerengine/src/main/resources/com/oracle/bmc/containerengine/client.properties index 7bf9d3ff973..d0030535f63 100644 --- a/bmc-containerengine/src/main/resources/com/oracle/bmc/containerengine/client.properties +++ b/bmc-containerengine/src/main/resources/com/oracle/bmc/containerengine/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180222") \ No newline at end of file diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateBasicImagePullSecretDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateBasicImagePullSecretDetails.java index 6d64efb4c5f..3f2800b587e 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateBasicImagePullSecretDetails.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateBasicImagePullSecretDetails.java @@ -60,7 +60,7 @@ public Builder username(String username) { * expected in base64 format. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password which should be used with the registry for authentication. The value is @@ -69,12 +69,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -117,6 +123,18 @@ public CreateBasicImagePullSecretDetails( String registryEndpoint, String username, String password) { super(registryEndpoint); this.username = username; + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateBasicImagePullSecretDetails( + @com.fasterxml.jackson.annotation.JsonProperty("registryEndpoint") + String registryEndpoint, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password) { + super(registryEndpoint); + this.username = username; this.password = password; } @@ -142,15 +160,29 @@ public String getUsername() { * in base64 format. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password which should be used with the registry for authentication. The value is expected * in base64 format. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password which should be used with the registry for authentication. The value is expected + * in base64 format. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-containerinstances/src/main/resources/com/oracle/bmc/containerinstances/client.properties b/bmc-containerinstances/src/main/resources/com/oracle/bmc/containerinstances/client.properties index 936b2281507..39b804ee8ad 100644 --- a/bmc-containerinstances/src/main/resources/com/oracle/bmc/containerinstances/client.properties +++ b/bmc-containerinstances/src/main/resources/com/oracle/bmc/containerinstances/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") \ No newline at end of file diff --git a/bmc-containerregistry/src/main/resources/com/oracle/bmc/containerregistry/client.properties b/bmc-containerregistry/src/main/resources/com/oracle/bmc/containerregistry/client.properties index 366f09f9fa4..ab82d0c31fa 100644 --- a/bmc-containerregistry/src/main/resources/com/oracle/bmc/containerregistry/client.properties +++ b/bmc-containerregistry/src/main/resources/com/oracle/bmc/containerregistry/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180419") \ No newline at end of file diff --git a/bmc-core/src/main/resources/com/oracle/bmc/core/client.properties b/bmc-core/src/main/resources/com/oracle/bmc/core/client.properties index 57fa7f4b072..80d9875bfaf 100644 --- a/bmc-core/src/main/resources/com/oracle/bmc/core/client.properties +++ b/bmc-core/src/main/resources/com/oracle/bmc/core/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-dashboardservice/src/main/resources/com/oracle/bmc/dashboardservice/client.properties b/bmc-dashboardservice/src/main/resources/com/oracle/bmc/dashboardservice/client.properties index 3552e2db885..4781ae85ac1 100644 --- a/bmc-dashboardservice/src/main/resources/com/oracle/bmc/dashboardservice/client.properties +++ b/bmc-dashboardservice/src/main/resources/com/oracle/bmc/dashboardservice/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210731") \ No newline at end of file diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertStandbyDatabaseTypeDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertStandbyDatabaseTypeDetails.java index 5b044786a4b..d1c7176c462 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertStandbyDatabaseTypeDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertStandbyDatabaseTypeDetails.java @@ -23,13 +23,26 @@ public final class ConvertStandbyDatabaseTypeDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public ConvertStandbyDatabaseTypeDetails( + String databaseAdminPassword, + StandbyConversionType standbyConversionType, + Integer snapshotDurationInDays) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.standbyConversionType = standbyConversionType; + this.snapshotDurationInDays = snapshotDurationInDays; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "databaseAdminPassword", "standbyConversionType", "snapshotDurationInDays" }) public ConvertStandbyDatabaseTypeDetails( - String databaseAdminPassword, + char[] databaseAdminPassword, StandbyConversionType standbyConversionType, Integer snapshotDurationInDays) { super(); @@ -46,7 +59,7 @@ public static class Builder { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -56,11 +69,18 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder */ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } /** * Defines the conversion type of the standby database. Specify this to convert a physical * standby to a snapshot standby and vice versa. @@ -157,7 +177,20 @@ public Builder toBuilder() { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. <p> + * *The password MUST be the same as the primary admin password.** + * + * @return the value + * @deprecated Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -166,10 +199,10 @@ public Builder toBuilder() { * * @return the value */ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } - /** * Defines the conversion type of the standby database. Specify this to convert a physical * standby to a snapshot standby and vice versa. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToRegularPluggableDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToRegularPluggableDatabaseDetails.java index 3bd213931c1..580f957b723 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToRegularPluggableDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToRegularPluggableDatabaseDetails.java @@ -24,6 +24,21 @@ public final class ConvertToRegularPluggableDatabaseDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public ConvertToRegularPluggableDatabaseDetails( + Boolean shouldCreatePdbBackup, + String containerDatabaseAdminPassword, + String tdeWalletPassword) { + super(); + this.shouldCreatePdbBackup = shouldCreatePdbBackup; + this.containerDatabaseAdminPassword = + containerDatabaseAdminPassword != null + ? containerDatabaseAdminPassword.toCharArray() + : null; + this.tdeWalletPassword = tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "shouldCreatePdbBackup", "containerDatabaseAdminPassword", @@ -31,8 +46,8 @@ public final class ConvertToRegularPluggableDatabaseDetails }) public ConvertToRegularPluggableDatabaseDetails( Boolean shouldCreatePdbBackup, - String containerDatabaseAdminPassword, - String tdeWalletPassword) { + char[] containerDatabaseAdminPassword, + char[] tdeWalletPassword) { super(); this.shouldCreatePdbBackup = shouldCreatePdbBackup; this.containerDatabaseAdminPassword = containerDatabaseAdminPassword; @@ -58,7 +73,7 @@ public Builder shouldCreatePdbBackup(Boolean shouldCreatePdbBackup) { } /** The DB system administrator password of the Container Database. */ @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") - private String containerDatabaseAdminPassword; + private char[] containerDatabaseAdminPassword; /** * The DB system administrator password of the Container Database. @@ -66,14 +81,23 @@ public Builder shouldCreatePdbBackup(Boolean shouldCreatePdbBackup) { * @param containerDatabaseAdminPassword the value to set * @return this builder */ - public Builder containerDatabaseAdminPassword(String containerDatabaseAdminPassword) { + public Builder containerDatabaseAdminPassword(char[] containerDatabaseAdminPassword) { this.containerDatabaseAdminPassword = containerDatabaseAdminPassword; this.__explicitlySet__.add("containerDatabaseAdminPassword"); return this; } + + public Builder containerDatabaseAdminPassword(String containerDatabaseAdminPassword) { + this.containerDatabaseAdminPassword = + containerDatabaseAdminPassword != null + ? containerDatabaseAdminPassword.toCharArray() + : null; + this.__explicitlySet__.add("containerDatabaseAdminPassword"); + return this; + } /** The existing TDE wallet password of the Container Database. */ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private String tdeWalletPassword; + private char[] tdeWalletPassword; /** * The existing TDE wallet password of the Container Database. @@ -81,12 +105,19 @@ public Builder containerDatabaseAdminPassword(String containerDatabaseAdminPassw * @param tdeWalletPassword the value to set * @return this builder */ - public Builder tdeWalletPassword(String tdeWalletPassword) { + public Builder tdeWalletPassword(char[] tdeWalletPassword) { this.tdeWalletPassword = tdeWalletPassword; this.__explicitlySet__.add("tdeWalletPassword"); return this; } + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -141,27 +172,55 @@ public Boolean getShouldCreatePdbBackup() { /** The DB system administrator password of the Container Database. */ @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") - private final String containerDatabaseAdminPassword; + private final char[] containerDatabaseAdminPassword; /** * The DB system administrator password of the Container Database. * * @return the value + * @deprecated Use getContainerDatabaseAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getContainerDatabaseAdminPassword() { + return containerDatabaseAdminPassword != null + ? new String(containerDatabaseAdminPassword) + : null; + } + + /** + * The DB system administrator password of the Container Database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") + public char[] getContainerDatabaseAdminPassword__AsCharArray() { return containerDatabaseAdminPassword; } /** The existing TDE wallet password of the Container Database. */ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private final String tdeWalletPassword; + private final char[] tdeWalletPassword; /** * The existing TDE wallet password of the Container Database. * * @return the value + * @deprecated Use getTdeWalletPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTdeWalletPassword() { + return tdeWalletPassword != null ? new String(tdeWalletPassword) : null; + } + + /** + * The existing TDE wallet password of the Container Database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + public char[] getTdeWalletPassword__AsCharArray() { return tdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToStandaloneDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToStandaloneDetails.java index 8ba9b70b038..7d084c7725f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToStandaloneDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ConvertToStandaloneDetails.java @@ -23,8 +23,16 @@ public final class ConvertToStandaloneDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"databaseAdminPassword"}) public ConvertToStandaloneDetails(String databaseAdminPassword) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"databaseAdminPassword"}) + public ConvertToStandaloneDetails(char[] databaseAdminPassword) { super(); this.databaseAdminPassword = databaseAdminPassword; } @@ -37,7 +45,7 @@ public static class Builder { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -47,12 +55,19 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder */ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -89,7 +104,20 @@ public Builder toBuilder() { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. <p> + * *The password MUST be the same as the primary admin password.** + * + * @return the value + * @deprecated Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -98,7 +126,8 @@ public Builder toBuilder() { * * @return the value */ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java index 87d6e3b4cce..3212d337ace 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseDetails.java @@ -26,6 +26,50 @@ public final class CreateDatabaseDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateDatabaseDetails( + String dbName, + String dbUniqueName, + String databaseSoftwareImageId, + String pdbName, + String adminPassword, + String tdeWalletPassword, + String characterSet, + String ncharacterSet, + DbWorkload dbWorkload, + DbBackupConfig dbBackupConfig, + java.util.Map freeformTags, + java.util.Map> definedTags, + String kmsKeyId, + String kmsKeyVersionId, + String vaultId, + String sidPrefix, + String keyStoreId, + EncryptionKeyLocationDetails encryptionKeyLocationDetails, + DatabaseStorageSizeDetails storageSizeDetails) { + super(); + this.dbName = dbName; + this.dbUniqueName = dbUniqueName; + this.databaseSoftwareImageId = databaseSoftwareImageId; + this.pdbName = pdbName; + this.adminPassword = adminPassword; + this.tdeWalletPassword = tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.characterSet = characterSet; + this.ncharacterSet = ncharacterSet; + this.dbWorkload = dbWorkload; + this.dbBackupConfig = dbBackupConfig; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.vaultId = vaultId; + this.sidPrefix = sidPrefix; + this.keyStoreId = keyStoreId; + this.encryptionKeyLocationDetails = encryptionKeyLocationDetails; + this.storageSizeDetails = storageSizeDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "dbName", "dbUniqueName", @@ -53,7 +97,7 @@ public CreateDatabaseDetails( String databaseSoftwareImageId, String pdbName, String adminPassword, - String tdeWalletPassword, + char[] tdeWalletPassword, String characterSet, String ncharacterSet, DbWorkload dbWorkload, @@ -192,7 +236,7 @@ public Builder adminPassword(String adminPassword) { * special characters. The special characters must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private String tdeWalletPassword; + private char[] tdeWalletPassword; /** * The optional password to open the TDE wallet. The password must be at least nine @@ -202,11 +246,18 @@ public Builder adminPassword(String adminPassword) { * @param tdeWalletPassword the value to set * @return this builder */ - public Builder tdeWalletPassword(String tdeWalletPassword) { + public Builder tdeWalletPassword(char[] tdeWalletPassword) { this.tdeWalletPassword = tdeWalletPassword; this.__explicitlySet__.add("tdeWalletPassword"); return this; } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } /** * The character set for the database. The default is AL32UTF8. Allowed values are: * @@ -677,7 +728,7 @@ public String getAdminPassword() { * The special characters must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private final String tdeWalletPassword; + private final char[] tdeWalletPassword; /** * The optional password to open the TDE wallet. The password must be at least nine characters @@ -685,8 +736,23 @@ public String getAdminPassword() { * The special characters must be _, \\#, or -. * * @return the value + * @deprecated Use getTdeWalletPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTdeWalletPassword() { + return tdeWalletPassword != null ? new String(tdeWalletPassword) : null; + } + + /** + * The optional password to open the TDE wallet. The password must be at least nine characters + * and contain at least two uppercase, two lowercase, two numeric, and two special characters. + * The special characters must be _, \\#, or -. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + public char[] getTdeWalletPassword__AsCharArray() { return tdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseForStandbyDbSystemDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseForStandbyDbSystemDetails.java index e8b245bbd61..0a06795bd88 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseForStandbyDbSystemDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseForStandbyDbSystemDetails.java @@ -26,6 +26,38 @@ public final class CreateDatabaseForStandbyDbSystemDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateDatabaseForStandbyDbSystemDetails( + String adminPassword, + String tdeWalletPassword, + String databaseSoftwareImageId, + Boolean isActiveDataGuardEnabled, + String dbDomain, + String sidPrefix, + String dbUniqueName, + ProtectionMode protectionMode, + EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, + TransportType transportType, + DbBackupConfig dbBackupConfig, + java.util.Map databaseFreeformTags, + java.util.Map> databaseDefinedTags) { + super(); + this.adminPassword = adminPassword; + this.tdeWalletPassword = tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.databaseSoftwareImageId = databaseSoftwareImageId; + this.isActiveDataGuardEnabled = isActiveDataGuardEnabled; + this.dbDomain = dbDomain; + this.sidPrefix = sidPrefix; + this.dbUniqueName = dbUniqueName; + this.protectionMode = protectionMode; + this.sourceEncryptionKeyLocationDetails = sourceEncryptionKeyLocationDetails; + this.transportType = transportType; + this.dbBackupConfig = dbBackupConfig; + this.databaseFreeformTags = databaseFreeformTags; + this.databaseDefinedTags = databaseDefinedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "adminPassword", "tdeWalletPassword", @@ -43,7 +75,7 @@ public final class CreateDatabaseForStandbyDbSystemDetails }) public CreateDatabaseForStandbyDbSystemDetails( String adminPassword, - String tdeWalletPassword, + char[] tdeWalletPassword, String databaseSoftwareImageId, Boolean isActiveDataGuardEnabled, String dbDomain, @@ -92,7 +124,7 @@ public Builder adminPassword(String adminPassword) { } /** For TDE Wallet, enter the same password as the primary wallet password. */ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private String tdeWalletPassword; + private char[] tdeWalletPassword; /** * For TDE Wallet, enter the same password as the primary wallet password. @@ -100,11 +132,18 @@ public Builder adminPassword(String adminPassword) { * @param tdeWalletPassword the value to set * @return this builder */ - public Builder tdeWalletPassword(String tdeWalletPassword) { + public Builder tdeWalletPassword(char[] tdeWalletPassword) { this.tdeWalletPassword = tdeWalletPassword; this.__explicitlySet__.add("tdeWalletPassword"); return this; } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } /** * The database software image * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) @@ -412,14 +451,27 @@ public String getAdminPassword() { /** For TDE Wallet, enter the same password as the primary wallet password. */ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private final String tdeWalletPassword; + private final char[] tdeWalletPassword; /** * For TDE Wallet, enter the same password as the primary wallet password. * * @return the value + * @deprecated Use getTdeWalletPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTdeWalletPassword() { + return tdeWalletPassword != null ? new String(tdeWalletPassword) : null; + } + + /** + * For TDE Wallet, enter the same password as the primary wallet password. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + public char[] getTdeWalletPassword__AsCharArray() { return tdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseDetails.java index 38d1fa4c69e..2730f6d5334 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseDetails.java @@ -26,6 +26,35 @@ public final class CreatePluggableDatabaseDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreatePluggableDatabaseDetails( + String pdbName, + String containerDatabaseId, + String pdbAdminPassword, + String tdeWalletPassword, + Boolean shouldPdbAdminAccountBeLocked, + String containerDatabaseAdminPassword, + Boolean shouldCreatePdbBackup, + CreatePluggableDatabaseCreationTypeDetails pdbCreationTypeDetails, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.pdbName = pdbName; + this.containerDatabaseId = containerDatabaseId; + this.pdbAdminPassword = pdbAdminPassword; + this.tdeWalletPassword = tdeWalletPassword; + this.shouldPdbAdminAccountBeLocked = shouldPdbAdminAccountBeLocked; + this.containerDatabaseAdminPassword = + containerDatabaseAdminPassword != null + ? containerDatabaseAdminPassword.toCharArray() + : null; + this.shouldCreatePdbBackup = shouldCreatePdbBackup; + this.pdbCreationTypeDetails = pdbCreationTypeDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "pdbName", "containerDatabaseId", @@ -44,7 +73,7 @@ public CreatePluggableDatabaseDetails( String pdbAdminPassword, String tdeWalletPassword, Boolean shouldPdbAdminAccountBeLocked, - String containerDatabaseAdminPassword, + char[] containerDatabaseAdminPassword, Boolean shouldCreatePdbBackup, CreatePluggableDatabaseCreationTypeDetails pdbCreationTypeDetails, java.util.Map freeformTags, @@ -165,7 +194,7 @@ public Builder shouldPdbAdminAccountBeLocked(Boolean shouldPdbAdminAccountBeLock } /** The DB system administrator password of the Container Database. */ @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") - private String containerDatabaseAdminPassword; + private char[] containerDatabaseAdminPassword; /** * The DB system administrator password of the Container Database. @@ -173,11 +202,20 @@ public Builder shouldPdbAdminAccountBeLocked(Boolean shouldPdbAdminAccountBeLock * @param containerDatabaseAdminPassword the value to set * @return this builder */ - public Builder containerDatabaseAdminPassword(String containerDatabaseAdminPassword) { + public Builder containerDatabaseAdminPassword(char[] containerDatabaseAdminPassword) { this.containerDatabaseAdminPassword = containerDatabaseAdminPassword; this.__explicitlySet__.add("containerDatabaseAdminPassword"); return this; } + + public Builder containerDatabaseAdminPassword(String containerDatabaseAdminPassword) { + this.containerDatabaseAdminPassword = + containerDatabaseAdminPassword != null + ? containerDatabaseAdminPassword.toCharArray() + : null; + this.__explicitlySet__.add("containerDatabaseAdminPassword"); + return this; + } /** Indicates whether to take Pluggable Database Backup after the operation. */ @com.fasterxml.jackson.annotation.JsonProperty("shouldCreatePdbBackup") private Boolean shouldCreatePdbBackup; @@ -407,14 +445,29 @@ public Boolean getShouldPdbAdminAccountBeLocked() { /** The DB system administrator password of the Container Database. */ @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") - private final String containerDatabaseAdminPassword; + private final char[] containerDatabaseAdminPassword; /** * The DB system administrator password of the Container Database. * * @return the value + * @deprecated Use getContainerDatabaseAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getContainerDatabaseAdminPassword() { + return containerDatabaseAdminPassword != null + ? new String(containerDatabaseAdminPassword) + : null; + } + + /** + * The DB system administrator password of the Container Database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseAdminPassword") + public char[] getContainerDatabaseAdminPassword__AsCharArray() { return containerDatabaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRelocateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRelocateDetails.java index 98a440e0886..bb64aeb3fcb 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRelocateDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRelocateDetails.java @@ -47,7 +47,7 @@ public Builder dblinkUsername(String dblinkUsername) { } /** The DB link user password. */ @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") - private String dblinkUserPassword; + private char[] dblinkUserPassword; /** * The DB link user password. @@ -55,11 +55,18 @@ public Builder dblinkUsername(String dblinkUsername) { * @param dblinkUserPassword the value to set * @return this builder */ - public Builder dblinkUserPassword(String dblinkUserPassword) { + public Builder dblinkUserPassword(char[] dblinkUserPassword) { this.dblinkUserPassword = dblinkUserPassword; this.__explicitlySet__.add("dblinkUserPassword"); return this; } + + public Builder dblinkUserPassword(String dblinkUserPassword) { + this.dblinkUserPassword = + dblinkUserPassword != null ? dblinkUserPassword.toCharArray() : null; + this.__explicitlySet__.add("dblinkUserPassword"); + return this; + } /** The OCID of the Source Pluggable Database. */ @com.fasterxml.jackson.annotation.JsonProperty("sourcePluggableDatabaseId") private String sourcePluggableDatabaseId; @@ -77,7 +84,7 @@ public Builder sourcePluggableDatabaseId(String sourcePluggableDatabaseId) { } /** The DB system administrator password of the source Container Database. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") - private String sourceContainerDatabaseAdminPassword; + private char[] sourceContainerDatabaseAdminPassword; /** * The DB system administrator password of the source Container Database. @@ -86,12 +93,22 @@ public Builder sourcePluggableDatabaseId(String sourcePluggableDatabaseId) { * @return this builder */ public Builder sourceContainerDatabaseAdminPassword( - String sourceContainerDatabaseAdminPassword) { + char[] sourceContainerDatabaseAdminPassword) { this.sourceContainerDatabaseAdminPassword = sourceContainerDatabaseAdminPassword; this.__explicitlySet__.add("sourceContainerDatabaseAdminPassword"); return this; } + public Builder sourceContainerDatabaseAdminPassword( + String sourceContainerDatabaseAdminPassword) { + this.sourceContainerDatabaseAdminPassword = + sourceContainerDatabaseAdminPassword != null + ? sourceContainerDatabaseAdminPassword.toCharArray() + : null; + this.__explicitlySet__.add("sourceContainerDatabaseAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -144,6 +161,27 @@ public CreatePluggableDatabaseFromRelocateDetails( String sourceContainerDatabaseAdminPassword) { super(); this.dblinkUsername = dblinkUsername; + this.dblinkUserPassword = + dblinkUserPassword != null ? dblinkUserPassword.toCharArray() : null; + this.sourcePluggableDatabaseId = sourcePluggableDatabaseId; + this.sourceContainerDatabaseAdminPassword = + sourceContainerDatabaseAdminPassword != null + ? sourceContainerDatabaseAdminPassword.toCharArray() + : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreatePluggableDatabaseFromRelocateDetails( + @com.fasterxml.jackson.annotation.JsonProperty("dblinkUsername") String dblinkUsername, + @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") + char[] dblinkUserPassword, + @com.fasterxml.jackson.annotation.JsonProperty("sourcePluggableDatabaseId") + String sourcePluggableDatabaseId, + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") + char[] sourceContainerDatabaseAdminPassword) { + super(); + this.dblinkUsername = dblinkUsername; this.dblinkUserPassword = dblinkUserPassword; this.sourcePluggableDatabaseId = sourcePluggableDatabaseId; this.sourceContainerDatabaseAdminPassword = sourceContainerDatabaseAdminPassword; @@ -164,14 +202,27 @@ public String getDblinkUsername() { /** The DB link user password. */ @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") - private final String dblinkUserPassword; + private final char[] dblinkUserPassword; /** * The DB link user password. * * @return the value + * @deprecated Use getDblinkUserPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getDblinkUserPassword() { + return dblinkUserPassword != null ? new String(dblinkUserPassword) : null; + } + + /** + * The DB link user password. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") + public char[] getDblinkUserPassword__AsCharArray() { return dblinkUserPassword; } @@ -190,14 +241,29 @@ public String getSourcePluggableDatabaseId() { /** The DB system administrator password of the source Container Database. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") - private final String sourceContainerDatabaseAdminPassword; + private final char[] sourceContainerDatabaseAdminPassword; /** * The DB system administrator password of the source Container Database. * * @return the value + * @deprecated Use getSourceContainerDatabaseAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSourceContainerDatabaseAdminPassword() { + return sourceContainerDatabaseAdminPassword != null + ? new String(sourceContainerDatabaseAdminPassword) + : null; + } + + /** + * The DB system administrator password of the source Container Database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") + public char[] getSourceContainerDatabaseAdminPassword__AsCharArray() { return sourceContainerDatabaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRemoteCloneDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRemoteCloneDetails.java index 7e14aaddf6a..894e5bfe157 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRemoteCloneDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseFromRemoteCloneDetails.java @@ -48,7 +48,7 @@ public Builder dblinkUsername(String dblinkUsername) { } /** The DB link user password. */ @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") - private String dblinkUserPassword; + private char[] dblinkUserPassword; /** * The DB link user password. @@ -56,11 +56,18 @@ public Builder dblinkUsername(String dblinkUsername) { * @param dblinkUserPassword the value to set * @return this builder */ - public Builder dblinkUserPassword(String dblinkUserPassword) { + public Builder dblinkUserPassword(char[] dblinkUserPassword) { this.dblinkUserPassword = dblinkUserPassword; this.__explicitlySet__.add("dblinkUserPassword"); return this; } + + public Builder dblinkUserPassword(String dblinkUserPassword) { + this.dblinkUserPassword = + dblinkUserPassword != null ? dblinkUserPassword.toCharArray() : null; + this.__explicitlySet__.add("dblinkUserPassword"); + return this; + } /** The OCID of the Source Pluggable Database. */ @com.fasterxml.jackson.annotation.JsonProperty("sourcePluggableDatabaseId") private String sourcePluggableDatabaseId; @@ -78,7 +85,7 @@ public Builder sourcePluggableDatabaseId(String sourcePluggableDatabaseId) { } /** The DB system administrator password of the source Container Database. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") - private String sourceContainerDatabaseAdminPassword; + private char[] sourceContainerDatabaseAdminPassword; /** * The DB system administrator password of the source Container Database. @@ -87,12 +94,22 @@ public Builder sourcePluggableDatabaseId(String sourcePluggableDatabaseId) { * @return this builder */ public Builder sourceContainerDatabaseAdminPassword( - String sourceContainerDatabaseAdminPassword) { + char[] sourceContainerDatabaseAdminPassword) { this.sourceContainerDatabaseAdminPassword = sourceContainerDatabaseAdminPassword; this.__explicitlySet__.add("sourceContainerDatabaseAdminPassword"); return this; } + public Builder sourceContainerDatabaseAdminPassword( + String sourceContainerDatabaseAdminPassword) { + this.sourceContainerDatabaseAdminPassword = + sourceContainerDatabaseAdminPassword != null + ? sourceContainerDatabaseAdminPassword.toCharArray() + : null; + this.__explicitlySet__.add("sourceContainerDatabaseAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshableCloneDetails") private CreatePluggableDatabaseRefreshableCloneDetails refreshableCloneDetails; @@ -205,6 +222,35 @@ public CreatePluggableDatabaseFromRemoteCloneDetails( String sourcePluggableDatabaseSnapshotId) { super(); this.dblinkUsername = dblinkUsername; + this.dblinkUserPassword = + dblinkUserPassword != null ? dblinkUserPassword.toCharArray() : null; + this.sourcePluggableDatabaseId = sourcePluggableDatabaseId; + this.sourceContainerDatabaseAdminPassword = + sourceContainerDatabaseAdminPassword != null + ? sourceContainerDatabaseAdminPassword.toCharArray() + : null; + this.refreshableCloneDetails = refreshableCloneDetails; + this.isThinClone = isThinClone; + this.sourcePluggableDatabaseSnapshotId = sourcePluggableDatabaseSnapshotId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreatePluggableDatabaseFromRemoteCloneDetails( + @com.fasterxml.jackson.annotation.JsonProperty("dblinkUsername") String dblinkUsername, + @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") + char[] dblinkUserPassword, + @com.fasterxml.jackson.annotation.JsonProperty("sourcePluggableDatabaseId") + String sourcePluggableDatabaseId, + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") + char[] sourceContainerDatabaseAdminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("refreshableCloneDetails") + CreatePluggableDatabaseRefreshableCloneDetails refreshableCloneDetails, + @com.fasterxml.jackson.annotation.JsonProperty("isThinClone") Boolean isThinClone, + @com.fasterxml.jackson.annotation.JsonProperty("sourcePluggableDatabaseSnapshotId") + String sourcePluggableDatabaseSnapshotId) { + super(); + this.dblinkUsername = dblinkUsername; this.dblinkUserPassword = dblinkUserPassword; this.sourcePluggableDatabaseId = sourcePluggableDatabaseId; this.sourceContainerDatabaseAdminPassword = sourceContainerDatabaseAdminPassword; @@ -228,14 +274,27 @@ public String getDblinkUsername() { /** The DB link user password. */ @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") - private final String dblinkUserPassword; + private final char[] dblinkUserPassword; /** * The DB link user password. * * @return the value + * @deprecated Use getDblinkUserPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getDblinkUserPassword() { + return dblinkUserPassword != null ? new String(dblinkUserPassword) : null; + } + + /** + * The DB link user password. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("dblinkUserPassword") + public char[] getDblinkUserPassword__AsCharArray() { return dblinkUserPassword; } @@ -254,14 +313,29 @@ public String getSourcePluggableDatabaseId() { /** The DB system administrator password of the source Container Database. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") - private final String sourceContainerDatabaseAdminPassword; + private final char[] sourceContainerDatabaseAdminPassword; /** * The DB system administrator password of the source Container Database. * * @return the value + * @deprecated Use getSourceContainerDatabaseAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSourceContainerDatabaseAdminPassword() { + return sourceContainerDatabaseAdminPassword != null + ? new String(sourceContainerDatabaseAdminPassword) + : null; + } + + /** + * The DB system administrator password of the source Container Database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseAdminPassword") + public char[] getSourceContainerDatabaseAdminPassword__AsCharArray() { return sourceContainerDatabaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java index 2da0336183a..94b925b6004 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java @@ -23,6 +23,38 @@ public final class CreateStandbyDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateStandbyDetails( + String sourceDatabaseId, + String databaseAdminPassword, + String sourceTdeWalletPassword, + EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, + Boolean isActiveDataGuardEnabled, + String dbUniqueName, + String sidPrefix, + ProtectionMode protectionMode, + TransportType transportType, + DatabaseStorageSizeDetails storageSizeDetails, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.sourceDatabaseId = sourceDatabaseId; + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.sourceTdeWalletPassword = + sourceTdeWalletPassword != null ? sourceTdeWalletPassword.toCharArray() : null; + this.sourceEncryptionKeyLocationDetails = sourceEncryptionKeyLocationDetails; + this.isActiveDataGuardEnabled = isActiveDataGuardEnabled; + this.dbUniqueName = dbUniqueName; + this.sidPrefix = sidPrefix; + this.protectionMode = protectionMode; + this.transportType = transportType; + this.storageSizeDetails = storageSizeDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "sourceDatabaseId", "databaseAdminPassword", @@ -39,8 +71,8 @@ public final class CreateStandbyDetails }) public CreateStandbyDetails( String sourceDatabaseId, - String databaseAdminPassword, - String sourceTdeWalletPassword, + char[] databaseAdminPassword, + char[] sourceTdeWalletPassword, EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, Boolean isActiveDataGuardEnabled, String dbUniqueName, @@ -92,7 +124,7 @@ public Builder sourceDatabaseId(String sourceDatabaseId) { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -102,14 +134,21 @@ public Builder sourceDatabaseId(String sourceDatabaseId) { * @param databaseAdminPassword the value to set * @return this builder */ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } /** The TDE wallet password of the source database specified by 'sourceDatabaseId'. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceTdeWalletPassword") - private String sourceTdeWalletPassword; + private char[] sourceTdeWalletPassword; /** * The TDE wallet password of the source database specified by 'sourceDatabaseId'. @@ -117,12 +156,19 @@ public Builder databaseAdminPassword(String databaseAdminPassword) { * @param sourceTdeWalletPassword the value to set * @return this builder */ - public Builder sourceTdeWalletPassword(String sourceTdeWalletPassword) { + public Builder sourceTdeWalletPassword(char[] sourceTdeWalletPassword) { this.sourceTdeWalletPassword = sourceTdeWalletPassword; this.__explicitlySet__.add("sourceTdeWalletPassword"); return this; } + public Builder sourceTdeWalletPassword(String sourceTdeWalletPassword) { + this.sourceTdeWalletPassword = + sourceTdeWalletPassword != null ? sourceTdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("sourceTdeWalletPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("sourceEncryptionKeyLocationDetails") private EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails; @@ -395,7 +441,20 @@ public String getSourceDatabaseId() { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. <p> + * *The password MUST be the same as the primary admin password.** + * + * @return the value + * @deprecated Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -404,20 +463,34 @@ public String getSourceDatabaseId() { * * @return the value */ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } /** The TDE wallet password of the source database specified by 'sourceDatabaseId'. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceTdeWalletPassword") - private final String sourceTdeWalletPassword; + private final char[] sourceTdeWalletPassword; /** - * The TDE wallet password of the source database specified by 'sourceDatabaseId'. + * The TDE wallet password of the source database specified by 'sourceDatabaseId'. * * @return the value + * @deprecated Use getSourceTdeWalletPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSourceTdeWalletPassword() { + return sourceTdeWalletPassword != null ? new String(sourceTdeWalletPassword) : null; + } + + /** + * The TDE wallet password of the source database specified by 'sourceDatabaseId'. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceTdeWalletPassword") + public char[] getSourceTdeWalletPassword__AsCharArray() { return sourceTdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java index ae2bc3c7459..8ee43197109 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java @@ -83,7 +83,7 @@ public Builder username(String username) { } /** The password that will be used to connect to the database. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password that will be used to connect to the database. @@ -91,11 +91,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The role of the user that will be connecting to the database. */ @com.fasterxml.jackson.annotation.JsonProperty("role") private Role role; @@ -158,6 +164,20 @@ public DatabaseConnectionCredentialsByDetails( super(); this.credentialName = credentialName; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.role = role; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public DatabaseConnectionCredentialsByDetails( + @com.fasterxml.jackson.annotation.JsonProperty("credentialName") String credentialName, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("role") Role role) { + super(); + this.credentialName = credentialName; + this.username = username; this.password = password; this.role = role; } @@ -210,17 +230,29 @@ public String getUsername() { /** The password that will be used to connect to the database. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password that will be used to connect to the database. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { - return password; + return password != null ? new String(password) : null; } + /** + * The password that will be used to connect to the database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { + return password; + } /** The role of the user that will be connecting to the database. */ public enum Role implements com.oracle.bmc.http.internal.BmcEnum { Sysdba("SYSDBA"), diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSslConnectionCredentials.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSslConnectionCredentials.java index 0c1aa8bef07..1162070a10b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSslConnectionCredentials.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseSslConnectionCredentials.java @@ -79,7 +79,7 @@ public Builder username(String username) { } /** The password that will be used to connect to the database. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password that will be used to connect to the database. @@ -87,11 +87,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The role of the user that will be connecting to the database. */ @com.fasterxml.jackson.annotation.JsonProperty("role") private Role role; @@ -186,6 +192,22 @@ public DatabaseSslConnectionCredentials( super(); this.credentialName = credentialName; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.role = role; + this.sslSecretId = sslSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public DatabaseSslConnectionCredentials( + @com.fasterxml.jackson.annotation.JsonProperty("credentialName") String credentialName, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("role") Role role, + @com.fasterxml.jackson.annotation.JsonProperty("sslSecretId") String sslSecretId) { + super(); + this.credentialName = credentialName; + this.username = username; this.password = password; this.role = role; this.sslSecretId = sslSecretId; @@ -239,17 +261,29 @@ public String getUsername() { /** The password that will be used to connect to the database. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password that will be used to connect to the database. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { - return password; + return password != null ? new String(password) : null; } + /** + * The password that will be used to connect to the database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { + return password; + } /** The role of the user that will be connecting to the database. */ public enum Role implements com.oracle.bmc.http.internal.BmcEnum { Sysdba("SYSDBA"), diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalHsmEncryptionDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalHsmEncryptionDetails.java index 7d6f3cf58b5..1ecef23d4ac 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalHsmEncryptionDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalHsmEncryptionDetails.java @@ -29,7 +29,7 @@ public final class ExternalHsmEncryptionDetails extends EncryptionKeyLocationDet public static class Builder { /** Provide the HSM password as you would in RDBMS for External HSM. */ @com.fasterxml.jackson.annotation.JsonProperty("hsmPassword") - private String hsmPassword; + private char[] hsmPassword; /** * Provide the HSM password as you would in RDBMS for External HSM. @@ -37,12 +37,18 @@ public static class Builder { * @param hsmPassword the value to set * @return this builder */ - public Builder hsmPassword(String hsmPassword) { + public Builder hsmPassword(char[] hsmPassword) { this.hsmPassword = hsmPassword; this.__explicitlySet__.add("hsmPassword"); return this; } + public Builder hsmPassword(String hsmPassword) { + this.hsmPassword = hsmPassword != null ? hsmPassword.toCharArray() : null; + this.__explicitlySet__.add("hsmPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -75,19 +81,40 @@ public Builder toBuilder() { @Deprecated public ExternalHsmEncryptionDetails(String hsmPassword) { super(); + this.hsmPassword = hsmPassword != null ? hsmPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ExternalHsmEncryptionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("hsmPassword") char[] hsmPassword) { + super(); this.hsmPassword = hsmPassword; } /** Provide the HSM password as you would in RDBMS for External HSM. */ @com.fasterxml.jackson.annotation.JsonProperty("hsmPassword") - private final String hsmPassword; + private final char[] hsmPassword; /** * Provide the HSM password as you would in RDBMS for External HSM. * * @return the value + * @deprecated Use getHsmPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getHsmPassword() { + return hsmPassword != null ? new String(hsmPassword) : null; + } + + /** + * Provide the HSM password as you would in RDBMS for External HSM. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("hsmPassword") + public char[] getHsmPassword__AsCharArray() { return hsmPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/FailoverDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/FailoverDataGuardDetails.java index 8d68e8d8e42..974ca935b5f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/FailoverDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/FailoverDataGuardDetails.java @@ -23,8 +23,16 @@ public final class FailoverDataGuardDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"databaseAdminPassword"}) public FailoverDataGuardDetails(String databaseAdminPassword) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"databaseAdminPassword"}) + public FailoverDataGuardDetails(char[] databaseAdminPassword) { super(); this.databaseAdminPassword = databaseAdminPassword; } @@ -37,7 +45,7 @@ public static class Builder { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -47,12 +55,19 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder */ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -89,7 +104,20 @@ public Builder toBuilder() { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. <p> + * *The password MUST be the same as the primary admin password.** + * + * @return the value + * @deprecated Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -98,7 +126,8 @@ public Builder toBuilder() { * * @return the value */ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MigrateVaultKeyDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MigrateVaultKeyDetails.java index b7c140b45d3..0a6efe2b827 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MigrateVaultKeyDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MigrateVaultKeyDetails.java @@ -25,6 +25,22 @@ public final class MigrateVaultKeyDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public MigrateVaultKeyDetails( + String kmsKeyId, + String kmsKeyVersionId, + String vaultId, + String tdeWalletPassword, + String adminPassword) { + super(); + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.vaultId = vaultId; + this.tdeWalletPassword = tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "kmsKeyId", "kmsKeyVersionId", @@ -36,8 +52,8 @@ public MigrateVaultKeyDetails( String kmsKeyId, String kmsKeyVersionId, String vaultId, - String tdeWalletPassword, - String adminPassword) { + char[] tdeWalletPassword, + char[] adminPassword) { super(); this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -117,7 +133,7 @@ public Builder vaultId(String vaultId) { } /** The existing TDE wallet password of the database. */ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private String tdeWalletPassword; + private char[] tdeWalletPassword; /** * The existing TDE wallet password of the database. @@ -125,14 +141,21 @@ public Builder vaultId(String vaultId) { * @param tdeWalletPassword the value to set * @return this builder */ - public Builder tdeWalletPassword(String tdeWalletPassword) { + public Builder tdeWalletPassword(char[] tdeWalletPassword) { this.tdeWalletPassword = tdeWalletPassword; this.__explicitlySet__.add("tdeWalletPassword"); return this; } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } /** The existing admin password of the database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The existing admin password of the database. @@ -140,12 +163,18 @@ public Builder tdeWalletPassword(String tdeWalletPassword) { * @param adminPassword the value to set * @return this builder */ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -256,27 +285,53 @@ public String getVaultId() { /** The existing TDE wallet password of the database. */ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") - private final String tdeWalletPassword; + private final char[] tdeWalletPassword; /** * The existing TDE wallet password of the database. * * @return the value + * @deprecated Use getTdeWalletPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTdeWalletPassword() { + return tdeWalletPassword != null ? new String(tdeWalletPassword) : null; + } + + /** + * The existing TDE wallet password of the database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + public char[] getTdeWalletPassword__AsCharArray() { return tdeWalletPassword; } /** The existing admin password of the database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; /** * The existing admin password of the database. * * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The existing admin password of the database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/PdbConversionToNewDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/PdbConversionToNewDatabaseDetails.java index f8c38a5e922..d18d3d38766 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/PdbConversionToNewDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/PdbConversionToNewDatabaseDetails.java @@ -56,7 +56,7 @@ public Builder cdbName(String cdbName) { * characters must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("cdbAdminPassword") - private String cdbAdminPassword; + private char[] cdbAdminPassword; /** * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container @@ -67,11 +67,18 @@ public Builder cdbName(String cdbName) { * @param cdbAdminPassword the value to set * @return this builder */ - public Builder cdbAdminPassword(String cdbAdminPassword) { + public Builder cdbAdminPassword(char[] cdbAdminPassword) { this.cdbAdminPassword = cdbAdminPassword; this.__explicitlySet__.add("cdbAdminPassword"); return this; } + + public Builder cdbAdminPassword(String cdbAdminPassword) { + this.cdbAdminPassword = + cdbAdminPassword != null ? cdbAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("cdbAdminPassword"); + return this; + } /** * A strong password for plugbable database ADMIN user of the container database after * conversion. The password must be at least nine characters and contain at least two @@ -79,7 +86,7 @@ public Builder cdbAdminPassword(String cdbAdminPassword) { * must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("pdbAdminPassword") - private String pdbAdminPassword; + private char[] pdbAdminPassword; /** * A strong password for plugbable database ADMIN user of the container database after @@ -90,11 +97,18 @@ public Builder cdbAdminPassword(String cdbAdminPassword) { * @param pdbAdminPassword the value to set * @return this builder */ - public Builder pdbAdminPassword(String pdbAdminPassword) { + public Builder pdbAdminPassword(char[] pdbAdminPassword) { this.pdbAdminPassword = pdbAdminPassword; this.__explicitlySet__.add("pdbAdminPassword"); return this; } + + public Builder pdbAdminPassword(String pdbAdminPassword) { + this.pdbAdminPassword = + pdbAdminPassword != null ? pdbAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("pdbAdminPassword"); + return this; + } /** * The password to open the TDE wallet of the container database after conversion. The * password must be at least nine characters and contain at least two uppercase, two @@ -102,7 +116,7 @@ public Builder pdbAdminPassword(String pdbAdminPassword) { * \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("cdbTdeWalletPassword") - private String cdbTdeWalletPassword; + private char[] cdbTdeWalletPassword; /** * The password to open the TDE wallet of the container database after conversion. The @@ -113,14 +127,21 @@ public Builder pdbAdminPassword(String pdbAdminPassword) { * @param cdbTdeWalletPassword the value to set * @return this builder */ - public Builder cdbTdeWalletPassword(String cdbTdeWalletPassword) { + public Builder cdbTdeWalletPassword(char[] cdbTdeWalletPassword) { this.cdbTdeWalletPassword = cdbTdeWalletPassword; this.__explicitlySet__.add("cdbTdeWalletPassword"); return this; } + + public Builder cdbTdeWalletPassword(String cdbTdeWalletPassword) { + this.cdbTdeWalletPassword = + cdbTdeWalletPassword != null ? cdbTdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("cdbTdeWalletPassword"); + return this; + } /** The existing TDE wallet password of the non-container database. */ @com.fasterxml.jackson.annotation.JsonProperty("nonCdbTdeWalletPassword") - private String nonCdbTdeWalletPassword; + private char[] nonCdbTdeWalletPassword; /** * The existing TDE wallet password of the non-container database. @@ -128,11 +149,18 @@ public Builder cdbTdeWalletPassword(String cdbTdeWalletPassword) { * @param nonCdbTdeWalletPassword the value to set * @return this builder */ - public Builder nonCdbTdeWalletPassword(String nonCdbTdeWalletPassword) { + public Builder nonCdbTdeWalletPassword(char[] nonCdbTdeWalletPassword) { this.nonCdbTdeWalletPassword = nonCdbTdeWalletPassword; this.__explicitlySet__.add("nonCdbTdeWalletPassword"); return this; } + + public Builder nonCdbTdeWalletPassword(String nonCdbTdeWalletPassword) { + this.nonCdbTdeWalletPassword = + nonCdbTdeWalletPassword != null ? nonCdbTdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("nonCdbTdeWalletPassword"); + return this; + } /** Additional container database parameters. Example: "_pdb_name_case_sensitive=true" */ @com.fasterxml.jackson.annotation.JsonProperty("additionalCdbParams") private String additionalCdbParams; @@ -210,6 +238,31 @@ public PdbConversionToNewDatabaseDetails( String additionalCdbParams) { super(); this.cdbName = cdbName; + this.cdbAdminPassword = cdbAdminPassword != null ? cdbAdminPassword.toCharArray() : null; + this.pdbAdminPassword = pdbAdminPassword != null ? pdbAdminPassword.toCharArray() : null; + this.cdbTdeWalletPassword = + cdbTdeWalletPassword != null ? cdbTdeWalletPassword.toCharArray() : null; + this.nonCdbTdeWalletPassword = + nonCdbTdeWalletPassword != null ? nonCdbTdeWalletPassword.toCharArray() : null; + this.additionalCdbParams = additionalCdbParams; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public PdbConversionToNewDatabaseDetails( + @com.fasterxml.jackson.annotation.JsonProperty("cdbName") String cdbName, + @com.fasterxml.jackson.annotation.JsonProperty("cdbAdminPassword") + char[] cdbAdminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("pdbAdminPassword") + char[] pdbAdminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("cdbTdeWalletPassword") + char[] cdbTdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("nonCdbTdeWalletPassword") + char[] nonCdbTdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("additionalCdbParams") + String additionalCdbParams) { + super(); + this.cdbName = cdbName; this.cdbAdminPassword = cdbAdminPassword; this.pdbAdminPassword = pdbAdminPassword; this.cdbTdeWalletPassword = cdbTdeWalletPassword; @@ -243,7 +296,7 @@ public String getCdbName() { * must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("cdbAdminPassword") - private final String cdbAdminPassword; + private final char[] cdbAdminPassword; /** * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container @@ -252,8 +305,24 @@ public String getCdbName() { * must be _, \\#, or -. * * @return the value + * @deprecated Use getCdbAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getCdbAdminPassword() { + return cdbAdminPassword != null ? new String(cdbAdminPassword) : null; + } + + /** + * A strong password for SYS, SYSTEM, and the plugbable database ADMIN user of the container + * database after conversion. The password must be at least nine characters and contain at least + * two uppercase, two lowercase, two numeric, and two special characters. The special characters + * must be _, \\#, or -. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("cdbAdminPassword") + public char[] getCdbAdminPassword__AsCharArray() { return cdbAdminPassword; } @@ -264,7 +333,7 @@ public String getCdbAdminPassword() { * \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("pdbAdminPassword") - private final String pdbAdminPassword; + private final char[] pdbAdminPassword; /** * A strong password for plugbable database ADMIN user of the container database after @@ -273,8 +342,24 @@ public String getCdbAdminPassword() { * \\#, or -. * * @return the value + * @deprecated Use getPdbAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPdbAdminPassword() { + return pdbAdminPassword != null ? new String(pdbAdminPassword) : null; + } + + /** + * A strong password for plugbable database ADMIN user of the container database after + * conversion. The password must be at least nine characters and contain at least two uppercase, + * two lowercase, two numeric, and two special characters. The special characters must be _, + * \\#, or -. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("pdbAdminPassword") + public char[] getPdbAdminPassword__AsCharArray() { return pdbAdminPassword; } @@ -284,7 +369,7 @@ public String getPdbAdminPassword() { * numeric, and two special characters. The special characters must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("cdbTdeWalletPassword") - private final String cdbTdeWalletPassword; + private final char[] cdbTdeWalletPassword; /** * The password to open the TDE wallet of the container database after conversion. The password @@ -292,21 +377,49 @@ public String getPdbAdminPassword() { * numeric, and two special characters. The special characters must be _, \\#, or -. * * @return the value + * @deprecated Use getCdbTdeWalletPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getCdbTdeWalletPassword() { + return cdbTdeWalletPassword != null ? new String(cdbTdeWalletPassword) : null; + } + + /** + * The password to open the TDE wallet of the container database after conversion. The password + * must be at least nine characters and contain at least two uppercase, two lowercase, two + * numeric, and two special characters. The special characters must be _, \\#, or -. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("cdbTdeWalletPassword") + public char[] getCdbTdeWalletPassword__AsCharArray() { return cdbTdeWalletPassword; } /** The existing TDE wallet password of the non-container database. */ @com.fasterxml.jackson.annotation.JsonProperty("nonCdbTdeWalletPassword") - private final String nonCdbTdeWalletPassword; + private final char[] nonCdbTdeWalletPassword; /** * The existing TDE wallet password of the non-container database. * * @return the value + * @deprecated Use getNonCdbTdeWalletPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getNonCdbTdeWalletPassword() { + return nonCdbTdeWalletPassword != null ? new String(nonCdbTdeWalletPassword) : null; + } + + /** + * The existing TDE wallet password of the non-container database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("nonCdbTdeWalletPassword") + public char[] getNonCdbTdeWalletPassword__AsCharArray() { return nonCdbTdeWalletPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ReinstateDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ReinstateDataGuardDetails.java index ca07a9fff8e..45f1411616b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ReinstateDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ReinstateDataGuardDetails.java @@ -23,8 +23,17 @@ public final class ReinstateDataGuardDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"databaseAdminPassword", "sourceDatabaseId"}) public ReinstateDataGuardDetails(String databaseAdminPassword, String sourceDatabaseId) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.sourceDatabaseId = sourceDatabaseId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"databaseAdminPassword", "sourceDatabaseId"}) + public ReinstateDataGuardDetails(char[] databaseAdminPassword, String sourceDatabaseId) { super(); this.databaseAdminPassword = databaseAdminPassword; this.sourceDatabaseId = sourceDatabaseId; @@ -38,7 +47,7 @@ public static class Builder { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -48,11 +57,18 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder */ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * source (primary) database in the Data Guard group. @@ -113,7 +129,20 @@ public Builder toBuilder() { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. <p> + * *The password MUST be the same as the primary admin password.** + * + * @return the value + * @deprecated Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -122,7 +151,8 @@ public Builder toBuilder() { * * @return the value */ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SwitchOverDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SwitchOverDataGuardDetails.java index d5f84429192..b153ae90b7e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/SwitchOverDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SwitchOverDataGuardDetails.java @@ -23,8 +23,16 @@ public final class SwitchOverDataGuardDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"databaseAdminPassword"}) public SwitchOverDataGuardDetails(String databaseAdminPassword) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"databaseAdminPassword"}) + public SwitchOverDataGuardDetails(char[] databaseAdminPassword) { super(); this.databaseAdminPassword = databaseAdminPassword; } @@ -37,7 +45,7 @@ public static class Builder { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -47,12 +55,19 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder */ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -89,7 +104,20 @@ public Builder toBuilder() { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. <p> + * *The password MUST be the same as the primary admin password.** + * + * @return the value + * @deprecated Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -98,7 +126,8 @@ public Builder toBuilder() { * * @return the value */ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDataGuardDetails.java index 8db7129a9fd..0dd6833f744 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDataGuardDetails.java @@ -23,6 +23,21 @@ public final class UpdateDataGuardDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateDataGuardDetails( + String databaseAdminPassword, + ProtectionMode protectionMode, + TransportType transportType, + Boolean isActiveDataGuardEnabled) { + super(); + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.protectionMode = protectionMode; + this.transportType = transportType; + this.isActiveDataGuardEnabled = isActiveDataGuardEnabled; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "databaseAdminPassword", "protectionMode", @@ -30,7 +45,7 @@ public final class UpdateDataGuardDetails "isActiveDataGuardEnabled" }) public UpdateDataGuardDetails( - String databaseAdminPassword, + char[] databaseAdminPassword, ProtectionMode protectionMode, TransportType transportType, Boolean isActiveDataGuardEnabled) { @@ -49,7 +64,7 @@ public static class Builder { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private String databaseAdminPassword; + private char[] databaseAdminPassword; /** * The administrator password of the primary database in this Data Guard association. @@ -59,11 +74,18 @@ public static class Builder { * @param databaseAdminPassword the value to set * @return this builder */ - public Builder databaseAdminPassword(String databaseAdminPassword) { + public Builder databaseAdminPassword(char[] databaseAdminPassword) { this.databaseAdminPassword = databaseAdminPassword; this.__explicitlySet__.add("databaseAdminPassword"); return this; } + + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } /** * The protection mode of this Data Guard. For more information, see [Oracle Data Guard * Protection @@ -191,7 +213,20 @@ public Builder toBuilder() { *

*The password MUST be the same as the primary admin password.** */ @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") - private final String databaseAdminPassword; + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. <p> + * *The password MUST be the same as the primary admin password.** + * + * @return the value + * @deprecated Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } /** * The administrator password of the primary database in this Data Guard association. @@ -200,10 +235,10 @@ public Builder toBuilder() { * * @return the value */ - public String getDatabaseAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { return databaseAdminPassword; } - /** * The protection mode of this Data Guard. For more information, see [Oracle Data Guard * Protection diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java index 420ac3eb2e9..d1d4803f2c4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java @@ -26,6 +26,32 @@ public final class UpdateDatabaseDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateDatabaseDetails( + DbBackupConfig dbBackupConfig, + String dbHomeId, + String newAdminPassword, + String oldTdeWalletPassword, + String newTdeWalletPassword, + DatabaseStorageSizeDetails storageSizeDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + PatchOptions patchOptions) { + super(); + this.dbBackupConfig = dbBackupConfig; + this.dbHomeId = dbHomeId; + this.newAdminPassword = newAdminPassword != null ? newAdminPassword.toCharArray() : null; + this.oldTdeWalletPassword = + oldTdeWalletPassword != null ? oldTdeWalletPassword.toCharArray() : null; + this.newTdeWalletPassword = + newTdeWalletPassword != null ? newTdeWalletPassword.toCharArray() : null; + this.storageSizeDetails = storageSizeDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.patchOptions = patchOptions; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "dbBackupConfig", "dbHomeId", @@ -40,9 +66,9 @@ public final class UpdateDatabaseDetails public UpdateDatabaseDetails( DbBackupConfig dbBackupConfig, String dbHomeId, - String newAdminPassword, - String oldTdeWalletPassword, - String newTdeWalletPassword, + char[] newAdminPassword, + char[] oldTdeWalletPassword, + char[] newTdeWalletPassword, DatabaseStorageSizeDetails storageSizeDetails, java.util.Map freeformTags, java.util.Map> definedTags, @@ -96,7 +122,7 @@ public Builder dbHomeId(String dbHomeId) { * \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("newAdminPassword") - private String newAdminPassword; + private char[] newAdminPassword; /** * A new strong password for SYS, SYSTEM, and the plugbable database ADMIN user. The @@ -107,17 +133,24 @@ public Builder dbHomeId(String dbHomeId) { * @param newAdminPassword the value to set * @return this builder */ - public Builder newAdminPassword(String newAdminPassword) { + public Builder newAdminPassword(char[] newAdminPassword) { this.newAdminPassword = newAdminPassword; this.__explicitlySet__.add("newAdminPassword"); return this; } + + public Builder newAdminPassword(String newAdminPassword) { + this.newAdminPassword = + newAdminPassword != null ? newAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("newAdminPassword"); + return this; + } /** * The existing TDE wallet password. You must provide the existing password in order to set * a new TDE wallet password. */ @com.fasterxml.jackson.annotation.JsonProperty("oldTdeWalletPassword") - private String oldTdeWalletPassword; + private char[] oldTdeWalletPassword; /** * The existing TDE wallet password. You must provide the existing password in order to set @@ -126,18 +159,25 @@ public Builder newAdminPassword(String newAdminPassword) { * @param oldTdeWalletPassword the value to set * @return this builder */ - public Builder oldTdeWalletPassword(String oldTdeWalletPassword) { + public Builder oldTdeWalletPassword(char[] oldTdeWalletPassword) { this.oldTdeWalletPassword = oldTdeWalletPassword; this.__explicitlySet__.add("oldTdeWalletPassword"); return this; } + + public Builder oldTdeWalletPassword(String oldTdeWalletPassword) { + this.oldTdeWalletPassword = + oldTdeWalletPassword != null ? oldTdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("oldTdeWalletPassword"); + return this; + } /** * The new password to open the TDE wallet. The password must be at least nine characters * and contain at least two uppercase, two lowercase, two numeric, and two special * characters. The special characters must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("newTdeWalletPassword") - private String newTdeWalletPassword; + private char[] newTdeWalletPassword; /** * The new password to open the TDE wallet. The password must be at least nine characters @@ -147,12 +187,19 @@ public Builder oldTdeWalletPassword(String oldTdeWalletPassword) { * @param newTdeWalletPassword the value to set * @return this builder */ - public Builder newTdeWalletPassword(String newTdeWalletPassword) { + public Builder newTdeWalletPassword(char[] newTdeWalletPassword) { this.newTdeWalletPassword = newTdeWalletPassword; this.__explicitlySet__.add("newTdeWalletPassword"); return this; } + public Builder newTdeWalletPassword(String newTdeWalletPassword) { + this.newTdeWalletPassword = + newTdeWalletPassword != null ? newTdeWalletPassword.toCharArray() : null; + this.__explicitlySet__.add("newTdeWalletPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("storageSizeDetails") private DatabaseStorageSizeDetails storageSizeDetails; @@ -311,7 +358,7 @@ public String getDbHomeId() { * numeric, and two special characters. The special characters must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("newAdminPassword") - private final String newAdminPassword; + private final char[] newAdminPassword; /** * A new strong password for SYS, SYSTEM, and the plugbable database ADMIN user. The password @@ -319,8 +366,23 @@ public String getDbHomeId() { * numeric, and two special characters. The special characters must be _, \\#, or -. * * @return the value + * @deprecated Use getNewAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getNewAdminPassword() { + return newAdminPassword != null ? new String(newAdminPassword) : null; + } + + /** + * A new strong password for SYS, SYSTEM, and the plugbable database ADMIN user. The password + * must be at least nine characters and contain at least two uppercase, two lowercase, two + * numeric, and two special characters. The special characters must be _, \\#, or -. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("newAdminPassword") + public char[] getNewAdminPassword__AsCharArray() { return newAdminPassword; } @@ -329,15 +391,29 @@ public String getNewAdminPassword() { * new TDE wallet password. */ @com.fasterxml.jackson.annotation.JsonProperty("oldTdeWalletPassword") - private final String oldTdeWalletPassword; + private final char[] oldTdeWalletPassword; /** * The existing TDE wallet password. You must provide the existing password in order to set a * new TDE wallet password. * * @return the value + * @deprecated Use getOldTdeWalletPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getOldTdeWalletPassword() { + return oldTdeWalletPassword != null ? new String(oldTdeWalletPassword) : null; + } + + /** + * The existing TDE wallet password. You must provide the existing password in order to set a + * new TDE wallet password. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("oldTdeWalletPassword") + public char[] getOldTdeWalletPassword__AsCharArray() { return oldTdeWalletPassword; } @@ -347,7 +423,7 @@ public String getOldTdeWalletPassword() { * special characters must be _, \\#, or -. */ @com.fasterxml.jackson.annotation.JsonProperty("newTdeWalletPassword") - private final String newTdeWalletPassword; + private final char[] newTdeWalletPassword; /** * The new password to open the TDE wallet. The password must be at least nine characters and @@ -355,8 +431,23 @@ public String getOldTdeWalletPassword() { * special characters must be _, \\#, or -. * * @return the value + * @deprecated Use getNewTdeWalletPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getNewTdeWalletPassword() { + return newTdeWalletPassword != null ? new String(newTdeWalletPassword) : null; + } + + /** + * The new password to open the TDE wallet. The password must be at least nine characters and + * contain at least two uppercase, two lowercase, two numeric, and two special characters. The + * special characters must be _, \\#, or -. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("newTdeWalletPassword") + public char[] getNewTdeWalletPassword__AsCharArray() { return newTdeWalletPassword; } diff --git a/bmc-database/src/main/resources/com/oracle/bmc/database/client.properties b/bmc-database/src/main/resources/com/oracle/bmc/database/client.properties index 57fa7f4b072..80d9875bfaf 100644 --- a/bmc-database/src/main/resources/com/oracle/bmc/database/client.properties +++ b/bmc-database/src/main/resources/com/oracle/bmc/database/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java index 705a6f57a12..f7bc868cc22 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java @@ -25,8 +25,18 @@ public final class DatabaseCredentials extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"userName", "password", "secretId", "role"}) public DatabaseCredentials(String userName, String password, String secretId, Role role) { + super(); + this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + this.secretId = secretId; + this.role = role; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"userName", "password", "secretId", "role"}) + public DatabaseCredentials(String userName, char[] password, String secretId, Role role) { super(); this.userName = userName; this.password = password; @@ -53,7 +63,7 @@ public Builder userName(String userName) { } /** The password for the database user name. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the database user name. @@ -61,11 +71,17 @@ public Builder userName(String userName) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * secret containing the user password. @@ -159,14 +175,27 @@ public String getUserName() { /** The password for the database user name. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the database user name. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the database user name. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java index 7a7d6fc48ba..d7857f8d2ad 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java @@ -29,7 +29,7 @@ public final class DatabasePasswordCredentialDetails extends DatabaseCredentialD public static class Builder { /** The database user's password encoded using BASE64 scheme. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The database user's password encoded using BASE64 scheme. @@ -37,11 +37,17 @@ public static class Builder { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The user to connect to the database. */ @com.fasterxml.jackson.annotation.JsonProperty("username") private String username; @@ -112,6 +118,18 @@ public Builder toBuilder() { @Deprecated public DatabasePasswordCredentialDetails(String password, String username, Role role) { super(); + this.password = password != null ? password.toCharArray() : null; + this.username = username; + this.role = role; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public DatabasePasswordCredentialDetails( + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("role") Role role) { + super(); this.password = password; this.username = username; this.role = role; @@ -119,14 +137,27 @@ public DatabasePasswordCredentialDetails(String password, String username, Role /** The database user's password encoded using BASE64 scheme. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** - * The database user's password encoded using BASE64 scheme. + * The database user's password encoded using BASE64 scheme. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The database user's password encoded using BASE64 scheme. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabasePasswordCredential.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabasePasswordCredential.java index ef9f321c2b0..29f061c540d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabasePasswordCredential.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabasePasswordCredential.java @@ -46,7 +46,7 @@ public Builder role(Role role) { } /** The database user's password encoded using BASE64 scheme. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The database user's password encoded using BASE64 scheme. @@ -54,12 +54,18 @@ public Builder role(Role role) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -99,19 +105,42 @@ public Builder toBuilder() { @Deprecated public ManagedDatabasePasswordCredential(String username, Role role, String password) { super(username, role); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ManagedDatabasePasswordCredential( + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("role") Role role, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password) { + super(username, role); this.password = password; } /** The database user's password encoded using BASE64 scheme. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** - * The database user's password encoded using BASE64 scheme. + * The database user's password encoded using BASE64 scheme. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The database user's password encoded using BASE64 scheme. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RestCredential.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RestCredential.java index 11711fb4400..90e8f257cb2 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RestCredential.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RestCredential.java @@ -22,6 +22,23 @@ public final class RestCredential extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public RestCredential( + String username, + String password, + SslTrustStoreType sslTrustStoreType, + String sslTrustStoreLocation, + String sslTrustStorePassword) { + super(); + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.sslTrustStoreType = sslTrustStoreType; + this.sslTrustStoreLocation = sslTrustStoreLocation; + this.sslTrustStorePassword = + sslTrustStorePassword != null ? sslTrustStorePassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "username", "password", @@ -31,10 +48,10 @@ public final class RestCredential }) public RestCredential( String username, - String password, + char[] password, SslTrustStoreType sslTrustStoreType, String sslTrustStoreLocation, - String sslTrustStorePassword) { + char[] sslTrustStorePassword) { super(); this.username = username; this.password = password; @@ -62,7 +79,7 @@ public Builder username(String username) { } /** The password of the user. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password of the user. @@ -70,11 +87,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The SSL truststore type. */ @com.fasterxml.jackson.annotation.JsonProperty("sslTrustStoreType") private SslTrustStoreType sslTrustStoreType; @@ -107,7 +130,7 @@ public Builder sslTrustStoreLocation(String sslTrustStoreLocation) { } /** The password of the SSL truststore location in the agent. */ @com.fasterxml.jackson.annotation.JsonProperty("sslTrustStorePassword") - private String sslTrustStorePassword; + private char[] sslTrustStorePassword; /** * The password of the SSL truststore location in the agent. @@ -115,12 +138,19 @@ public Builder sslTrustStoreLocation(String sslTrustStoreLocation) { * @param sslTrustStorePassword the value to set * @return this builder */ - public Builder sslTrustStorePassword(String sslTrustStorePassword) { + public Builder sslTrustStorePassword(char[] sslTrustStorePassword) { this.sslTrustStorePassword = sslTrustStorePassword; this.__explicitlySet__.add("sslTrustStorePassword"); return this; } + public Builder sslTrustStorePassword(String sslTrustStorePassword) { + this.sslTrustStorePassword = + sslTrustStorePassword != null ? sslTrustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("sslTrustStorePassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -183,17 +213,29 @@ public String getUsername() { /** The password of the user. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password of the user. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { - return password; + return password != null ? new String(password) : null; } + /** + * The password of the user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { + return password; + } /** The SSL truststore type. */ public enum SslTrustStoreType implements com.oracle.bmc.http.internal.BmcEnum { Jks("JKS"), @@ -255,14 +297,27 @@ public String getSslTrustStoreLocation() { /** The password of the SSL truststore location in the agent. */ @com.fasterxml.jackson.annotation.JsonProperty("sslTrustStorePassword") - private final String sslTrustStorePassword; + private final char[] sslTrustStorePassword; /** * The password of the SSL truststore location in the agent. * * @return the value + * @deprecated Use getSslTrustStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSslTrustStorePassword() { + return sslTrustStorePassword != null ? new String(sslTrustStorePassword) : null; + } + + /** + * The password of the SSL truststore location in the agent. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslTrustStorePassword") + public char[] getSslTrustStorePassword__AsCharArray() { return sslTrustStorePassword; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSetAdminPasswordCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSetAdminPasswordCredentialDetails.java index 7cfe60e679b..1192430372f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSetAdminPasswordCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSetAdminPasswordCredentialDetails.java @@ -47,7 +47,7 @@ public Builder role(Role role) { } /** The database user's password encoded using BASE64 scheme. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The database user's password encoded using BASE64 scheme. @@ -55,12 +55,18 @@ public Builder role(Role role) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -101,19 +107,42 @@ public Builder toBuilder() { @Deprecated public SqlTuningSetAdminPasswordCredentialDetails(String username, Role role, String password) { super(username, role); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public SqlTuningSetAdminPasswordCredentialDetails( + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("role") Role role, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password) { + super(username, role); this.password = password; } /** The database user's password encoded using BASE64 scheme. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** - * The database user's password encoded using BASE64 scheme. + * The database user's password encoded using BASE64 scheme. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The database user's password encoded using BASE64 scheme. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningTaskPasswordCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningTaskPasswordCredentialDetails.java index b1d5179c58a..dde1cb26083 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningTaskPasswordCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningTaskPasswordCredentialDetails.java @@ -46,7 +46,7 @@ public Builder role(Role role) { } /** The database user's password encoded using BASE64 scheme. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The database user's password encoded using BASE64 scheme. @@ -54,12 +54,18 @@ public Builder role(Role role) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -100,19 +106,42 @@ public Builder toBuilder() { @Deprecated public SqlTuningTaskPasswordCredentialDetails(String username, Role role, String password) { super(username, role); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public SqlTuningTaskPasswordCredentialDetails( + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("role") Role role, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password) { + super(username, role); this.password = password; } /** The database user's password encoded using BASE64 scheme. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** - * The database user's password encoded using BASE64 scheme. + * The database user's password encoded using BASE64 scheme. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The database user's password encoded using BASE64 scheme. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TablespaceAdminPasswordCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TablespaceAdminPasswordCredentialDetails.java index 3c7d5b436e2..5115ebfafdd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TablespaceAdminPasswordCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TablespaceAdminPasswordCredentialDetails.java @@ -47,7 +47,7 @@ public Builder role(Role role) { } /** The database user's password encoded using BASE64 scheme. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The database user's password encoded using BASE64 scheme. @@ -55,12 +55,18 @@ public Builder role(Role role) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -101,19 +107,42 @@ public Builder toBuilder() { @Deprecated public TablespaceAdminPasswordCredentialDetails(String username, Role role, String password) { super(username, role); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public TablespaceAdminPasswordCredentialDetails( + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("role") Role role, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password) { + super(username, role); this.password = password; } /** The database user's password encoded using BASE64 scheme. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** - * The database user's password encoded using BASE64 scheme. + * The database user's password encoded using BASE64 scheme. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The database user's password encoded using BASE64 scheme. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemanagement/src/main/resources/com/oracle/bmc/databasemanagement/client.properties b/bmc-databasemanagement/src/main/resources/com/oracle/bmc/databasemanagement/client.properties index 4cc24932988..8b3e1a2494e 100644 --- a/bmc-databasemanagement/src/main/resources/com/oracle/bmc/databasemanagement/client.properties +++ b/bmc-databasemanagement/src/main/resources/com/oracle/bmc/databasemanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") \ No newline at end of file diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java index fa7d7d16292..58c05742a46 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java @@ -32,6 +32,57 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public class Connection extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + protected Connection( + String id, + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String vaultId, + String keyId, + String subnetId, + java.util.List ingressIps, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword, + String secretId, + String privateEndpointId) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.vaultId = vaultId; + this.keyId = keyId; + this.subnetId = subnetId; + this.ingressIps = ingressIps; + this.nsgIds = nsgIds; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.replicationUsername = replicationUsername; + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + this.secretId = secretId; + this.privateEndpointId = privateEndpointId; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "id", @@ -75,9 +126,9 @@ protected Connection( java.util.List ingressIps, java.util.List nsgIds, String username, - String password, + char[] password, String replicationUsername, - String replicationPassword, + char[] replicationPassword, String secretId, String privateEndpointId) { super(); @@ -413,14 +464,27 @@ public String getUsername() { /** The password (credential) used when creating or updating this resource. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password (credential) used when creating or updating this resource. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password (credential) used when creating or updating this resource. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -439,14 +503,27 @@ public String getReplicationUsername() { /** The password (credential) used when creating or updating this resource. */ @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private final String replicationPassword; + private final char[] replicationPassword; /** * The password (credential) used when creating or updating this resource. * * @return the value + * @deprecated Use getReplicationPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getReplicationPassword() { + return replicationPassword != null ? new String(replicationPassword) : null; + } + + /** + * The password (credential) used when creating or updating this resource. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + public char[] getReplicationPassword__AsCharArray() { return replicationPassword; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdminCredentials.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdminCredentials.java index 4a459d6f8e3..2d0846d3db7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdminCredentials.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdminCredentials.java @@ -23,8 +23,16 @@ public final class CreateAdminCredentials extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"username", "password"}) public CreateAdminCredentials(String username, String password) { + super(); + this.username = username; + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"username", "password"}) + public CreateAdminCredentials(String username, char[] password) { super(); this.username = username; this.password = password; @@ -49,7 +57,7 @@ public Builder username(String username) { } /** Administrator password */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Administrator password @@ -57,12 +65,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -110,14 +124,27 @@ public String getUsername() { /** Administrator password */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * Administrator password * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * Administrator password + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectionDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectionDetails.java index 7b1159ea712..572c1c4f13f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectionDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectionDetails.java @@ -34,6 +34,39 @@ public class CreateConnectionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + protected CreateConnectionDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + String subnetId, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.vaultId = vaultId; + this.keyId = keyId; + this.subnetId = subnetId; + this.nsgIds = nsgIds; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.replicationUsername = replicationUsername; + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "description", @@ -60,9 +93,9 @@ protected CreateConnectionDetails( String subnetId, java.util.List nsgIds, String username, - String password, + char[] password, String replicationUsername, - String replicationPassword) { + char[] replicationPassword) { super(); this.displayName = displayName; this.description = description; @@ -229,14 +262,27 @@ public String getUsername() { /** The password (credential) used when creating or updating this resource. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password (credential) used when creating or updating this resource. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password (credential) used when creating or updating this resource. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -255,14 +301,27 @@ public String getReplicationUsername() { /** The password (credential) used when creating or updating this resource. */ @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private final String replicationPassword; + private final char[] replicationPassword; /** * The password (credential) used when creating or updating this resource. * * @return the value + * @deprecated Use getReplicationPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getReplicationPassword() { + return replicationPassword != null ? new String(replicationPassword) : null; + } + + /** + * The password (credential) used when creating or updating this resource. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + public char[] getReplicationPassword__AsCharArray() { return replicationPassword; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java index 2f0350a93f4..bd1c926cfc6 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java @@ -70,7 +70,7 @@ public Builder region(String region) { * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private String accessKeyId; + private char[] accessKeyId; /** * AWS access key credentials identifier Details: @@ -79,17 +79,23 @@ public Builder region(String region) { * @param accessKeyId the value to set * @return this builder */ - public Builder accessKeyId(String accessKeyId) { + public Builder accessKeyId(char[] accessKeyId) { this.accessKeyId = accessKeyId; this.__explicitlySet__.add("accessKeyId"); return this; } + + public Builder accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.__explicitlySet__.add("accessKeyId"); + return this; + } /** * AWS secret access key credentials Details: * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * AWS secret access key credentials Details: @@ -98,12 +104,18 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder */ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") private ObjectStoreBucket objectStorageBucket; @@ -170,6 +182,24 @@ public CreateOracleAwsS3DataTransferMediumDetails( super(); this.name = name; this.region = region; + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.objectStorageBucket = objectStorageBucket; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOracleAwsS3DataTransferMediumDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region, + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") char[] accessKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + char[] secretAccessKey, + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + ObjectStoreBucket objectStorageBucket) { + super(); + this.name = name; + this.region = region; this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.objectStorageBucket = objectStorageBucket; @@ -212,15 +242,29 @@ public String getRegion() { * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private final String accessKeyId; + private final char[] accessKeyId; /** * AWS access key credentials identifier Details: * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys * * @return the value + * @deprecated Use getAccessKeyId__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAccessKeyId() { + return accessKeyId != null ? new String(accessKeyId) : null; + } + + /** + * AWS access key credentials identifier Details: + * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + public char[] getAccessKeyId__AsCharArray() { return accessKeyId; } @@ -229,15 +273,29 @@ public String getAccessKeyId() { * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; /** * AWS secret access key credentials Details: * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys * * @return the value + * @deprecated Use getSecretAccessKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } + + /** + * AWS secret access key credentials Details: + * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java index 11b3fbc90ee..d5e210b0022 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java @@ -69,7 +69,7 @@ public Builder region(String region) { * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private String accessKeyId; + private char[] accessKeyId; /** * AWS access key credentials identifier Details: @@ -78,17 +78,23 @@ public Builder region(String region) { * @param accessKeyId the value to set * @return this builder */ - public Builder accessKeyId(String accessKeyId) { + public Builder accessKeyId(char[] accessKeyId) { this.accessKeyId = accessKeyId; this.__explicitlySet__.add("accessKeyId"); return this; } + + public Builder accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.__explicitlySet__.add("accessKeyId"); + return this; + } /** * AWS secret access key credentials Details: * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * AWS secret access key credentials Details: @@ -97,12 +103,18 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder */ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") private ObjectStoreBucket objectStorageBucket; @@ -169,6 +181,24 @@ public OracleAwsS3DataTransferMediumDetails( super(); this.name = name; this.region = region; + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.objectStorageBucket = objectStorageBucket; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public OracleAwsS3DataTransferMediumDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region, + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") char[] accessKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + char[] secretAccessKey, + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + ObjectStoreBucket objectStorageBucket) { + super(); + this.name = name; + this.region = region; this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.objectStorageBucket = objectStorageBucket; @@ -211,15 +241,29 @@ public String getRegion() { * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private final String accessKeyId; + private final char[] accessKeyId; /** * AWS access key credentials identifier Details: * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys * * @return the value + * @deprecated Use getAccessKeyId__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAccessKeyId() { + return accessKeyId != null ? new String(accessKeyId) : null; + } + + /** + * AWS access key credentials identifier Details: + * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + public char[] getAccessKeyId__AsCharArray() { return accessKeyId; } @@ -228,15 +272,29 @@ public String getAccessKeyId() { * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; /** * AWS secret access key credentials Details: * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys * * @return the value + * @deprecated Use getSecretAccessKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } + + /** + * AWS secret access key credentials Details: + * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdminCredentials.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdminCredentials.java index be4830dc5a2..e08de33bf00 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdminCredentials.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdminCredentials.java @@ -24,8 +24,16 @@ public final class UpdateAdminCredentials extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"username", "password"}) public UpdateAdminCredentials(String username, String password) { + super(); + this.username = username; + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"username", "password"}) + public UpdateAdminCredentials(String username, char[] password) { super(); this.username = username; this.password = password; @@ -50,7 +58,7 @@ public Builder username(String username) { } /** Administrator password */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Administrator password @@ -58,12 +66,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -111,14 +125,27 @@ public String getUsername() { /** Administrator password */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * Administrator password * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * Administrator password + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectionDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectionDetails.java index 42b8d15e2a9..831344ced43 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectionDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectionDetails.java @@ -34,6 +34,37 @@ public class UpdateConnectionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + protected UpdateConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + String subnetId, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword) { + super(); + this.displayName = displayName; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.vaultId = vaultId; + this.keyId = keyId; + this.subnetId = subnetId; + this.nsgIds = nsgIds; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.replicationUsername = replicationUsername; + this.replicationPassword = + replicationPassword != null ? replicationPassword.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "description", @@ -58,9 +89,9 @@ protected UpdateConnectionDetails( String subnetId, java.util.List nsgIds, String username, - String password, + char[] password, String replicationUsername, - String replicationPassword) { + char[] replicationPassword) { super(); this.displayName = displayName; this.description = description; @@ -213,14 +244,27 @@ public String getUsername() { /** The password (credential) used when creating or updating this resource. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password (credential) used when creating or updating this resource. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password (credential) used when creating or updating this resource. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -239,14 +283,27 @@ public String getReplicationUsername() { /** The password (credential) used when creating or updating this resource. */ @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") - private final String replicationPassword; + private final char[] replicationPassword; /** * The password (credential) used when creating or updating this resource. * * @return the value + * @deprecated Use getReplicationPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getReplicationPassword() { + return replicationPassword != null ? new String(replicationPassword) : null; + } + + /** + * The password (credential) used when creating or updating this resource. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + public char[] getReplicationPassword__AsCharArray() { return replicationPassword; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java index fd5497ad8d9..6528ad7e118 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java @@ -70,7 +70,7 @@ public Builder region(String region) { * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private String accessKeyId; + private char[] accessKeyId; /** * AWS access key credentials identifier Details: @@ -79,17 +79,23 @@ public Builder region(String region) { * @param accessKeyId the value to set * @return this builder */ - public Builder accessKeyId(String accessKeyId) { + public Builder accessKeyId(char[] accessKeyId) { this.accessKeyId = accessKeyId; this.__explicitlySet__.add("accessKeyId"); return this; } + + public Builder accessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.__explicitlySet__.add("accessKeyId"); + return this; + } /** * AWS secret access key credentials Details: * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * AWS secret access key credentials Details: @@ -98,12 +104,18 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder */ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") private ObjectStoreBucket objectStorageBucket; @@ -170,6 +182,24 @@ public UpdateOracleAwsS3DataTransferMediumDetails( super(); this.name = name; this.region = region; + this.accessKeyId = accessKeyId != null ? accessKeyId.toCharArray() : null; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.objectStorageBucket = objectStorageBucket; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOracleAwsS3DataTransferMediumDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region, + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") char[] accessKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + char[] secretAccessKey, + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + ObjectStoreBucket objectStorageBucket) { + super(); + this.name = name; + this.region = region; this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.objectStorageBucket = objectStorageBucket; @@ -212,15 +242,29 @@ public String getRegion() { * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") - private final String accessKeyId; + private final char[] accessKeyId; /** * AWS access key credentials identifier Details: * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys * * @return the value + * @deprecated Use getAccessKeyId__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAccessKeyId() { + return accessKeyId != null ? new String(accessKeyId) : null; + } + + /** + * AWS access key credentials identifier Details: + * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") + public char[] getAccessKeyId__AsCharArray() { return accessKeyId; } @@ -229,15 +273,29 @@ public String getAccessKeyId() { * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; /** * AWS secret access key credentials Details: * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys * * @return the value + * @deprecated Use getSecretAccessKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } + + /** + * AWS secret access key credentials Details: + * https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } diff --git a/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties b/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties index 09d21c7931a..977e231bc12 100644 --- a/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties +++ b/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") \ No newline at end of file diff --git a/bmc-databasetools/src/main/resources/com/oracle/bmc/databasetools/client.properties b/bmc-databasetools/src/main/resources/com/oracle/bmc/databasetools/client.properties index 9408070aa39..54763c26861 100644 --- a/bmc-databasetools/src/main/resources/com/oracle/bmc/databasetools/client.properties +++ b/bmc-databasetools/src/main/resources/com/oracle/bmc/databasetools/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") \ No newline at end of file diff --git a/bmc-datacatalog/src/main/resources/com/oracle/bmc/datacatalog/client.properties b/bmc-datacatalog/src/main/resources/com/oracle/bmc/datacatalog/client.properties index 02d51ecf95c..ef6e542a970 100644 --- a/bmc-datacatalog/src/main/resources/com/oracle/bmc/datacatalog/client.properties +++ b/bmc-datacatalog/src/main/resources/com/oracle/bmc/datacatalog/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") \ No newline at end of file diff --git a/bmc-dataflow/src/main/resources/com/oracle/bmc/dataflow/client.properties b/bmc-dataflow/src/main/resources/com/oracle/bmc/dataflow/client.properties index db3ae8542d3..87c80640c74 100644 --- a/bmc-dataflow/src/main/resources/com/oracle/bmc/dataflow/client.properties +++ b/bmc-dataflow/src/main/resources/com/oracle/bmc/dataflow/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") \ No newline at end of file diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwc.java index c63c8007588..55cfbc2046e 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwc.java @@ -191,7 +191,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -199,12 +199,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -350,6 +356,52 @@ public ConnectionFromAdwc( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromAdwc( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("tnsAlias") String tnsAlias, + @com.fasterxml.jackson.annotation.JsonProperty("tnsNames") + java.util.List tnsNames, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -395,14 +447,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwcDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwcDetails.java index f47372e5430..a282cda4b98 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwcDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAdwcDetails.java @@ -182,7 +182,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -190,12 +190,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -335,6 +341,49 @@ public ConnectionFromAdwcDetails( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromAdwcDetails( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("tnsAlias") String tnsAlias, + @com.fasterxml.jackson.annotation.JsonProperty("tnsNames") + java.util.List tnsNames, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -380,14 +429,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtp.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtp.java index e4a2d99fe57..ac3ad13ef45 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtp.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtp.java @@ -191,7 +191,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -199,12 +199,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -350,6 +356,52 @@ public ConnectionFromAtp( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromAtp( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("tnsAlias") String tnsAlias, + @com.fasterxml.jackson.annotation.JsonProperty("tnsNames") + java.util.List tnsNames, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -395,14 +447,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtpDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtpDetails.java index 91b12867a15..99f646bf85b 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtpDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromAtpDetails.java @@ -182,7 +182,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -190,12 +190,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -335,6 +341,49 @@ public ConnectionFromAtpDetails( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromAtpDetails( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("tnsAlias") String tnsAlias, + @com.fasterxml.jackson.annotation.JsonProperty("tnsNames") + java.util.List tnsNames, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -380,14 +429,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWave.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWave.java index b9afd53b987..f3d91ccb0f7 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWave.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWave.java @@ -161,7 +161,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -169,12 +169,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -308,6 +314,47 @@ public ConnectionFromMySqlHeatWave( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromMySqlHeatWave( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -327,14 +374,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWaveDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWaveDetails.java index c8e1a954b4b..d96b618a57a 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWaveDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromMySqlHeatWaveDetails.java @@ -152,7 +152,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -160,12 +160,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -293,6 +299,44 @@ public ConnectionFromMySqlHeatWaveDetails( isDefault, metadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromMySqlHeatWaveDetails( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -312,14 +356,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracle.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracle.java index 81e0a0d194f..871a829f0b5 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracle.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracle.java @@ -161,7 +161,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -169,12 +169,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -308,6 +314,47 @@ public ConnectionFromOracle( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracle( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -327,14 +374,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleDetails.java index de28289cc22..5dc868a845d 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleDetails.java @@ -152,7 +152,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -160,12 +160,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -293,6 +299,44 @@ public ConnectionFromOracleDetails( isDefault, metadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracleDetails( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -312,14 +356,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbs.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbs.java index 6e6026020f2..2db529f72a2 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbs.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbs.java @@ -161,7 +161,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -169,12 +169,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -308,6 +314,47 @@ public ConnectionFromOracleEbs( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracleEbs( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -327,14 +374,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbsDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbsDetails.java index 31368cb5f1e..1398b72250d 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbsDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleEbsDetails.java @@ -152,7 +152,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -160,12 +160,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -293,6 +299,44 @@ public ConnectionFromOracleEbsDetails( isDefault, metadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracleEbsDetails( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -312,14 +356,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoft.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoft.java index 37bf29f2dee..d80fce9def4 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoft.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoft.java @@ -161,7 +161,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -169,12 +169,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -308,6 +314,47 @@ public ConnectionFromOraclePeopleSoft( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOraclePeopleSoft( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -327,14 +374,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoftDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoftDetails.java index 0064479eac9..c85548b85ec 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoftDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOraclePeopleSoftDetails.java @@ -152,7 +152,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -160,12 +160,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -293,6 +299,44 @@ public ConnectionFromOraclePeopleSoftDetails( isDefault, metadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOraclePeopleSoftDetails( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -312,14 +356,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebel.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebel.java index 3949cb82e0f..9f63f00f647 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebel.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebel.java @@ -161,7 +161,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -169,12 +169,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -308,6 +314,47 @@ public ConnectionFromOracleSiebel( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracleSiebel( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -327,14 +374,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebelDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebelDetails.java index 6fadce62af6..b73113a76a0 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebelDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOracleSiebelDetails.java @@ -152,7 +152,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -160,12 +160,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -293,6 +299,44 @@ public ConnectionFromOracleSiebelDetails( isDefault, metadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionFromOracleSiebelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -312,14 +356,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAdwc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAdwc.java index ab36ac8b561..05578f17fb4 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAdwc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAdwc.java @@ -191,7 +191,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -199,12 +199,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -350,6 +356,52 @@ public ConnectionSummaryFromAdwc( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromAdwc( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("tnsAlias") String tnsAlias, + @com.fasterxml.jackson.annotation.JsonProperty("tnsNames") + java.util.List tnsNames, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -395,14 +447,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAtp.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAtp.java index f550ed93919..4aa805057d5 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAtp.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromAtp.java @@ -191,7 +191,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -199,12 +199,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -350,6 +356,52 @@ public ConnectionSummaryFromAtp( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromAtp( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("tnsAlias") String tnsAlias, + @com.fasterxml.jackson.annotation.JsonProperty("tnsNames") + java.util.List tnsNames, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -395,14 +447,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromMySqlHeatWave.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromMySqlHeatWave.java index 4878cd013a7..ee0f56d4068 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromMySqlHeatWave.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromMySqlHeatWave.java @@ -161,7 +161,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -169,12 +169,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -308,6 +314,47 @@ public ConnectionSummaryFromMySqlHeatWave( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromMySqlHeatWave( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -327,14 +374,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracle.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracle.java index 5d2ad62cce4..5da1b756737 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracle.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracle.java @@ -161,7 +161,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -169,12 +169,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -308,6 +314,47 @@ public ConnectionSummaryFromOracle( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromOracle( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -327,14 +374,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleEbs.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleEbs.java index ec5a1980e75..a3ef5a07598 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleEbs.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleEbs.java @@ -161,7 +161,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -169,12 +169,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -308,6 +314,47 @@ public ConnectionSummaryFromOracleEbs( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromOracleEbs( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -327,14 +374,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOraclePeopleSoft.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOraclePeopleSoft.java index a55d697d73a..5613dc2d4db 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOraclePeopleSoft.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOraclePeopleSoft.java @@ -161,7 +161,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -169,12 +169,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -308,6 +314,47 @@ public ConnectionSummaryFromOraclePeopleSoft( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromOraclePeopleSoft( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -327,14 +374,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleSiebel.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleSiebel.java index 1ca2cad27b2..fb2fcad424a 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleSiebel.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOracleSiebel.java @@ -161,7 +161,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -169,12 +169,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -308,6 +314,47 @@ public ConnectionSummaryFromOracleSiebel( metadata, keyMap); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ConnectionSummaryFromOracleSiebel( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") Schema primarySchema, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") Boolean isDefault, + @com.fasterxml.jackson.annotation.JsonProperty("metadata") ObjectMetadata metadata, + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + java.util.Map keyMap, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -327,14 +374,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAdwc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAdwc.java index 48902ab31f0..6b81b4d2eca 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAdwc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAdwc.java @@ -155,7 +155,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -163,12 +163,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -290,6 +296,44 @@ public CreateConnectionFromAdwc( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromAdwc( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("tnsAlias") String tnsAlias, + @com.fasterxml.jackson.annotation.JsonProperty("tnsNames") + java.util.List tnsNames, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -335,14 +379,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAtp.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAtp.java index 8d9ca1f5e9a..c5eaa757b3a 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAtp.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromAtp.java @@ -155,7 +155,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -163,12 +163,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -290,6 +296,44 @@ public CreateConnectionFromAtp( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromAtp( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("tnsAlias") String tnsAlias, + @com.fasterxml.jackson.annotation.JsonProperty("tnsNames") + java.util.List tnsNames, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -335,14 +379,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromJdbc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromJdbc.java index 979a3ddcc89..330d1eeb480 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromJdbc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromJdbc.java @@ -125,7 +125,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -133,12 +133,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -248,6 +254,39 @@ public CreateConnectionFromJdbc( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromJdbc( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -267,14 +306,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySQL.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySQL.java index 7aae4978f86..f6d68d03ba3 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySQL.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySQL.java @@ -125,7 +125,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -133,12 +133,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -248,6 +254,39 @@ public CreateConnectionFromMySQL( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromMySQL( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -267,14 +306,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySqlHeatWave.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySqlHeatWave.java index 97b6ee1d0d3..0f7d40ddbe7 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySqlHeatWave.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromMySqlHeatWave.java @@ -125,7 +125,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -133,12 +133,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -248,6 +254,39 @@ public CreateConnectionFromMySqlHeatWave( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromMySqlHeatWave( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -267,14 +306,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracle.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracle.java index 9559af8c19b..999ed7947d1 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracle.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracle.java @@ -125,7 +125,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -133,12 +133,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -248,6 +254,39 @@ public CreateConnectionFromOracle( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromOracle( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -267,14 +306,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleEbs.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleEbs.java index 781c3bb79c2..4050d6e2fbd 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleEbs.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleEbs.java @@ -125,7 +125,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -133,12 +133,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -248,6 +254,39 @@ public CreateConnectionFromOracleEbs( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromOracleEbs( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -267,14 +306,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOraclePeopleSoft.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOraclePeopleSoft.java index 1f42826e371..465c2733742 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOraclePeopleSoft.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOraclePeopleSoft.java @@ -125,7 +125,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -133,12 +133,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -248,6 +254,39 @@ public CreateConnectionFromOraclePeopleSoft( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromOraclePeopleSoft( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -267,14 +306,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleSiebel.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleSiebel.java index ee642a8ea87..b272de1338a 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleSiebel.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOracleSiebel.java @@ -125,7 +125,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -133,12 +133,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -248,6 +254,39 @@ public CreateConnectionFromOracleSiebel( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateConnectionFromOracleSiebel( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -267,14 +306,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAdwc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAdwc.java index 702ffc62ff7..7868106c7a0 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAdwc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAdwc.java @@ -164,7 +164,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -172,12 +172,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -305,6 +311,46 @@ public UpdateConnectionFromAdwc( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromAdwc( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("tnsAlias") String tnsAlias, + @com.fasterxml.jackson.annotation.JsonProperty("tnsNames") + java.util.List tnsNames, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -350,14 +396,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAtp.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAtp.java index 7aad3d2669c..632176aa23b 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAtp.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromAtp.java @@ -164,7 +164,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -172,12 +172,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -305,6 +311,46 @@ public UpdateConnectionFromAtp( this.tnsAlias = tnsAlias; this.tnsNames = tnsNames; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromAtp( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("tnsAlias") String tnsAlias, + @com.fasterxml.jackson.annotation.JsonProperty("tnsNames") + java.util.List tnsNames, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.tnsAlias = tnsAlias; + this.tnsNames = tnsNames; + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -350,14 +396,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromJdbc.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromJdbc.java index ae6d8ae242e..a9e73a72797 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromJdbc.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromJdbc.java @@ -134,7 +134,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -142,12 +142,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -263,6 +269,41 @@ public UpdateConnectionFromJdbc( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromJdbc( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -282,14 +323,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySQL.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySQL.java index 0deea28e329..e928869fa6e 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySQL.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySQL.java @@ -134,7 +134,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -142,12 +142,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -263,6 +269,41 @@ public UpdateConnectionFromMySQL( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromMySQL( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -282,14 +323,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySqlHeatWave.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySqlHeatWave.java index 4c72959cece..50d61125bf7 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySqlHeatWave.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromMySqlHeatWave.java @@ -134,7 +134,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -142,12 +142,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -263,6 +269,41 @@ public UpdateConnectionFromMySqlHeatWave( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromMySqlHeatWave( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -282,14 +323,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracle.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracle.java index 2d1af1e34fc..480d8f1017b 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracle.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracle.java @@ -134,7 +134,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -142,12 +142,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -263,6 +269,41 @@ public UpdateConnectionFromOracle( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromOracle( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -282,14 +323,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleEbs.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleEbs.java index 1b5319e192a..2532bd02531 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleEbs.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleEbs.java @@ -134,7 +134,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -142,12 +142,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -263,6 +269,41 @@ public UpdateConnectionFromOracleEbs( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromOracleEbs( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -282,14 +323,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOraclePeopleSoft.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOraclePeopleSoft.java index 0e8f2cf4853..8b9a5888e4d 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOraclePeopleSoft.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOraclePeopleSoft.java @@ -134,7 +134,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -142,12 +142,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -263,6 +269,41 @@ public UpdateConnectionFromOraclePeopleSoft( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromOraclePeopleSoft( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -282,14 +323,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleSiebel.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleSiebel.java index 03a4abe2e94..0e4636cd1b2 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleSiebel.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOracleSiebel.java @@ -134,7 +134,7 @@ public Builder username(String username) { } /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the connection. @@ -142,12 +142,18 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") private SensitiveAttribute passwordSecret; @@ -263,6 +269,41 @@ public UpdateConnectionFromOracleSiebel( connectionProperties, registryMetadata); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecret = passwordSecret; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateConnectionFromOracleSiebel( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") String modelVersion, + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") ParentReference parentRef, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") Integer objectStatus, + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") Integer objectVersion, + @com.fasterxml.jackson.annotation.JsonProperty("identifier") String identifier, + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + java.util.List connectionProperties, + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + RegistryMetadata registryMetadata, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecret") + SensitiveAttribute passwordSecret) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.username = username; this.password = password; this.passwordSecret = passwordSecret; } @@ -282,14 +323,27 @@ public String getUsername() { /** The password for the connection. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the connection. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the connection. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dataintegration/src/main/resources/com/oracle/bmc/dataintegration/client.properties b/bmc-dataintegration/src/main/resources/com/oracle/bmc/dataintegration/client.properties index debfb7fb6e8..3556d933c8a 100644 --- a/bmc-dataintegration/src/main/resources/com/oracle/bmc/dataintegration/client.properties +++ b/bmc-dataintegration/src/main/resources/com/oracle/bmc/dataintegration/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200430") \ No newline at end of file diff --git a/bmc-datalabelingservice/src/main/resources/com/oracle/bmc/datalabelingservice/client.properties b/bmc-datalabelingservice/src/main/resources/com/oracle/bmc/datalabelingservice/client.properties index c04594dcf04..aa5371a4dcd 100644 --- a/bmc-datalabelingservice/src/main/resources/com/oracle/bmc/datalabelingservice/client.properties +++ b/bmc-datalabelingservice/src/main/resources/com/oracle/bmc/datalabelingservice/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211001") \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/src/main/resources/com/oracle/bmc/datalabelingservicedataplane/client.properties b/bmc-datalabelingservicedataplane/src/main/resources/com/oracle/bmc/datalabelingservicedataplane/client.properties index c04594dcf04..aa5371a4dcd 100644 --- a/bmc-datalabelingservicedataplane/src/main/resources/com/oracle/bmc/datalabelingservicedataplane/client.properties +++ b/bmc-datalabelingservicedataplane/src/main/resources/com/oracle/bmc/datalabelingservicedataplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211001") \ No newline at end of file diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Credentials.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Credentials.java index c98545d6c42..519a4bce203 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Credentials.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/Credentials.java @@ -21,8 +21,16 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class Credentials extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"userName", "password"}) public Credentials(String userName, String password) { + super(); + this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"userName", "password"}) + public Credentials(String userName, char[] password) { super(); this.userName = userName; this.password = password; @@ -47,7 +55,7 @@ public Builder userName(String userName) { } /** The password of the database user. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password of the database user. @@ -55,12 +63,18 @@ public Builder userName(String userName) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -108,14 +122,27 @@ public String getUserName() { /** The password of the database user. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password of the database user. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password of the database user. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskDataDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskDataDetails.java index 322e9601700..9f5eeccac21 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskDataDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskDataDetails.java @@ -22,6 +22,45 @@ public final class MaskDataDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public MaskDataDetails( + String targetId, + Boolean isDecrypt, + Boolean isRerun, + ReRunFromStep reRunFromStep, + String tablespace, + Boolean isIgnoreErrorsEnabled, + String seed, + String userDefinedFunctionSeed, + Boolean isMoveInterimTablesEnabled, + Boolean isExecuteSavedScriptEnabled, + Boolean isDropTempTablesEnabled, + Boolean isRedoLoggingEnabled, + Boolean isRefreshStatsEnabled, + String parallelDegree, + String recompile, + Credentials targetCredentials) { + super(); + this.targetId = targetId; + this.isDecrypt = isDecrypt; + this.isRerun = isRerun; + this.reRunFromStep = reRunFromStep; + this.tablespace = tablespace; + this.isIgnoreErrorsEnabled = isIgnoreErrorsEnabled; + this.seed = seed != null ? seed.toCharArray() : null; + this.userDefinedFunctionSeed = + userDefinedFunctionSeed != null ? userDefinedFunctionSeed.toCharArray() : null; + this.isMoveInterimTablesEnabled = isMoveInterimTablesEnabled; + this.isExecuteSavedScriptEnabled = isExecuteSavedScriptEnabled; + this.isDropTempTablesEnabled = isDropTempTablesEnabled; + this.isRedoLoggingEnabled = isRedoLoggingEnabled; + this.isRefreshStatsEnabled = isRefreshStatsEnabled; + this.parallelDegree = parallelDegree; + this.recompile = recompile; + this.targetCredentials = targetCredentials; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "targetId", "isDecrypt", @@ -47,8 +86,8 @@ public MaskDataDetails( ReRunFromStep reRunFromStep, String tablespace, Boolean isIgnoreErrorsEnabled, - String seed, - String userDefinedFunctionSeed, + char[] seed, + char[] userDefinedFunctionSeed, Boolean isMoveInterimTablesEnabled, Boolean isExecuteSavedScriptEnabled, Boolean isDropTempTablesEnabled, @@ -221,7 +260,7 @@ public Builder isIgnoreErrorsEnabled(Boolean isIgnoreErrorsEnabled) { * Substitution masking formats. */ @com.fasterxml.jackson.annotation.JsonProperty("seed") - private String seed; + private char[] seed; /** * The seed value to be used in case of Deterministic Encryption and Deterministic @@ -230,17 +269,23 @@ public Builder isIgnoreErrorsEnabled(Boolean isIgnoreErrorsEnabled) { * @param seed the value to set * @return this builder */ - public Builder seed(String seed) { + public Builder seed(char[] seed) { this.seed = seed; this.__explicitlySet__.add("seed"); return this; } + + public Builder seed(String seed) { + this.seed = seed != null ? seed.toCharArray() : null; + this.__explicitlySet__.add("seed"); + return this; + } /** * The seed value to be used in case of User Defined Function masking format. This is an * optional parameter and needs to be passed only if any User Defined Function uses seed. */ @com.fasterxml.jackson.annotation.JsonProperty("userDefinedFunctionSeed") - private String userDefinedFunctionSeed; + private char[] userDefinedFunctionSeed; /** * The seed value to be used in case of User Defined Function masking format. This is an @@ -249,11 +294,18 @@ public Builder seed(String seed) { * @param userDefinedFunctionSeed the value to set * @return this builder */ - public Builder userDefinedFunctionSeed(String userDefinedFunctionSeed) { + public Builder userDefinedFunctionSeed(char[] userDefinedFunctionSeed) { this.userDefinedFunctionSeed = userDefinedFunctionSeed; this.__explicitlySet__.add("userDefinedFunctionSeed"); return this; } + + public Builder userDefinedFunctionSeed(String userDefinedFunctionSeed) { + this.userDefinedFunctionSeed = + userDefinedFunctionSeed != null ? userDefinedFunctionSeed.toCharArray() : null; + this.__explicitlySet__.add("userDefinedFunctionSeed"); + return this; + } /** * Indicates if the interim DMASK tables should be moved to the user-specified tablespace. * As interim tables can be large in size, set it to false if moving them causes performance @@ -712,15 +764,29 @@ public Boolean getIsIgnoreErrorsEnabled() { * masking formats. */ @com.fasterxml.jackson.annotation.JsonProperty("seed") - private final String seed; + private final char[] seed; /** * The seed value to be used in case of Deterministic Encryption and Deterministic Substitution * masking formats. * * @return the value + * @deprecated Use getSeed__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSeed() { + return seed != null ? new String(seed) : null; + } + + /** + * The seed value to be used in case of Deterministic Encryption and Deterministic Substitution + * masking formats. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("seed") + public char[] getSeed__AsCharArray() { return seed; } @@ -729,15 +795,29 @@ public String getSeed() { * optional parameter and needs to be passed only if any User Defined Function uses seed. */ @com.fasterxml.jackson.annotation.JsonProperty("userDefinedFunctionSeed") - private final String userDefinedFunctionSeed; + private final char[] userDefinedFunctionSeed; /** * The seed value to be used in case of User Defined Function masking format. This is an * optional parameter and needs to be passed only if any User Defined Function uses seed. * * @return the value + * @deprecated Use getUserDefinedFunctionSeed__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getUserDefinedFunctionSeed() { + return userDefinedFunctionSeed != null ? new String(userDefinedFunctionSeed) : null; + } + + /** + * The seed value to be used in case of User Defined Function masking format. This is an + * optional parameter and needs to be passed only if any User Defined Function uses seed. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("userDefinedFunctionSeed") + public char[] getUserDefinedFunctionSeed__AsCharArray() { return userDefinedFunctionSeed; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TlsConfig.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TlsConfig.java index c2ef528502c..8fe2b04f68c 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TlsConfig.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/TlsConfig.java @@ -20,6 +20,22 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class TlsConfig extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + public TlsConfig( + Status status, + CertificateStoreType certificateStoreType, + String storePassword, + String trustStoreContent, + String keyStoreContent) { + super(); + this.status = status; + this.certificateStoreType = certificateStoreType; + this.storePassword = storePassword != null ? storePassword.toCharArray() : null; + this.trustStoreContent = trustStoreContent; + this.keyStoreContent = keyStoreContent; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "status", @@ -31,7 +47,7 @@ public final class TlsConfig extends com.oracle.bmc.http.client.internal.Explici public TlsConfig( Status status, CertificateStoreType certificateStoreType, - String storePassword, + char[] storePassword, String trustStoreContent, String keyStoreContent) { super(); @@ -78,7 +94,7 @@ public Builder certificateStoreType(CertificateStoreType certificateStoreType) { * The password to read the trust store and key store files, if they are password protected. */ @com.fasterxml.jackson.annotation.JsonProperty("storePassword") - private String storePassword; + private char[] storePassword; /** * The password to read the trust store and key store files, if they are password protected. @@ -86,11 +102,17 @@ public Builder certificateStoreType(CertificateStoreType certificateStoreType) { * @param storePassword the value to set * @return this builder */ - public Builder storePassword(String storePassword) { + public Builder storePassword(char[] storePassword) { this.storePassword = storePassword; this.__explicitlySet__.add("storePassword"); return this; } + + public Builder storePassword(String storePassword) { + this.storePassword = storePassword != null ? storePassword.toCharArray() : null; + this.__explicitlySet__.add("storePassword"); + return this; + } /** Base64 encoded string of trust store file content. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStoreContent") private String trustStoreContent; @@ -287,14 +309,27 @@ public CertificateStoreType getCertificateStoreType() { /** The password to read the trust store and key store files, if they are password protected. */ @com.fasterxml.jackson.annotation.JsonProperty("storePassword") - private final String storePassword; + private final char[] storePassword; /** * The password to read the trust store and key store files, if they are password protected. * * @return the value + * @deprecated Use getStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getStorePassword() { + return storePassword != null ? new String(storePassword) : null; + } + + /** + * The password to read the trust store and key store files, if they are password protected. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("storePassword") + public char[] getStorePassword__AsCharArray() { return storePassword; } diff --git a/bmc-datasafe/src/main/resources/com/oracle/bmc/datasafe/client.properties b/bmc-datasafe/src/main/resources/com/oracle/bmc/datasafe/client.properties index 28c0827995b..17f60eb00f1 100644 --- a/bmc-datasafe/src/main/resources/com/oracle/bmc/datasafe/client.properties +++ b/bmc-datasafe/src/main/resources/com/oracle/bmc/datasafe/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") \ No newline at end of file diff --git a/bmc-datascience/src/main/resources/com/oracle/bmc/datascience/client.properties b/bmc-datascience/src/main/resources/com/oracle/bmc/datascience/client.properties index 00f79f3b952..4563b7ed1d4 100644 --- a/bmc-datascience/src/main/resources/com/oracle/bmc/datascience/client.properties +++ b/bmc-datascience/src/main/resources/com/oracle/bmc/datascience/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") \ No newline at end of file diff --git a/bmc-dblm/src/main/resources/com/oracle/bmc/dblm/client.properties b/bmc-dblm/src/main/resources/com/oracle/bmc/dblm/client.properties index 6e8e742b0c6..70eb60ef72c 100644 --- a/bmc-dblm/src/main/resources/com/oracle/bmc/dblm/client.properties +++ b/bmc-dblm/src/main/resources/com/oracle/bmc/dblm/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") \ No newline at end of file diff --git a/bmc-dbmulticloud/src/main/resources/com/oracle/bmc/dbmulticloud/client.properties b/bmc-dbmulticloud/src/main/resources/com/oracle/bmc/dbmulticloud/client.properties index b1f6b8e9ff6..a4b9b885946 100644 --- a/bmc-dbmulticloud/src/main/resources/com/oracle/bmc/dbmulticloud/client.properties +++ b/bmc-dbmulticloud/src/main/resources/com/oracle/bmc/dbmulticloud/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240501") \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties b/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties index e1ec1b6b372..b3d50c497b7 100644 --- a/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties +++ b/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") \ No newline at end of file diff --git a/bmc-demandsignal/src/main/resources/com/oracle/bmc/demandsignal/client.properties b/bmc-demandsignal/src/main/resources/com/oracle/bmc/demandsignal/client.properties index fefe21c1d9b..b96ec55f20a 100644 --- a/bmc-demandsignal/src/main/resources/com/oracle/bmc/demandsignal/client.properties +++ b/bmc-demandsignal/src/main/resources/com/oracle/bmc/demandsignal/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") \ No newline at end of file diff --git a/bmc-desktops/src/main/resources/com/oracle/bmc/desktops/client.properties b/bmc-desktops/src/main/resources/com/oracle/bmc/desktops/client.properties index 414585461ab..8de6b96c2cf 100644 --- a/bmc-desktops/src/main/resources/com/oracle/bmc/desktops/client.properties +++ b/bmc-desktops/src/main/resources/com/oracle/bmc/desktops/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220618") \ No newline at end of file diff --git a/bmc-devops/src/main/resources/com/oracle/bmc/devops/client.properties b/bmc-devops/src/main/resources/com/oracle/bmc/devops/client.properties index f7528738386..c8dcfd6a0d3 100644 --- a/bmc-devops/src/main/resources/com/oracle/bmc/devops/client.properties +++ b/bmc-devops/src/main/resources/com/oracle/bmc/devops/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210630") \ No newline at end of file diff --git a/bmc-dif/src/main/resources/com/oracle/bmc/dif/client.properties b/bmc-dif/src/main/resources/com/oracle/bmc/dif/client.properties index 20594949217..34aa70fb57d 100644 --- a/bmc-dif/src/main/resources/com/oracle/bmc/dif/client.properties +++ b/bmc-dif/src/main/resources/com/oracle/bmc/dif/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250830") \ No newline at end of file diff --git a/bmc-disasterrecovery/src/main/resources/com/oracle/bmc/disasterrecovery/client.properties b/bmc-disasterrecovery/src/main/resources/com/oracle/bmc/disasterrecovery/client.properties index 82a3a0dc005..22b424413b8 100644 --- a/bmc-disasterrecovery/src/main/resources/com/oracle/bmc/disasterrecovery/client.properties +++ b/bmc-disasterrecovery/src/main/resources/com/oracle/bmc/disasterrecovery/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") \ No newline at end of file diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java index 572b923d064..2646806706d 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java @@ -31,7 +31,7 @@ public final class CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndCluster public static class Builder { /** The admin password for the catalog associated with Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The admin password for the catalog associated with Globally distributed database. @@ -39,11 +39,17 @@ public static class Builder { * @param adminPassword the value to set * @return this builder */ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } /** * The details required for creation of the peer for the ExadbXs infrastructure based * catalog. @@ -260,6 +266,36 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( DbStorageVaultDetails dbStorageVaultDetails, VmClusterDetails vmClusterDetails) { super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.peerDetails = peerDetails; + this.shardSpace = shardSpace; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.vmClusterDetails = vmClusterDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") + java.util.List + peerDetails, + @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") String shardSpace, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + String availabilityDomain, + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + DbStorageVaultDetails dbStorageVaultDetails, + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + VmClusterDetails vmClusterDetails) { + super(); this.adminPassword = adminPassword; this.peerDetails = peerDetails; this.shardSpace = shardSpace; @@ -273,14 +309,27 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( /** The admin password for the catalog associated with Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; /** * The admin password for the catalog associated with Globally distributed database. * * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the catalog associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java index 11c8e59636f..84591206455 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java @@ -30,7 +30,7 @@ public final class CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDe public static class Builder { /** The admin password for the shard associated with Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The admin password for the shard associated with Globally distributed database. @@ -38,11 +38,17 @@ public static class Builder { * @param adminPassword the value to set * @return this builder */ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } /** * The details required for creation of the peer for the ExadbXs infrastructure based shard. */ @@ -257,6 +263,35 @@ public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( DbStorageVaultDetails dbStorageVaultDetails, VmClusterDetails vmClusterDetails) { super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.peerDetails = peerDetails; + this.shardSpace = shardSpace; + this.vaultId = vaultId; + this.kmsKeyId = kmsKeyId; + this.kmsKeyVersionId = kmsKeyVersionId; + this.availabilityDomain = availabilityDomain; + this.dbStorageVaultDetails = dbStorageVaultDetails; + this.vmClusterDetails = vmClusterDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") + java.util.List peerDetails, + @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") String shardSpace, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + String kmsKeyVersionId, + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + String availabilityDomain, + @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") + DbStorageVaultDetails dbStorageVaultDetails, + @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") + VmClusterDetails vmClusterDetails) { + super(); this.adminPassword = adminPassword; this.peerDetails = peerDetails; this.shardSpace = shardSpace; @@ -270,14 +305,27 @@ public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( /** The admin password for the shard associated with Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; /** * The admin password for the shard associated with Globally distributed database. * * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The admin password for the shard associated with Globally distributed database. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-distributeddatabase/src/main/resources/com/oracle/bmc/distributeddatabase/client.properties b/bmc-distributeddatabase/src/main/resources/com/oracle/bmc/distributeddatabase/client.properties index 749a2873bba..0c4cd753806 100644 --- a/bmc-distributeddatabase/src/main/resources/com/oracle/bmc/distributeddatabase/client.properties +++ b/bmc-distributeddatabase/src/main/resources/com/oracle/bmc/distributeddatabase/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") \ No newline at end of file diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/DynectMigrationDetails.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/DynectMigrationDetails.java index e83ed0744bd..9d8605c87ac 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/model/DynectMigrationDetails.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/model/DynectMigrationDetails.java @@ -23,6 +23,20 @@ public final class DynectMigrationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public DynectMigrationDetails( + String customerName, + String username, + String password, + java.util.Map> httpRedirectReplacements) { + super(); + this.customerName = customerName; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.httpRedirectReplacements = httpRedirectReplacements; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "customerName", "username", @@ -32,7 +46,7 @@ public final class DynectMigrationDetails public DynectMigrationDetails( String customerName, String username, - String password, + char[] password, java.util.Map> httpRedirectReplacements) { super(); this.customerName = customerName; @@ -75,7 +89,7 @@ public Builder username(String username) { } /** DynECT API password for the provided username. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * DynECT API password for the provided username. @@ -83,11 +97,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * A map of fully-qualified domain names (FQDNs) to an array of {@code MigrationReplacement} * objects. @@ -182,14 +202,27 @@ public String getUsername() { /** DynECT API password for the provided username. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * DynECT API password for the provided username. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * DynECT API password for the provided username. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-dns/src/main/resources/com/oracle/bmc/dns/client.properties b/bmc-dns/src/main/resources/com/oracle/bmc/dns/client.properties index 16549998561..79f81a7c8e9 100644 --- a/bmc-dns/src/main/resources/com/oracle/bmc/dns/client.properties +++ b/bmc-dns/src/main/resources/com/oracle/bmc/dns/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180115") \ No newline at end of file diff --git a/bmc-email/src/main/resources/com/oracle/bmc/email/client.properties b/bmc-email/src/main/resources/com/oracle/bmc/email/client.properties index 57b0b2b56a3..9f9c0bca3d1 100644 --- a/bmc-email/src/main/resources/com/oracle/bmc/email/client.properties +++ b/bmc-email/src/main/resources/com/oracle/bmc/email/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") \ No newline at end of file diff --git a/bmc-emaildataplane/src/main/resources/com/oracle/bmc/emaildataplane/client.properties b/bmc-emaildataplane/src/main/resources/com/oracle/bmc/emaildataplane/client.properties index 24a154da071..72a3d8c4d2e 100644 --- a/bmc-emaildataplane/src/main/resources/com/oracle/bmc/emaildataplane/client.properties +++ b/bmc-emaildataplane/src/main/resources/com/oracle/bmc/emaildataplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220926") \ No newline at end of file diff --git a/bmc-emwarehouse/src/main/resources/com/oracle/bmc/emwarehouse/client.properties b/bmc-emwarehouse/src/main/resources/com/oracle/bmc/emwarehouse/client.properties index 422d75b703a..4d3343497ed 100644 --- a/bmc-emwarehouse/src/main/resources/com/oracle/bmc/emwarehouse/client.properties +++ b/bmc-emwarehouse/src/main/resources/com/oracle/bmc/emwarehouse/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") \ No newline at end of file diff --git a/bmc-events/src/main/resources/com/oracle/bmc/events/client.properties b/bmc-events/src/main/resources/com/oracle/bmc/events/client.properties index 28c0827995b..17f60eb00f1 100644 --- a/bmc-events/src/main/resources/com/oracle/bmc/events/client.properties +++ b/bmc-events/src/main/resources/com/oracle/bmc/events/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") \ No newline at end of file diff --git a/bmc-filestorage/src/main/resources/com/oracle/bmc/filestorage/client.properties b/bmc-filestorage/src/main/resources/com/oracle/bmc/filestorage/client.properties index 3dabbe496d5..ee7c9ab8031 100644 --- a/bmc-filestorage/src/main/resources/com/oracle/bmc/filestorage/client.properties +++ b/bmc-filestorage/src/main/resources/com/oracle/bmc/filestorage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20171215") \ No newline at end of file diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Variable.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Variable.java index bf1cb53e46c..c4ebfb129f1 100644 --- a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Variable.java +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Variable.java @@ -21,8 +21,16 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class Variable extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"name", "value"}) public Variable(String name, String value) { + super(); + this.name = name; + this.value = value != null ? value.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"name", "value"}) + public Variable(String name, char[] value) { super(); this.name = name; this.value = value; @@ -47,7 +55,7 @@ public Builder name(String name) { } /** The value corresponding to the variable name. */ @com.fasterxml.jackson.annotation.JsonProperty("value") - private String value; + private char[] value; /** * The value corresponding to the variable name. @@ -55,12 +63,18 @@ public Builder name(String name) { * @param value the value to set * @return this builder */ - public Builder value(String value) { + public Builder value(char[] value) { this.value = value; this.__explicitlySet__.add("value"); return this; } + public Builder value(String value) { + this.value = value != null ? value.toCharArray() : null; + this.__explicitlySet__.add("value"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -108,14 +122,27 @@ public String getName() { /** The value corresponding to the variable name. */ @com.fasterxml.jackson.annotation.JsonProperty("value") - private final String value; + private final char[] value; /** * The value corresponding to the variable name. * * @return the value + * @deprecated Use getValue__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getValue() { + return value != null ? new String(value) : null; + } + + /** + * The value corresponding to the variable name. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + public char[] getValue__AsCharArray() { return value; } diff --git a/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties b/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties index 612b8fd3e95..808e6c72269 100644 --- a/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties +++ b/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250228") \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/src/main/resources/com/oracle/bmc/fleetsoftwareupdate/client.properties b/bmc-fleetsoftwareupdate/src/main/resources/com/oracle/bmc/fleetsoftwareupdate/client.properties index def1bc72faf..8fb7b3d7604 100644 --- a/bmc-fleetsoftwareupdate/src/main/resources/com/oracle/bmc/fleetsoftwareupdate/client.properties +++ b/bmc-fleetsoftwareupdate/src/main/resources/com/oracle/bmc/fleetsoftwareupdate/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220528") \ No newline at end of file diff --git a/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties b/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties index 28c0827995b..17f60eb00f1 100644 --- a/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties +++ b/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") \ No newline at end of file diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java index d4785c621cc..a834c3f5514 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ExtractDetailsSummary.java @@ -23,8 +23,17 @@ public final class ExtractDetailsSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"parUrl", "password", "timeCreated"}) public ExtractDetailsSummary(String parUrl, String password, java.util.Date timeCreated) { + super(); + this.parUrl = parUrl; + this.password = password != null ? password.toCharArray() : null; + this.timeCreated = timeCreated; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"parUrl", "password", "timeCreated"}) + public ExtractDetailsSummary(String parUrl, char[] password, java.util.Date timeCreated) { super(); this.parUrl = parUrl; this.password = password; @@ -50,7 +59,7 @@ public Builder parUrl(String parUrl) { } /** The password to decrypt data extract. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password to decrypt data extract. @@ -58,11 +67,17 @@ public Builder parUrl(String parUrl) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The time when the data extract was requested. An RFC3339 formatted datetime string */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; @@ -130,14 +145,27 @@ public String getParUrl() { /** The password to decrypt data extract. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password to decrypt data extract. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password to decrypt data extract. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ResetFusionEnvironmentPasswordDetails.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ResetFusionEnvironmentPasswordDetails.java index ef92b671683..fe3a92ca25b 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ResetFusionEnvironmentPasswordDetails.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ResetFusionEnvironmentPasswordDetails.java @@ -23,8 +23,15 @@ public final class ResetFusionEnvironmentPasswordDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"password"}) public ResetFusionEnvironmentPasswordDetails(String password) { + super(); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"password"}) + public ResetFusionEnvironmentPasswordDetails(char[] password) { super(); this.password = password; } @@ -33,7 +40,7 @@ public ResetFusionEnvironmentPasswordDetails(String password) { public static class Builder { /** Admin password */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Admin password @@ -41,12 +48,18 @@ public static class Builder { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -79,14 +92,27 @@ public Builder toBuilder() { /** Admin password */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * Admin password * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * Admin password + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-fusionapps/src/main/resources/com/oracle/bmc/fusionapps/client.properties b/bmc-fusionapps/src/main/resources/com/oracle/bmc/fusionapps/client.properties index 240b2c88566..dfb0eb0e165 100644 --- a/bmc-fusionapps/src/main/resources/com/oracle/bmc/fusionapps/client.properties +++ b/bmc-fusionapps/src/main/resources/com/oracle/bmc/fusionapps/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") \ No newline at end of file diff --git a/bmc-gdp/src/main/resources/com/oracle/bmc/gdp/client.properties b/bmc-gdp/src/main/resources/com/oracle/bmc/gdp/client.properties index 5ff10a492ae..c3b0e365c54 100644 --- a/bmc-gdp/src/main/resources/com/oracle/bmc/gdp/client.properties +++ b/bmc-gdp/src/main/resources/com/oracle/bmc/gdp/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230301") \ No newline at end of file diff --git a/bmc-generativeai/src/main/resources/com/oracle/bmc/generativeai/client.properties b/bmc-generativeai/src/main/resources/com/oracle/bmc/generativeai/client.properties index 6a7c993f0ae..f8f77d6dd8c 100644 --- a/bmc-generativeai/src/main/resources/com/oracle/bmc/generativeai/client.properties +++ b/bmc-generativeai/src/main/resources/com/oracle/bmc/generativeai/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") \ No newline at end of file diff --git a/bmc-generativeaiagent/src/main/resources/com/oracle/bmc/generativeaiagent/client.properties b/bmc-generativeaiagent/src/main/resources/com/oracle/bmc/generativeaiagent/client.properties index aba5dcd0a4b..2b6b28e7a44 100644 --- a/bmc-generativeaiagent/src/main/resources/com/oracle/bmc/generativeaiagent/client.properties +++ b/bmc-generativeaiagent/src/main/resources/com/oracle/bmc/generativeaiagent/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240531") \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/src/main/resources/com/oracle/bmc/generativeaiagentruntime/client.properties b/bmc-generativeaiagentruntime/src/main/resources/com/oracle/bmc/generativeaiagentruntime/client.properties index aba5dcd0a4b..2b6b28e7a44 100644 --- a/bmc-generativeaiagentruntime/src/main/resources/com/oracle/bmc/generativeaiagentruntime/client.properties +++ b/bmc-generativeaiagentruntime/src/main/resources/com/oracle/bmc/generativeaiagentruntime/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240531") \ No newline at end of file diff --git a/bmc-generativeaidata/src/main/resources/com/oracle/bmc/generativeaidata/client.properties b/bmc-generativeaidata/src/main/resources/com/oracle/bmc/generativeaidata/client.properties index c1ba439a2f4..2e4fb789355 100644 --- a/bmc-generativeaidata/src/main/resources/com/oracle/bmc/generativeaidata/client.properties +++ b/bmc-generativeaidata/src/main/resources/com/oracle/bmc/generativeaidata/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") \ No newline at end of file diff --git a/bmc-generativeaiinference/src/main/resources/com/oracle/bmc/generativeaiinference/client.properties b/bmc-generativeaiinference/src/main/resources/com/oracle/bmc/generativeaiinference/client.properties index 6a7c993f0ae..f8f77d6dd8c 100644 --- a/bmc-generativeaiinference/src/main/resources/com/oracle/bmc/generativeaiinference/client.properties +++ b/bmc-generativeaiinference/src/main/resources/com/oracle/bmc/generativeaiinference/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") \ No newline at end of file diff --git a/bmc-genericartifactscontent/src/main/resources/com/oracle/bmc/genericartifactscontent/client.properties b/bmc-genericartifactscontent/src/main/resources/com/oracle/bmc/genericartifactscontent/client.properties index 57fa7f4b072..80d9875bfaf 100644 --- a/bmc-genericartifactscontent/src/main/resources/com/oracle/bmc/genericartifactscontent/client.properties +++ b/bmc-genericartifactscontent/src/main/resources/com/oracle/bmc/genericartifactscontent/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java index 78eb56ed624..9d0de3c1f78 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonKinesisConnectionDetails.java @@ -198,7 +198,7 @@ public Builder accessKeyId(String accessKeyId) { * replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * Secret access key to access the Amazon Kinesis. Deprecated: This field is deprecated and @@ -207,11 +207,17 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder */ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the secret access key is stored. Note: When provided, 'secretAccessKey' @@ -426,6 +432,64 @@ public CreateAmazonKinesisConnectionDetails( securityAttributes); this.technologyType = technologyType; this.accessKeyId = accessKeyId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.endpoint = endpoint; + this.region = region; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAmazonKinesisConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + AmazonKinesisConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") String accessKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + char[] secretAccessKey, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + String secretAccessKeySecretId, + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") String endpoint, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.secretAccessKeySecretId = secretAccessKeySecretId; this.endpoint = endpoint; @@ -463,15 +527,30 @@ public String getAccessKeyId() { * replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; /** * Secret access key to access the Amazon Kinesis. Deprecated: This field is deprecated and - * replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * replaced by "secretAccessKeySecretId". This field will be removed after February 15 + * 2026. * * @return the value + * @deprecated Use getSecretAccessKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } + + /** + * Secret access key to access the Amazon Kinesis. Deprecated: This field is deprecated and + * replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java index cb515110d34..ccde151cab1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonRedshiftConnectionDetails.java @@ -225,7 +225,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -236,11 +236,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -415,6 +421,61 @@ public CreateAmazonRedshiftConnectionDetails( this.technologyType = technologyType; this.connectionUrl = connectionUrl; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAmazonRedshiftConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + AmazonRedshiftConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("connectionUrl") String connectionUrl, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.connectionUrl = connectionUrl; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; } @@ -475,7 +536,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -485,7 +561,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java index 4a2eccafc2a..2ee22f675d5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAmazonS3ConnectionDetails.java @@ -199,7 +199,7 @@ public Builder accessKeyId(String accessKeyId) { * field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * Secret access key to access the Amazon S3 bucket. e.g.: "this-is-not-the-secret" @@ -209,11 +209,17 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder */ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the Secret Access Key is stored. Note: When provided, 'secretAccessKey' @@ -426,6 +432,64 @@ public CreateAmazonS3ConnectionDetails( securityAttributes); this.technologyType = technologyType; this.accessKeyId = accessKeyId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.endpoint = endpoint; + this.region = region; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAmazonS3ConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + AmazonS3Connection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") String accessKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + char[] secretAccessKey, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + String secretAccessKeySecretId, + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") String endpoint, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.secretAccessKeySecretId = secretAccessKeySecretId; this.endpoint = endpoint; @@ -464,7 +528,21 @@ public String getAccessKeyId() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; + + /** + * Secret access key to access the Amazon S3 bucket. e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } /** * Secret access key to access the Amazon S3 bucket. e.g.: "this-is-not-the-secret" Deprecated: @@ -473,7 +551,8 @@ public String getAccessKeyId() { * * @return the value */ - public String getSecretAccessKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java index c2100471859..a78d9ac3278 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureDataLakeStorageConnectionDetails.java @@ -218,7 +218,7 @@ public Builder accountName(String accountName) { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") - private String accountKey; + private char[] accountKey; /** * Azure storage account key. This property is required when 'authenticationType' is set to @@ -230,11 +230,17 @@ public Builder accountName(String accountName) { * @param accountKey the value to set * @return this builder */ - public Builder accountKey(String accountKey) { + public Builder accountKey(char[] accountKey) { this.accountKey = accountKey; this.__explicitlySet__.add("accountKey"); return this; } + + public Builder accountKey(String accountKey) { + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.__explicitlySet__.add("accountKey"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the account key is stored. Note: When provided, 'accountKey' field must not @@ -265,7 +271,7 @@ public Builder accountKeySecretId(String accountKeySecretId) { * be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") - private String sasToken; + private char[] sasToken; /** * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. @@ -278,11 +284,17 @@ public Builder accountKeySecretId(String accountKeySecretId) { * @param sasToken the value to set * @return this builder */ - public Builder sasToken(String sasToken) { + public Builder sasToken(char[] sasToken) { this.sasToken = sasToken; this.__explicitlySet__.add("sasToken"); return this; } + + public Builder sasToken(String sasToken) { + this.sasToken = sasToken != null ? sasToken.toCharArray() : null; + this.__explicitlySet__.add("sasToken"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the sas token is stored. Note: When provided, 'sasToken' field must not be @@ -349,7 +361,7 @@ public Builder clientId(String clientId) { * replaced by "clientSecretSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * Azure client secret (aka application password) for authentication. This property is @@ -360,11 +372,17 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder */ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the client secret is stored. Note: When provided, 'clientSecret' field must @@ -613,6 +631,81 @@ public CreateAzureDataLakeStorageConnectionDetails( this.technologyType = technologyType; this.authenticationType = authenticationType; this.accountName = accountName; + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.accountKeySecretId = accountKeySecretId; + this.sasToken = sasToken != null ? sasToken.toCharArray() : null; + this.sasTokenSecretId = sasTokenSecretId; + this.azureTenantId = azureTenantId; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.clientSecretSecretId = clientSecretSecretId; + this.endpoint = endpoint; + this.azureAuthorityHost = azureAuthorityHost; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAzureDataLakeStorageConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + AzureDataLakeStorageConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + AzureDataLakeStorageConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("accountName") String accountName, + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") char[] accountKey, + @com.fasterxml.jackson.annotation.JsonProperty("accountKeySecretId") + String accountKeySecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sasToken") char[] sasToken, + @com.fasterxml.jackson.annotation.JsonProperty("sasTokenSecretId") + String sasTokenSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("azureTenantId") String azureTenantId, + @com.fasterxml.jackson.annotation.JsonProperty("clientId") String clientId, + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") char[] clientSecret, + @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") + String clientSecretSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") String endpoint, + @com.fasterxml.jackson.annotation.JsonProperty("azureAuthorityHost") + String azureAuthorityHost) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.authenticationType = authenticationType; + this.accountName = accountName; this.accountKey = accountKey; this.accountKeySecretId = accountKeySecretId; this.sasToken = sasToken; @@ -672,7 +765,23 @@ public String getAccountName() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") - private final String accountKey; + private final char[] accountKey; + + /** + * Azure storage account key. This property is required when 'authenticationType' is set + * to 'SHARED_KEY'. e.g.: + * pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This + * field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getAccountKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAccountKey() { + return accountKey != null ? new String(accountKey) : null; + } /** * Azure storage account key. This property is required when 'authenticationType' is set to @@ -683,7 +792,8 @@ public String getAccountName() { * * @return the value */ - public String getAccountKey() { + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") + public char[] getAccountKey__AsCharArray() { return accountKey; } @@ -715,7 +825,24 @@ public String getAccountKeySecretId() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") - private final String sasToken; + private final char[] sasToken; + + /** + * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. + * This property is required when 'authenticationType' is set to + * 'SHARED_ACCESS_SIGNATURE'. e.g.: + * ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field + * will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getSasToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSasToken() { + return sasToken != null ? new String(sasToken) : null; + } /** * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. @@ -727,7 +854,8 @@ public String getAccountKeySecretId() { * * @return the value */ - public String getSasToken() { + @com.fasterxml.jackson.annotation.JsonProperty("sasToken") + public char[] getSasToken__AsCharArray() { return sasToken; } @@ -791,7 +919,22 @@ public String getClientId() { * "clientSecretSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * Azure client secret (aka application password) for authentication. This property is required + * when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. e.g.: + * dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 Deprecated: This field is deprecated and replaced by + * "clientSecretSecretId". This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * Azure client secret (aka application password) for authentication. This property is required @@ -801,7 +944,8 @@ public String getClientId() { * * @return the value */ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java index a639a7bdd53..e3806e4dd1a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateAzureSynapseConnectionDetails.java @@ -225,7 +225,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -236,11 +236,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -415,6 +421,62 @@ public CreateAzureSynapseConnectionDetails( this.technologyType = technologyType; this.connectionString = connectionString; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAzureSynapseConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + AzureSynapseConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + String connectionString, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.connectionString = connectionString; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; } @@ -475,7 +537,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -485,7 +562,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java index e533f3fa8ac..178d7b9b73d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabaseRegistrationDetails.java @@ -23,6 +23,48 @@ public final class CreateDatabaseRegistrationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateDatabaseRegistrationDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String fqdn, + String ipAddress, + String subnetId, + String databaseId, + String username, + String password, + String connectionString, + SessionMode sessionMode, + String wallet, + String aliasName, + String vaultId, + String keyId, + String secretCompartmentId) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.fqdn = fqdn; + this.ipAddress = ipAddress; + this.subnetId = subnetId; + this.databaseId = databaseId; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.connectionString = connectionString; + this.sessionMode = sessionMode; + this.wallet = wallet; + this.aliasName = aliasName; + this.vaultId = vaultId; + this.keyId = keyId; + this.secretCompartmentId = secretCompartmentId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "description", @@ -54,7 +96,7 @@ public CreateDatabaseRegistrationDetails( String subnetId, String databaseId, String username, - String password, + char[] password, String connectionString, SessionMode sessionMode, String wallet, @@ -279,7 +321,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -290,11 +332,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** Connect descriptor or Easy Connect Naming method used to connect to a database. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionString") private String connectionString; @@ -703,7 +751,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -713,7 +776,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java index cfd7f8c3fd2..e497d89d7fa 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDatabricksConnectionDetails.java @@ -219,7 +219,7 @@ public Builder connectionUrl(String connectionUrl) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password used to connect to Databricks. Only applicable for authenticationType == @@ -229,11 +229,17 @@ public Builder connectionUrl(String connectionUrl) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. Note: When provided, 'password' field must not be @@ -276,7 +282,7 @@ public Builder clientId(String clientId) { * after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M Deprecated: This @@ -286,11 +292,17 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder */ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the client secret is stored. Only applicable for authenticationType == @@ -500,6 +512,72 @@ public CreateDatabricksConnectionDetails( this.technologyType = technologyType; this.authenticationType = authenticationType; this.connectionUrl = connectionUrl; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.clientSecretSecretId = clientSecretSecretId; + this.storageCredentialName = storageCredentialName; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDatabricksConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + DatabricksConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + DatabricksConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("connectionUrl") String connectionUrl, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("clientId") String clientId, + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") char[] clientSecret, + @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") + String clientSecretSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("storageCredentialName") + String storageCredentialName) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.authenticationType = authenticationType; + this.connectionUrl = connectionUrl; this.password = password; this.passwordSecretId = passwordSecretId; this.clientId = clientId; @@ -557,7 +635,21 @@ public String getConnectionUrl() { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password used to connect to Databricks. Only applicable for authenticationType + * == PERSONAL_ACCESS_TOKEN. Deprecated: This field is deprecated and replaced by + * "passwordSecretId". This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password used to connect to Databricks. Only applicable for authenticationType == @@ -566,7 +658,8 @@ public String getConnectionUrl() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -608,7 +701,21 @@ public String getClientId() { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * OAuth client secret, only applicable for authenticationType == OAUTH_M2M + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This + * field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M Deprecated: This @@ -617,7 +724,8 @@ public String getClientId() { * * @return the value */ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java index b6065642ba4..66949fed30a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateDb2ConnectionDetails.java @@ -248,7 +248,7 @@ public Builder username(String username) { * after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated DB2 database. Deprecated: @@ -258,11 +258,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored, that Oracle GoldenGate uses to connect the @@ -643,6 +649,86 @@ public CreateDb2ConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslClientKeystoredb = sslClientKeystoredb; + this.sslClientKeystoredbSecretId = sslClientKeystoredbSecretId; + this.sslClientKeystash = sslClientKeystash; + this.sslClientKeystashSecretId = sslClientKeystashSecretId; + this.sslServerCertificate = sslServerCertificate; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDb2ConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + Db2Connection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") String databaseName, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + java.util.List additionalAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + Db2Connection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") + String sslClientKeystoredb, + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredbSecretId") + String sslClientKeystoredbSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") + String sslClientKeystash, + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystashSecretId") + String sslClientKeystashSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sslServerCertificate") + String sslServerCertificate) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; @@ -729,7 +815,21 @@ public String getUsername() { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. Deprecated: This + * field is deprecated and replaced by "passwordSecretId". This field will be removed + * after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated DB2 database. Deprecated: This @@ -738,7 +838,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java index 68b77a633f5..2e475414fb9 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateElasticsearchConnectionDetails.java @@ -260,7 +260,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -271,11 +271,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -486,6 +492,69 @@ public CreateElasticsearchConnectionDetails( this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.fingerprint = fingerprint; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateElasticsearchConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + ElasticsearchConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("servers") String servers, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + ElasticsearchConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + ElasticsearchConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("fingerprint") String fingerprint) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.servers = servers; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.fingerprint = fingerprint; @@ -577,7 +646,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -587,7 +671,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java index 3ac3e769fa6..9834dbdc58f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateGoldenGateConnectionDetails.java @@ -248,7 +248,7 @@ public Builder username(String username) { * be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. @@ -258,11 +258,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored, which is used to connect to the Oracle GoldenGate @@ -487,6 +493,67 @@ public CreateGoldenGateConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateGoldenGateConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + GoldenGateConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("deploymentId") String deploymentId, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.deploymentId = deploymentId; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.privateIp = privateIp; @@ -567,7 +634,21 @@ public String getUsername() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password used to connect to the Oracle GoldenGate accessed trough this connection. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field + * will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. @@ -576,7 +657,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java index 844573acbf8..6c965ffcdf2 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateJavaMessageServiceConnectionDetails.java @@ -271,7 +271,7 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { * 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") - private String jndiSecurityCredentials; + private char[] jndiSecurityCredentials; /** * The password associated to the principal. Deprecated: This field is deprecated and @@ -281,11 +281,18 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { * @param jndiSecurityCredentials the value to set * @return this builder */ - public Builder jndiSecurityCredentials(String jndiSecurityCredentials) { + public Builder jndiSecurityCredentials(char[] jndiSecurityCredentials) { this.jndiSecurityCredentials = jndiSecurityCredentials; this.__explicitlySet__.add("jndiSecurityCredentials"); return this; } + + public Builder jndiSecurityCredentials(String jndiSecurityCredentials) { + this.jndiSecurityCredentials = + jndiSecurityCredentials != null ? jndiSecurityCredentials.toCharArray() : null; + this.__explicitlySet__.add("jndiSecurityCredentials"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the security credentials are stored associated to the principal. Note: When @@ -370,7 +377,7 @@ public Builder username(String username) { * be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. @@ -380,11 +387,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored, that Oracle GoldenGate uses to connect the @@ -493,7 +506,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by @@ -502,11 +515,18 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder */ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the TrustStore password is stored. Note: When provided, 'trustStorePassword' @@ -573,7 +593,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by @@ -582,11 +602,18 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder */ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the KeyStore password is stored. Note: When provided, 'keyStorePassword' @@ -614,7 +641,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. In case it differs from the KeyStore @@ -624,11 +651,17 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder */ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored for the cert inside of the Keystore. In case it @@ -944,6 +977,121 @@ public CreateJavaMessageServiceConnectionDetails( this.jndiProviderUrl = jndiProviderUrl; this.jndiInitialContextFactory = jndiInitialContextFactory; this.jndiSecurityPrincipal = jndiSecurityPrincipal; + this.jndiSecurityCredentials = + jndiSecurityCredentials != null ? jndiSecurityCredentials.toCharArray() : null; + this.jndiSecurityCredentialsSecretId = jndiSecurityCredentialsSecretId; + this.connectionUrl = connectionUrl; + this.connectionFactory = connectionFactory; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateJavaMessageServiceConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + JavaMessageServiceConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("shouldUseJndi") Boolean shouldUseJndi, + @com.fasterxml.jackson.annotation.JsonProperty("jndiConnectionFactory") + String jndiConnectionFactory, + @com.fasterxml.jackson.annotation.JsonProperty("jndiProviderUrl") + String jndiProviderUrl, + @com.fasterxml.jackson.annotation.JsonProperty("jndiInitialContextFactory") + String jndiInitialContextFactory, + @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityPrincipal") + String jndiSecurityPrincipal, + @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") + char[] jndiSecurityCredentials, + @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentialsSecretId") + String jndiSecurityCredentialsSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("connectionUrl") String connectionUrl, + @com.fasterxml.jackson.annotation.JsonProperty("connectionFactory") + String connectionFactory, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + JavaMessageServiceConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + JavaMessageServiceConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") String trustStore, + @com.fasterxml.jackson.annotation.JsonProperty("trustStoreSecretId") + String trustStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + char[] trustStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePasswordSecretId") + String trustStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") String keyStore, + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreSecretId") + String keyStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + char[] keyStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePasswordSecretId") + String keyStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") char[] sslKeyPassword, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPasswordSecretId") + String sslKeyPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.shouldUseJndi = shouldUseJndi; + this.jndiConnectionFactory = jndiConnectionFactory; + this.jndiProviderUrl = jndiProviderUrl; + this.jndiInitialContextFactory = jndiInitialContextFactory; + this.jndiSecurityPrincipal = jndiSecurityPrincipal; this.jndiSecurityCredentials = jndiSecurityCredentials; this.jndiSecurityCredentialsSecretId = jndiSecurityCredentialsSecretId; this.connectionUrl = connectionUrl; @@ -1059,15 +1207,30 @@ public String getJndiSecurityPrincipal() { * by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") - private final String jndiSecurityCredentials; + private final char[] jndiSecurityCredentials; /** * The password associated to the principal. Deprecated: This field is deprecated and replaced - * by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 + * 2026. * * @return the value + * @deprecated Use getJndiSecurityCredentials__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getJndiSecurityCredentials() { + return jndiSecurityCredentials != null ? new String(jndiSecurityCredentials) : null; + } + + /** + * The password associated to the principal. Deprecated: This field is deprecated and replaced + * by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") + public char[] getJndiSecurityCredentials__AsCharArray() { return jndiSecurityCredentials; } @@ -1147,7 +1310,21 @@ public String getUsername() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated Java Message Service. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field + * will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. @@ -1156,7 +1333,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -1254,15 +1432,29 @@ public String getTrustStoreSecretId() { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by - * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getTrustStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } + + /** + * The TrustStore password. Deprecated: This field is deprecated and replaced by + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -1326,15 +1518,29 @@ public String getKeyStoreSecretId() { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by - * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getKeyStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } + + /** + * The KeyStore password. Deprecated: This field is deprecated and replaced by + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -1363,16 +1569,31 @@ public String getKeyStorePasswordSecretId() { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. In case it differs from the KeyStore * password, it should be provided. Deprecated: This field is deprecated and replaced by - * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getSslKeyPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } + + /** + * The password for the cert inside of the KeyStore. In case it differs from the KeyStore + * password, it should be provided. Deprecated: This field is deprecated and replaced by + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java index d2c0179e1d0..edcb63776c1 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaConnectionDetails.java @@ -282,7 +282,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -293,11 +293,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -368,7 +374,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by @@ -377,11 +383,18 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder */ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the kafka TrustStore password is stored. Note: When provided, @@ -448,7 +461,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by @@ -457,11 +470,18 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder */ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the kafka KeyStore password is stored. Note: When provided, @@ -489,7 +509,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. In case it differs from the KeyStore @@ -499,11 +519,17 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder */ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the kafka Ssl Key password is stored. Note: When provided, 'sslKeyPassword' @@ -810,6 +836,106 @@ public CreateKafkaConnectionDetails( this.bootstrapServers = bootstrapServers; this.securityProtocol = securityProtocol; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + this.consumerProperties = consumerProperties; + this.producerProperties = producerProperties; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateKafkaConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + KafkaConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("streamPoolId") String streamPoolId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterId") String clusterId, + @com.fasterxml.jackson.annotation.JsonProperty("bootstrapServers") + java.util.List bootstrapServers, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + KafkaConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") String trustStore, + @com.fasterxml.jackson.annotation.JsonProperty("trustStoreSecretId") + String trustStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + char[] trustStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePasswordSecretId") + String trustStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") String keyStore, + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreSecretId") + String keyStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + char[] keyStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePasswordSecretId") + String keyStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") char[] sslKeyPassword, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPasswordSecretId") + String sslKeyPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("consumerProperties") + String consumerProperties, + @com.fasterxml.jackson.annotation.JsonProperty("producerProperties") + String producerProperties, + @com.fasterxml.jackson.annotation.JsonProperty("shouldUseResourcePrincipal") + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.streamPoolId = streamPoolId; + this.clusterId = clusterId; + this.bootstrapServers = bootstrapServers; + this.securityProtocol = securityProtocol; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -934,7 +1060,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -944,7 +1085,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -1012,15 +1154,29 @@ public String getTrustStoreSecretId() { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by - * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getTrustStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } + + /** + * The TrustStore password. Deprecated: This field is deprecated and replaced by + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -1084,15 +1240,29 @@ public String getKeyStoreSecretId() { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by - * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getKeyStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } + + /** + * The KeyStore password. Deprecated: This field is deprecated and replaced by + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -1121,16 +1291,31 @@ public String getKeyStorePasswordSecretId() { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. In case it differs from the KeyStore * password, it should be provided. Deprecated: This field is deprecated and replaced by - * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getSslKeyPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } + + /** + * The password for the cert inside of the KeyStore. In case it differs from the KeyStore + * password, it should be provided. Deprecated: This field is deprecated and replaced by + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java index 28281e3710e..96c4946c9ee 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateKafkaSchemaRegistryConnectionDetails.java @@ -235,7 +235,7 @@ public Builder username(String username) { * be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password to access Schema Registry using basic authentication. This value is injected @@ -246,11 +246,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the Kafka Schema Registry password is stored, The password to access Schema @@ -321,7 +327,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by @@ -330,11 +336,18 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder */ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the kafka Ssl TrustStore password is stored. Note: When provided, @@ -401,7 +414,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by @@ -410,11 +423,18 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder */ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the kafka Ssl KeyStore password is stored. Note: When provided, @@ -442,7 +462,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside the KeyStore. In case it differs from the KeyStore @@ -452,11 +472,17 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder */ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password for the cert inside the KeyStore. In case it differs from @@ -725,6 +751,94 @@ public CreateKafkaSchemaRegistryConnectionDetails( this.url = url; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateKafkaSchemaRegistryConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + KafkaSchemaRegistryConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("url") String url, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + KafkaSchemaRegistryConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") String trustStore, + @com.fasterxml.jackson.annotation.JsonProperty("trustStoreSecretId") + String trustStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + char[] trustStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePasswordSecretId") + String trustStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") String keyStore, + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreSecretId") + String keyStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + char[] keyStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePasswordSecretId") + String keyStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") char[] sslKeyPassword, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPasswordSecretId") + String sslKeyPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.url = url; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -803,7 +917,22 @@ public String getUsername() { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password to access Schema Registry using basic authentication. This value is injected + * into 'schema.registry.basic.auth.user.info=user:password' configuration + * property. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password to access Schema Registry using basic authentication. This value is injected @@ -813,7 +942,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -881,15 +1011,29 @@ public String getTrustStoreSecretId() { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by - * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getTrustStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } + + /** + * The TrustStore password. Deprecated: This field is deprecated and replaced by + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -953,15 +1097,29 @@ public String getKeyStoreSecretId() { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by - * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getKeyStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } + + /** + * The KeyStore password. Deprecated: This field is deprecated and replaced by + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -990,16 +1148,31 @@ public String getKeyStorePasswordSecretId() { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; /** * The password for the cert inside the KeyStore. In case it differs from the KeyStore password, * it should be provided. Deprecated: This field is deprecated and replaced by - * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getSslKeyPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } + + /** + * The password for the cert inside the KeyStore. In case it differs from the KeyStore password, + * it should be provided. Deprecated: This field is deprecated and replaced by + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java index 3370260f148..f7393eb542e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMicrosoftSqlserverConnectionDetails.java @@ -248,7 +248,7 @@ public Builder username(String username) { * be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. @@ -258,11 +258,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password Oracle GoldenGate uses to connect the associated @@ -576,6 +582,78 @@ public CreateMicrosoftSqlserverConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslCa = sslCa; + this.shouldValidateServerCertificate = shouldValidateServerCertificate; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateMicrosoftSqlserverConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + MicrosoftSqlserverConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") String databaseName, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + java.util.List additionalAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + MicrosoftSqlserverConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("sslCa") String sslCa, + @com.fasterxml.jackson.annotation.JsonProperty("shouldValidateServerCertificate") + Boolean shouldValidateServerCertificate, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; @@ -660,7 +738,21 @@ public String getUsername() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field + * will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. @@ -669,7 +761,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java index 3f1208ed866..df4ad49f2a9 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMongoDbConnectionDetails.java @@ -220,7 +220,7 @@ public Builder username(String username) { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated database. Deprecated: This @@ -230,11 +230,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password Oracle GoldenGate uses to connect the associated @@ -361,7 +367,7 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI * 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") - private String tlsCertificateKeyFilePassword; + private char[] tlsCertificateKeyFilePassword; /** * Client Certificate key file password. Deprecated: This field is deprecated and replaced @@ -371,11 +377,20 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI * @param tlsCertificateKeyFilePassword the value to set * @return this builder */ - public Builder tlsCertificateKeyFilePassword(String tlsCertificateKeyFilePassword) { + public Builder tlsCertificateKeyFilePassword(char[] tlsCertificateKeyFilePassword) { this.tlsCertificateKeyFilePassword = tlsCertificateKeyFilePassword; this.__explicitlySet__.add("tlsCertificateKeyFilePassword"); return this; } + + public Builder tlsCertificateKeyFilePassword(String tlsCertificateKeyFilePassword) { + this.tlsCertificateKeyFilePassword = + tlsCertificateKeyFilePassword != null + ? tlsCertificateKeyFilePassword.toCharArray() + : null; + this.__explicitlySet__.add("tlsCertificateKeyFilePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password of the tls certificate key file. Note: When provided, @@ -583,6 +598,84 @@ public CreateMongoDbConnectionDetails( this.technologyType = technologyType; this.connectionString = connectionString; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.databaseId = databaseId; + this.securityProtocol = securityProtocol; + this.tlsCaFile = tlsCaFile; + this.tlsCertificateKeyFile = tlsCertificateKeyFile; + this.tlsCertificateKeyFileSecretId = tlsCertificateKeyFileSecretId; + this.tlsCertificateKeyFilePassword = + tlsCertificateKeyFilePassword != null + ? tlsCertificateKeyFilePassword.toCharArray() + : null; + this.tlsCertificateKeyFilePasswordSecretId = tlsCertificateKeyFilePasswordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateMongoDbConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + MongoDbConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + String connectionString, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") String databaseId, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + MongoDbConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("tlsCaFile") String tlsCaFile, + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFile") + String tlsCertificateKeyFile, + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFileSecretId") + String tlsCertificateKeyFileSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") + char[] tlsCertificateKeyFilePassword, + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePasswordSecretId") + String tlsCertificateKeyFilePasswordSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.connectionString = connectionString; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.databaseId = databaseId; @@ -643,7 +736,21 @@ public String getUsername() { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated database. Deprecated: This + * field is deprecated and replaced by "passwordSecretId". This field will be removed + * after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated database. Deprecated: This @@ -652,7 +759,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -769,15 +877,32 @@ public String getTlsCertificateKeyFileSecretId() { * "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") - private final String tlsCertificateKeyFilePassword; + private final char[] tlsCertificateKeyFilePassword; /** * Client Certificate key file password. Deprecated: This field is deprecated and replaced by - * "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February + * 15 2026. * * @return the value + * @deprecated Use getTlsCertificateKeyFilePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTlsCertificateKeyFilePassword() { + return tlsCertificateKeyFilePassword != null + ? new String(tlsCertificateKeyFilePassword) + : null; + } + + /** + * Client Certificate key file password. Deprecated: This field is deprecated and replaced by + * "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") + public char[] getTlsCertificateKeyFilePassword__AsCharArray() { return tlsCertificateKeyFilePassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java index d8080c743fe..27b62107bc3 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java @@ -206,7 +206,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -217,11 +217,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -712,6 +718,88 @@ public CreateMysqlConnectionDetails( securityAttributes); this.technologyType = technologyType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.host = host; + this.port = port; + this.databaseName = databaseName; + this.securityProtocol = securityProtocol; + this.sslMode = sslMode; + this.sslCa = sslCa; + this.sslCrl = sslCrl; + this.sslCert = sslCert; + this.sslKey = sslKey; + this.sslKeySecretId = sslKeySecretId; + this.privateIp = privateIp; + this.additionalAttributes = additionalAttributes; + this.dbSystemId = dbSystemId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateMysqlConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + MysqlConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") String databaseName, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + MysqlConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + MysqlConnection.SslMode sslMode, + @com.fasterxml.jackson.annotation.JsonProperty("sslCa") String sslCa, + @com.fasterxml.jackson.annotation.JsonProperty("sslCrl") String sslCrl, + @com.fasterxml.jackson.annotation.JsonProperty("sslCert") String sslCert, + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") String sslKey, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeySecretId") String sslKeySecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp, + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + java.util.List additionalAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") String dbSystemId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.host = host; @@ -768,7 +856,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -778,7 +881,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java index 46ce41da67a..5afdda5b9d5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOciObjectStorageConnectionDetails.java @@ -294,7 +294,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * The passphrase of the private key. Deprecated: This field is deprecated and replaced by @@ -303,11 +303,18 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder */ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the passphrase of the private key. Note: When provided, @@ -544,6 +551,76 @@ public CreateOciObjectStorageConnectionDetails( this.userId = userId; this.privateKeyFile = privateKeyFile; this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.publicKeyFingerprint = publicKeyFingerprint; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOciObjectStorageConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + OciObjectStorageConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") String tenancyId, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region, + @com.fasterxml.jackson.annotation.JsonProperty("userId") String userId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") String privateKeyFile, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFileSecretId") + String privateKeyFileSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + char[] privateKeyPassphrase, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphraseSecretId") + String privateKeyPassphraseSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("publicKeyFingerprint") + String publicKeyFingerprint, + @com.fasterxml.jackson.annotation.JsonProperty("shouldUseResourcePrincipal") + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.tenancyId = tenancyId; + this.region = region; + this.userId = userId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; this.publicKeyFingerprint = publicKeyFingerprint; @@ -669,15 +746,29 @@ public String getPrivateKeyFileSecretId() { * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; /** * The passphrase of the private key. Deprecated: This field is deprecated and replaced by - * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getPrivateKeyPassphrase__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } + + /** + * The passphrase of the private key. Deprecated: This field is deprecated and replaced by + * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java index 1728e77aaa7..67552e8f7a7 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOggDeploymentDetails.java @@ -23,6 +23,32 @@ public final class CreateOggDeploymentDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateOggDeploymentDetails( + String deploymentName, + CredentialStore credentialStore, + String identityDomainId, + String passwordSecretId, + String adminUsername, + String adminPassword, + String certificate, + String key, + String oggVersion, + GroupToRolesMappingDetails groupToRolesMapping) { + super(); + this.deploymentName = deploymentName; + this.credentialStore = credentialStore; + this.identityDomainId = identityDomainId; + this.passwordSecretId = passwordSecretId; + this.adminUsername = adminUsername; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.certificate = certificate; + this.key = key; + this.oggVersion = oggVersion; + this.groupToRolesMapping = groupToRolesMapping; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "deploymentName", "credentialStore", @@ -41,7 +67,7 @@ public CreateOggDeploymentDetails( String identityDomainId, String passwordSecretId, String adminUsername, - String adminPassword, + char[] adminPassword, String certificate, String key, String oggVersion, @@ -155,7 +181,7 @@ public Builder adminUsername(String adminUsername) { * allowed. This field will be deprecated and replaced by "passwordSecretId". */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The password associated with the GoldenGate deployment console username. The password @@ -166,11 +192,17 @@ public Builder adminUsername(String adminUsername) { * @param adminPassword the value to set * @return this builder */ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } /** The base64 encoded content of the PEM file containing the SSL certificate. */ @com.fasterxml.jackson.annotation.JsonProperty("certificate") private String certificate; @@ -377,7 +409,22 @@ public String getAdminUsername() { * will be deprecated and replaced by "passwordSecretId". */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; + + /** + * The password associated with the GoldenGate deployment console username. The password must be + * 8 to 30 characters long and must contain at least 1 uppercase, 1 lowercase, 1 numeric, and 1 + * special character. Special characters such as '$', '^', or '?' are + * not allowed. This field will be deprecated and replaced by "passwordSecretId". + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } /** * The password associated with the GoldenGate deployment console username. The password must be @@ -387,7 +434,8 @@ public String getAdminUsername() { * * @return the value */ - public String getAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java index a13d883245a..81e0650045b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleConnectionDetails.java @@ -206,7 +206,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -217,11 +217,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -578,6 +584,76 @@ public CreateOracleConnectionDetails( securityAttributes); this.technologyType = technologyType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.connectionString = connectionString; + this.authenticationMode = authenticationMode; + this.wallet = wallet; + this.walletSecretId = walletSecretId; + this.sessionMode = sessionMode; + this.privateIp = privateIp; + this.databaseId = databaseId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOracleConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + OracleConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + String connectionString, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMode") + OracleConnection.AuthenticationMode authenticationMode, + @com.fasterxml.jackson.annotation.JsonProperty("wallet") String wallet, + @com.fasterxml.jackson.annotation.JsonProperty("walletSecretId") String walletSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") + OracleConnection.SessionMode sessionMode, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp, + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") String databaseId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.connectionString = connectionString; @@ -628,7 +704,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -638,7 +729,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java index af4eac6b89e..51e24a987f5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateOracleNosqlConnectionDetails.java @@ -294,7 +294,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * The passphrase of the private key. Deprecated: This field is deprecated and replaced by @@ -303,11 +303,18 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder */ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the passphrase of the private key. Note: When provided, @@ -544,6 +551,76 @@ public CreateOracleNosqlConnectionDetails( this.userId = userId; this.privateKeyFile = privateKeyFile; this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.publicKeyFingerprint = publicKeyFingerprint; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOracleNosqlConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + OracleNosqlConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") String tenancyId, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region, + @com.fasterxml.jackson.annotation.JsonProperty("userId") String userId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") String privateKeyFile, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFileSecretId") + String privateKeyFileSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + char[] privateKeyPassphrase, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphraseSecretId") + String privateKeyPassphraseSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("publicKeyFingerprint") + String publicKeyFingerprint, + @com.fasterxml.jackson.annotation.JsonProperty("shouldUseResourcePrincipal") + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.tenancyId = tenancyId; + this.region = region; + this.userId = userId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; this.publicKeyFingerprint = publicKeyFingerprint; @@ -669,15 +746,29 @@ public String getPrivateKeyFileSecretId() { * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; /** * The passphrase of the private key. Deprecated: This field is deprecated and replaced by - * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getPrivateKeyPassphrase__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } + + /** + * The passphrase of the private key. Deprecated: This field is deprecated and replaced by + * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java index d17d3156587..a3590381258 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePostgresqlConnectionDetails.java @@ -251,7 +251,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -262,11 +262,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -711,6 +717,88 @@ public CreatePostgresqlConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslMode = sslMode; + this.sslCa = sslCa; + this.sslCrl = sslCrl; + this.sslCert = sslCert; + this.sslKey = sslKey; + this.sslKeySecretId = sslKeySecretId; + this.privateIp = privateIp; + this.dbSystemId = dbSystemId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreatePostgresqlConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + PostgresqlConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") String databaseName, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + java.util.List additionalAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + PostgresqlConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + PostgresqlConnection.SslMode sslMode, + @com.fasterxml.jackson.annotation.JsonProperty("sslCa") String sslCa, + @com.fasterxml.jackson.annotation.JsonProperty("sslCrl") String sslCrl, + @com.fasterxml.jackson.annotation.JsonProperty("sslCert") String sslCert, + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") String sslKey, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeySecretId") String sslKeySecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp, + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") String dbSystemId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; @@ -803,7 +891,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -813,7 +916,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java index e315b276e05..ce6d8589833 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateRedisConnectionDetails.java @@ -259,7 +259,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -270,11 +270,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -345,7 +351,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by @@ -354,11 +360,18 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder */ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the Redis TrustStore password is stored. Note: When provided, @@ -425,7 +438,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by @@ -434,11 +447,18 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder */ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the Redis KeyStore password is stored. Note: When provided, @@ -685,6 +705,93 @@ public CreateRedisConnectionDetails( this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.redisClusterId = redisClusterId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateRedisConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + RedisConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("servers") String servers, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + RedisConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + RedisConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") String trustStore, + @com.fasterxml.jackson.annotation.JsonProperty("trustStoreSecretId") + String trustStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + char[] trustStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePasswordSecretId") + String trustStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") String keyStore, + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreSecretId") + String keyStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + char[] keyStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePasswordSecretId") + String keyStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + String redisClusterId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.servers = servers; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -784,7 +891,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -794,7 +916,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -862,15 +985,29 @@ public String getTrustStoreSecretId() { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by - * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getTrustStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } + + /** + * The TrustStore password. Deprecated: This field is deprecated and replaced by + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -934,15 +1071,29 @@ public String getKeyStoreSecretId() { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by - * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getKeyStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } + + /** + * The KeyStore password. Deprecated: This field is deprecated and replaced by + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java index 3cb514dc95c..e4ef248a523 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateSnowflakeConnectionDetails.java @@ -238,7 +238,7 @@ public Builder username(String username) { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect to Snowflake platform. Deprecated: This @@ -248,11 +248,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -330,7 +336,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * Password if the private key file is encrypted. Deprecated: This field is deprecated and @@ -340,11 +346,18 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder */ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password for the private key file. Note: When provided, @@ -541,6 +554,76 @@ public CreateSnowflakeConnectionDetails( this.connectionUrl = connectionUrl; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateSnowflakeConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("locks") + java.util.List locks, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") String subscriptionId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterPlacementGroupId") + String clusterPlacementGroupId, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + SnowflakeConnection.TechnologyType technologyType, + @com.fasterxml.jackson.annotation.JsonProperty("connectionUrl") String connectionUrl, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + SnowflakeConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") String privateKeyFile, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFileSecretId") + String privateKeyFileSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + char[] privateKeyPassphrase, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphraseSecretId") + String privateKeyPassphraseSecretId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + locks, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + subscriptionId, + clusterPlacementGroupId, + securityAttributes); + this.technologyType = technologyType; + this.connectionUrl = connectionUrl; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.privateKeyFile = privateKeyFile; @@ -615,7 +698,21 @@ public String getUsername() { * 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect to Snowflake platform. Deprecated: This field + * is deprecated and replaced by "passwordSecretId". This field will be removed after + * February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect to Snowflake platform. Deprecated: This field @@ -624,7 +721,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -699,7 +797,21 @@ public String getPrivateKeyFileSecretId() { * 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; + + /** + * Password if the private key file is encrypted. Deprecated: This field is deprecated and + * replaced by "privateKeyPassphraseSecretId". This field will be removed after + * February 15 2026. + * + * @return the value + * @deprecated Use getPrivateKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } /** * Password if the private key file is encrypted. Deprecated: This field is deprecated and @@ -708,7 +820,8 @@ public String getPrivateKeyFileSecretId() { * * @return the value */ - public String getPrivateKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java index d93992db7a5..883f64ce7a3 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonKinesisConnectionDetails.java @@ -147,7 +147,7 @@ public Builder accessKeyId(String accessKeyId) { * replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * Secret access key to access the Amazon Kinesis. Deprecated: This field is deprecated and @@ -156,11 +156,17 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder */ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the secret access key is stored. Note: When provided, 'secretAccessKey' @@ -345,6 +351,51 @@ public UpdateAmazonKinesisConnectionDetails( doesUseSecretIds, securityAttributes); this.accessKeyId = accessKeyId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.endpoint = endpoint; + this.region = region; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAmazonKinesisConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") String accessKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + char[] secretAccessKey, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + String secretAccessKeySecretId, + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") String endpoint, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.secretAccessKeySecretId = secretAccessKeySecretId; this.endpoint = endpoint; @@ -369,15 +420,30 @@ public String getAccessKeyId() { * replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; /** * Secret access key to access the Amazon Kinesis. Deprecated: This field is deprecated and - * replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * replaced by "secretAccessKeySecretId". This field will be removed after February 15 + * 2026. * * @return the value + * @deprecated Use getSecretAccessKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } + + /** + * Secret access key to access the Amazon Kinesis. Deprecated: This field is deprecated and + * replaced by "secretAccessKeySecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java index 7078de5b65a..35b13d643cc 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonRedshiftConnectionDetails.java @@ -174,7 +174,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -185,11 +185,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -334,6 +340,48 @@ public UpdateAmazonRedshiftConnectionDetails( securityAttributes); this.connectionUrl = connectionUrl; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAmazonRedshiftConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("connectionUrl") String connectionUrl, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.connectionUrl = connectionUrl; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; } @@ -381,7 +429,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -391,7 +454,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java index d7310e72fcb..d3a4c036a5b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAmazonS3ConnectionDetails.java @@ -148,7 +148,7 @@ public Builder accessKeyId(String accessKeyId) { * field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private String secretAccessKey; + private char[] secretAccessKey; /** * Secret access key to access the Amazon S3 bucket. e.g.: "this-is-not-the-secret" @@ -158,11 +158,17 @@ public Builder accessKeyId(String accessKeyId) { * @param secretAccessKey the value to set * @return this builder */ - public Builder secretAccessKey(String secretAccessKey) { + public Builder secretAccessKey(char[] secretAccessKey) { this.secretAccessKey = secretAccessKey; this.__explicitlySet__.add("secretAccessKey"); return this; } + + public Builder secretAccessKey(String secretAccessKey) { + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.__explicitlySet__.add("secretAccessKey"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the Secret Access Key is stored. Note: When provided, 'secretAccessKey' @@ -345,6 +351,51 @@ public UpdateAmazonS3ConnectionDetails( doesUseSecretIds, securityAttributes); this.accessKeyId = accessKeyId; + this.secretAccessKey = secretAccessKey != null ? secretAccessKey.toCharArray() : null; + this.secretAccessKeySecretId = secretAccessKeySecretId; + this.endpoint = endpoint; + this.region = region; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAmazonS3ConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("accessKeyId") String accessKeyId, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + char[] secretAccessKey, + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKeySecretId") + String secretAccessKeySecretId, + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") String endpoint, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.accessKeyId = accessKeyId; this.secretAccessKey = secretAccessKey; this.secretAccessKeySecretId = secretAccessKeySecretId; this.endpoint = endpoint; @@ -370,7 +421,21 @@ public String getAccessKeyId() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") - private final String secretAccessKey; + private final char[] secretAccessKey; + + /** + * Secret access key to access the Amazon S3 bucket. e.g.: "this-is-not-the-secret" + * Deprecated: This field is deprecated and replaced by "secretAccessKeySecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getSecretAccessKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSecretAccessKey() { + return secretAccessKey != null ? new String(secretAccessKey) : null; + } /** * Secret access key to access the Amazon S3 bucket. e.g.: "this-is-not-the-secret" Deprecated: @@ -379,7 +444,8 @@ public String getAccessKeyId() { * * @return the value */ - public String getSecretAccessKey() { + @com.fasterxml.jackson.annotation.JsonProperty("secretAccessKey") + public char[] getSecretAccessKey__AsCharArray() { return secretAccessKey; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java index 0a8e5b4c281..dd80223c25b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureDataLakeStorageConnectionDetails.java @@ -166,7 +166,7 @@ public Builder accountName(String accountName) { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") - private String accountKey; + private char[] accountKey; /** * Azure storage account key. This property is required when 'authenticationType' is set to @@ -178,11 +178,17 @@ public Builder accountName(String accountName) { * @param accountKey the value to set * @return this builder */ - public Builder accountKey(String accountKey) { + public Builder accountKey(char[] accountKey) { this.accountKey = accountKey; this.__explicitlySet__.add("accountKey"); return this; } + + public Builder accountKey(String accountKey) { + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.__explicitlySet__.add("accountKey"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the account key is stored. Note: When provided, 'accountKey' field must not @@ -213,7 +219,7 @@ public Builder accountKeySecretId(String accountKeySecretId) { * be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") - private String sasToken; + private char[] sasToken; /** * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. @@ -226,11 +232,17 @@ public Builder accountKeySecretId(String accountKeySecretId) { * @param sasToken the value to set * @return this builder */ - public Builder sasToken(String sasToken) { + public Builder sasToken(char[] sasToken) { this.sasToken = sasToken; this.__explicitlySet__.add("sasToken"); return this; } + + public Builder sasToken(String sasToken) { + this.sasToken = sasToken != null ? sasToken.toCharArray() : null; + this.__explicitlySet__.add("sasToken"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the sas token is stored. Note: When provided, 'sasToken' field must not be @@ -297,7 +309,7 @@ public Builder clientId(String clientId) { * replaced by "clientSecretSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * Azure client secret (aka application password) for authentication. This property is @@ -308,11 +320,17 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder */ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the client secret is stored. Note: When provided, 'clientSecret' field must @@ -531,6 +549,68 @@ public UpdateAzureDataLakeStorageConnectionDetails( securityAttributes); this.authenticationType = authenticationType; this.accountName = accountName; + this.accountKey = accountKey != null ? accountKey.toCharArray() : null; + this.accountKeySecretId = accountKeySecretId; + this.sasToken = sasToken != null ? sasToken.toCharArray() : null; + this.sasTokenSecretId = sasTokenSecretId; + this.azureTenantId = azureTenantId; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.clientSecretSecretId = clientSecretSecretId; + this.endpoint = endpoint; + this.azureAuthorityHost = azureAuthorityHost; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAzureDataLakeStorageConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + AzureDataLakeStorageConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("accountName") String accountName, + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") char[] accountKey, + @com.fasterxml.jackson.annotation.JsonProperty("accountKeySecretId") + String accountKeySecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sasToken") char[] sasToken, + @com.fasterxml.jackson.annotation.JsonProperty("sasTokenSecretId") + String sasTokenSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("azureTenantId") String azureTenantId, + @com.fasterxml.jackson.annotation.JsonProperty("clientId") String clientId, + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") char[] clientSecret, + @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") + String clientSecretSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") String endpoint, + @com.fasterxml.jackson.annotation.JsonProperty("azureAuthorityHost") + String azureAuthorityHost) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.authenticationType = authenticationType; + this.accountName = accountName; this.accountKey = accountKey; this.accountKeySecretId = accountKeySecretId; this.sasToken = sasToken; @@ -577,7 +657,23 @@ public String getAccountName() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("accountKey") - private final String accountKey; + private final char[] accountKey; + + /** + * Azure storage account key. This property is required when 'authenticationType' is set + * to 'SHARED_KEY'. e.g.: + * pa3WbhVATzj56xD4DH1VjOUhApRGEGHvOo58eQJVWIzX+j8j4CUVFcTjpIqDSRaSa1Wo2LbWY5at+AStEgLOIQ== + * Deprecated: This field is deprecated and replaced by "accountKeySecretId". This + * field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getAccountKey__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAccountKey() { + return accountKey != null ? new String(accountKey) : null; + } /** * Azure storage account key. This property is required when 'authenticationType' is set to @@ -588,7 +684,8 @@ public String getAccountName() { * * @return the value */ - public String getAccountKey() { + @com.fasterxml.jackson.annotation.JsonProperty("accountKey") + public char[] getAccountKey__AsCharArray() { return accountKey; } @@ -620,7 +717,24 @@ public String getAccountKeySecretId() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sasToken") - private final String sasToken; + private final char[] sasToken; + + /** + * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. + * This property is required when 'authenticationType' is set to + * 'SHARED_ACCESS_SIGNATURE'. e.g.: + * ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D + * Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field + * will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getSasToken__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSasToken() { + return sasToken != null ? new String(sasToken) : null; + } /** * Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. @@ -632,7 +746,8 @@ public String getAccountKeySecretId() { * * @return the value */ - public String getSasToken() { + @com.fasterxml.jackson.annotation.JsonProperty("sasToken") + public char[] getSasToken__AsCharArray() { return sasToken; } @@ -696,7 +811,22 @@ public String getClientId() { * "clientSecretSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * Azure client secret (aka application password) for authentication. This property is required + * when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. e.g.: + * dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1 Deprecated: This field is deprecated and replaced by + * "clientSecretSecretId". This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * Azure client secret (aka application password) for authentication. This property is required @@ -706,7 +836,8 @@ public String getClientId() { * * @return the value */ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java index dbb6c6a89f0..cffa49f2fa3 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateAzureSynapseConnectionDetails.java @@ -174,7 +174,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -185,11 +185,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -334,6 +340,49 @@ public UpdateAzureSynapseConnectionDetails( securityAttributes); this.connectionString = connectionString; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateAzureSynapseConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + String connectionString, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.connectionString = connectionString; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; } @@ -381,7 +430,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -391,7 +455,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java index 79582b97afe..e48738bfb7e 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabaseRegistrationDetails.java @@ -23,6 +23,34 @@ public final class UpdateDatabaseRegistrationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateDatabaseRegistrationDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String fqdn, + String username, + String password, + String connectionString, + SessionMode sessionMode, + String wallet, + String aliasName) { + super(); + this.displayName = displayName; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.fqdn = fqdn; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.connectionString = connectionString; + this.sessionMode = sessionMode; + this.wallet = wallet; + this.aliasName = aliasName; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "description", @@ -43,7 +71,7 @@ public UpdateDatabaseRegistrationDetails( java.util.Map> definedTags, String fqdn, String username, - String password, + char[] password, String connectionString, SessionMode sessionMode, String wallet, @@ -182,7 +210,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -193,11 +221,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** Connect descriptor or Easy Connect Naming method used to connect to a database. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionString") private String connectionString; @@ -449,7 +483,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -459,7 +508,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java index 3668b2dfabb..8c40768629c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDatabricksConnectionDetails.java @@ -168,7 +168,7 @@ public Builder connectionUrl(String connectionUrl) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password used to connect to Databricks. Only applicable for authenticationType == @@ -178,11 +178,17 @@ public Builder connectionUrl(String connectionUrl) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. Note: When provided, 'password' field must not be @@ -225,7 +231,7 @@ public Builder clientId(String clientId) { * after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M Deprecated: This @@ -235,11 +241,17 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder */ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the client secret is stored. Only applicable for authenticationType == @@ -419,6 +431,59 @@ public UpdateDatabricksConnectionDetails( securityAttributes); this.authenticationType = authenticationType; this.connectionUrl = connectionUrl; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.clientSecretSecretId = clientSecretSecretId; + this.storageCredentialName = storageCredentialName; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateDatabricksConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + DatabricksConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("connectionUrl") String connectionUrl, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("clientId") String clientId, + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") char[] clientSecret, + @com.fasterxml.jackson.annotation.JsonProperty("clientSecretSecretId") + String clientSecretSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("storageCredentialName") + String storageCredentialName) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.authenticationType = authenticationType; + this.connectionUrl = connectionUrl; this.password = password; this.passwordSecretId = passwordSecretId; this.clientId = clientId; @@ -463,7 +528,21 @@ public String getConnectionUrl() { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password used to connect to Databricks. Only applicable for authenticationType + * == PERSONAL_ACCESS_TOKEN. Deprecated: This field is deprecated and replaced by + * "passwordSecretId". This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password used to connect to Databricks. Only applicable for authenticationType == @@ -472,7 +551,8 @@ public String getConnectionUrl() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -514,7 +594,21 @@ public String getClientId() { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; + + /** + * OAuth client secret, only applicable for authenticationType == OAUTH_M2M + * Deprecated: This field is deprecated and replaced by "clientSecretSecretId". This + * field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getClientSecret__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } /** * OAuth client secret, only applicable for authenticationType == OAUTH_M2M Deprecated: This @@ -523,7 +617,8 @@ public String getClientId() { * * @return the value */ - public String getClientSecret() { + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java index 01a9a908e9f..897c54d6e0c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateDb2ConnectionDetails.java @@ -197,7 +197,7 @@ public Builder username(String username) { * after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated DB2 database. Deprecated: @@ -207,11 +207,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored, that Oracle GoldenGate uses to connect the @@ -562,6 +568,73 @@ public UpdateDb2ConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslClientKeystoredb = sslClientKeystoredb; + this.sslClientKeystoredbSecretId = sslClientKeystoredbSecretId; + this.sslClientKeystash = sslClientKeystash; + this.sslClientKeystashSecretId = sslClientKeystashSecretId; + this.sslServerCertificate = sslServerCertificate; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateDb2ConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") String databaseName, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + java.util.List additionalAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + Db2Connection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredb") + String sslClientKeystoredb, + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystoredbSecretId") + String sslClientKeystoredbSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystash") + String sslClientKeystash, + @com.fasterxml.jackson.annotation.JsonProperty("sslClientKeystashSecretId") + String sslClientKeystashSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sslServerCertificate") + String sslServerCertificate) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; @@ -635,7 +708,21 @@ public String getUsername() { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated DB2 database. Deprecated: This + * field is deprecated and replaced by "passwordSecretId". This field will be removed + * after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated DB2 database. Deprecated: This @@ -644,7 +731,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java index 3e6f031e345..c130d77084b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateElasticsearchConnectionDetails.java @@ -209,7 +209,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -220,11 +220,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -405,6 +411,56 @@ public UpdateElasticsearchConnectionDetails( this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.fingerprint = fingerprint; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateElasticsearchConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("servers") String servers, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + ElasticsearchConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + ElasticsearchConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("fingerprint") String fingerprint) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.servers = servers; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.fingerprint = fingerprint; @@ -483,7 +539,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -493,7 +564,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java index 51bc7a0c806..099679b6239 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateGoldenGateConnectionDetails.java @@ -197,7 +197,7 @@ public Builder username(String username) { * be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. @@ -207,11 +207,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored, which is used to connect to the Oracle GoldenGate @@ -406,6 +412,54 @@ public UpdateGoldenGateConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateGoldenGateConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("deploymentId") String deploymentId, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.deploymentId = deploymentId; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.privateIp = privateIp; @@ -473,7 +527,21 @@ public String getUsername() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password used to connect to the Oracle GoldenGate accessed trough this connection. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field + * will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password used to connect to the Oracle GoldenGate accessed trough this connection. @@ -482,7 +550,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java index 7d4285f75b1..c7a1a6f5c38 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateJavaMessageServiceConnectionDetails.java @@ -220,7 +220,7 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { * 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") - private String jndiSecurityCredentials; + private char[] jndiSecurityCredentials; /** * The password associated to the principal. Deprecated: This field is deprecated and @@ -230,11 +230,18 @@ public Builder jndiSecurityPrincipal(String jndiSecurityPrincipal) { * @param jndiSecurityCredentials the value to set * @return this builder */ - public Builder jndiSecurityCredentials(String jndiSecurityCredentials) { + public Builder jndiSecurityCredentials(char[] jndiSecurityCredentials) { this.jndiSecurityCredentials = jndiSecurityCredentials; this.__explicitlySet__.add("jndiSecurityCredentials"); return this; } + + public Builder jndiSecurityCredentials(String jndiSecurityCredentials) { + this.jndiSecurityCredentials = + jndiSecurityCredentials != null ? jndiSecurityCredentials.toCharArray() : null; + this.__explicitlySet__.add("jndiSecurityCredentials"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the security credentials are stored associated to the principal. Note: When @@ -319,7 +326,7 @@ public Builder username(String username) { * be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. @@ -329,11 +336,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored, that Oracle GoldenGate uses to connect the @@ -442,7 +455,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by @@ -451,11 +464,18 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder */ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the TrustStore password is stored. Note: When provided, 'trustStorePassword' @@ -522,7 +542,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by @@ -531,11 +551,18 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder */ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the KeyStore password is stored. Note: When provided, 'keyStorePassword' @@ -563,7 +590,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. In case it differs from the KeyStore @@ -573,11 +600,17 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder */ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored for the cert inside of the Keystore. In case it @@ -863,6 +896,108 @@ public UpdateJavaMessageServiceConnectionDetails( this.jndiProviderUrl = jndiProviderUrl; this.jndiInitialContextFactory = jndiInitialContextFactory; this.jndiSecurityPrincipal = jndiSecurityPrincipal; + this.jndiSecurityCredentials = + jndiSecurityCredentials != null ? jndiSecurityCredentials.toCharArray() : null; + this.jndiSecurityCredentialsSecretId = jndiSecurityCredentialsSecretId; + this.connectionUrl = connectionUrl; + this.connectionFactory = connectionFactory; + this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateJavaMessageServiceConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("shouldUseJndi") Boolean shouldUseJndi, + @com.fasterxml.jackson.annotation.JsonProperty("jndiConnectionFactory") + String jndiConnectionFactory, + @com.fasterxml.jackson.annotation.JsonProperty("jndiProviderUrl") + String jndiProviderUrl, + @com.fasterxml.jackson.annotation.JsonProperty("jndiInitialContextFactory") + String jndiInitialContextFactory, + @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityPrincipal") + String jndiSecurityPrincipal, + @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") + char[] jndiSecurityCredentials, + @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentialsSecretId") + String jndiSecurityCredentialsSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("connectionUrl") String connectionUrl, + @com.fasterxml.jackson.annotation.JsonProperty("connectionFactory") + String connectionFactory, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + JavaMessageServiceConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + JavaMessageServiceConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") String trustStore, + @com.fasterxml.jackson.annotation.JsonProperty("trustStoreSecretId") + String trustStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + char[] trustStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePasswordSecretId") + String trustStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") String keyStore, + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreSecretId") + String keyStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + char[] keyStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePasswordSecretId") + String keyStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") char[] sslKeyPassword, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPasswordSecretId") + String sslKeyPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.shouldUseJndi = shouldUseJndi; + this.jndiConnectionFactory = jndiConnectionFactory; + this.jndiProviderUrl = jndiProviderUrl; + this.jndiInitialContextFactory = jndiInitialContextFactory; + this.jndiSecurityPrincipal = jndiSecurityPrincipal; this.jndiSecurityCredentials = jndiSecurityCredentials; this.jndiSecurityCredentialsSecretId = jndiSecurityCredentialsSecretId; this.connectionUrl = connectionUrl; @@ -965,15 +1100,30 @@ public String getJndiSecurityPrincipal() { * by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") - private final String jndiSecurityCredentials; + private final char[] jndiSecurityCredentials; /** * The password associated to the principal. Deprecated: This field is deprecated and replaced - * by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 + * 2026. * * @return the value + * @deprecated Use getJndiSecurityCredentials__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getJndiSecurityCredentials() { + return jndiSecurityCredentials != null ? new String(jndiSecurityCredentials) : null; + } + + /** + * The password associated to the principal. Deprecated: This field is deprecated and replaced + * by "jndiSecurityCredentialsSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("jndiSecurityCredentials") + public char[] getJndiSecurityCredentials__AsCharArray() { return jndiSecurityCredentials; } @@ -1053,7 +1203,21 @@ public String getUsername() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated Java Message Service. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field + * will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated Java Message Service. @@ -1062,7 +1226,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -1160,15 +1325,29 @@ public String getTrustStoreSecretId() { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by - * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getTrustStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } + + /** + * The TrustStore password. Deprecated: This field is deprecated and replaced by + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -1232,15 +1411,29 @@ public String getKeyStoreSecretId() { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by - * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getKeyStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } + + /** + * The KeyStore password. Deprecated: This field is deprecated and replaced by + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -1269,16 +1462,31 @@ public String getKeyStorePasswordSecretId() { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. In case it differs from the KeyStore * password, it should be provided. Deprecated: This field is deprecated and replaced by - * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getSslKeyPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } + + /** + * The password for the cert inside of the KeyStore. In case it differs from the KeyStore + * password, it should be provided. Deprecated: This field is deprecated and replaced by + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java index ca903fac372..3adf72e8a55 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaConnectionDetails.java @@ -231,7 +231,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -242,11 +242,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -317,7 +323,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by @@ -326,11 +332,18 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder */ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the kafka TrustStore password is stored. Note: When provided, @@ -397,7 +410,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by @@ -406,11 +419,18 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder */ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the kafka KeyStore password is stored. Note: When provided, @@ -438,7 +458,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. In case it differs from the KeyStore @@ -448,11 +468,17 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder */ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the kafka Ssl Key password is stored. Note: When provided, 'sslKeyPassword' @@ -729,6 +755,93 @@ public UpdateKafkaConnectionDetails( this.bootstrapServers = bootstrapServers; this.securityProtocol = securityProtocol; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + this.consumerProperties = consumerProperties; + this.producerProperties = producerProperties; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateKafkaConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("streamPoolId") String streamPoolId, + @com.fasterxml.jackson.annotation.JsonProperty("clusterId") String clusterId, + @com.fasterxml.jackson.annotation.JsonProperty("bootstrapServers") + java.util.List bootstrapServers, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + KafkaConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") String trustStore, + @com.fasterxml.jackson.annotation.JsonProperty("trustStoreSecretId") + String trustStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + char[] trustStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePasswordSecretId") + String trustStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") String keyStore, + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreSecretId") + String keyStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + char[] keyStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePasswordSecretId") + String keyStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") char[] sslKeyPassword, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPasswordSecretId") + String sslKeyPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("consumerProperties") + String consumerProperties, + @com.fasterxml.jackson.annotation.JsonProperty("producerProperties") + String producerProperties, + @com.fasterxml.jackson.annotation.JsonProperty("shouldUseResourcePrincipal") + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.streamPoolId = streamPoolId; + this.clusterId = clusterId; + this.bootstrapServers = bootstrapServers; + this.securityProtocol = securityProtocol; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -840,7 +953,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -850,7 +978,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -918,15 +1047,29 @@ public String getTrustStoreSecretId() { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by - * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getTrustStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } + + /** + * The TrustStore password. Deprecated: This field is deprecated and replaced by + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -990,15 +1133,29 @@ public String getKeyStoreSecretId() { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by - * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getKeyStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } + + /** + * The KeyStore password. Deprecated: This field is deprecated and replaced by + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -1027,16 +1184,31 @@ public String getKeyStorePasswordSecretId() { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; /** * The password for the cert inside of the KeyStore. In case it differs from the KeyStore * password, it should be provided. Deprecated: This field is deprecated and replaced by - * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getSslKeyPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } + + /** + * The password for the cert inside of the KeyStore. In case it differs from the KeyStore + * password, it should be provided. Deprecated: This field is deprecated and replaced by + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java index 17550a509e0..ba129e9112f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateKafkaSchemaRegistryConnectionDetails.java @@ -184,7 +184,7 @@ public Builder username(String username) { * be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password to access Schema Registry using basic authentication. This value is injected @@ -195,11 +195,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -270,7 +276,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by @@ -279,11 +285,18 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder */ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the kafka Ssl TrustStore password is stored. Note: When provided, @@ -350,7 +363,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by @@ -359,11 +372,18 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder */ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the kafka Ssl KeyStore password is stored. Note: When provided, @@ -391,7 +411,7 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private String sslKeyPassword; + private char[] sslKeyPassword; /** * The password for the cert inside the KeyStore. In case it differs from the KeyStore @@ -401,11 +421,17 @@ public Builder keyStorePasswordSecretId(String keyStorePasswordSecretId) { * @param sslKeyPassword the value to set * @return this builder */ - public Builder sslKeyPassword(String sslKeyPassword) { + public Builder sslKeyPassword(char[] sslKeyPassword) { this.sslKeyPassword = sslKeyPassword; this.__explicitlySet__.add("sslKeyPassword"); return this; } + + public Builder sslKeyPassword(String sslKeyPassword) { + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.__explicitlySet__.add("sslKeyPassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password for the cert inside the KeyStore. In case it differs from @@ -644,6 +670,81 @@ public UpdateKafkaSchemaRegistryConnectionDetails( this.url = url; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.sslKeyPassword = sslKeyPassword != null ? sslKeyPassword.toCharArray() : null; + this.sslKeyPasswordSecretId = sslKeyPasswordSecretId; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateKafkaSchemaRegistryConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("url") String url, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + KafkaSchemaRegistryConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") String trustStore, + @com.fasterxml.jackson.annotation.JsonProperty("trustStoreSecretId") + String trustStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + char[] trustStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePasswordSecretId") + String trustStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") String keyStore, + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreSecretId") + String keyStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + char[] keyStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePasswordSecretId") + String keyStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") char[] sslKeyPassword, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPasswordSecretId") + String sslKeyPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.url = url; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -709,7 +810,22 @@ public String getUsername() { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password to access Schema Registry using basic authentication. This value is injected + * into 'schema.registry.basic.auth.user.info=user:password' configuration + * property. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password to access Schema Registry using basic authentication. This value is injected @@ -719,7 +835,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -787,15 +904,29 @@ public String getTrustStoreSecretId() { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by - * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getTrustStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } + + /** + * The TrustStore password. Deprecated: This field is deprecated and replaced by + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -859,15 +990,29 @@ public String getKeyStoreSecretId() { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by - * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getKeyStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } + + /** + * The KeyStore password. Deprecated: This field is deprecated and replaced by + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } @@ -896,16 +1041,31 @@ public String getKeyStorePasswordSecretId() { * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") - private final String sslKeyPassword; + private final char[] sslKeyPassword; /** * The password for the cert inside the KeyStore. In case it differs from the KeyStore password, * it should be provided. Deprecated: This field is deprecated and replaced by - * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getSslKeyPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSslKeyPassword() { + return sslKeyPassword != null ? new String(sslKeyPassword) : null; + } + + /** + * The password for the cert inside the KeyStore. In case it differs from the KeyStore password, + * it should be provided. Deprecated: This field is deprecated and replaced by + * "sslKeyPasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslKeyPassword") + public char[] getSslKeyPassword__AsCharArray() { return sslKeyPassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java index b2c76be18f9..cf843d40030 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMicrosoftSqlserverConnectionDetails.java @@ -197,7 +197,7 @@ public Builder username(String username) { * be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. @@ -207,11 +207,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password Oracle GoldenGate uses to connect the associated @@ -495,6 +501,65 @@ public UpdateMicrosoftSqlserverConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslCa = sslCa; + this.shouldValidateServerCertificate = shouldValidateServerCertificate; + this.privateIp = privateIp; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateMicrosoftSqlserverConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") String databaseName, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + java.util.List additionalAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + MicrosoftSqlserverConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("sslCa") String sslCa, + @com.fasterxml.jackson.annotation.JsonProperty("shouldValidateServerCertificate") + Boolean shouldValidateServerCertificate, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; @@ -566,7 +631,21 @@ public String getUsername() { * removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. + * Deprecated: This field is deprecated and replaced by "passwordSecretId". This field + * will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated Microsoft SQL Server. @@ -575,7 +654,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java index 3a283549c32..5e4838ba9c4 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMongoDbConnectionDetails.java @@ -169,7 +169,7 @@ public Builder username(String username) { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated database. Deprecated: This @@ -179,11 +179,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password Oracle GoldenGate uses to connect the associated @@ -310,7 +316,7 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI * 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") - private String tlsCertificateKeyFilePassword; + private char[] tlsCertificateKeyFilePassword; /** * Client Certificate key file password. Deprecated: This field is deprecated and replaced @@ -320,11 +326,20 @@ public Builder tlsCertificateKeyFileSecretId(String tlsCertificateKeyFileSecretI * @param tlsCertificateKeyFilePassword the value to set * @return this builder */ - public Builder tlsCertificateKeyFilePassword(String tlsCertificateKeyFilePassword) { + public Builder tlsCertificateKeyFilePassword(char[] tlsCertificateKeyFilePassword) { this.tlsCertificateKeyFilePassword = tlsCertificateKeyFilePassword; this.__explicitlySet__.add("tlsCertificateKeyFilePassword"); return this; } + + public Builder tlsCertificateKeyFilePassword(String tlsCertificateKeyFilePassword) { + this.tlsCertificateKeyFilePassword = + tlsCertificateKeyFilePassword != null + ? tlsCertificateKeyFilePassword.toCharArray() + : null; + this.__explicitlySet__.add("tlsCertificateKeyFilePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password of the tls certificate key file. Note: When provided, @@ -502,6 +517,71 @@ public UpdateMongoDbConnectionDetails( securityAttributes); this.connectionString = connectionString; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.databaseId = databaseId; + this.securityProtocol = securityProtocol; + this.tlsCaFile = tlsCaFile; + this.tlsCertificateKeyFile = tlsCertificateKeyFile; + this.tlsCertificateKeyFileSecretId = tlsCertificateKeyFileSecretId; + this.tlsCertificateKeyFilePassword = + tlsCertificateKeyFilePassword != null + ? tlsCertificateKeyFilePassword.toCharArray() + : null; + this.tlsCertificateKeyFilePasswordSecretId = tlsCertificateKeyFilePasswordSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateMongoDbConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + String connectionString, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") String databaseId, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + MongoDbConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("tlsCaFile") String tlsCaFile, + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFile") + String tlsCertificateKeyFile, + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFileSecretId") + String tlsCertificateKeyFileSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") + char[] tlsCertificateKeyFilePassword, + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePasswordSecretId") + String tlsCertificateKeyFilePasswordSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.connectionString = connectionString; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.databaseId = databaseId; @@ -549,7 +629,21 @@ public String getUsername() { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated database. Deprecated: This + * field is deprecated and replaced by "passwordSecretId". This field will be removed + * after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated database. Deprecated: This @@ -558,7 +652,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -675,15 +770,32 @@ public String getTlsCertificateKeyFileSecretId() { * "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") - private final String tlsCertificateKeyFilePassword; + private final char[] tlsCertificateKeyFilePassword; /** * Client Certificate key file password. Deprecated: This field is deprecated and replaced by - * "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February + * 15 2026. * * @return the value + * @deprecated Use getTlsCertificateKeyFilePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTlsCertificateKeyFilePassword() { + return tlsCertificateKeyFilePassword != null + ? new String(tlsCertificateKeyFilePassword) + : null; + } + + /** + * Client Certificate key file password. Deprecated: This field is deprecated and replaced by + * "tlsCertificateKeyFilePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("tlsCertificateKeyFilePassword") + public char[] getTlsCertificateKeyFilePassword__AsCharArray() { return tlsCertificateKeyFilePassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java index 6c3ae0f68a0..65cfeabf117 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java @@ -155,7 +155,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -166,11 +166,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -631,6 +637,75 @@ public UpdateMysqlConnectionDetails( doesUseSecretIds, securityAttributes); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.host = host; + this.port = port; + this.databaseName = databaseName; + this.securityProtocol = securityProtocol; + this.sslMode = sslMode; + this.sslCa = sslCa; + this.sslCrl = sslCrl; + this.sslCert = sslCert; + this.sslKey = sslKey; + this.sslKeySecretId = sslKeySecretId; + this.privateIp = privateIp; + this.additionalAttributes = additionalAttributes; + this.dbSystemId = dbSystemId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateMysqlConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") String databaseName, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + MysqlConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + MysqlConnection.SslMode sslMode, + @com.fasterxml.jackson.annotation.JsonProperty("sslCa") String sslCa, + @com.fasterxml.jackson.annotation.JsonProperty("sslCrl") String sslCrl, + @com.fasterxml.jackson.annotation.JsonProperty("sslCert") String sslCert, + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") String sslKey, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeySecretId") String sslKeySecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp, + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + java.util.List additionalAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") String dbSystemId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.host = host; @@ -674,7 +749,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -684,7 +774,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java index f5c707cbfc9..9138785d4e5 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOciObjectStorageConnectionDetails.java @@ -243,7 +243,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * The passphrase of the private key. Deprecated: This field is deprecated and replaced by @@ -252,11 +252,18 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder */ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the passphrase of the private key. Note: When provided, @@ -463,6 +470,63 @@ public UpdateOciObjectStorageConnectionDetails( this.userId = userId; this.privateKeyFile = privateKeyFile; this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.publicKeyFingerprint = publicKeyFingerprint; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOciObjectStorageConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") String tenancyId, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region, + @com.fasterxml.jackson.annotation.JsonProperty("userId") String userId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") String privateKeyFile, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFileSecretId") + String privateKeyFileSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + char[] privateKeyPassphrase, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphraseSecretId") + String privateKeyPassphraseSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("publicKeyFingerprint") + String publicKeyFingerprint, + @com.fasterxml.jackson.annotation.JsonProperty("shouldUseResourcePrincipal") + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.tenancyId = tenancyId; + this.region = region; + this.userId = userId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; this.publicKeyFingerprint = publicKeyFingerprint; @@ -575,15 +639,29 @@ public String getPrivateKeyFileSecretId() { * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; /** * The passphrase of the private key. Deprecated: This field is deprecated and replaced by - * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getPrivateKeyPassphrase__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } + + /** + * The passphrase of the private key. Deprecated: This field is deprecated and replaced by + * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java index e327f4f0f3f..9dbee3b0f63 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOggDeploymentDetails.java @@ -23,6 +23,28 @@ public final class UpdateOggDeploymentDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateOggDeploymentDetails( + CredentialStore credentialStore, + String identityDomainId, + String passwordSecretId, + String adminUsername, + String adminPassword, + String certificate, + String key, + UpdateGroupToRolesMappingDetails groupToRolesMapping) { + super(); + this.credentialStore = credentialStore; + this.identityDomainId = identityDomainId; + this.passwordSecretId = passwordSecretId; + this.adminUsername = adminUsername; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.certificate = certificate; + this.key = key; + this.groupToRolesMapping = groupToRolesMapping; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "credentialStore", "identityDomainId", @@ -38,7 +60,7 @@ public UpdateOggDeploymentDetails( String identityDomainId, String passwordSecretId, String adminUsername, - String adminPassword, + char[] adminPassword, String certificate, String key, UpdateGroupToRolesMappingDetails groupToRolesMapping) { @@ -130,7 +152,7 @@ public Builder adminUsername(String adminUsername) { * allowed. This field will be deprecated and replaced by "passwordSecretId". */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The password associated with the GoldenGate deployment console username. The password @@ -141,11 +163,17 @@ public Builder adminUsername(String adminUsername) { * @param adminPassword the value to set * @return this builder */ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } /** The base64 encoded content of the PEM file containing the SSL certificate. */ @com.fasterxml.jackson.annotation.JsonProperty("certificate") private String certificate; @@ -312,7 +340,22 @@ public String getAdminUsername() { * will be deprecated and replaced by "passwordSecretId". */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; + + /** + * The password associated with the GoldenGate deployment console username. The password must be + * 8 to 30 characters long and must contain at least 1 uppercase, 1 lowercase, 1 numeric, and 1 + * special character. Special characters such as '$', '^', or '?' are + * not allowed. This field will be deprecated and replaced by "passwordSecretId". + * + * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } /** * The password associated with the GoldenGate deployment console username. The password must be @@ -322,7 +365,8 @@ public String getAdminUsername() { * * @return the value */ - public String getAdminPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java index 14b81bdd49a..6c555ad844b 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleConnectionDetails.java @@ -155,7 +155,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -166,11 +166,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -497,6 +503,63 @@ public UpdateOracleConnectionDetails( doesUseSecretIds, securityAttributes); this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.connectionString = connectionString; + this.authenticationMode = authenticationMode; + this.wallet = wallet; + this.walletSecretId = walletSecretId; + this.sessionMode = sessionMode; + this.privateIp = privateIp; + this.databaseId = databaseId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOracleConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + String connectionString, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationMode") + OracleConnection.AuthenticationMode authenticationMode, + @com.fasterxml.jackson.annotation.JsonProperty("wallet") String wallet, + @com.fasterxml.jackson.annotation.JsonProperty("walletSecretId") String walletSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("sessionMode") + OracleConnection.SessionMode sessionMode, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp, + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") String databaseId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.connectionString = connectionString; @@ -534,7 +597,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -544,7 +622,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java index 6abd2a4e765..19776deb0ba 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateOracleNosqlConnectionDetails.java @@ -243,7 +243,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * The passphrase of the private key. Deprecated: This field is deprecated and replaced by @@ -252,11 +252,18 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder */ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the passphrase of the private key. Note: When provided, @@ -463,6 +470,63 @@ public UpdateOracleNosqlConnectionDetails( this.userId = userId; this.privateKeyFile = privateKeyFile; this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + this.publicKeyFingerprint = publicKeyFingerprint; + this.shouldUseResourcePrincipal = shouldUseResourcePrincipal; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOracleNosqlConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") String tenancyId, + @com.fasterxml.jackson.annotation.JsonProperty("region") String region, + @com.fasterxml.jackson.annotation.JsonProperty("userId") String userId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") String privateKeyFile, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFileSecretId") + String privateKeyFileSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + char[] privateKeyPassphrase, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphraseSecretId") + String privateKeyPassphraseSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("publicKeyFingerprint") + String publicKeyFingerprint, + @com.fasterxml.jackson.annotation.JsonProperty("shouldUseResourcePrincipal") + Boolean shouldUseResourcePrincipal) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.tenancyId = tenancyId; + this.region = region; + this.userId = userId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; this.privateKeyPassphrase = privateKeyPassphrase; this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; this.publicKeyFingerprint = publicKeyFingerprint; @@ -575,15 +639,29 @@ public String getPrivateKeyFileSecretId() { * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; /** * The passphrase of the private key. Deprecated: This field is deprecated and replaced by - * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getPrivateKeyPassphrase__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } + + /** + * The passphrase of the private key. Deprecated: This field is deprecated and replaced by + * "privateKeyPassphraseSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java index 93e73376e61..695cb0f9394 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePostgresqlConnectionDetails.java @@ -200,7 +200,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -211,11 +211,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -630,6 +636,75 @@ public UpdatePostgresqlConnectionDetails( this.host = host; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.additionalAttributes = additionalAttributes; + this.securityProtocol = securityProtocol; + this.sslMode = sslMode; + this.sslCa = sslCa; + this.sslCrl = sslCrl; + this.sslCert = sslCert; + this.sslKey = sslKey; + this.sslKeySecretId = sslKeySecretId; + this.privateIp = privateIp; + this.dbSystemId = dbSystemId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdatePostgresqlConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") String databaseName, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + java.util.List additionalAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + PostgresqlConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + PostgresqlConnection.SslMode sslMode, + @com.fasterxml.jackson.annotation.JsonProperty("sslCa") String sslCa, + @com.fasterxml.jackson.annotation.JsonProperty("sslCrl") String sslCrl, + @com.fasterxml.jackson.annotation.JsonProperty("sslCert") String sslCert, + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") String sslKey, + @com.fasterxml.jackson.annotation.JsonProperty("sslKeySecretId") String sslKeySecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateIp") String privateIp, + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") String dbSystemId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.databaseName = databaseName; + this.host = host; + this.port = port; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.additionalAttributes = additionalAttributes; @@ -709,7 +784,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -719,7 +809,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java index 2431b3569c6..641becad43c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateRedisConnectionDetails.java @@ -208,7 +208,7 @@ public Builder username(String username) { * "passwordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect the associated system of the given @@ -219,11 +219,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the password is stored. The password Oracle GoldenGate uses to connect the @@ -294,7 +300,7 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private String trustStorePassword; + private char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by @@ -303,11 +309,18 @@ public Builder trustStoreSecretId(String trustStoreSecretId) { * @param trustStorePassword the value to set * @return this builder */ - public Builder trustStorePassword(String trustStorePassword) { + public Builder trustStorePassword(char[] trustStorePassword) { this.trustStorePassword = trustStorePassword; this.__explicitlySet__.add("trustStorePassword"); return this; } + + public Builder trustStorePassword(String trustStorePassword) { + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.__explicitlySet__.add("trustStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the Redis TrustStore password is stored. Note: When provided, @@ -374,7 +387,7 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private String keyStorePassword; + private char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by @@ -383,11 +396,18 @@ public Builder keyStoreSecretId(String keyStoreSecretId) { * @param keyStorePassword the value to set * @return this builder */ - public Builder keyStorePassword(String keyStorePassword) { + public Builder keyStorePassword(char[] keyStorePassword) { this.keyStorePassword = keyStorePassword; this.__explicitlySet__.add("keyStorePassword"); return this; } + + public Builder keyStorePassword(String keyStorePassword) { + this.keyStorePassword = + keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.__explicitlySet__.add("keyStorePassword"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret where the Redis KeyStore password is stored. Note: When provided, @@ -604,6 +624,80 @@ public UpdateRedisConnectionDetails( this.securityProtocol = securityProtocol; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.trustStore = trustStore; + this.trustStoreSecretId = trustStoreSecretId; + this.trustStorePassword = + trustStorePassword != null ? trustStorePassword.toCharArray() : null; + this.trustStorePasswordSecretId = trustStorePasswordSecretId; + this.keyStore = keyStore; + this.keyStoreSecretId = keyStoreSecretId; + this.keyStorePassword = keyStorePassword != null ? keyStorePassword.toCharArray() : null; + this.keyStorePasswordSecretId = keyStorePasswordSecretId; + this.redisClusterId = redisClusterId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateRedisConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("servers") String servers, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + RedisConnection.SecurityProtocol securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + RedisConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStore") String trustStore, + @com.fasterxml.jackson.annotation.JsonProperty("trustStoreSecretId") + String trustStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + char[] trustStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePasswordSecretId") + String trustStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStore") String keyStore, + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreSecretId") + String keyStoreSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + char[] keyStorePassword, + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePasswordSecretId") + String keyStorePasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + String redisClusterId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.servers = servers; + this.securityProtocol = securityProtocol; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.trustStore = trustStore; @@ -690,7 +784,22 @@ public String getUsername() { * will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect the associated system of the given technology. + * It must conform to the specific security requirements including length, case sensitivity, and + * so on. Deprecated: This field is deprecated and replaced by "passwordSecretId". + * This field will be removed after February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect the associated system of the given technology. @@ -700,7 +809,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -768,15 +878,29 @@ public String getTrustStoreSecretId() { * "trustStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") - private final String trustStorePassword; + private final char[] trustStorePassword; /** * The TrustStore password. Deprecated: This field is deprecated and replaced by - * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getTrustStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getTrustStorePassword() { + return trustStorePassword != null ? new String(trustStorePassword) : null; + } + + /** + * The TrustStore password. Deprecated: This field is deprecated and replaced by + * "trustStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("trustStorePassword") + public char[] getTrustStorePassword__AsCharArray() { return trustStorePassword; } @@ -840,15 +964,29 @@ public String getKeyStoreSecretId() { * "keyStorePasswordSecretId". This field will be removed after February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") - private final String keyStorePassword; + private final char[] keyStorePassword; /** * The KeyStore password. Deprecated: This field is deprecated and replaced by - * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. * * @return the value + * @deprecated Use getKeyStorePassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getKeyStorePassword() { + return keyStorePassword != null ? new String(keyStorePassword) : null; + } + + /** + * The KeyStore password. Deprecated: This field is deprecated and replaced by + * "keyStorePasswordSecretId". This field will be removed after February 15 2026. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("keyStorePassword") + public char[] getKeyStorePassword__AsCharArray() { return keyStorePassword; } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java index 3377eb8ca5f..a0b4c326fc2 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateSnowflakeConnectionDetails.java @@ -187,7 +187,7 @@ public Builder username(String username) { * February 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password Oracle GoldenGate uses to connect to Snowflake platform. Deprecated: This @@ -197,11 +197,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password Oracle GoldenGate uses to connect to Snowflake platform. @@ -275,7 +281,7 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private String privateKeyPassphrase; + private char[] privateKeyPassphrase; /** * Password if the private key file is encrypted. Deprecated: This field is deprecated and @@ -285,11 +291,18 @@ public Builder privateKeyFileSecretId(String privateKeyFileSecretId) { * @param privateKeyPassphrase the value to set * @return this builder */ - public Builder privateKeyPassphrase(String privateKeyPassphrase) { + public Builder privateKeyPassphrase(char[] privateKeyPassphrase) { this.privateKeyPassphrase = privateKeyPassphrase; this.__explicitlySet__.add("privateKeyPassphrase"); return this; } + + public Builder privateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.__explicitlySet__.add("privateKeyPassphrase"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Secret that stores the password for the private key file. Note: When provided, @@ -456,6 +469,63 @@ public UpdateSnowflakeConnectionDetails( this.connectionUrl = connectionUrl; this.authenticationType = authenticationType; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.passwordSecretId = passwordSecretId; + this.privateKeyFile = privateKeyFile; + this.privateKeyFileSecretId = privateKeyFileSecretId; + this.privateKeyPassphrase = + privateKeyPassphrase != null ? privateKeyPassphrase.toCharArray() : null; + this.privateKeyPassphraseSecretId = privateKeyPassphraseSecretId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateSnowflakeConnectionDetails( + @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, + @com.fasterxml.jackson.annotation.JsonProperty("keyId") String keyId, + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") java.util.List nsgIds, + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") String subnetId, + @com.fasterxml.jackson.annotation.JsonProperty("routingMethod") + RoutingMethod routingMethod, + @com.fasterxml.jackson.annotation.JsonProperty("doesUseSecretIds") + Boolean doesUseSecretIds, + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + java.util.Map> securityAttributes, + @com.fasterxml.jackson.annotation.JsonProperty("connectionUrl") String connectionUrl, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationType") + SnowflakeConnection.AuthenticationType authenticationType, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + String passwordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFile") String privateKeyFile, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyFileSecretId") + String privateKeyFileSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + char[] privateKeyPassphrase, + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphraseSecretId") + String privateKeyPassphraseSecretId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + nsgIds, + subnetId, + routingMethod, + doesUseSecretIds, + securityAttributes); + this.connectionUrl = connectionUrl; + this.authenticationType = authenticationType; + this.username = username; this.password = password; this.passwordSecretId = passwordSecretId; this.privateKeyFile = privateKeyFile; @@ -517,7 +587,21 @@ public String getUsername() { * 15 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; + + /** + * The password Oracle GoldenGate uses to connect to Snowflake platform. Deprecated: This field + * is deprecated and replaced by "passwordSecretId". This field will be removed after + * February 15 2026. + * + * @return the value + * @deprecated Use getPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPassword() { + return password != null ? new String(password) : null; + } /** * The password Oracle GoldenGate uses to connect to Snowflake platform. Deprecated: This field @@ -526,7 +610,8 @@ public String getUsername() { * * @return the value */ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -597,7 +682,21 @@ public String getPrivateKeyFileSecretId() { * 2026. */ @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") - private final String privateKeyPassphrase; + private final char[] privateKeyPassphrase; + + /** + * Password if the private key file is encrypted. Deprecated: This field is deprecated and + * replaced by "privateKeyPassphraseSecretId". This field will be removed after + * February 15 2026. + * + * @return the value + * @deprecated Use getPrivateKeyPassphrase__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase != null ? new String(privateKeyPassphrase) : null; + } /** * Password if the private key file is encrypted. Deprecated: This field is deprecated and @@ -606,7 +705,8 @@ public String getPrivateKeyFileSecretId() { * * @return the value */ - public String getPrivateKeyPassphrase() { + @com.fasterxml.jackson.annotation.JsonProperty("privateKeyPassphrase") + public char[] getPrivateKeyPassphrase__AsCharArray() { return privateKeyPassphrase; } diff --git a/bmc-goldengate/src/main/resources/com/oracle/bmc/goldengate/client.properties b/bmc-goldengate/src/main/resources/com/oracle/bmc/goldengate/client.properties index 3ea8a19fa20..1238bc2ef39 100644 --- a/bmc-goldengate/src/main/resources/com/oracle/bmc/goldengate/client.properties +++ b/bmc-goldengate/src/main/resources/com/oracle/bmc/goldengate/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/src/main/resources/com/oracle/bmc/governancerulescontrolplane/client.properties b/bmc-governancerulescontrolplane/src/main/resources/com/oracle/bmc/governancerulescontrolplane/client.properties index f0d85653d10..e9348b93964 100644 --- a/bmc-governancerulescontrolplane/src/main/resources/com/oracle/bmc/governancerulescontrolplane/client.properties +++ b/bmc-governancerulescontrolplane/src/main/resources/com/oracle/bmc/governancerulescontrolplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220504") \ No newline at end of file diff --git a/bmc-healthchecks/src/main/resources/com/oracle/bmc/healthchecks/client.properties b/bmc-healthchecks/src/main/resources/com/oracle/bmc/healthchecks/client.properties index 41cb598ea6e..eb482a95e61 100644 --- a/bmc-healthchecks/src/main/resources/com/oracle/bmc/healthchecks/client.properties +++ b/bmc-healthchecks/src/main/resources/com/oracle/bmc/healthchecks/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180501") \ No newline at end of file diff --git a/bmc-identity/src/main/java/com/oracle/bmc/identity/model/AuthToken.java b/bmc-identity/src/main/java/com/oracle/bmc/identity/model/AuthToken.java index a472f193fd5..fefd1b442ba 100644 --- a/bmc-identity/src/main/java/com/oracle/bmc/identity/model/AuthToken.java +++ b/bmc-identity/src/main/java/com/oracle/bmc/identity/model/AuthToken.java @@ -33,6 +33,28 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class AuthToken extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + public AuthToken( + String token, + String id, + String userId, + String description, + java.util.Date timeCreated, + java.util.Date timeExpires, + LifecycleState lifecycleState, + Long inactiveStatus) { + super(); + this.token = token != null ? token.toCharArray() : null; + this.id = id; + this.userId = userId; + this.description = description; + this.timeCreated = timeCreated; + this.timeExpires = timeExpires; + this.lifecycleState = lifecycleState; + this.inactiveStatus = inactiveStatus; + } + + @com.fasterxml.jackson.annotation.JsonCreator @Deprecated @java.beans.ConstructorProperties({ "token", @@ -45,7 +67,7 @@ public final class AuthToken extends com.oracle.bmc.http.client.internal.Explici "inactiveStatus" }) public AuthToken( - String token, + char[] token, String id, String userId, String description, @@ -71,7 +93,7 @@ public static class Builder { * and not for {@code ListAuthTokens} or {@code UpdateAuthToken}. */ @com.fasterxml.jackson.annotation.JsonProperty("token") - private String token; + private char[] token; /** * The auth token. The value is available only in the response for {@code CreateAuthToken}, @@ -80,11 +102,17 @@ public static class Builder { * @param token the value to set * @return this builder */ - public Builder token(String token) { + public Builder token(char[] token) { this.token = token; this.__explicitlySet__.add("token"); return this; } + + public Builder token(String token) { + this.token = token != null ? token.toCharArray() : null; + this.__explicitlySet__.add("token"); + return this; + } /** The OCID of the auth token. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; @@ -281,15 +309,29 @@ public Builder toBuilder() { * not for {@code ListAuthTokens} or {@code UpdateAuthToken}. */ @com.fasterxml.jackson.annotation.JsonProperty("token") - private final String token; + private final char[] token; /** * The auth token. The value is available only in the response for {@code CreateAuthToken}, and * not for {@code ListAuthTokens} or {@code UpdateAuthToken}. * * @return the value + * @deprecated Use getToken__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getToken() { + return token != null ? new String(token) : null; + } + + /** + * The auth token. The value is available only in the response for {@code CreateAuthToken}, and + * not for {@code ListAuthTokens} or {@code UpdateAuthToken}. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("token") + public char[] getToken__AsCharArray() { return token; } diff --git a/bmc-identity/src/main/resources/com/oracle/bmc/identity/client.properties b/bmc-identity/src/main/resources/com/oracle/bmc/identity/client.properties index 57fa7f4b072..80d9875bfaf 100644 --- a/bmc-identity/src/main/resources/com/oracle/bmc/identity/client.properties +++ b/bmc-identity/src/main/resources/com/oracle/bmc/identity/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-identitydataplane/src/main/resources/com/oracle/bmc/identitydataplane/client.properties b/bmc-identitydataplane/src/main/resources/com/oracle/bmc/identitydataplane/client.properties index 454cf6b6432..503be7d22e4 100644 --- a/bmc-identitydataplane/src/main/resources/com/oracle/bmc/identitydataplane/client.properties +++ b/bmc-identitydataplane/src/main/resources/com/oracle/bmc/identitydataplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: v1") \ No newline at end of file diff --git a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/UserPasswordResetter.java b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/UserPasswordResetter.java index 0d4999ffc36..3bfe5ec3c46 100644 --- a/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/UserPasswordResetter.java +++ b/bmc-identitydomains/src/main/java/com/oracle/bmc/identitydomains/model/UserPasswordResetter.java @@ -23,6 +23,53 @@ public final class UserPasswordResetter extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UserPasswordResetter( + String id, + String ocid, + java.util.List schemas, + Meta meta, + IdcsCreatedBy idcsCreatedBy, + IdcsLastModifiedBy idcsLastModifiedBy, + java.util.List idcsPreventedOperations, + java.util.List tags, + Boolean deleteInProgress, + String idcsLastUpgradedInRelease, + String domainOcid, + String compartmentOcid, + String tenancyOcid, + String externalId, + Boolean bypassNotification, + Boolean userFlowControlledByExternalClient, + UserPasswordResetterUserToken userToken, + String notificationEmailTemplateId, + String oneTimePassword, + ExtensionSelfChangeUser urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser) { + super(); + this.id = id; + this.ocid = ocid; + this.schemas = schemas; + this.meta = meta; + this.idcsCreatedBy = idcsCreatedBy; + this.idcsLastModifiedBy = idcsLastModifiedBy; + this.idcsPreventedOperations = idcsPreventedOperations; + this.tags = tags; + this.deleteInProgress = deleteInProgress; + this.idcsLastUpgradedInRelease = idcsLastUpgradedInRelease; + this.domainOcid = domainOcid; + this.compartmentOcid = compartmentOcid; + this.tenancyOcid = tenancyOcid; + this.externalId = externalId; + this.bypassNotification = bypassNotification; + this.userFlowControlledByExternalClient = userFlowControlledByExternalClient; + this.userToken = userToken; + this.notificationEmailTemplateId = notificationEmailTemplateId; + this.oneTimePassword = oneTimePassword != null ? oneTimePassword.toCharArray() : null; + this.urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser = + urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "id", "ocid", @@ -64,7 +111,7 @@ public UserPasswordResetter( Boolean userFlowControlledByExternalClient, UserPasswordResetterUserToken userToken, String notificationEmailTemplateId, - String oneTimePassword, + char[] oneTimePassword, ExtensionSelfChangeUser urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser) { super(); this.id = id; @@ -530,7 +577,7 @@ public Builder notificationEmailTemplateId(String notificationEmailTemplateId) { * none */ @com.fasterxml.jackson.annotation.JsonProperty("oneTimePassword") - private String oneTimePassword; + private char[] oneTimePassword; /** * A one time password will be returned when the user doesn't have a primary email address. @@ -542,12 +589,18 @@ public Builder notificationEmailTemplateId(String notificationEmailTemplateId) { * @param oneTimePassword the value to set * @return this builder */ - public Builder oneTimePassword(String oneTimePassword) { + public Builder oneTimePassword(char[] oneTimePassword) { this.oneTimePassword = oneTimePassword; this.__explicitlySet__.add("oneTimePassword"); return this; } + public Builder oneTimePassword(String oneTimePassword) { + this.oneTimePassword = oneTimePassword != null ? oneTimePassword.toCharArray() : null; + this.__explicitlySet__.add("oneTimePassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty( "urn:ietf:params:scim:schemas:oracle:idcs:extension:selfChange:User") private ExtensionSelfChangeUser urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser; @@ -1051,7 +1104,22 @@ public String getNotificationEmailTemplateId() { * mutability: readOnly - required: false - returned: request - type: string - uniqueness: none */ @com.fasterxml.jackson.annotation.JsonProperty("oneTimePassword") - private final String oneTimePassword; + private final char[] oneTimePassword; + + /** + * A one time password will be returned when the user doesn't have a primary email address. + * <p> *SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: + * false - mutability: readOnly - required: false - returned: request - type: string - + * uniqueness: none + * + * @return the value + * @deprecated Use getOneTimePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getOneTimePassword() { + return oneTimePassword != null ? new String(oneTimePassword) : null; + } /** * A one time password will be returned when the user doesn't have a primary email address. @@ -1061,7 +1129,8 @@ public String getNotificationEmailTemplateId() { * * @return the value */ - public String getOneTimePassword() { + @com.fasterxml.jackson.annotation.JsonProperty("oneTimePassword") + public char[] getOneTimePassword__AsCharArray() { return oneTimePassword; } diff --git a/bmc-identitydomains/src/main/resources/com/oracle/bmc/identitydomains/client.properties b/bmc-identitydomains/src/main/resources/com/oracle/bmc/identitydomains/client.properties index 454cf6b6432..503be7d22e4 100644 --- a/bmc-identitydomains/src/main/resources/com/oracle/bmc/identitydomains/client.properties +++ b/bmc-identitydomains/src/main/resources/com/oracle/bmc/identitydomains/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: v1") \ No newline at end of file diff --git a/bmc-integration/src/main/resources/com/oracle/bmc/integration/client.properties b/bmc-integration/src/main/resources/com/oracle/bmc/integration/client.properties index 948d167f4d3..c10cbbbcad3 100644 --- a/bmc-integration/src/main/resources/com/oracle/bmc/integration/client.properties +++ b/bmc-integration/src/main/resources/com/oracle/bmc/integration/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190131") \ No newline at end of file diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ApexDataAccessDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ApexDataAccessDetails.java index e2b0abc94ff..f31cfbb9d3c 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ApexDataAccessDetails.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ApexDataAccessDetails.java @@ -29,7 +29,7 @@ public final class ApexDataAccessDetails extends ConfigureIotDomainDataAccessDet public static class Builder { /** Initial admin password for APEX workspace associated with the IoT domain. */ @com.fasterxml.jackson.annotation.JsonProperty("dbWorkspaceAdminInitialPassword") - private String dbWorkspaceAdminInitialPassword; + private char[] dbWorkspaceAdminInitialPassword; /** * Initial admin password for APEX workspace associated with the IoT domain. @@ -37,12 +37,21 @@ public static class Builder { * @param dbWorkspaceAdminInitialPassword the value to set * @return this builder */ - public Builder dbWorkspaceAdminInitialPassword(String dbWorkspaceAdminInitialPassword) { + public Builder dbWorkspaceAdminInitialPassword(char[] dbWorkspaceAdminInitialPassword) { this.dbWorkspaceAdminInitialPassword = dbWorkspaceAdminInitialPassword; this.__explicitlySet__.add("dbWorkspaceAdminInitialPassword"); return this; } + public Builder dbWorkspaceAdminInitialPassword(String dbWorkspaceAdminInitialPassword) { + this.dbWorkspaceAdminInitialPassword = + dbWorkspaceAdminInitialPassword != null + ? dbWorkspaceAdminInitialPassword.toCharArray() + : null; + this.__explicitlySet__.add("dbWorkspaceAdminInitialPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -76,19 +85,46 @@ public Builder toBuilder() { @Deprecated public ApexDataAccessDetails(String dbWorkspaceAdminInitialPassword) { super(); + this.dbWorkspaceAdminInitialPassword = + dbWorkspaceAdminInitialPassword != null + ? dbWorkspaceAdminInitialPassword.toCharArray() + : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public ApexDataAccessDetails( + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkspaceAdminInitialPassword") + char[] dbWorkspaceAdminInitialPassword) { + super(); this.dbWorkspaceAdminInitialPassword = dbWorkspaceAdminInitialPassword; } /** Initial admin password for APEX workspace associated with the IoT domain. */ @com.fasterxml.jackson.annotation.JsonProperty("dbWorkspaceAdminInitialPassword") - private final String dbWorkspaceAdminInitialPassword; + private final char[] dbWorkspaceAdminInitialPassword; /** * Initial admin password for APEX workspace associated with the IoT domain. * * @return the value + * @deprecated Use getDbWorkspaceAdminInitialPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getDbWorkspaceAdminInitialPassword() { + return dbWorkspaceAdminInitialPassword != null + ? new String(dbWorkspaceAdminInitialPassword) + : null; + } + + /** + * Initial admin password for APEX workspace associated with the IoT domain. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkspaceAdminInitialPassword") + public char[] getDbWorkspaceAdminInitialPassword__AsCharArray() { return dbWorkspaceAdminInitialPassword; } diff --git a/bmc-iot/src/main/resources/com/oracle/bmc/iot/client.properties b/bmc-iot/src/main/resources/com/oracle/bmc/iot/client.properties index 84f5e04fcca..04c80827604 100644 --- a/bmc-iot/src/main/resources/com/oracle/bmc/iot/client.properties +++ b/bmc-iot/src/main/resources/com/oracle/bmc/iot/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") \ No newline at end of file diff --git a/bmc-jms/src/main/resources/com/oracle/bmc/jms/client.properties b/bmc-jms/src/main/resources/com/oracle/bmc/jms/client.properties index 871909f12e9..eb990d6ea67 100644 --- a/bmc-jms/src/main/resources/com/oracle/bmc/jms/client.properties +++ b/bmc-jms/src/main/resources/com/oracle/bmc/jms/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210610") \ No newline at end of file diff --git a/bmc-jmsjavadownloads/src/main/resources/com/oracle/bmc/jmsjavadownloads/client.properties b/bmc-jmsjavadownloads/src/main/resources/com/oracle/bmc/jmsjavadownloads/client.properties index a5724efddd8..7d80abfa366 100644 --- a/bmc-jmsjavadownloads/src/main/resources/com/oracle/bmc/jmsjavadownloads/client.properties +++ b/bmc-jmsjavadownloads/src/main/resources/com/oracle/bmc/jmsjavadownloads/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230601") \ No newline at end of file diff --git a/bmc-jmsutils/src/main/resources/com/oracle/bmc/jmsutils/client.properties b/bmc-jmsutils/src/main/resources/com/oracle/bmc/jmsutils/client.properties index 6159d377873..049ce5788d6 100644 --- a/bmc-jmsutils/src/main/resources/com/oracle/bmc/jmsutils/client.properties +++ b/bmc-jmsutils/src/main/resources/com/oracle/bmc/jmsutils/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250521") \ No newline at end of file diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/OauthMetadata.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/OauthMetadata.java index af3e19baa00..c343c256388 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/OauthMetadata.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/OauthMetadata.java @@ -22,8 +22,17 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class OauthMetadata extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"idcsAccountNameUrl", "clientAppId", "clientAppSecret"}) public OauthMetadata(String idcsAccountNameUrl, String clientAppId, String clientAppSecret) { + super(); + this.idcsAccountNameUrl = idcsAccountNameUrl; + this.clientAppId = clientAppId; + this.clientAppSecret = clientAppSecret != null ? clientAppSecret.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"idcsAccountNameUrl", "clientAppId", "clientAppSecret"}) + public OauthMetadata(String idcsAccountNameUrl, String clientAppId, char[] clientAppSecret) { super(); this.idcsAccountNameUrl = idcsAccountNameUrl; this.clientAppId = clientAppId; @@ -64,7 +73,7 @@ public Builder clientAppId(String clientAppId) { } /** Secret of the client app created in IDP. */ @com.fasterxml.jackson.annotation.JsonProperty("clientAppSecret") - private String clientAppSecret; + private char[] clientAppSecret; /** * Secret of the client app created in IDP. @@ -72,12 +81,18 @@ public Builder clientAppId(String clientAppId) { * @param clientAppSecret the value to set * @return this builder */ - public Builder clientAppSecret(String clientAppSecret) { + public Builder clientAppSecret(char[] clientAppSecret) { this.clientAppSecret = clientAppSecret; this.__explicitlySet__.add("clientAppSecret"); return this; } + public Builder clientAppSecret(String clientAppSecret) { + this.clientAppSecret = clientAppSecret != null ? clientAppSecret.toCharArray() : null; + this.__explicitlySet__.add("clientAppSecret"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -143,14 +158,27 @@ public String getClientAppId() { /** Secret of the client app created in IDP. */ @com.fasterxml.jackson.annotation.JsonProperty("clientAppSecret") - private final String clientAppSecret; + private final char[] clientAppSecret; /** * Secret of the client app created in IDP. * * @return the value + * @deprecated Use getClientAppSecret__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClientAppSecret() { + return clientAppSecret != null ? new String(clientAppSecret) : null; + } + + /** + * Secret of the client app created in IDP. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clientAppSecret") + public char[] getClientAppSecret__AsCharArray() { return clientAppSecret; } diff --git a/bmc-keymanagement/src/main/resources/com/oracle/bmc/keymanagement/client.properties b/bmc-keymanagement/src/main/resources/com/oracle/bmc/keymanagement/client.properties index 48f34131b20..7d088886e61 100644 --- a/bmc-keymanagement/src/main/resources/com/oracle/bmc/keymanagement/client.properties +++ b/bmc-keymanagement/src/main/resources/com/oracle/bmc/keymanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") \ No newline at end of file diff --git a/bmc-licensemanager/src/main/resources/com/oracle/bmc/licensemanager/client.properties b/bmc-licensemanager/src/main/resources/com/oracle/bmc/licensemanager/client.properties index 895bcc030b4..ecdd556e443 100644 --- a/bmc-licensemanager/src/main/resources/com/oracle/bmc/licensemanager/client.properties +++ b/bmc-licensemanager/src/main/resources/com/oracle/bmc/licensemanager/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220430") \ No newline at end of file diff --git a/bmc-limits/src/main/resources/com/oracle/bmc/limits/client.properties b/bmc-limits/src/main/resources/com/oracle/bmc/limits/client.properties index d53efd847ef..da9a520eedb 100644 --- a/bmc-limits/src/main/resources/com/oracle/bmc/limits/client.properties +++ b/bmc-limits/src/main/resources/com/oracle/bmc/limits/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181025") \ No newline at end of file diff --git a/bmc-limitsincrease/src/main/resources/com/oracle/bmc/limitsincrease/client.properties b/bmc-limitsincrease/src/main/resources/com/oracle/bmc/limitsincrease/client.properties index 97d4607df20..be6db1a8a3b 100644 --- a/bmc-limitsincrease/src/main/resources/com/oracle/bmc/limitsincrease/client.properties +++ b/bmc-limitsincrease/src/main/resources/com/oracle/bmc/limitsincrease/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20251101") \ No newline at end of file diff --git a/bmc-loadbalancer/src/main/resources/com/oracle/bmc/loadbalancer/client.properties b/bmc-loadbalancer/src/main/resources/com/oracle/bmc/loadbalancer/client.properties index a658ecd99d4..12b0d85f565 100644 --- a/bmc-loadbalancer/src/main/resources/com/oracle/bmc/loadbalancer/client.properties +++ b/bmc-loadbalancer/src/main/resources/com/oracle/bmc/loadbalancer/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170115") \ No newline at end of file diff --git a/bmc-lockbox/src/main/resources/com/oracle/bmc/lockbox/client.properties b/bmc-lockbox/src/main/resources/com/oracle/bmc/lockbox/client.properties index 5bce16648b2..84f93fe64f9 100644 --- a/bmc-lockbox/src/main/resources/com/oracle/bmc/lockbox/client.properties +++ b/bmc-lockbox/src/main/resources/com/oracle/bmc/lockbox/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220126") \ No newline at end of file diff --git a/bmc-loganalytics/src/main/resources/com/oracle/bmc/loganalytics/client.properties b/bmc-loganalytics/src/main/resources/com/oracle/bmc/loganalytics/client.properties index dec66cfc891..2ade2109648 100644 --- a/bmc-loganalytics/src/main/resources/com/oracle/bmc/loganalytics/client.properties +++ b/bmc-loganalytics/src/main/resources/com/oracle/bmc/loganalytics/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") \ No newline at end of file diff --git a/bmc-logging/src/main/resources/com/oracle/bmc/logging/client.properties b/bmc-logging/src/main/resources/com/oracle/bmc/logging/client.properties index 8f73c1491fc..273a36963e5 100644 --- a/bmc-logging/src/main/resources/com/oracle/bmc/logging/client.properties +++ b/bmc-logging/src/main/resources/com/oracle/bmc/logging/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200531") \ No newline at end of file diff --git a/bmc-loggingingestion/src/main/resources/com/oracle/bmc/loggingingestion/client.properties b/bmc-loggingingestion/src/main/resources/com/oracle/bmc/loggingingestion/client.properties index f7a8b2ba4d9..896d946000d 100644 --- a/bmc-loggingingestion/src/main/resources/com/oracle/bmc/loggingingestion/client.properties +++ b/bmc-loggingingestion/src/main/resources/com/oracle/bmc/loggingingestion/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200831") \ No newline at end of file diff --git a/bmc-loggingsearch/src/main/resources/com/oracle/bmc/loggingsearch/client.properties b/bmc-loggingsearch/src/main/resources/com/oracle/bmc/loggingsearch/client.properties index 157df19c9c4..4d6d5edefdb 100644 --- a/bmc-loggingsearch/src/main/resources/com/oracle/bmc/loggingsearch/client.properties +++ b/bmc-loggingsearch/src/main/resources/com/oracle/bmc/loggingsearch/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190909") \ No newline at end of file diff --git a/bmc-lustrefilestorage/src/main/resources/com/oracle/bmc/lustrefilestorage/client.properties b/bmc-lustrefilestorage/src/main/resources/com/oracle/bmc/lustrefilestorage/client.properties index 612b8fd3e95..808e6c72269 100644 --- a/bmc-lustrefilestorage/src/main/resources/com/oracle/bmc/lustrefilestorage/client.properties +++ b/bmc-lustrefilestorage/src/main/resources/com/oracle/bmc/lustrefilestorage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250228") \ No newline at end of file diff --git a/bmc-managedkafka/src/main/resources/com/oracle/bmc/managedkafka/client.properties b/bmc-managedkafka/src/main/resources/com/oracle/bmc/managedkafka/client.properties index c52c1ae4dc0..1a09b961d5f 100644 --- a/bmc-managedkafka/src/main/resources/com/oracle/bmc/managedkafka/client.properties +++ b/bmc-managedkafka/src/main/resources/com/oracle/bmc/managedkafka/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240901") \ No newline at end of file diff --git a/bmc-managementagent/src/main/resources/com/oracle/bmc/managementagent/client.properties b/bmc-managementagent/src/main/resources/com/oracle/bmc/managementagent/client.properties index d16dbc15e05..ecb2fa843f5 100644 --- a/bmc-managementagent/src/main/resources/com/oracle/bmc/managementagent/client.properties +++ b/bmc-managementagent/src/main/resources/com/oracle/bmc/managementagent/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200202") \ No newline at end of file diff --git a/bmc-managementdashboard/src/main/resources/com/oracle/bmc/managementdashboard/client.properties b/bmc-managementdashboard/src/main/resources/com/oracle/bmc/managementdashboard/client.properties index 89e79332674..24a8b9cb0ad 100644 --- a/bmc-managementdashboard/src/main/resources/com/oracle/bmc/managementdashboard/client.properties +++ b/bmc-managementdashboard/src/main/resources/com/oracle/bmc/managementdashboard/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200901") \ No newline at end of file diff --git a/bmc-marketplace/src/main/resources/com/oracle/bmc/marketplace/client.properties b/bmc-marketplace/src/main/resources/com/oracle/bmc/marketplace/client.properties index 2e8976d0c65..ff6dc40ddc0 100644 --- a/bmc-marketplace/src/main/resources/com/oracle/bmc/marketplace/client.properties +++ b/bmc-marketplace/src/main/resources/com/oracle/bmc/marketplace/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181001") \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties b/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties index be42e1f5673..66f017c309f 100644 --- a/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties +++ b/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") \ No newline at end of file diff --git a/bmc-marketplacepublisher/src/main/resources/com/oracle/bmc/marketplacepublisher/client.properties b/bmc-marketplacepublisher/src/main/resources/com/oracle/bmc/marketplacepublisher/client.properties index cebedd9ec8d..9a5a29f13a4 100644 --- a/bmc-marketplacepublisher/src/main/resources/com/oracle/bmc/marketplacepublisher/client.properties +++ b/bmc-marketplacepublisher/src/main/resources/com/oracle/bmc/marketplacepublisher/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") \ No newline at end of file diff --git a/bmc-mediaservices/src/main/resources/com/oracle/bmc/mediaservices/client.properties b/bmc-mediaservices/src/main/resources/com/oracle/bmc/mediaservices/client.properties index 9a5762512e2..785ee840a83 100644 --- a/bmc-mediaservices/src/main/resources/com/oracle/bmc/mediaservices/client.properties +++ b/bmc-mediaservices/src/main/resources/com/oracle/bmc/mediaservices/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211101") \ No newline at end of file diff --git a/bmc-mngdmac/src/main/resources/com/oracle/bmc/mngdmac/client.properties b/bmc-mngdmac/src/main/resources/com/oracle/bmc/mngdmac/client.properties index 64b0a66ddbb..757ca5244cc 100644 --- a/bmc-mngdmac/src/main/resources/com/oracle/bmc/mngdmac/client.properties +++ b/bmc-mngdmac/src/main/resources/com/oracle/bmc/mngdmac/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250320") \ No newline at end of file diff --git a/bmc-modeldeployment/src/main/resources/com/oracle/bmc/modeldeployment/client.properties b/bmc-modeldeployment/src/main/resources/com/oracle/bmc/modeldeployment/client.properties index a3410c40e58..707ac709a84 100644 --- a/bmc-modeldeployment/src/main/resources/com/oracle/bmc/modeldeployment/client.properties +++ b/bmc-modeldeployment/src/main/resources/com/oracle/bmc/modeldeployment/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240424") \ No newline at end of file diff --git a/bmc-monitoring/src/main/resources/com/oracle/bmc/monitoring/client.properties b/bmc-monitoring/src/main/resources/com/oracle/bmc/monitoring/client.properties index 896cee5a1c5..0ab9a57256e 100644 --- a/bmc-monitoring/src/main/resources/com/oracle/bmc/monitoring/client.properties +++ b/bmc-monitoring/src/main/resources/com/oracle/bmc/monitoring/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180401") \ No newline at end of file diff --git a/bmc-multicloud/src/main/resources/com/oracle/bmc/multicloud/client.properties b/bmc-multicloud/src/main/resources/com/oracle/bmc/multicloud/client.properties index 422d75b703a..4d3343497ed 100644 --- a/bmc-multicloud/src/main/resources/com/oracle/bmc/multicloud/client.properties +++ b/bmc-multicloud/src/main/resources/com/oracle/bmc/multicloud/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") \ No newline at end of file diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java index 1618217576d..9b9ec39734c 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateChannelSourceFromMysqlDetails.java @@ -85,7 +85,7 @@ public Builder username(String username) { * character, and 1 special (nonalphanumeric) character. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the replication user. The password must be between 8 and 32 characters @@ -95,11 +95,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The SSL mode of the Channel. */ @com.fasterxml.jackson.annotation.JsonProperty("sslMode") private ChannelSourceMysql.SslMode sslMode; @@ -203,6 +209,29 @@ public CreateChannelSourceFromMysqlDetails( this.hostname = hostname; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.sslMode = sslMode; + this.sslCaCertificate = sslCaCertificate; + this.anonymousTransactionsHandling = anonymousTransactionsHandling; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateChannelSourceFromMysqlDetails( + @com.fasterxml.jackson.annotation.JsonProperty("hostname") String hostname, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + ChannelSourceMysql.SslMode sslMode, + @com.fasterxml.jackson.annotation.JsonProperty("sslCaCertificate") + CaCertificate sslCaCertificate, + @com.fasterxml.jackson.annotation.JsonProperty("anonymousTransactionsHandling") + AnonymousTransactionsHandling anonymousTransactionsHandling) { + super(); + this.hostname = hostname; + this.port = port; + this.username = username; this.password = password; this.sslMode = sslMode; this.sslCaCertificate = sslCaCertificate; @@ -260,7 +289,7 @@ public String getUsername() { * and 1 special (nonalphanumeric) character. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the replication user. The password must be between 8 and 32 characters long, @@ -268,8 +297,23 @@ public String getUsername() { * and 1 special (nonalphanumeric) character. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the replication user. The password must be between 8 and 32 characters long, + * and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, + * and 1 special (nonalphanumeric) character. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java index 49ab1234fe2..5582a9f861a 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java @@ -23,6 +23,86 @@ public final class CreateDbSystemDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateDbSystemDetails( + String displayName, + String description, + String compartmentId, + CreateRestDetails rest, + CreateDatabaseConsoleDetails databaseConsole, + Boolean isHighlyAvailable, + String availabilityDomain, + String faultDomain, + String configurationId, + String shapeName, + String mysqlVersion, + String subnetId, + java.util.List nsgIds, + java.util.Map> securityAttributes, + String adminUsername, + String adminPassword, + Integer dataStorageSizeInGBs, + DataStorageDetails dataStorage, + String hostnameLabel, + String ipAddress, + Integer port, + Integer portX, + CreateBackupPolicyDetails backupPolicy, + CreateDbSystemSourceDetails source, + CreateMaintenanceDetails maintenance, + java.util.Map freeformTags, + java.util.Map> definedTags, + CreateDeletionPolicyDetails deletionPolicy, + CrashRecoveryStatus crashRecovery, + DatabaseManagementStatus databaseManagement, + SecureConnectionDetails secureConnections, + EncryptDataDetails encryptData, + DbSystem.DatabaseMode databaseMode, + DbSystem.AccessMode accessMode, + java.util.List customerContacts, + CreateReadEndpointDetails readEndpoint, + CreateTelemetryConfigurationDetails telemetryConfiguration) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.rest = rest; + this.databaseConsole = databaseConsole; + this.isHighlyAvailable = isHighlyAvailable; + this.availabilityDomain = availabilityDomain; + this.faultDomain = faultDomain; + this.configurationId = configurationId; + this.shapeName = shapeName; + this.mysqlVersion = mysqlVersion; + this.subnetId = subnetId; + this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; + this.adminUsername = adminUsername; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.dataStorage = dataStorage; + this.hostnameLabel = hostnameLabel; + this.ipAddress = ipAddress; + this.port = port; + this.portX = portX; + this.backupPolicy = backupPolicy; + this.source = source; + this.maintenance = maintenance; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.deletionPolicy = deletionPolicy; + this.crashRecovery = crashRecovery; + this.databaseManagement = databaseManagement; + this.secureConnections = secureConnections; + this.encryptData = encryptData; + this.databaseMode = databaseMode; + this.accessMode = accessMode; + this.customerContacts = customerContacts; + this.readEndpoint = readEndpoint; + this.telemetryConfiguration = telemetryConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "description", @@ -78,7 +158,7 @@ public CreateDbSystemDetails( java.util.List nsgIds, java.util.Map> securityAttributes, String adminUsername, - String adminPassword, + char[] adminPassword, Integer dataStorageSizeInGBs, DataStorageDetails dataStorage, String hostnameLabel, @@ -426,7 +506,7 @@ public Builder adminUsername(String adminUsername) { * uppercase character, and 1 special (nonalphanumeric) character. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The password for the administrative user. The password must be between 8 and 32 @@ -436,11 +516,17 @@ public Builder adminUsername(String adminUsername) { * @param adminPassword the value to set * @return this builder */ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } /** * Initial size of the data volume in GBs that will be created and attached. Keep in mind * that this only specifies the size of the database data volume, the log volume for the @@ -1209,7 +1295,7 @@ public String getAdminUsername() { * character, and 1 special (nonalphanumeric) character. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; /** * The password for the administrative user. The password must be between 8 and 32 characters @@ -1217,8 +1303,23 @@ public String getAdminUsername() { * character, and 1 special (nonalphanumeric) character. * * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The password for the administrative user. The password must be between 8 and 32 characters + * long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase + * character, and 1 special (nonalphanumeric) character. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceImportFromUrlDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceImportFromUrlDetails.java index 2a2b4d15ae3..4142119a3cf 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceImportFromUrlDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemSourceImportFromUrlDetails.java @@ -37,7 +37,7 @@ public static class Builder { * PAR. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") - private String sourceUrl; + private char[] sourceUrl; /** * The Pre-Authenticated Request (PAR) of a bucket/prefix or PAR of a @.manifest.json object @@ -51,12 +51,18 @@ public static class Builder { * @param sourceUrl the value to set * @return this builder */ - public Builder sourceUrl(String sourceUrl) { + public Builder sourceUrl(char[] sourceUrl) { this.sourceUrl = sourceUrl; this.__explicitlySet__.add("sourceUrl"); return this; } + public Builder sourceUrl(String sourceUrl) { + this.sourceUrl = sourceUrl != null ? sourceUrl.toCharArray() : null; + this.__explicitlySet__.add("sourceUrl"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -90,6 +96,14 @@ public Builder toBuilder() { @Deprecated public CreateDbSystemSourceImportFromUrlDetails(String sourceUrl) { super(); + this.sourceUrl = sourceUrl != null ? sourceUrl.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateDbSystemSourceImportFromUrlDetails( + @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") char[] sourceUrl) { + super(); this.sourceUrl = sourceUrl; } @@ -102,7 +116,25 @@ public CreateDbSystemSourceImportFromUrlDetails(String sourceUrl) { * with "Permit object reads" access type when using a @.manifest.json object PAR. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") - private final String sourceUrl; + private final char[] sourceUrl; + + /** + * The Pre-Authenticated Request (PAR) of a bucket/prefix or PAR of a @.manifest.json object + * from the Object Storage. Check [Using Pre-Authenticated + * Requests](https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm) + * for information related to PAR creation. Please create PAR with "Permit object + * reads" access type and "Enable Object Listing" permission when using a + * bucket/prefix PAR. Please create PAR with "Permit object reads" access type when + * using a @.manifest.json object PAR. + * + * @return the value + * @deprecated Use getSourceUrl__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSourceUrl() { + return sourceUrl != null ? new String(sourceUrl) : null; + } /** * The Pre-Authenticated Request (PAR) of a bucket/prefix or PAR of a @.manifest.json object @@ -114,7 +146,8 @@ public CreateDbSystemSourceImportFromUrlDetails(String sourceUrl) { * * @return the value */ - public String getSourceUrl() { + @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") + public char[] getSourceUrl__AsCharArray() { return sourceUrl; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java index 2ccc570be01..6442f06cb2b 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateChannelSourceFromMysqlDetails.java @@ -85,7 +85,7 @@ public Builder username(String username) { * character, and 1 special (nonalphanumeric) character. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the replication user. The password must be between 8 and 32 characters @@ -95,11 +95,17 @@ public Builder username(String username) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The SSL mode of the Channel. */ @com.fasterxml.jackson.annotation.JsonProperty("sslMode") private ChannelSourceMysql.SslMode sslMode; @@ -203,6 +209,29 @@ public UpdateChannelSourceFromMysqlDetails( this.hostname = hostname; this.port = port; this.username = username; + this.password = password != null ? password.toCharArray() : null; + this.sslMode = sslMode; + this.sslCaCertificate = sslCaCertificate; + this.anonymousTransactionsHandling = anonymousTransactionsHandling; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateChannelSourceFromMysqlDetails( + @com.fasterxml.jackson.annotation.JsonProperty("hostname") String hostname, + @com.fasterxml.jackson.annotation.JsonProperty("port") Integer port, + @com.fasterxml.jackson.annotation.JsonProperty("username") String username, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + ChannelSourceMysql.SslMode sslMode, + @com.fasterxml.jackson.annotation.JsonProperty("sslCaCertificate") + CaCertificate sslCaCertificate, + @com.fasterxml.jackson.annotation.JsonProperty("anonymousTransactionsHandling") + AnonymousTransactionsHandling anonymousTransactionsHandling) { + super(); + this.hostname = hostname; + this.port = port; + this.username = username; this.password = password; this.sslMode = sslMode; this.sslCaCertificate = sslCaCertificate; @@ -260,7 +289,7 @@ public String getUsername() { * and 1 special (nonalphanumeric) character. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the replication user. The password must be between 8 and 32 characters long, @@ -268,8 +297,23 @@ public String getUsername() { * and 1 special (nonalphanumeric) character. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the replication user. The password must be between 8 and 32 characters long, + * and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, + * and 1 special (nonalphanumeric) character. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java index f234911e161..cf37de4dfd9 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java @@ -23,6 +23,82 @@ public final class UpdateDbSystemDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateDbSystemDetails( + String displayName, + String description, + String subnetId, + java.util.List nsgIds, + java.util.Map> securityAttributes, + DbSystem.DatabaseMode databaseMode, + DbSystem.AccessMode accessMode, + UpdateRestDetails rest, + UpdateDatabaseConsoleDetails databaseConsole, + Boolean isHighlyAvailable, + String availabilityDomain, + String faultDomain, + String shapeName, + String mysqlVersion, + String configurationId, + String adminUsername, + String adminPassword, + Integer dataStorageSizeInGBs, + DataStorageDetails dataStorage, + String hostnameLabel, + String ipAddress, + Integer port, + Integer portX, + UpdateBackupPolicyDetails backupPolicy, + UpdateMaintenanceDetails maintenance, + java.util.Map freeformTags, + java.util.Map> definedTags, + UpdateDeletionPolicyDetails deletionPolicy, + CrashRecoveryStatus crashRecovery, + DatabaseManagementStatus databaseManagement, + SecureConnectionDetails secureConnections, + EncryptDataDetails encryptData, + java.util.List customerContacts, + UpdateReadEndpointDetails readEndpoint, + UpdateTelemetryConfigurationDetails telemetryConfiguration) { + super(); + this.displayName = displayName; + this.description = description; + this.subnetId = subnetId; + this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; + this.databaseMode = databaseMode; + this.accessMode = accessMode; + this.rest = rest; + this.databaseConsole = databaseConsole; + this.isHighlyAvailable = isHighlyAvailable; + this.availabilityDomain = availabilityDomain; + this.faultDomain = faultDomain; + this.shapeName = shapeName; + this.mysqlVersion = mysqlVersion; + this.configurationId = configurationId; + this.adminUsername = adminUsername; + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.dataStorage = dataStorage; + this.hostnameLabel = hostnameLabel; + this.ipAddress = ipAddress; + this.port = port; + this.portX = portX; + this.backupPolicy = backupPolicy; + this.maintenance = maintenance; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.deletionPolicy = deletionPolicy; + this.crashRecovery = crashRecovery; + this.databaseManagement = databaseManagement; + this.secureConnections = secureConnections; + this.encryptData = encryptData; + this.customerContacts = customerContacts; + this.readEndpoint = readEndpoint; + this.telemetryConfiguration = telemetryConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "displayName", "description", @@ -77,7 +153,7 @@ public UpdateDbSystemDetails( String mysqlVersion, String configurationId, String adminUsername, - String adminPassword, + char[] adminPassword, Integer dataStorageSizeInGBs, DataStorageDetails dataStorage, String hostnameLabel, @@ -463,7 +539,7 @@ public Builder adminUsername(String adminUsername) { * uppercase character, and 1 special (nonalphanumeric) character. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** * The password for the administrative user. The password must be between 8 and 32 @@ -473,11 +549,17 @@ public Builder adminUsername(String adminUsername) { * @param adminPassword the value to set * @return this builder */ - public Builder adminPassword(String adminPassword) { + public Builder adminPassword(char[] adminPassword) { this.adminPassword = adminPassword; this.__explicitlySet__.add("adminPassword"); return this; } + + public Builder adminPassword(String adminPassword) { + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.__explicitlySet__.add("adminPassword"); + return this; + } /** * Expands the DB System's storage to the specified value. Only supports values larger than * the current DB System's storage size. @@ -1224,7 +1306,7 @@ public String getAdminUsername() { * character, and 1 special (nonalphanumeric) character. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; /** * The password for the administrative user. The password must be between 8 and 32 characters @@ -1232,8 +1314,23 @@ public String getAdminUsername() { * character, and 1 special (nonalphanumeric) character. * * @return the value + * @deprecated Use getAdminPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAdminPassword() { + return adminPassword != null ? new String(adminPassword) : null; + } + + /** + * The password for the administrative user. The password must be between 8 and 32 characters + * long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase + * character, and 1 special (nonalphanumeric) character. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") + public char[] getAdminPassword__AsCharArray() { return adminPassword; } diff --git a/bmc-mysql/src/main/resources/com/oracle/bmc/mysql/client.properties b/bmc-mysql/src/main/resources/com/oracle/bmc/mysql/client.properties index 9b915cca015..1b2b2edfbf1 100644 --- a/bmc-mysql/src/main/resources/com/oracle/bmc/mysql/client.properties +++ b/bmc-mysql/src/main/resources/com/oracle/bmc/mysql/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") \ No newline at end of file diff --git a/bmc-networkfirewall/src/main/resources/com/oracle/bmc/networkfirewall/client.properties b/bmc-networkfirewall/src/main/resources/com/oracle/bmc/networkfirewall/client.properties index a8d84194156..53846365acc 100644 --- a/bmc-networkfirewall/src/main/resources/com/oracle/bmc/networkfirewall/client.properties +++ b/bmc-networkfirewall/src/main/resources/com/oracle/bmc/networkfirewall/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230501") \ No newline at end of file diff --git a/bmc-networkloadbalancer/src/main/resources/com/oracle/bmc/networkloadbalancer/client.properties b/bmc-networkloadbalancer/src/main/resources/com/oracle/bmc/networkloadbalancer/client.properties index d069cbf80a1..8cadb2b7608 100644 --- a/bmc-networkloadbalancer/src/main/resources/com/oracle/bmc/networkloadbalancer/client.properties +++ b/bmc-networkloadbalancer/src/main/resources/com/oracle/bmc/networkloadbalancer/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200501") \ No newline at end of file diff --git a/bmc-nosql/src/main/resources/com/oracle/bmc/nosql/client.properties b/bmc-nosql/src/main/resources/com/oracle/bmc/nosql/client.properties index 55febe3c966..4665dcfd605 100644 --- a/bmc-nosql/src/main/resources/com/oracle/bmc/nosql/client.properties +++ b/bmc-nosql/src/main/resources/com/oracle/bmc/nosql/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190828") \ No newline at end of file diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/com/oracle/bmc/objectstorage/client.properties b/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/com/oracle/bmc/objectstorage/client.properties index 57fa7f4b072..80d9875bfaf 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/com/oracle/bmc/objectstorage/client.properties +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/com/oracle/bmc/objectstorage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-oce/src/main/resources/com/oracle/bmc/oce/client.properties b/bmc-oce/src/main/resources/com/oracle/bmc/oce/client.properties index 3f438e7eb24..04f00cc7e6e 100644 --- a/bmc-oce/src/main/resources/com/oracle/bmc/oce/client.properties +++ b/bmc-oce/src/main/resources/com/oracle/bmc/oce/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190912") \ No newline at end of file diff --git a/bmc-ocicontrolcenter/src/main/resources/com/oracle/bmc/ocicontrolcenter/client.properties b/bmc-ocicontrolcenter/src/main/resources/com/oracle/bmc/ocicontrolcenter/client.properties index 5d08ea51c2a..a01b565b166 100644 --- a/bmc-ocicontrolcenter/src/main/resources/com/oracle/bmc/ocicontrolcenter/client.properties +++ b/bmc-ocicontrolcenter/src/main/resources/com/oracle/bmc/ocicontrolcenter/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230515") \ No newline at end of file diff --git a/bmc-ocvp/src/main/resources/com/oracle/bmc/ocvp/client.properties b/bmc-ocvp/src/main/resources/com/oracle/bmc/ocvp/client.properties index 810058f01f5..1f1705442f0 100644 --- a/bmc-ocvp/src/main/resources/com/oracle/bmc/ocvp/client.properties +++ b/bmc-ocvp/src/main/resources/com/oracle/bmc/ocvp/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") \ No newline at end of file diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAndroidChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAndroidChannelResult.java index 007fadc2fc3..66b1ee9255f 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAndroidChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAndroidChannelResult.java @@ -123,7 +123,7 @@ public Builder definedTags( * returned this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only @@ -132,11 +132,17 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder */ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } /** The maximum time until the token expires (in minutes). */ @com.fasterxml.jackson.annotation.JsonProperty("maxTokenExpirationTimeInMinutes") private Long maxTokenExpirationTimeInMinutes; @@ -294,6 +300,48 @@ public CreateAndroidChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; + this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAndroidChannelResult( + @com.fasterxml.jackson.annotation.JsonProperty("id") String id, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("category") ChannelCategory category, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState, + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated, + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") char[] secretKey, + @com.fasterxml.jackson.annotation.JsonProperty("maxTokenExpirationTimeInMinutes") + Long maxTokenExpirationTimeInMinutes, + @com.fasterxml.jackson.annotation.JsonProperty("isClientAuthenticationEnabled") + Boolean isClientAuthenticationEnabled, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; @@ -305,15 +353,29 @@ public CreateAndroidChannelResult( * this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only returned * this once. If it is lost the keys will need to be rotated to generate a new key. * * @return the value + * @deprecated Use getSecretKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } + + /** + * The secret key used to verify the authenticity of received messages. This is only returned + * this once. If it is lost the keys will need to be rotated to generate a new key. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAppEventChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAppEventChannelResult.java index 8267fa9077f..6cbccd3b6aa 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAppEventChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAppEventChannelResult.java @@ -123,7 +123,7 @@ public Builder definedTags( * returned this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only @@ -132,11 +132,17 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder */ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } /** The URL for sending errors and responses to. */ @com.fasterxml.jackson.annotation.JsonProperty("outboundUrl") private String outboundUrl; @@ -298,6 +304,47 @@ public CreateAppEventChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.outboundUrl = outboundUrl; + this.eventSinkBotIds = eventSinkBotIds; + this.webhookUrl = webhookUrl; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateAppEventChannelResult( + @com.fasterxml.jackson.annotation.JsonProperty("id") String id, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("category") ChannelCategory category, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState, + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated, + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") char[] secretKey, + @com.fasterxml.jackson.annotation.JsonProperty("outboundUrl") String outboundUrl, + @com.fasterxml.jackson.annotation.JsonProperty("eventSinkBotIds") + java.util.List eventSinkBotIds, + @com.fasterxml.jackson.annotation.JsonProperty("webhookUrl") String webhookUrl) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.outboundUrl = outboundUrl; this.eventSinkBotIds = eventSinkBotIds; @@ -309,15 +356,29 @@ public CreateAppEventChannelResult( * this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only returned * this once. If it is lost the keys will need to be rotated to generate a new key. * * @return the value + * @deprecated Use getSecretKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } + + /** + * The secret key used to verify the authenticity of received messages. This is only returned + * this once. If it is lost the keys will need to be rotated to generate a new key. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateApplicationChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateApplicationChannelResult.java index 5a41e624620..7c6bde4bc17 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateApplicationChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateApplicationChannelResult.java @@ -123,7 +123,7 @@ public Builder definedTags( * returned this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only @@ -132,11 +132,17 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder */ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } /** The URL to send response and error messages to. */ @com.fasterxml.jackson.annotation.JsonProperty("outboundUrl") private String outboundUrl; @@ -298,6 +304,47 @@ public CreateApplicationChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.outboundUrl = outboundUrl; + this.isAuthenticatedUserId = isAuthenticatedUserId; + this.webhookUrl = webhookUrl; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateApplicationChannelResult( + @com.fasterxml.jackson.annotation.JsonProperty("id") String id, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("category") ChannelCategory category, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState, + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated, + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") char[] secretKey, + @com.fasterxml.jackson.annotation.JsonProperty("outboundUrl") String outboundUrl, + @com.fasterxml.jackson.annotation.JsonProperty("isAuthenticatedUserId") + Boolean isAuthenticatedUserId, + @com.fasterxml.jackson.annotation.JsonProperty("webhookUrl") String webhookUrl) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.outboundUrl = outboundUrl; this.isAuthenticatedUserId = isAuthenticatedUserId; @@ -309,15 +356,29 @@ public CreateApplicationChannelResult( * this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only returned * this once. If it is lost the keys will need to be rotated to generate a new key. * * @return the value + * @deprecated Use getSecretKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } + + /** + * The secret key used to verify the authenticity of received messages. This is only returned + * this once. If it is lost the keys will need to be rotated to generate a new key. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAuthenticationProviderDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAuthenticationProviderDetails.java index f9087df6f73..30f104a8975 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAuthenticationProviderDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateAuthenticationProviderDetails.java @@ -23,6 +23,44 @@ public final class CreateAuthenticationProviderDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateAuthenticationProviderDetails( + AuthenticationGrantType grantType, + AuthenticationIdentityProvider identityProvider, + String name, + String tokenEndpointUrl, + String authorizationEndpointUrl, + String shortAuthorizationCodeRequestUrl, + String revokeTokenEndpointUrl, + String clientId, + String clientSecret, + String scopes, + String subjectClaim, + Integer refreshTokenRetentionPeriodInDays, + String redirectUrl, + Boolean isVisible, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.grantType = grantType; + this.identityProvider = identityProvider; + this.name = name; + this.tokenEndpointUrl = tokenEndpointUrl; + this.authorizationEndpointUrl = authorizationEndpointUrl; + this.shortAuthorizationCodeRequestUrl = shortAuthorizationCodeRequestUrl; + this.revokeTokenEndpointUrl = revokeTokenEndpointUrl; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.scopes = scopes; + this.subjectClaim = subjectClaim; + this.refreshTokenRetentionPeriodInDays = refreshTokenRetentionPeriodInDays; + this.redirectUrl = redirectUrl; + this.isVisible = isVisible; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "grantType", "identityProvider", @@ -50,7 +88,7 @@ public CreateAuthenticationProviderDetails( String shortAuthorizationCodeRequestUrl, String revokeTokenEndpointUrl, String clientId, - String clientSecret, + char[] clientSecret, String scopes, String subjectClaim, Integer refreshTokenRetentionPeriodInDays, @@ -229,7 +267,7 @@ public Builder clientId(String clientId) { * secret. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * The client secret for the IDP application (OAuth Client) that was registered as described @@ -239,11 +277,17 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder */ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } /** * A space-separated list of the scopes that must be included when Digital Assistant * requests an access token from the provider. Include all the scopes that are required to @@ -591,15 +635,29 @@ public String getClientId() { * Identity Provider Registration. With Microsoft identity platform, use the application secret. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; /** * The client secret for the IDP application (OAuth Client) that was registered as described in * Identity Provider Registration. With Microsoft identity platform, use the application secret. * * @return the value + * @deprecated Use getClientSecret__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } + + /** + * The client secret for the IDP application (OAuth Client) that was registered as described in + * Identity Provider Registration. With Microsoft identity platform, use the application secret. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateCortanaChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateCortanaChannelDetails.java index 0af19bf36d8..0bb8315176a 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateCortanaChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateCortanaChannelDetails.java @@ -92,7 +92,7 @@ public Builder msaAppId(String msaAppId) { } /** The client secret that you obtained from your bot registration. */ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private String msaAppPassword; + private char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. @@ -100,11 +100,17 @@ public Builder msaAppId(String msaAppId) { * @param msaAppPassword the value to set * @return this builder */ - public Builder msaAppPassword(String msaAppPassword) { + public Builder msaAppPassword(char[] msaAppPassword) { this.msaAppPassword = msaAppPassword; this.__explicitlySet__.add("msaAppPassword"); return this; } + + public Builder msaAppPassword(String msaAppPassword) { + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.__explicitlySet__.add("msaAppPassword"); + return this; + } /** The ID of the Skill or Digital Assistant that the Channel is routed to. */ @com.fasterxml.jackson.annotation.JsonProperty("botId") private String botId; @@ -193,6 +199,26 @@ public CreateCortanaChannelDetails( String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.msaAppId = msaAppId; + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateCortanaChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("msaAppId") String msaAppId, + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") char[] msaAppPassword, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.msaAppId = msaAppId; this.msaAppPassword = msaAppPassword; this.botId = botId; } @@ -212,14 +238,27 @@ public String getMsaAppId() { /** The client secret that you obtained from your bot registration. */ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private final String msaAppPassword; + private final char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. * * @return the value + * @deprecated Use getMsaAppPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getMsaAppPassword() { + return msaAppPassword != null ? new String(msaAppPassword) : null; + } + + /** + * The client secret that you obtained from your bot registration. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") + public char[] getMsaAppPassword__AsCharArray() { return msaAppPassword; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateFacebookChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateFacebookChannelDetails.java index 2ba63989bfa..cf4f6b52a1c 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateFacebookChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateFacebookChannelDetails.java @@ -75,7 +75,7 @@ public Builder definedTags( } /** The app secret for your Facebook app. */ @com.fasterxml.jackson.annotation.JsonProperty("appSecret") - private String appSecret; + private char[] appSecret; /** * The app secret for your Facebook app. @@ -83,14 +83,20 @@ public Builder definedTags( * @param appSecret the value to set * @return this builder */ - public Builder appSecret(String appSecret) { + public Builder appSecret(char[] appSecret) { this.appSecret = appSecret; this.__explicitlySet__.add("appSecret"); return this; } + + public Builder appSecret(String appSecret) { + this.appSecret = appSecret != null ? appSecret.toCharArray() : null; + this.__explicitlySet__.add("appSecret"); + return this; + } /** The page access token that you generated for your Facebook page. */ @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") - private String pageAccessToken; + private char[] pageAccessToken; /** * The page access token that you generated for your Facebook page. @@ -98,11 +104,17 @@ public Builder appSecret(String appSecret) { * @param pageAccessToken the value to set * @return this builder */ - public Builder pageAccessToken(String pageAccessToken) { + public Builder pageAccessToken(char[] pageAccessToken) { this.pageAccessToken = pageAccessToken; this.__explicitlySet__.add("pageAccessToken"); return this; } + + public Builder pageAccessToken(String pageAccessToken) { + this.pageAccessToken = pageAccessToken != null ? pageAccessToken.toCharArray() : null; + this.__explicitlySet__.add("pageAccessToken"); + return this; + } /** The ID of the Skill or Digital Assistant that the Channel is routed to. */ @com.fasterxml.jackson.annotation.JsonProperty("botId") private String botId; @@ -190,6 +202,27 @@ public CreateFacebookChannelDetails( String pageAccessToken, String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.appSecret = appSecret != null ? appSecret.toCharArray() : null; + this.pageAccessToken = pageAccessToken != null ? pageAccessToken.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateFacebookChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("appSecret") char[] appSecret, + @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") + char[] pageAccessToken, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.appSecret = appSecret; this.pageAccessToken = pageAccessToken; this.botId = botId; @@ -197,27 +230,53 @@ public CreateFacebookChannelDetails( /** The app secret for your Facebook app. */ @com.fasterxml.jackson.annotation.JsonProperty("appSecret") - private final String appSecret; + private final char[] appSecret; /** * The app secret for your Facebook app. * * @return the value + * @deprecated Use getAppSecret__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAppSecret() { + return appSecret != null ? new String(appSecret) : null; + } + + /** + * The app secret for your Facebook app. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("appSecret") + public char[] getAppSecret__AsCharArray() { return appSecret; } /** The page access token that you generated for your Facebook page. */ @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") - private final String pageAccessToken; + private final char[] pageAccessToken; /** * The page access token that you generated for your Facebook page. * * @return the value + * @deprecated Use getPageAccessToken__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPageAccessToken() { + return pageAccessToken != null ? new String(pageAccessToken) : null; + } + + /** + * The page access token that you generated for your Facebook page. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") + public char[] getPageAccessToken__AsCharArray() { return pageAccessToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateIosChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateIosChannelResult.java index 04a02536315..ea6d2e04172 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateIosChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateIosChannelResult.java @@ -123,7 +123,7 @@ public Builder definedTags( * returned this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only @@ -132,11 +132,17 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder */ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } /** The maximum time until the token expires (in minutes). */ @com.fasterxml.jackson.annotation.JsonProperty("maxTokenExpirationTimeInMinutes") private Long maxTokenExpirationTimeInMinutes; @@ -294,6 +300,48 @@ public CreateIosChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; + this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateIosChannelResult( + @com.fasterxml.jackson.annotation.JsonProperty("id") String id, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("category") ChannelCategory category, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState, + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated, + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") char[] secretKey, + @com.fasterxml.jackson.annotation.JsonProperty("maxTokenExpirationTimeInMinutes") + Long maxTokenExpirationTimeInMinutes, + @com.fasterxml.jackson.annotation.JsonProperty("isClientAuthenticationEnabled") + Boolean isClientAuthenticationEnabled, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; @@ -305,15 +353,29 @@ public CreateIosChannelResult( * this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only returned * this once. If it is lost the keys will need to be rotated to generate a new key. * * @return the value + * @deprecated Use getSecretKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } + + /** + * The secret key used to verify the authenticity of received messages. This is only returned + * this once. If it is lost the keys will need to be rotated to generate a new key. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateMSTeamsChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateMSTeamsChannelDetails.java index 543e07fd1c2..a0513082f6b 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateMSTeamsChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateMSTeamsChannelDetails.java @@ -92,7 +92,7 @@ public Builder msaAppId(String msaAppId) { } /** The client secret that you obtained from your bot registration. */ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private String msaAppPassword; + private char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. @@ -100,11 +100,17 @@ public Builder msaAppId(String msaAppId) { * @param msaAppPassword the value to set * @return this builder */ - public Builder msaAppPassword(String msaAppPassword) { + public Builder msaAppPassword(char[] msaAppPassword) { this.msaAppPassword = msaAppPassword; this.__explicitlySet__.add("msaAppPassword"); return this; } + + public Builder msaAppPassword(String msaAppPassword) { + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.__explicitlySet__.add("msaAppPassword"); + return this; + } /** The ID of the Skill or Digital Assistant that the Channel is routed to. */ @com.fasterxml.jackson.annotation.JsonProperty("botId") private String botId; @@ -193,6 +199,26 @@ public CreateMSTeamsChannelDetails( String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.msaAppId = msaAppId; + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateMSTeamsChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("msaAppId") String msaAppId, + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") char[] msaAppPassword, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.msaAppId = msaAppId; this.msaAppPassword = msaAppPassword; this.botId = botId; } @@ -212,14 +238,27 @@ public String getMsaAppId() { /** The client secret that you obtained from your bot registration. */ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private final String msaAppPassword; + private final char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. * * @return the value + * @deprecated Use getMsaAppPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getMsaAppPassword() { + return msaAppPassword != null ? new String(msaAppPassword) : null; + } + + /** + * The client secret that you obtained from your bot registration. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") + public char[] getMsaAppPassword__AsCharArray() { return msaAppPassword; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOSSChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOSSChannelDetails.java index e99b8d54073..3261ea4227a 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOSSChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOSSChannelDetails.java @@ -218,7 +218,7 @@ public Builder streamPoolId(String streamPoolId) { } /** The authentication token to use when connecting to the Oracle Streaming Service. */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The authentication token to use when connecting to the Oracle Streaming Service. @@ -226,12 +226,18 @@ public Builder streamPoolId(String streamPoolId) { * @param authToken the value to set * @return this builder */ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -347,6 +353,45 @@ public CreateOSSChannelDetails( this.tenancyName = tenancyName; this.userName = userName; this.streamPoolId = streamPoolId; + this.authToken = authToken != null ? authToken.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOSSChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("eventSinkBotIds") + java.util.List eventSinkBotIds, + @com.fasterxml.jackson.annotation.JsonProperty("inboundMessageTopic") + String inboundMessageTopic, + @com.fasterxml.jackson.annotation.JsonProperty("outboundMessageTopic") + String outboundMessageTopic, + @com.fasterxml.jackson.annotation.JsonProperty("bootstrapServers") + String bootstrapServers, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + String securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("saslMechanism") String saslMechanism, + @com.fasterxml.jackson.annotation.JsonProperty("tenancyName") String tenancyName, + @com.fasterxml.jackson.annotation.JsonProperty("userName") String userName, + @com.fasterxml.jackson.annotation.JsonProperty("streamPoolId") String streamPoolId, + @com.fasterxml.jackson.annotation.JsonProperty("authToken") char[] authToken) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.eventSinkBotIds = eventSinkBotIds; + this.inboundMessageTopic = inboundMessageTopic; + this.outboundMessageTopic = outboundMessageTopic; + this.bootstrapServers = bootstrapServers; + this.securityProtocol = securityProtocol; + this.saslMechanism = saslMechanism; + this.tenancyName = tenancyName; + this.userName = userName; + this.streamPoolId = streamPoolId; this.authToken = authToken; } @@ -477,14 +522,27 @@ public String getStreamPoolId() { /** The authentication token to use when connecting to the Oracle Streaming Service. */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; /** * The authentication token to use when connecting to the Oracle Streaming Service. * * @return the value + * @deprecated Use getAuthToken__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } + + /** + * The authentication token to use when connecting to the Oracle Streaming Service. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOsvcChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOsvcChannelDetails.java index 8c445a370c2..e7dccd75dc2 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOsvcChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateOsvcChannelDetails.java @@ -138,7 +138,7 @@ public Builder userName(String userName) { } /** The password for the digital-assistant agent. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the digital-assistant agent. @@ -146,11 +146,17 @@ public Builder userName(String userName) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The total session count. */ @com.fasterxml.jackson.annotation.JsonProperty("totalSessionCount") private Integer totalSessionCount; @@ -311,6 +317,39 @@ public CreateOsvcChannelDetails( this.host = host; this.port = port; this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + this.totalSessionCount = totalSessionCount; + this.channelService = channelService; + this.authenticationProviderName = authenticationProviderName; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateOsvcChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") String port, + @com.fasterxml.jackson.annotation.JsonProperty("userName") String userName, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("totalSessionCount") + Integer totalSessionCount, + @com.fasterxml.jackson.annotation.JsonProperty("channelService") + OsvcServiceType channelService, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationProviderName") + String authenticationProviderName, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.host = host; + this.port = port; + this.userName = userName; this.password = password; this.totalSessionCount = totalSessionCount; this.channelService = channelService; @@ -377,14 +416,27 @@ public String getUserName() { /** The password for the digital-assistant agent. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the digital-assistant agent. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the digital-assistant agent. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateServiceCloudChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateServiceCloudChannelDetails.java index f022d71a798..13f2ba54b98 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateServiceCloudChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateServiceCloudChannelDetails.java @@ -171,7 +171,7 @@ public Builder userName(String userName) { * permissions. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the Oracle B2C Service staff member who has the necessary profile @@ -180,11 +180,17 @@ public Builder userName(String userName) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The type of Service Cloud client. */ @com.fasterxml.jackson.annotation.JsonProperty("clientType") private ServiceCloudClientType clientType; @@ -285,6 +291,31 @@ public CreateServiceCloudChannelDetails( this.domainName = domainName; this.hostNamePrefix = hostNamePrefix; this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + this.clientType = clientType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateServiceCloudChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("domainName") String domainName, + @com.fasterxml.jackson.annotation.JsonProperty("hostNamePrefix") String hostNamePrefix, + @com.fasterxml.jackson.annotation.JsonProperty("userName") String userName, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("clientType") + ServiceCloudClientType clientType) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.domainName = domainName; + this.hostNamePrefix = hostNamePrefix; + this.userName = userName; this.password = password; this.clientType = clientType; } @@ -381,15 +412,29 @@ public String getUserName() { * permissions. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the Oracle B2C Service staff member who has the necessary profile * permissions. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the Oracle B2C Service staff member who has the necessary profile + * permissions. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateSlackChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateSlackChannelDetails.java index f615e89800a..17928939205 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateSlackChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateSlackChannelDetails.java @@ -120,7 +120,7 @@ public Builder authErrorUrl(String authErrorUrl) { } /** The Signing Secret for the Slack App. */ @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") - private String signingSecret; + private char[] signingSecret; /** * The Signing Secret for the Slack App. @@ -128,14 +128,20 @@ public Builder authErrorUrl(String authErrorUrl) { * @param signingSecret the value to set * @return this builder */ - public Builder signingSecret(String signingSecret) { + public Builder signingSecret(char[] signingSecret) { this.signingSecret = signingSecret; this.__explicitlySet__.add("signingSecret"); return this; } + + public Builder signingSecret(String signingSecret) { + this.signingSecret = signingSecret != null ? signingSecret.toCharArray() : null; + this.__explicitlySet__.add("signingSecret"); + return this; + } /** The Client Secret for the Slack App. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * The Client Secret for the Slack App. @@ -143,11 +149,17 @@ public Builder signingSecret(String signingSecret) { * @param clientSecret the value to set * @return this builder */ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } /** The ID of the Skill or Digital Assistant that the Channel is routed to. */ @com.fasterxml.jackson.annotation.JsonProperty("botId") private String botId; @@ -253,6 +265,32 @@ public CreateSlackChannelDetails( this.clientId = clientId; this.authSuccessUrl = authSuccessUrl; this.authErrorUrl = authErrorUrl; + this.signingSecret = signingSecret != null ? signingSecret.toCharArray() : null; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateSlackChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("clientId") String clientId, + @com.fasterxml.jackson.annotation.JsonProperty("authSuccessUrl") String authSuccessUrl, + @com.fasterxml.jackson.annotation.JsonProperty("authErrorUrl") String authErrorUrl, + @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") char[] signingSecret, + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") char[] clientSecret, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.clientId = clientId; + this.authSuccessUrl = authSuccessUrl; + this.authErrorUrl = authErrorUrl; this.signingSecret = signingSecret; this.clientSecret = clientSecret; this.botId = botId; @@ -299,27 +337,53 @@ public String getAuthErrorUrl() { /** The Signing Secret for the Slack App. */ @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") - private final String signingSecret; + private final char[] signingSecret; /** * The Signing Secret for the Slack App. * * @return the value + * @deprecated Use getSigningSecret__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSigningSecret() { + return signingSecret != null ? new String(signingSecret) : null; + } + + /** + * The Signing Secret for the Slack App. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") + public char[] getSigningSecret__AsCharArray() { return signingSecret; } /** The Client Secret for the Slack App. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; /** * The Client Secret for the Slack App. * * @return the value + * @deprecated Use getClientSecret__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } + + /** + * The Client Secret for the Slack App. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTestChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTestChannelResult.java index a3aeff548b5..05b6160d8f9 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTestChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTestChannelResult.java @@ -123,7 +123,7 @@ public Builder definedTags( * returned this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only @@ -132,11 +132,17 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder */ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } /** * The URL to use to send messages to this channel. This will be generally be used to * configure a webhook in a 3rd party messaging system to send messages to this channel. @@ -258,6 +264,42 @@ public CreateTestChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.webhookUrl = webhookUrl; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateTestChannelResult( + @com.fasterxml.jackson.annotation.JsonProperty("id") String id, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("category") ChannelCategory category, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState, + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated, + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") char[] secretKey, + @com.fasterxml.jackson.annotation.JsonProperty("webhookUrl") String webhookUrl) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.webhookUrl = webhookUrl; } @@ -267,15 +309,29 @@ public CreateTestChannelResult( * this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only returned * this once. If it is lost the keys will need to be rotated to generate a new key. * * @return the value + * @deprecated Use getSecretKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } + + /** + * The secret key used to verify the authenticity of received messages. This is only returned + * this once. If it is lost the keys will need to be rotated to generate a new key. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTranslatorDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTranslatorDetails.java index c18eb794a60..a95290e4767 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTranslatorDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTranslatorDetails.java @@ -23,6 +23,24 @@ public final class CreateTranslatorDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateTranslatorDetails( + TranslationService type, + String baseUrl, + String authToken, + java.util.Map properties, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.type = type; + this.baseUrl = baseUrl; + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.properties = properties; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "type", "baseUrl", @@ -34,7 +52,7 @@ public final class CreateTranslatorDetails public CreateTranslatorDetails( TranslationService type, String baseUrl, - String authToken, + char[] authToken, java.util.Map properties, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -81,7 +99,7 @@ public Builder baseUrl(String baseUrl) { } /** The authentication token to use when invoking the Translation Service */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The authentication token to use when invoking the Translation Service @@ -89,11 +107,17 @@ public Builder baseUrl(String baseUrl) { * @param authToken the value to set * @return this builder */ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } /** * Properties used when invoking the translation service. Each property is a simple * key-value pair. @@ -232,14 +256,27 @@ public String getBaseUrl() { /** The authentication token to use when invoking the Translation Service */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; /** * The authentication token to use when invoking the Translation Service * * @return the value + * @deprecated Use getAuthToken__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } + + /** + * The authentication token to use when invoking the Translation Service + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTwilioChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTwilioChannelDetails.java index 91648e7c18a..4808d781e6d 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTwilioChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateTwilioChannelDetails.java @@ -105,7 +105,7 @@ public Builder phoneNumber(String phoneNumber) { } /** The Auth Token for the Twilio number. */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The Auth Token for the Twilio number. @@ -113,11 +113,17 @@ public Builder phoneNumber(String phoneNumber) { * @param authToken the value to set * @return this builder */ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } /** Whether MMS is enabled for this channel or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isMmsEnabled") private Boolean isMmsEnabled; @@ -252,6 +258,33 @@ public CreateTwilioChannelDetails( super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.accountSID = accountSID; this.phoneNumber = phoneNumber; + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.isMmsEnabled = isMmsEnabled; + this.originalConnectorsUrl = originalConnectorsUrl; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateTwilioChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("accountSID") String accountSID, + @com.fasterxml.jackson.annotation.JsonProperty("phoneNumber") String phoneNumber, + @com.fasterxml.jackson.annotation.JsonProperty("authToken") char[] authToken, + @com.fasterxml.jackson.annotation.JsonProperty("isMmsEnabled") Boolean isMmsEnabled, + @com.fasterxml.jackson.annotation.JsonProperty("originalConnectorsUrl") + String originalConnectorsUrl, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.accountSID = accountSID; + this.phoneNumber = phoneNumber; this.authToken = authToken; this.isMmsEnabled = isMmsEnabled; this.originalConnectorsUrl = originalConnectorsUrl; @@ -286,14 +319,27 @@ public String getPhoneNumber() { /** The Auth Token for the Twilio number. */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; /** * The Auth Token for the Twilio number. * * @return the value + * @deprecated Use getAuthToken__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } + + /** + * The Auth Token for the Twilio number. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebChannelResult.java index d024fcb91b9..1e1bda985ad 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebChannelResult.java @@ -123,7 +123,7 @@ public Builder definedTags( * returned this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only @@ -132,11 +132,17 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder */ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } /** The maximum time until the token expires (in minutes). */ @com.fasterxml.jackson.annotation.JsonProperty("maxTokenExpirationTimeInMinutes") private Long maxTokenExpirationTimeInMinutes; @@ -330,6 +336,50 @@ public CreateWebChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; + this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; + this.allowedDomains = allowedDomains; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateWebChannelResult( + @com.fasterxml.jackson.annotation.JsonProperty("id") String id, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("category") ChannelCategory category, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState, + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated, + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") char[] secretKey, + @com.fasterxml.jackson.annotation.JsonProperty("maxTokenExpirationTimeInMinutes") + Long maxTokenExpirationTimeInMinutes, + @com.fasterxml.jackson.annotation.JsonProperty("isClientAuthenticationEnabled") + Boolean isClientAuthenticationEnabled, + @com.fasterxml.jackson.annotation.JsonProperty("allowedDomains") String allowedDomains, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.maxTokenExpirationTimeInMinutes = maxTokenExpirationTimeInMinutes; this.isClientAuthenticationEnabled = isClientAuthenticationEnabled; @@ -342,15 +392,29 @@ public CreateWebChannelResult( * this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only returned * this once. If it is lost the keys will need to be rotated to generate a new key. * * @return the value + * @deprecated Use getSecretKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } + + /** + * The secret key used to verify the authenticity of received messages. This is only returned + * this once. If it is lost the keys will need to be rotated to generate a new key. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebhookChannelResult.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebhookChannelResult.java index 5aec080800b..2b7b50b9695 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebhookChannelResult.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/CreateWebhookChannelResult.java @@ -123,7 +123,7 @@ public Builder definedTags( * returned this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private String secretKey; + private char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only @@ -132,11 +132,17 @@ public Builder definedTags( * @param secretKey the value to set * @return this builder */ - public Builder secretKey(String secretKey) { + public Builder secretKey(char[] secretKey) { this.secretKey = secretKey; this.__explicitlySet__.add("secretKey"); return this; } + + public Builder secretKey(String secretKey) { + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.__explicitlySet__.add("secretKey"); + return this; + } /** The URL to send responses to. */ @com.fasterxml.jackson.annotation.JsonProperty("outboundUrl") private String outboundUrl; @@ -318,6 +324,49 @@ public CreateWebhookChannelResult( timeUpdated, freeformTags, definedTags); + this.secretKey = secretKey != null ? secretKey.toCharArray() : null; + this.outboundUrl = outboundUrl; + this.payloadVersion = payloadVersion; + this.botId = botId; + this.webhookUrl = webhookUrl; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public CreateWebhookChannelResult( + @com.fasterxml.jackson.annotation.JsonProperty("id") String id, + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("category") ChannelCategory category, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState, + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated, + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") char[] secretKey, + @com.fasterxml.jackson.annotation.JsonProperty("outboundUrl") String outboundUrl, + @com.fasterxml.jackson.annotation.JsonProperty("payloadVersion") + WebhookPayloadVersion payloadVersion, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId, + @com.fasterxml.jackson.annotation.JsonProperty("webhookUrl") String webhookUrl) { + super( + id, + name, + description, + category, + sessionExpiryDurationInMilliseconds, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags); this.secretKey = secretKey; this.outboundUrl = outboundUrl; this.payloadVersion = payloadVersion; @@ -330,15 +379,29 @@ public CreateWebhookChannelResult( * this once. If it is lost the keys will need to be rotated to generate a new key. */ @com.fasterxml.jackson.annotation.JsonProperty("secretKey") - private final String secretKey; + private final char[] secretKey; /** * The secret key used to verify the authenticity of received messages. This is only returned * this once. If it is lost the keys will need to be rotated to generate a new key. * * @return the value + * @deprecated Use getSecretKey__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSecretKey() { + return secretKey != null ? new String(secretKey) : null; + } + + /** + * The secret key used to verify the authenticity of received messages. This is only returned + * this once. If it is lost the keys will need to be rotated to generate a new key. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretKey") + public char[] getSecretKey__AsCharArray() { return secretKey; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateAuthenticationProviderDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateAuthenticationProviderDetails.java index 23d07468e0d..aedd7304c41 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateAuthenticationProviderDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateAuthenticationProviderDetails.java @@ -23,6 +23,36 @@ public final class UpdateAuthenticationProviderDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateAuthenticationProviderDetails( + String tokenEndpointUrl, + String authorizationEndpointUrl, + String shortAuthorizationCodeRequestUrl, + String revokeTokenEndpointUrl, + String clientId, + String clientSecret, + String scopes, + String subjectClaim, + Integer refreshTokenRetentionPeriodInDays, + String redirectUrl, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.tokenEndpointUrl = tokenEndpointUrl; + this.authorizationEndpointUrl = authorizationEndpointUrl; + this.shortAuthorizationCodeRequestUrl = shortAuthorizationCodeRequestUrl; + this.revokeTokenEndpointUrl = revokeTokenEndpointUrl; + this.clientId = clientId; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.scopes = scopes; + this.subjectClaim = subjectClaim; + this.refreshTokenRetentionPeriodInDays = refreshTokenRetentionPeriodInDays; + this.redirectUrl = redirectUrl; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "tokenEndpointUrl", "authorizationEndpointUrl", @@ -43,7 +73,7 @@ public UpdateAuthenticationProviderDetails( String shortAuthorizationCodeRequestUrl, String revokeTokenEndpointUrl, String clientId, - String clientSecret, + char[] clientSecret, String scopes, String subjectClaim, Integer refreshTokenRetentionPeriodInDays, @@ -172,7 +202,7 @@ public Builder clientId(String clientId) { * secret. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * The client secret for the IDP application (OAuth Client) that was registered as described @@ -182,11 +212,17 @@ public Builder clientId(String clientId) { * @param clientSecret the value to set * @return this builder */ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } /** * A space-separated list of the scopes that must be included when Digital Assistant * requests an access token from the provider. Include all the scopes that are required to @@ -464,15 +500,29 @@ public String getClientId() { * Identity Provider Registration. With Microsoft identity platform, use the application secret. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; /** * The client secret for the IDP application (OAuth Client) that was registered as described in * Identity Provider Registration. With Microsoft identity platform, use the application secret. * * @return the value + * @deprecated Use getClientSecret__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } + + /** + * The client secret for the IDP application (OAuth Client) that was registered as described in + * Identity Provider Registration. With Microsoft identity platform, use the application secret. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateCortanaChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateCortanaChannelDetails.java index 6439068df68..3cecd2a4dfe 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateCortanaChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateCortanaChannelDetails.java @@ -92,7 +92,7 @@ public Builder msaAppId(String msaAppId) { } /** The client secret that you obtained from your bot registration. */ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private String msaAppPassword; + private char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. @@ -100,11 +100,17 @@ public Builder msaAppId(String msaAppId) { * @param msaAppPassword the value to set * @return this builder */ - public Builder msaAppPassword(String msaAppPassword) { + public Builder msaAppPassword(char[] msaAppPassword) { this.msaAppPassword = msaAppPassword; this.__explicitlySet__.add("msaAppPassword"); return this; } + + public Builder msaAppPassword(String msaAppPassword) { + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.__explicitlySet__.add("msaAppPassword"); + return this; + } /** The ID of the Skill or Digital Assistant that the Channel is routed to. */ @com.fasterxml.jackson.annotation.JsonProperty("botId") private String botId; @@ -193,6 +199,26 @@ public UpdateCortanaChannelDetails( String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.msaAppId = msaAppId; + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateCortanaChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("msaAppId") String msaAppId, + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") char[] msaAppPassword, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.msaAppId = msaAppId; this.msaAppPassword = msaAppPassword; this.botId = botId; } @@ -212,14 +238,27 @@ public String getMsaAppId() { /** The client secret that you obtained from your bot registration. */ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private final String msaAppPassword; + private final char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. * * @return the value + * @deprecated Use getMsaAppPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getMsaAppPassword() { + return msaAppPassword != null ? new String(msaAppPassword) : null; + } + + /** + * The client secret that you obtained from your bot registration. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") + public char[] getMsaAppPassword__AsCharArray() { return msaAppPassword; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateFacebookChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateFacebookChannelDetails.java index 04021ae1949..29509b7120a 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateFacebookChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateFacebookChannelDetails.java @@ -75,7 +75,7 @@ public Builder definedTags( } /** The app secret for your Facebook app. */ @com.fasterxml.jackson.annotation.JsonProperty("appSecret") - private String appSecret; + private char[] appSecret; /** * The app secret for your Facebook app. @@ -83,14 +83,20 @@ public Builder definedTags( * @param appSecret the value to set * @return this builder */ - public Builder appSecret(String appSecret) { + public Builder appSecret(char[] appSecret) { this.appSecret = appSecret; this.__explicitlySet__.add("appSecret"); return this; } + + public Builder appSecret(String appSecret) { + this.appSecret = appSecret != null ? appSecret.toCharArray() : null; + this.__explicitlySet__.add("appSecret"); + return this; + } /** The page access token that you generated for your Facebook page. */ @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") - private String pageAccessToken; + private char[] pageAccessToken; /** * The page access token that you generated for your Facebook page. @@ -98,11 +104,17 @@ public Builder appSecret(String appSecret) { * @param pageAccessToken the value to set * @return this builder */ - public Builder pageAccessToken(String pageAccessToken) { + public Builder pageAccessToken(char[] pageAccessToken) { this.pageAccessToken = pageAccessToken; this.__explicitlySet__.add("pageAccessToken"); return this; } + + public Builder pageAccessToken(String pageAccessToken) { + this.pageAccessToken = pageAccessToken != null ? pageAccessToken.toCharArray() : null; + this.__explicitlySet__.add("pageAccessToken"); + return this; + } /** The ID of the Skill or Digital Assistant that the Channel is routed to. */ @com.fasterxml.jackson.annotation.JsonProperty("botId") private String botId; @@ -190,6 +202,27 @@ public UpdateFacebookChannelDetails( String pageAccessToken, String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.appSecret = appSecret != null ? appSecret.toCharArray() : null; + this.pageAccessToken = pageAccessToken != null ? pageAccessToken.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateFacebookChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("appSecret") char[] appSecret, + @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") + char[] pageAccessToken, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.appSecret = appSecret; this.pageAccessToken = pageAccessToken; this.botId = botId; @@ -197,27 +230,53 @@ public UpdateFacebookChannelDetails( /** The app secret for your Facebook app. */ @com.fasterxml.jackson.annotation.JsonProperty("appSecret") - private final String appSecret; + private final char[] appSecret; /** * The app secret for your Facebook app. * * @return the value + * @deprecated Use getAppSecret__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAppSecret() { + return appSecret != null ? new String(appSecret) : null; + } + + /** + * The app secret for your Facebook app. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("appSecret") + public char[] getAppSecret__AsCharArray() { return appSecret; } /** The page access token that you generated for your Facebook page. */ @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") - private final String pageAccessToken; + private final char[] pageAccessToken; /** * The page access token that you generated for your Facebook page. * * @return the value + * @deprecated Use getPageAccessToken__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPageAccessToken() { + return pageAccessToken != null ? new String(pageAccessToken) : null; + } + + /** + * The page access token that you generated for your Facebook page. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("pageAccessToken") + public char[] getPageAccessToken__AsCharArray() { return pageAccessToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateMSTeamsChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateMSTeamsChannelDetails.java index e922aad2bb6..80848f83b22 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateMSTeamsChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateMSTeamsChannelDetails.java @@ -92,7 +92,7 @@ public Builder msaAppId(String msaAppId) { } /** The client secret that you obtained from your bot registration. */ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private String msaAppPassword; + private char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. @@ -100,11 +100,17 @@ public Builder msaAppId(String msaAppId) { * @param msaAppPassword the value to set * @return this builder */ - public Builder msaAppPassword(String msaAppPassword) { + public Builder msaAppPassword(char[] msaAppPassword) { this.msaAppPassword = msaAppPassword; this.__explicitlySet__.add("msaAppPassword"); return this; } + + public Builder msaAppPassword(String msaAppPassword) { + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.__explicitlySet__.add("msaAppPassword"); + return this; + } /** The ID of the Skill or Digital Assistant that the Channel is routed to. */ @com.fasterxml.jackson.annotation.JsonProperty("botId") private String botId; @@ -193,6 +199,26 @@ public UpdateMSTeamsChannelDetails( String botId) { super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.msaAppId = msaAppId; + this.msaAppPassword = msaAppPassword != null ? msaAppPassword.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateMSTeamsChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("msaAppId") String msaAppId, + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") char[] msaAppPassword, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.msaAppId = msaAppId; this.msaAppPassword = msaAppPassword; this.botId = botId; } @@ -212,14 +238,27 @@ public String getMsaAppId() { /** The client secret that you obtained from your bot registration. */ @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") - private final String msaAppPassword; + private final char[] msaAppPassword; /** * The client secret that you obtained from your bot registration. * * @return the value + * @deprecated Use getMsaAppPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getMsaAppPassword() { + return msaAppPassword != null ? new String(msaAppPassword) : null; + } + + /** + * The client secret that you obtained from your bot registration. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("msaAppPassword") + public char[] getMsaAppPassword__AsCharArray() { return msaAppPassword; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOSSChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOSSChannelDetails.java index 9d6fd12ae42..fdf17d9e668 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOSSChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOSSChannelDetails.java @@ -218,7 +218,7 @@ public Builder streamPoolId(String streamPoolId) { } /** The authentication token to use when connecting to the Oracle Streaming Service. */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The authentication token to use when connecting to the Oracle Streaming Service. @@ -226,12 +226,18 @@ public Builder streamPoolId(String streamPoolId) { * @param authToken the value to set * @return this builder */ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -347,6 +353,45 @@ public UpdateOSSChannelDetails( this.tenancyName = tenancyName; this.userName = userName; this.streamPoolId = streamPoolId; + this.authToken = authToken != null ? authToken.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOSSChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("eventSinkBotIds") + java.util.List eventSinkBotIds, + @com.fasterxml.jackson.annotation.JsonProperty("inboundMessageTopic") + String inboundMessageTopic, + @com.fasterxml.jackson.annotation.JsonProperty("outboundMessageTopic") + String outboundMessageTopic, + @com.fasterxml.jackson.annotation.JsonProperty("bootstrapServers") + String bootstrapServers, + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + String securityProtocol, + @com.fasterxml.jackson.annotation.JsonProperty("saslMechanism") String saslMechanism, + @com.fasterxml.jackson.annotation.JsonProperty("tenancyName") String tenancyName, + @com.fasterxml.jackson.annotation.JsonProperty("userName") String userName, + @com.fasterxml.jackson.annotation.JsonProperty("streamPoolId") String streamPoolId, + @com.fasterxml.jackson.annotation.JsonProperty("authToken") char[] authToken) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.eventSinkBotIds = eventSinkBotIds; + this.inboundMessageTopic = inboundMessageTopic; + this.outboundMessageTopic = outboundMessageTopic; + this.bootstrapServers = bootstrapServers; + this.securityProtocol = securityProtocol; + this.saslMechanism = saslMechanism; + this.tenancyName = tenancyName; + this.userName = userName; + this.streamPoolId = streamPoolId; this.authToken = authToken; } @@ -477,14 +522,27 @@ public String getStreamPoolId() { /** The authentication token to use when connecting to the Oracle Streaming Service. */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; /** * The authentication token to use when connecting to the Oracle Streaming Service. * * @return the value + * @deprecated Use getAuthToken__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } + + /** + * The authentication token to use when connecting to the Oracle Streaming Service. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOsvcChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOsvcChannelDetails.java index 15ff1ec5ac2..e77118ab1c3 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOsvcChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateOsvcChannelDetails.java @@ -138,7 +138,7 @@ public Builder userName(String userName) { } /** The password for the digital-assistant agent. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the digital-assistant agent. @@ -146,11 +146,17 @@ public Builder userName(String userName) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The total session count. */ @com.fasterxml.jackson.annotation.JsonProperty("totalSessionCount") private Integer totalSessionCount; @@ -311,6 +317,39 @@ public UpdateOsvcChannelDetails( this.host = host; this.port = port; this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + this.totalSessionCount = totalSessionCount; + this.channelService = channelService; + this.authenticationProviderName = authenticationProviderName; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateOsvcChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("host") String host, + @com.fasterxml.jackson.annotation.JsonProperty("port") String port, + @com.fasterxml.jackson.annotation.JsonProperty("userName") String userName, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("totalSessionCount") + Integer totalSessionCount, + @com.fasterxml.jackson.annotation.JsonProperty("channelService") + OsvcServiceType channelService, + @com.fasterxml.jackson.annotation.JsonProperty("authenticationProviderName") + String authenticationProviderName, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.host = host; + this.port = port; + this.userName = userName; this.password = password; this.totalSessionCount = totalSessionCount; this.channelService = channelService; @@ -377,14 +416,27 @@ public String getUserName() { /** The password for the digital-assistant agent. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the digital-assistant agent. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the digital-assistant agent. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateServiceCloudChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateServiceCloudChannelDetails.java index d9e5b77c48e..05f4c838a5b 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateServiceCloudChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateServiceCloudChannelDetails.java @@ -171,7 +171,7 @@ public Builder userName(String userName) { * permissions. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password for the Oracle B2C Service staff member who has the necessary profile @@ -180,11 +180,17 @@ public Builder userName(String userName) { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } /** The type of Service Cloud client. */ @com.fasterxml.jackson.annotation.JsonProperty("clientType") private ServiceCloudClientType clientType; @@ -285,6 +291,31 @@ public UpdateServiceCloudChannelDetails( this.domainName = domainName; this.hostNamePrefix = hostNamePrefix; this.userName = userName; + this.password = password != null ? password.toCharArray() : null; + this.clientType = clientType; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateServiceCloudChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("domainName") String domainName, + @com.fasterxml.jackson.annotation.JsonProperty("hostNamePrefix") String hostNamePrefix, + @com.fasterxml.jackson.annotation.JsonProperty("userName") String userName, + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password, + @com.fasterxml.jackson.annotation.JsonProperty("clientType") + ServiceCloudClientType clientType) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.domainName = domainName; + this.hostNamePrefix = hostNamePrefix; + this.userName = userName; this.password = password; this.clientType = clientType; } @@ -381,15 +412,29 @@ public String getUserName() { * permissions. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password for the Oracle B2C Service staff member who has the necessary profile * permissions. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * The password for the Oracle B2C Service staff member who has the necessary profile + * permissions. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateSlackChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateSlackChannelDetails.java index 7c421b00f9a..23a7bd71c90 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateSlackChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateSlackChannelDetails.java @@ -120,7 +120,7 @@ public Builder authErrorUrl(String authErrorUrl) { } /** The Signing Secret for the Slack App. */ @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") - private String signingSecret; + private char[] signingSecret; /** * The Signing Secret for the Slack App. @@ -128,14 +128,20 @@ public Builder authErrorUrl(String authErrorUrl) { * @param signingSecret the value to set * @return this builder */ - public Builder signingSecret(String signingSecret) { + public Builder signingSecret(char[] signingSecret) { this.signingSecret = signingSecret; this.__explicitlySet__.add("signingSecret"); return this; } + + public Builder signingSecret(String signingSecret) { + this.signingSecret = signingSecret != null ? signingSecret.toCharArray() : null; + this.__explicitlySet__.add("signingSecret"); + return this; + } /** The Client Secret for the Slack App. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private String clientSecret; + private char[] clientSecret; /** * The Client Secret for the Slack App. @@ -143,11 +149,17 @@ public Builder signingSecret(String signingSecret) { * @param clientSecret the value to set * @return this builder */ - public Builder clientSecret(String clientSecret) { + public Builder clientSecret(char[] clientSecret) { this.clientSecret = clientSecret; this.__explicitlySet__.add("clientSecret"); return this; } + + public Builder clientSecret(String clientSecret) { + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.__explicitlySet__.add("clientSecret"); + return this; + } /** The ID of the Skill or Digital Assistant that the Channel is routed to. */ @com.fasterxml.jackson.annotation.JsonProperty("botId") private String botId; @@ -253,6 +265,32 @@ public UpdateSlackChannelDetails( this.clientId = clientId; this.authSuccessUrl = authSuccessUrl; this.authErrorUrl = authErrorUrl; + this.signingSecret = signingSecret != null ? signingSecret.toCharArray() : null; + this.clientSecret = clientSecret != null ? clientSecret.toCharArray() : null; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateSlackChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("clientId") String clientId, + @com.fasterxml.jackson.annotation.JsonProperty("authSuccessUrl") String authSuccessUrl, + @com.fasterxml.jackson.annotation.JsonProperty("authErrorUrl") String authErrorUrl, + @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") char[] signingSecret, + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") char[] clientSecret, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.clientId = clientId; + this.authSuccessUrl = authSuccessUrl; + this.authErrorUrl = authErrorUrl; this.signingSecret = signingSecret; this.clientSecret = clientSecret; this.botId = botId; @@ -299,27 +337,53 @@ public String getAuthErrorUrl() { /** The Signing Secret for the Slack App. */ @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") - private final String signingSecret; + private final char[] signingSecret; /** * The Signing Secret for the Slack App. * * @return the value + * @deprecated Use getSigningSecret__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getSigningSecret() { + return signingSecret != null ? new String(signingSecret) : null; + } + + /** + * The Signing Secret for the Slack App. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("signingSecret") + public char[] getSigningSecret__AsCharArray() { return signingSecret; } /** The Client Secret for the Slack App. */ @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") - private final String clientSecret; + private final char[] clientSecret; /** * The Client Secret for the Slack App. * * @return the value + * @deprecated Use getClientSecret__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getClientSecret() { + return clientSecret != null ? new String(clientSecret) : null; + } + + /** + * The Client Secret for the Slack App. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + public char[] getClientSecret__AsCharArray() { return clientSecret; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTranslatorDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTranslatorDetails.java index 48972658c30..31fac975591 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTranslatorDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTranslatorDetails.java @@ -23,6 +23,22 @@ public final class UpdateTranslatorDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateTranslatorDetails( + String baseUrl, + String authToken, + java.util.Map properties, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.baseUrl = baseUrl; + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.properties = properties; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "baseUrl", "authToken", @@ -32,7 +48,7 @@ public final class UpdateTranslatorDetails }) public UpdateTranslatorDetails( String baseUrl, - String authToken, + char[] authToken, java.util.Map properties, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -63,7 +79,7 @@ public Builder baseUrl(String baseUrl) { } /** The authentication token to use when invoking the Translation Service */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The authentication token to use when invoking the Translation Service @@ -71,11 +87,17 @@ public Builder baseUrl(String baseUrl) { * @param authToken the value to set * @return this builder */ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } /** * Properties used when invoking the translation service. Each property is a simple * key-value pair. @@ -197,14 +219,27 @@ public String getBaseUrl() { /** The authentication token to use when invoking the Translation Service */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; /** * The authentication token to use when invoking the Translation Service * * @return the value + * @deprecated Use getAuthToken__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } + + /** + * The authentication token to use when invoking the Translation Service + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTwilioChannelDetails.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTwilioChannelDetails.java index e35baa49f13..c3e6c09dc97 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTwilioChannelDetails.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/model/UpdateTwilioChannelDetails.java @@ -105,7 +105,7 @@ public Builder phoneNumber(String phoneNumber) { } /** The Auth Token for the Twilio number. */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private String authToken; + private char[] authToken; /** * The Auth Token for the Twilio number. @@ -113,11 +113,17 @@ public Builder phoneNumber(String phoneNumber) { * @param authToken the value to set * @return this builder */ - public Builder authToken(String authToken) { + public Builder authToken(char[] authToken) { this.authToken = authToken; this.__explicitlySet__.add("authToken"); return this; } + + public Builder authToken(String authToken) { + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.__explicitlySet__.add("authToken"); + return this; + } /** Whether MMS is enabled for this channel or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isMmsEnabled") private Boolean isMmsEnabled; @@ -252,6 +258,33 @@ public UpdateTwilioChannelDetails( super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); this.accountSID = accountSID; this.phoneNumber = phoneNumber; + this.authToken = authToken != null ? authToken.toCharArray() : null; + this.isMmsEnabled = isMmsEnabled; + this.originalConnectorsUrl = originalConnectorsUrl; + this.botId = botId; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public UpdateTwilioChannelDetails( + @com.fasterxml.jackson.annotation.JsonProperty("name") String name, + @com.fasterxml.jackson.annotation.JsonProperty("description") String description, + @com.fasterxml.jackson.annotation.JsonProperty("sessionExpiryDurationInMilliseconds") + Long sessionExpiryDurationInMilliseconds, + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags, + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags, + @com.fasterxml.jackson.annotation.JsonProperty("accountSID") String accountSID, + @com.fasterxml.jackson.annotation.JsonProperty("phoneNumber") String phoneNumber, + @com.fasterxml.jackson.annotation.JsonProperty("authToken") char[] authToken, + @com.fasterxml.jackson.annotation.JsonProperty("isMmsEnabled") Boolean isMmsEnabled, + @com.fasterxml.jackson.annotation.JsonProperty("originalConnectorsUrl") + String originalConnectorsUrl, + @com.fasterxml.jackson.annotation.JsonProperty("botId") String botId) { + super(name, description, sessionExpiryDurationInMilliseconds, freeformTags, definedTags); + this.accountSID = accountSID; + this.phoneNumber = phoneNumber; this.authToken = authToken; this.isMmsEnabled = isMmsEnabled; this.originalConnectorsUrl = originalConnectorsUrl; @@ -286,14 +319,27 @@ public String getPhoneNumber() { /** The Auth Token for the Twilio number. */ @com.fasterxml.jackson.annotation.JsonProperty("authToken") - private final String authToken; + private final char[] authToken; /** * The Auth Token for the Twilio number. * * @return the value + * @deprecated Use getAuthToken__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getAuthToken() { + return authToken != null ? new String(authToken) : null; + } + + /** + * The Auth Token for the Twilio number. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("authToken") + public char[] getAuthToken__AsCharArray() { return authToken; } diff --git a/bmc-oda/src/main/resources/com/oracle/bmc/oda/client.properties b/bmc-oda/src/main/resources/com/oracle/bmc/oda/client.properties index 2ee6570be84..0d9edef89a7 100644 --- a/bmc-oda/src/main/resources/com/oracle/bmc/oda/client.properties +++ b/bmc-oda/src/main/resources/com/oracle/bmc/oda/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190506") \ No newline at end of file diff --git a/bmc-onesubscription/src/main/resources/com/oracle/bmc/onesubscription/client.properties b/bmc-onesubscription/src/main/resources/com/oracle/bmc/onesubscription/client.properties index c880b420e09..0c51985ab8f 100644 --- a/bmc-onesubscription/src/main/resources/com/oracle/bmc/onesubscription/client.properties +++ b/bmc-onesubscription/src/main/resources/com/oracle/bmc/onesubscription/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") \ No newline at end of file diff --git a/bmc-ons/src/main/resources/com/oracle/bmc/ons/client.properties b/bmc-ons/src/main/resources/com/oracle/bmc/ons/client.properties index 28c0827995b..17f60eb00f1 100644 --- a/bmc-ons/src/main/resources/com/oracle/bmc/ons/client.properties +++ b/bmc-ons/src/main/resources/com/oracle/bmc/ons/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") \ No newline at end of file diff --git a/bmc-opa/src/main/resources/com/oracle/bmc/opa/client.properties b/bmc-opa/src/main/resources/com/oracle/bmc/opa/client.properties index ecba66257d3..132b2ca50a4 100644 --- a/bmc-opa/src/main/resources/com/oracle/bmc/opa/client.properties +++ b/bmc-opa/src/main/resources/com/oracle/bmc/opa/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210621") \ No newline at end of file diff --git a/bmc-opensearch/src/main/resources/com/oracle/bmc/opensearch/client.properties b/bmc-opensearch/src/main/resources/com/oracle/bmc/opensearch/client.properties index 422d75b703a..4d3343497ed 100644 --- a/bmc-opensearch/src/main/resources/com/oracle/bmc/opensearch/client.properties +++ b/bmc-opensearch/src/main/resources/com/oracle/bmc/opensearch/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/src/main/resources/com/oracle/bmc/operatoraccesscontrol/client.properties b/bmc-operatoraccesscontrol/src/main/resources/com/oracle/bmc/operatoraccesscontrol/client.properties index d08316a30f3..ede911e979d 100644 --- a/bmc-operatoraccesscontrol/src/main/resources/com/oracle/bmc/operatoraccesscontrol/client.properties +++ b/bmc-operatoraccesscontrol/src/main/resources/com/oracle/bmc/operatoraccesscontrol/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") \ No newline at end of file diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsWarehouseUserDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsWarehouseUserDetails.java index 1fd35ddcdd3..39d3a0b412b 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsWarehouseUserDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/CreateOperationsInsightsWarehouseUserDetails.java @@ -24,6 +24,31 @@ public final class CreateOperationsInsightsWarehouseUserDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public CreateOperationsInsightsWarehouseUserDetails( + String operationsInsightsWarehouseId, + String compartmentId, + String name, + String connectionPassword, + Boolean isAwrDataAccess, + Boolean isEmDataAccess, + Boolean isOpsiDataAccess, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.operationsInsightsWarehouseId = operationsInsightsWarehouseId; + this.compartmentId = compartmentId; + this.name = name; + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.isAwrDataAccess = isAwrDataAccess; + this.isEmDataAccess = isEmDataAccess; + this.isOpsiDataAccess = isOpsiDataAccess; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "operationsInsightsWarehouseId", "compartmentId", @@ -39,7 +64,7 @@ public CreateOperationsInsightsWarehouseUserDetails( String operationsInsightsWarehouseId, String compartmentId, String name, - String connectionPassword, + char[] connectionPassword, Boolean isAwrDataAccess, Boolean isEmDataAccess, Boolean isOpsiDataAccess, @@ -117,7 +142,7 @@ public Builder name(String name) { * Insights OPSI Hub. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private String connectionPassword; + private char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops @@ -126,11 +151,18 @@ public Builder name(String name) { * @param connectionPassword the value to set * @return this builder */ - public Builder connectionPassword(String connectionPassword) { + public Builder connectionPassword(char[] connectionPassword) { this.connectionPassword = connectionPassword; this.__explicitlySet__.add("connectionPassword"); return this; } + + public Builder connectionPassword(String connectionPassword) { + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.__explicitlySet__.add("connectionPassword"); + return this; + } /** Indicate whether user has access to AWR data. */ @com.fasterxml.jackson.annotation.JsonProperty("isAwrDataAccess") private Boolean isAwrDataAccess; @@ -331,15 +363,29 @@ public String getName() { * OPSI Hub. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private final String connectionPassword; + private final char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights * OPSI Hub. * * @return the value + * @deprecated Use getConnectionPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getConnectionPassword() { + return connectionPassword != null ? new String(connectionPassword) : null; + } + + /** + * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights + * OPSI Hub. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") + public char[] getConnectionPassword__AsCharArray() { return connectionPassword; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DownloadOperationsInsightsWarehouseWalletDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DownloadOperationsInsightsWarehouseWalletDetails.java index 174f3c00ac2..6c376bb861f 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DownloadOperationsInsightsWarehouseWalletDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/DownloadOperationsInsightsWarehouseWalletDetails.java @@ -23,10 +23,21 @@ public final class DownloadOperationsInsightsWarehouseWalletDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"operationsInsightsWarehouseWalletPassword"}) public DownloadOperationsInsightsWarehouseWalletDetails( String operationsInsightsWarehouseWalletPassword) { super(); + this.operationsInsightsWarehouseWalletPassword = + operationsInsightsWarehouseWalletPassword != null + ? operationsInsightsWarehouseWalletPassword.toCharArray() + : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({"operationsInsightsWarehouseWalletPassword"}) + public DownloadOperationsInsightsWarehouseWalletDetails( + char[] operationsInsightsWarehouseWalletPassword) { + super(); this.operationsInsightsWarehouseWalletPassword = operationsInsightsWarehouseWalletPassword; } @@ -34,7 +45,7 @@ public DownloadOperationsInsightsWarehouseWalletDetails( public static class Builder { /** User provided ADW wallet password for the Ops Insights Warehouse. */ @com.fasterxml.jackson.annotation.JsonProperty("operationsInsightsWarehouseWalletPassword") - private String operationsInsightsWarehouseWalletPassword; + private char[] operationsInsightsWarehouseWalletPassword; /** * User provided ADW wallet password for the Ops Insights Warehouse. @@ -43,13 +54,23 @@ public static class Builder { * @return this builder */ public Builder operationsInsightsWarehouseWalletPassword( - String operationsInsightsWarehouseWalletPassword) { + char[] operationsInsightsWarehouseWalletPassword) { this.operationsInsightsWarehouseWalletPassword = operationsInsightsWarehouseWalletPassword; this.__explicitlySet__.add("operationsInsightsWarehouseWalletPassword"); return this; } + public Builder operationsInsightsWarehouseWalletPassword( + String operationsInsightsWarehouseWalletPassword) { + this.operationsInsightsWarehouseWalletPassword = + operationsInsightsWarehouseWalletPassword != null + ? operationsInsightsWarehouseWalletPassword.toCharArray() + : null; + this.__explicitlySet__.add("operationsInsightsWarehouseWalletPassword"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -84,14 +105,29 @@ public Builder toBuilder() { /** User provided ADW wallet password for the Ops Insights Warehouse. */ @com.fasterxml.jackson.annotation.JsonProperty("operationsInsightsWarehouseWalletPassword") - private final String operationsInsightsWarehouseWalletPassword; + private final char[] operationsInsightsWarehouseWalletPassword; /** * User provided ADW wallet password for the Ops Insights Warehouse. * * @return the value + * @deprecated Use getOperationsInsightsWarehouseWalletPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getOperationsInsightsWarehouseWalletPassword() { + return operationsInsightsWarehouseWalletPassword != null + ? new String(operationsInsightsWarehouseWalletPassword) + : null; + } + + /** + * User provided ADW wallet password for the Ops Insights Warehouse. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("operationsInsightsWarehouseWalletPassword") + public char[] getOperationsInsightsWarehouseWalletPassword__AsCharArray() { return operationsInsightsWarehouseWalletPassword; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUser.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUser.java index 7729b6dd5c7..b2f0c240213 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUser.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUser.java @@ -23,6 +23,43 @@ public final class OperationsInsightsWarehouseUser extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public OperationsInsightsWarehouseUser( + String operationsInsightsWarehouseId, + String id, + String compartmentId, + String name, + String connectionPassword, + Boolean isAwrDataAccess, + Boolean isEmDataAccess, + Boolean isOpsiDataAccess, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated, + OperationsInsightsWarehouseUserLifecycleState lifecycleState, + String lifecycleDetails) { + super(); + this.operationsInsightsWarehouseId = operationsInsightsWarehouseId; + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.isAwrDataAccess = isAwrDataAccess; + this.isEmDataAccess = isEmDataAccess; + this.isOpsiDataAccess = isOpsiDataAccess; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "operationsInsightsWarehouseId", "id", @@ -45,7 +82,7 @@ public OperationsInsightsWarehouseUser( String id, String compartmentId, String name, - String connectionPassword, + char[] connectionPassword, Boolean isAwrDataAccess, Boolean isEmDataAccess, Boolean isOpsiDataAccess, @@ -149,7 +186,7 @@ public Builder name(String name) { * Insights OPSI Hub. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private String connectionPassword; + private char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops @@ -158,11 +195,18 @@ public Builder name(String name) { * @param connectionPassword the value to set * @return this builder */ - public Builder connectionPassword(String connectionPassword) { + public Builder connectionPassword(char[] connectionPassword) { this.connectionPassword = connectionPassword; this.__explicitlySet__.add("connectionPassword"); return this; } + + public Builder connectionPassword(String connectionPassword) { + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.__explicitlySet__.add("connectionPassword"); + return this; + } /** Indicate whether user has access to AWR data. */ @com.fasterxml.jackson.annotation.JsonProperty("isAwrDataAccess") private Boolean isAwrDataAccess; @@ -486,15 +530,29 @@ public String getName() { * OPSI Hub. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private final String connectionPassword; + private final char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights * OPSI Hub. * * @return the value + * @deprecated Use getConnectionPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getConnectionPassword() { + return connectionPassword != null ? new String(connectionPassword) : null; + } + + /** + * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights + * OPSI Hub. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") + public char[] getConnectionPassword__AsCharArray() { return connectionPassword; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUserSummary.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUserSummary.java index b0085f3b27b..1218989b47f 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUserSummary.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/OperationsInsightsWarehouseUserSummary.java @@ -23,6 +23,43 @@ public final class OperationsInsightsWarehouseUserSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public OperationsInsightsWarehouseUserSummary( + String operationsInsightsWarehouseId, + String id, + String compartmentId, + String name, + String connectionPassword, + Boolean isAwrDataAccess, + Boolean isEmDataAccess, + Boolean isOpsiDataAccess, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated, + OperationsInsightsWarehouseUserLifecycleState lifecycleState, + String lifecycleDetails) { + super(); + this.operationsInsightsWarehouseId = operationsInsightsWarehouseId; + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.isAwrDataAccess = isAwrDataAccess; + this.isEmDataAccess = isEmDataAccess; + this.isOpsiDataAccess = isOpsiDataAccess; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "operationsInsightsWarehouseId", "id", @@ -45,7 +82,7 @@ public OperationsInsightsWarehouseUserSummary( String id, String compartmentId, String name, - String connectionPassword, + char[] connectionPassword, Boolean isAwrDataAccess, Boolean isEmDataAccess, Boolean isOpsiDataAccess, @@ -149,7 +186,7 @@ public Builder name(String name) { * Insights OPSI Hub. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private String connectionPassword; + private char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops @@ -158,11 +195,18 @@ public Builder name(String name) { * @param connectionPassword the value to set * @return this builder */ - public Builder connectionPassword(String connectionPassword) { + public Builder connectionPassword(char[] connectionPassword) { this.connectionPassword = connectionPassword; this.__explicitlySet__.add("connectionPassword"); return this; } + + public Builder connectionPassword(String connectionPassword) { + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.__explicitlySet__.add("connectionPassword"); + return this; + } /** Indicate whether user has access to AWR data. */ @com.fasterxml.jackson.annotation.JsonProperty("isAwrDataAccess") private Boolean isAwrDataAccess; @@ -486,15 +530,29 @@ public String getName() { * OPSI Hub. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private final String connectionPassword; + private final char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights * OPSI Hub. * * @return the value + * @deprecated Use getConnectionPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getConnectionPassword() { + return connectionPassword != null ? new String(connectionPassword) : null; + } + + /** + * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights + * OPSI Hub. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") + public char[] getConnectionPassword__AsCharArray() { return connectionPassword; } diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsWarehouseUserDetails.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsWarehouseUserDetails.java index 045223f94da..1c60159349f 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsWarehouseUserDetails.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/model/UpdateOperationsInsightsWarehouseUserDetails.java @@ -23,6 +23,25 @@ public final class UpdateOperationsInsightsWarehouseUserDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated + public UpdateOperationsInsightsWarehouseUserDetails( + String connectionPassword, + Boolean isAwrDataAccess, + Boolean isEmDataAccess, + Boolean isOpsiDataAccess, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.isAwrDataAccess = isAwrDataAccess; + this.isEmDataAccess = isEmDataAccess; + this.isOpsiDataAccess = isOpsiDataAccess; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "connectionPassword", "isAwrDataAccess", @@ -32,7 +51,7 @@ public final class UpdateOperationsInsightsWarehouseUserDetails "definedTags" }) public UpdateOperationsInsightsWarehouseUserDetails( - String connectionPassword, + char[] connectionPassword, Boolean isAwrDataAccess, Boolean isEmDataAccess, Boolean isOpsiDataAccess, @@ -54,7 +73,7 @@ public static class Builder { * Insights OPSI Hub. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private String connectionPassword; + private char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops @@ -63,11 +82,18 @@ public static class Builder { * @param connectionPassword the value to set * @return this builder */ - public Builder connectionPassword(String connectionPassword) { + public Builder connectionPassword(char[] connectionPassword) { this.connectionPassword = connectionPassword; this.__explicitlySet__.add("connectionPassword"); return this; } + + public Builder connectionPassword(String connectionPassword) { + this.connectionPassword = + connectionPassword != null ? connectionPassword.toCharArray() : null; + this.__explicitlySet__.add("connectionPassword"); + return this; + } /** Indicate whether user has access to AWR data. */ @com.fasterxml.jackson.annotation.JsonProperty("isAwrDataAccess") private Boolean isAwrDataAccess; @@ -209,15 +235,29 @@ public Builder toBuilder() { * OPSI Hub. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") - private final String connectionPassword; + private final char[] connectionPassword; /** * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights * OPSI Hub. * * @return the value + * @deprecated Use getConnectionPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getConnectionPassword() { + return connectionPassword != null ? new String(connectionPassword) : null; + } + + /** + * User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights + * OPSI Hub. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionPassword") + public char[] getConnectionPassword__AsCharArray() { return connectionPassword; } diff --git a/bmc-opsi/src/main/resources/com/oracle/bmc/opsi/client.properties b/bmc-opsi/src/main/resources/com/oracle/bmc/opsi/client.properties index d08316a30f3..ede911e979d 100644 --- a/bmc-opsi/src/main/resources/com/oracle/bmc/opsi/client.properties +++ b/bmc-opsi/src/main/resources/com/oracle/bmc/opsi/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") \ No newline at end of file diff --git a/bmc-optimizer/src/main/resources/com/oracle/bmc/optimizer/client.properties b/bmc-optimizer/src/main/resources/com/oracle/bmc/optimizer/client.properties index f2ef88531d7..75323881856 100644 --- a/bmc-optimizer/src/main/resources/com/oracle/bmc/optimizer/client.properties +++ b/bmc-optimizer/src/main/resources/com/oracle/bmc/optimizer/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200606") \ No newline at end of file diff --git a/bmc-osmanagementhub/src/main/resources/com/oracle/bmc/osmanagementhub/client.properties b/bmc-osmanagementhub/src/main/resources/com/oracle/bmc/osmanagementhub/client.properties index be42e1f5673..66f017c309f 100644 --- a/bmc-osmanagementhub/src/main/resources/com/oracle/bmc/osmanagementhub/client.properties +++ b/bmc-osmanagementhub/src/main/resources/com/oracle/bmc/osmanagementhub/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") \ No newline at end of file diff --git a/bmc-ospgateway/src/main/resources/com/oracle/bmc/ospgateway/client.properties b/bmc-ospgateway/src/main/resources/com/oracle/bmc/ospgateway/client.properties index 723353a4e03..72b914e39ef 100644 --- a/bmc-ospgateway/src/main/resources/com/oracle/bmc/ospgateway/client.properties +++ b/bmc-ospgateway/src/main/resources/com/oracle/bmc/ospgateway/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20191001") \ No newline at end of file diff --git a/bmc-osubbillingschedule/src/main/resources/com/oracle/bmc/osubbillingschedule/client.properties b/bmc-osubbillingschedule/src/main/resources/com/oracle/bmc/osubbillingschedule/client.properties index 4ff047e73b4..54f686e4b85 100644 --- a/bmc-osubbillingschedule/src/main/resources/com/oracle/bmc/osubbillingschedule/client.properties +++ b/bmc-osubbillingschedule/src/main/resources/com/oracle/bmc/osubbillingschedule/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210501") \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/src/main/resources/com/oracle/bmc/osuborganizationsubscription/client.properties b/bmc-osuborganizationsubscription/src/main/resources/com/oracle/bmc/osuborganizationsubscription/client.properties index 4ff047e73b4..54f686e4b85 100644 --- a/bmc-osuborganizationsubscription/src/main/resources/com/oracle/bmc/osuborganizationsubscription/client.properties +++ b/bmc-osuborganizationsubscription/src/main/resources/com/oracle/bmc/osuborganizationsubscription/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210501") \ No newline at end of file diff --git a/bmc-osubsubscription/src/main/resources/com/oracle/bmc/osubsubscription/client.properties b/bmc-osubsubscription/src/main/resources/com/oracle/bmc/osubsubscription/client.properties index 4ff047e73b4..54f686e4b85 100644 --- a/bmc-osubsubscription/src/main/resources/com/oracle/bmc/osubsubscription/client.properties +++ b/bmc-osubsubscription/src/main/resources/com/oracle/bmc/osubsubscription/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210501") \ No newline at end of file diff --git a/bmc-osubusage/src/main/resources/com/oracle/bmc/osubusage/client.properties b/bmc-osubusage/src/main/resources/com/oracle/bmc/osubusage/client.properties index 4ff047e73b4..54f686e4b85 100644 --- a/bmc-osubusage/src/main/resources/com/oracle/bmc/osubusage/client.properties +++ b/bmc-osubusage/src/main/resources/com/oracle/bmc/osubusage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210501") \ No newline at end of file diff --git a/bmc-psa/src/main/resources/com/oracle/bmc/psa/client.properties b/bmc-psa/src/main/resources/com/oracle/bmc/psa/client.properties index 822b0d52d0c..ce576b8cd62 100644 --- a/bmc-psa/src/main/resources/com/oracle/bmc/psa/client.properties +++ b/bmc-psa/src/main/resources/com/oracle/bmc/psa/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240301") \ No newline at end of file diff --git a/bmc-psql/src/main/resources/com/oracle/bmc/psql/client.properties b/bmc-psql/src/main/resources/com/oracle/bmc/psql/client.properties index ee9eea42486..2e134619181 100644 --- a/bmc-psql/src/main/resources/com/oracle/bmc/psql/client.properties +++ b/bmc-psql/src/main/resources/com/oracle/bmc/psql/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") \ No newline at end of file diff --git a/bmc-queue/src/main/resources/com/oracle/bmc/queue/client.properties b/bmc-queue/src/main/resources/com/oracle/bmc/queue/client.properties index b3e37348cd0..d83f97dca9e 100644 --- a/bmc-queue/src/main/resources/com/oracle/bmc/queue/client.properties +++ b/bmc-queue/src/main/resources/com/oracle/bmc/queue/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") \ No newline at end of file diff --git a/bmc-recovery/src/main/resources/com/oracle/bmc/recovery/client.properties b/bmc-recovery/src/main/resources/com/oracle/bmc/recovery/client.properties index 71c077105e1..299de1d5134 100644 --- a/bmc-recovery/src/main/resources/com/oracle/bmc/recovery/client.properties +++ b/bmc-recovery/src/main/resources/com/oracle/bmc/recovery/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") \ No newline at end of file diff --git a/bmc-redis/src/main/resources/com/oracle/bmc/redis/client.properties b/bmc-redis/src/main/resources/com/oracle/bmc/redis/client.properties index df37ec80ff9..cc61a15e316 100644 --- a/bmc-redis/src/main/resources/com/oracle/bmc/redis/client.properties +++ b/bmc-redis/src/main/resources/com/oracle/bmc/redis/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") \ No newline at end of file diff --git a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/PlainTextPasswordDetails.java b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/PlainTextPasswordDetails.java index 67659760bb6..6bfa6759504 100644 --- a/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/PlainTextPasswordDetails.java +++ b/bmc-resourceanalytics/src/main/java/com/oracle/bmc/resourceanalytics/model/PlainTextPasswordDetails.java @@ -34,7 +34,7 @@ public static class Builder { * regardless of casing. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * Password for the ADW to be created in User Tenancy. The password must be between 12 and @@ -45,12 +45,18 @@ public static class Builder { * @param password the value to set * @return this builder */ - public Builder password(String password) { + public Builder password(char[] password) { this.password = password; this.__explicitlySet__.add("password"); return this; } + public Builder password(String password) { + this.password = password != null ? password.toCharArray() : null; + this.__explicitlySet__.add("password"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -83,6 +89,14 @@ public Builder toBuilder() { @Deprecated public PlainTextPasswordDetails(String password) { super(); + this.password = password != null ? password.toCharArray() : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + public PlainTextPasswordDetails( + @com.fasterxml.jackson.annotation.JsonProperty("password") char[] password) { + super(); this.password = password; } @@ -92,16 +106,32 @@ public PlainTextPasswordDetails(String password) { * It cannot contain the double quote symbol (") or the username "admin", regardless of casing. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * Password for the ADW to be created in User Tenancy. The password must be between 12 and 30 * characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. - * It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + * It cannot contain the double quote symbol (") or the username "admin", + * regardless of casing. * * @return the value + * @deprecated Use getPassword__AsCharArray() instead. */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore public String getPassword() { + return password != null ? new String(password) : null; + } + + /** + * Password for the ADW to be created in User Tenancy. The password must be between 12 and 30 + * characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. + * It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-resourceanalytics/src/main/resources/com/oracle/bmc/resourceanalytics/client.properties b/bmc-resourceanalytics/src/main/resources/com/oracle/bmc/resourceanalytics/client.properties index a6c409d15eb..aa3e516cf3a 100644 --- a/bmc-resourceanalytics/src/main/resources/com/oracle/bmc/resourceanalytics/client.properties +++ b/bmc-resourceanalytics/src/main/resources/com/oracle/bmc/resourceanalytics/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241031") \ No newline at end of file diff --git a/bmc-resourcemanager/src/main/resources/com/oracle/bmc/resourcemanager/client.properties b/bmc-resourcemanager/src/main/resources/com/oracle/bmc/resourcemanager/client.properties index b4be1cd98fb..35b53aa5c30 100644 --- a/bmc-resourcemanager/src/main/resources/com/oracle/bmc/resourcemanager/client.properties +++ b/bmc-resourcemanager/src/main/resources/com/oracle/bmc/resourcemanager/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") \ No newline at end of file diff --git a/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties b/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties index fefe21c1d9b..b96ec55f20a 100644 --- a/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties +++ b/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") \ No newline at end of file diff --git a/bmc-resourcesearch/src/main/resources/com/oracle/bmc/resourcesearch/client.properties b/bmc-resourcesearch/src/main/resources/com/oracle/bmc/resourcesearch/client.properties index df5ab05b18d..de5f55fc91d 100644 --- a/bmc-resourcesearch/src/main/resources/com/oracle/bmc/resourcesearch/client.properties +++ b/bmc-resourcesearch/src/main/resources/com/oracle/bmc/resourcesearch/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180409") \ No newline at end of file diff --git a/bmc-rover/src/main/resources/com/oracle/bmc/rover/client.properties b/bmc-rover/src/main/resources/com/oracle/bmc/rover/client.properties index b4d5914198c..27c086b0796 100644 --- a/bmc-rover/src/main/resources/com/oracle/bmc/rover/client.properties +++ b/bmc-rover/src/main/resources/com/oracle/bmc/rover/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201210") \ No newline at end of file diff --git a/bmc-sch/src/main/resources/com/oracle/bmc/sch/client.properties b/bmc-sch/src/main/resources/com/oracle/bmc/sch/client.properties index ccc67332f44..4aa131fb5a0 100644 --- a/bmc-sch/src/main/resources/com/oracle/bmc/sch/client.properties +++ b/bmc-sch/src/main/resources/com/oracle/bmc/sch/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200909") \ No newline at end of file diff --git a/bmc-secrets/src/main/resources/com/oracle/bmc/secrets/client.properties b/bmc-secrets/src/main/resources/com/oracle/bmc/secrets/client.properties index 969535a280d..1766be17653 100644 --- a/bmc-secrets/src/main/resources/com/oracle/bmc/secrets/client.properties +++ b/bmc-secrets/src/main/resources/com/oracle/bmc/secrets/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190301") \ No newline at end of file diff --git a/bmc-securityattribute/src/main/resources/com/oracle/bmc/securityattribute/client.properties b/bmc-securityattribute/src/main/resources/com/oracle/bmc/securityattribute/client.properties index d0a7c35f92d..3dd0adaebc3 100644 --- a/bmc-securityattribute/src/main/resources/com/oracle/bmc/securityattribute/client.properties +++ b/bmc-securityattribute/src/main/resources/com/oracle/bmc/securityattribute/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240815") \ No newline at end of file diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java index 1bb75df375a..459be23f6dd 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java @@ -109,7 +109,10 @@ public java.util.concurrent.Future activateSubscri return clientCall(request, ActivateSubscriptionResponse::builder) .logger(LOG, "activateSubscription") - .serviceDetails("PartnerIntegeration", "ActivateSubscription", "") + .serviceDetails( + "PartnerIntegeration", + "ActivateSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ActivateSubscription") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ActivateSubscriptionRequest::builder) .basePath("/20260129") @@ -142,7 +145,10 @@ public java.util.concurrent.Future listingSubscrip return clientCall(request, ListingSubscriptionsResponse::builder) .logger(LOG, "listingSubscriptions") - .serviceDetails("PartnerIntegeration", "ListingSubscriptions", "") + .serviceDetails( + "PartnerIntegeration", + "ListingSubscriptions", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/ListingSubscriptionsCollection/ListingSubscriptions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListingSubscriptionsRequest::builder) .basePath("/20260129") @@ -177,7 +183,10 @@ public java.util.concurrent.Future resolveSubscript return clientCall(request, ResolveSubscriptionResponse::builder) .logger(LOG, "resolveSubscription") - .serviceDetails("PartnerIntegeration", "ResolveSubscription", "") + .serviceDetails( + "PartnerIntegeration", + "ResolveSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ResolveSubscription") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ResolveSubscriptionRequest::builder) .basePath("/20260129") diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java index 91d5f397ac3..d95281f5c71 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java @@ -99,7 +99,10 @@ public ActivateSubscriptionResponse activateSubscription(ActivateSubscriptionReq return clientCall(request, ActivateSubscriptionResponse::builder) .logger(LOG, "activateSubscription") - .serviceDetails("PartnerIntegeration", "ActivateSubscription", "") + .serviceDetails( + "PartnerIntegeration", + "ActivateSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ActivateSubscription") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ActivateSubscriptionRequest::builder) .basePath("/20260129") @@ -129,7 +132,10 @@ public ListingSubscriptionsResponse listingSubscriptions(ListingSubscriptionsReq return clientCall(request, ListingSubscriptionsResponse::builder) .logger(LOG, "listingSubscriptions") - .serviceDetails("PartnerIntegeration", "ListingSubscriptions", "") + .serviceDetails( + "PartnerIntegeration", + "ListingSubscriptions", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/ListingSubscriptionsCollection/ListingSubscriptions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListingSubscriptionsRequest::builder) .basePath("/20260129") @@ -161,7 +167,10 @@ public ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionReques return clientCall(request, ResolveSubscriptionResponse::builder) .logger(LOG, "resolveSubscription") - .serviceDetails("PartnerIntegeration", "ResolveSubscription", "") + .serviceDetails( + "PartnerIntegeration", + "ResolveSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ResolveSubscription") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ResolveSubscriptionRequest::builder) .basePath("/20260129") diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java index 205d15c9825..078e998a9ec 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java @@ -105,7 +105,10 @@ public java.util.concurrent.Future cancelWorkRequest( return clientCall(request, CancelWorkRequestResponse::builder) .logger(LOG, "cancelWorkRequest") - .serviceDetails("Subscription", "CancelWorkRequest", "") + .serviceDetails( + "Subscription", + "CancelWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/CancelWorkRequest") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(CancelWorkRequestRequest::builder) .basePath("/20260129") @@ -135,7 +138,10 @@ public java.util.concurrent.Future cancelWorkRequest( return clientCall(request, ChangeSubscriptionCompartmentResponse::builder) .logger(LOG, "changeSubscriptionCompartment") - .serviceDetails("Subscription", "ChangeSubscriptionCompartment", "") + .serviceDetails( + "Subscription", + "ChangeSubscriptionCompartment", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/ChangeSubscriptionCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeSubscriptionCompartmentRequest::builder) .basePath("/20260129") @@ -168,7 +174,10 @@ public java.util.concurrent.Future createSubscriptio return clientCall(request, CreateSubscriptionResponse::builder) .logger(LOG, "createSubscription") - .serviceDetails("Subscription", "CreateSubscription", "") + .serviceDetails( + "Subscription", + "CreateSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/CreateSubscription") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateSubscriptionRequest::builder) .basePath("/20260129") @@ -203,7 +212,10 @@ public java.util.concurrent.Future deleteSubscriptio return clientCall(request, DeleteSubscriptionResponse::builder) .logger(LOG, "deleteSubscription") - .serviceDetails("Subscription", "DeleteSubscription", "") + .serviceDetails( + "Subscription", + "DeleteSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/DeleteSubscription") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteSubscriptionRequest::builder) .basePath("/20260129") @@ -230,7 +242,10 @@ public java.util.concurrent.Future getSubscription( return clientCall(request, GetSubscriptionResponse::builder) .logger(LOG, "getSubscription") - .serviceDetails("Subscription", "GetSubscription", "") + .serviceDetails( + "Subscription", + "GetSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/GetSubscription") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetSubscriptionRequest::builder) .basePath("/20260129") @@ -258,7 +273,10 @@ public java.util.concurrent.Future getSubscription return clientCall(request, GetSubscriptionTokenResponse::builder) .logger(LOG, "getSubscriptionToken") - .serviceDetails("Subscription", "GetSubscriptionToken", "") + .serviceDetails( + "Subscription", + "GetSubscriptionToken", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/SubscriptionToken/GetSubscriptionToken") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetSubscriptionTokenRequest::builder) .basePath("/20260129") @@ -288,7 +306,10 @@ public java.util.concurrent.Future getWorkRequest( return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") - .serviceDetails("Subscription", "GetWorkRequest", "") + .serviceDetails( + "Subscription", + "GetWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20260129") @@ -316,7 +337,10 @@ public java.util.concurrent.Future listSubscriptions( return clientCall(request, ListSubscriptionsResponse::builder) .logger(LOG, "listSubscriptions") - .serviceDetails("Subscription", "ListSubscriptions", "") + .serviceDetails( + "Subscription", + "ListSubscriptions", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/SubscriptionCollection/ListSubscriptions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListSubscriptionsRequest::builder) .basePath("/20260129") @@ -352,7 +376,10 @@ public java.util.concurrent.Future listWorkReques return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") - .serviceDetails("Subscription", "ListWorkRequestErrors", "") + .serviceDetails( + "Subscription", + "ListWorkRequestErrors", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20260129") @@ -386,7 +413,10 @@ public java.util.concurrent.Future listWorkRequestL return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") - .serviceDetails("Subscription", "ListWorkRequestLogs", "") + .serviceDetails( + "Subscription", + "ListWorkRequestLogs", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20260129") @@ -418,7 +448,10 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") - .serviceDetails("Subscription", "ListWorkRequests", "") + .serviceDetails( + "Subscription", + "ListWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20260129") @@ -456,7 +489,10 @@ public java.util.concurrent.Future updateSubscriptio return clientCall(request, UpdateSubscriptionResponse::builder) .logger(LOG, "updateSubscription") - .serviceDetails("Subscription", "UpdateSubscription", "") + .serviceDetails( + "Subscription", + "UpdateSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/UpdateSubscription") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateSubscriptionRequest::builder) .basePath("/20260129") diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java index 750b0f7a8ce..99d42b52fcd 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java @@ -129,7 +129,10 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ return clientCall(request, CancelWorkRequestResponse::builder) .logger(LOG, "cancelWorkRequest") - .serviceDetails("Subscription", "CancelWorkRequest", "") + .serviceDetails( + "Subscription", + "CancelWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/CancelWorkRequest") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(CancelWorkRequestRequest::builder) .basePath("/20260129") @@ -155,7 +158,10 @@ public ChangeSubscriptionCompartmentResponse changeSubscriptionCompartment( return clientCall(request, ChangeSubscriptionCompartmentResponse::builder) .logger(LOG, "changeSubscriptionCompartment") - .serviceDetails("Subscription", "ChangeSubscriptionCompartment", "") + .serviceDetails( + "Subscription", + "ChangeSubscriptionCompartment", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/ChangeSubscriptionCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeSubscriptionCompartmentRequest::builder) .basePath("/20260129") @@ -185,7 +191,10 @@ public CreateSubscriptionResponse createSubscription(CreateSubscriptionRequest r return clientCall(request, CreateSubscriptionResponse::builder) .logger(LOG, "createSubscription") - .serviceDetails("Subscription", "CreateSubscription", "") + .serviceDetails( + "Subscription", + "CreateSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/CreateSubscription") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateSubscriptionRequest::builder) .basePath("/20260129") @@ -217,7 +226,10 @@ public DeleteSubscriptionResponse deleteSubscription(DeleteSubscriptionRequest r return clientCall(request, DeleteSubscriptionResponse::builder) .logger(LOG, "deleteSubscription") - .serviceDetails("Subscription", "DeleteSubscription", "") + .serviceDetails( + "Subscription", + "DeleteSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/DeleteSubscription") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteSubscriptionRequest::builder) .basePath("/20260129") @@ -241,7 +253,10 @@ public GetSubscriptionResponse getSubscription(GetSubscriptionRequest request) { return clientCall(request, GetSubscriptionResponse::builder) .logger(LOG, "getSubscription") - .serviceDetails("Subscription", "GetSubscription", "") + .serviceDetails( + "Subscription", + "GetSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/GetSubscription") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetSubscriptionRequest::builder) .basePath("/20260129") @@ -266,7 +281,10 @@ public GetSubscriptionTokenResponse getSubscriptionToken(GetSubscriptionTokenReq return clientCall(request, GetSubscriptionTokenResponse::builder) .logger(LOG, "getSubscriptionToken") - .serviceDetails("Subscription", "GetSubscriptionToken", "") + .serviceDetails( + "Subscription", + "GetSubscriptionToken", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/SubscriptionToken/GetSubscriptionToken") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetSubscriptionTokenRequest::builder) .basePath("/20260129") @@ -293,7 +311,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") - .serviceDetails("Subscription", "GetWorkRequest", "") + .serviceDetails( + "Subscription", + "GetWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20260129") @@ -318,7 +339,10 @@ public ListSubscriptionsResponse listSubscriptions(ListSubscriptionsRequest requ return clientCall(request, ListSubscriptionsResponse::builder) .logger(LOG, "listSubscriptions") - .serviceDetails("Subscription", "ListSubscriptions", "") + .serviceDetails( + "Subscription", + "ListSubscriptions", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/SubscriptionCollection/ListSubscriptions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListSubscriptionsRequest::builder) .basePath("/20260129") @@ -352,7 +376,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") - .serviceDetails("Subscription", "ListWorkRequestErrors", "") + .serviceDetails( + "Subscription", + "ListWorkRequestErrors", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20260129") @@ -383,7 +410,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") - .serviceDetails("Subscription", "ListWorkRequestLogs", "") + .serviceDetails( + "Subscription", + "ListWorkRequestLogs", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20260129") @@ -412,7 +442,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") - .serviceDetails("Subscription", "ListWorkRequests", "") + .serviceDetails( + "Subscription", + "ListWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20260129") @@ -447,7 +480,10 @@ public UpdateSubscriptionResponse updateSubscription(UpdateSubscriptionRequest r return clientCall(request, UpdateSubscriptionResponse::builder) .logger(LOG, "updateSubscription") - .serviceDetails("Subscription", "UpdateSubscription", "") + .serviceDetails( + "Subscription", + "UpdateSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/UpdateSubscription") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateSubscriptionRequest::builder) .basePath("/20260129") diff --git a/bmc-self/src/main/resources/com/oracle/bmc/self/client.properties b/bmc-self/src/main/resources/com/oracle/bmc/self/client.properties index 2221c1ccd5b..115d802b575 100644 --- a/bmc-self/src/main/resources/com/oracle/bmc/self/client.properties +++ b/bmc-self/src/main/resources/com/oracle/bmc/self/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") \ No newline at end of file diff --git a/bmc-servicecatalog/src/main/resources/com/oracle/bmc/servicecatalog/client.properties b/bmc-servicecatalog/src/main/resources/com/oracle/bmc/servicecatalog/client.properties index 5ee471a9322..a225cd1137d 100644 --- a/bmc-servicecatalog/src/main/resources/com/oracle/bmc/servicecatalog/client.properties +++ b/bmc-servicecatalog/src/main/resources/com/oracle/bmc/servicecatalog/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210527") \ No newline at end of file diff --git a/bmc-servicemanagerproxy/src/main/resources/com/oracle/bmc/servicemanagerproxy/client.properties b/bmc-servicemanagerproxy/src/main/resources/com/oracle/bmc/servicemanagerproxy/client.properties index 4ea5ea3b90d..b337fa8940f 100644 --- a/bmc-servicemanagerproxy/src/main/resources/com/oracle/bmc/servicemanagerproxy/client.properties +++ b/bmc-servicemanagerproxy/src/main/resources/com/oracle/bmc/servicemanagerproxy/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210914") \ No newline at end of file diff --git a/bmc-stackmonitoring/src/main/resources/com/oracle/bmc/stackmonitoring/client.properties b/bmc-stackmonitoring/src/main/resources/com/oracle/bmc/stackmonitoring/client.properties index c8f200afda2..828793d638b 100644 --- a/bmc-stackmonitoring/src/main/resources/com/oracle/bmc/stackmonitoring/client.properties +++ b/bmc-stackmonitoring/src/main/resources/com/oracle/bmc/stackmonitoring/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210330") \ No newline at end of file diff --git a/bmc-streaming/src/main/resources/com/oracle/bmc/streaming/client.properties b/bmc-streaming/src/main/resources/com/oracle/bmc/streaming/client.properties index df574d35d4e..eb3a12fb853 100644 --- a/bmc-streaming/src/main/resources/com/oracle/bmc/streaming/client.properties +++ b/bmc-streaming/src/main/resources/com/oracle/bmc/streaming/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/src/main/resources/com/oracle/bmc/tenantmanagercontrolplane/client.properties b/bmc-tenantmanagercontrolplane/src/main/resources/com/oracle/bmc/tenantmanagercontrolplane/client.properties index 59f5234f06b..9c46b81ce1b 100644 --- a/bmc-tenantmanagercontrolplane/src/main/resources/com/oracle/bmc/tenantmanagercontrolplane/client.properties +++ b/bmc-tenantmanagercontrolplane/src/main/resources/com/oracle/bmc/tenantmanagercontrolplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") \ No newline at end of file diff --git a/bmc-threatintelligence/src/main/resources/com/oracle/bmc/threatintelligence/client.properties b/bmc-threatintelligence/src/main/resources/com/oracle/bmc/threatintelligence/client.properties index be42e1f5673..66f017c309f 100644 --- a/bmc-threatintelligence/src/main/resources/com/oracle/bmc/threatintelligence/client.properties +++ b/bmc-threatintelligence/src/main/resources/com/oracle/bmc/threatintelligence/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") \ No newline at end of file diff --git a/bmc-usage/src/main/resources/com/oracle/bmc/usage/client.properties b/bmc-usage/src/main/resources/com/oracle/bmc/usage/client.properties index c880b420e09..0c51985ab8f 100644 --- a/bmc-usage/src/main/resources/com/oracle/bmc/usage/client.properties +++ b/bmc-usage/src/main/resources/com/oracle/bmc/usage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") \ No newline at end of file diff --git a/bmc-usageapi/src/main/resources/com/oracle/bmc/usageapi/client.properties b/bmc-usageapi/src/main/resources/com/oracle/bmc/usageapi/client.properties index 7ceae221c89..a51bfa49ca3 100644 --- a/bmc-usageapi/src/main/resources/com/oracle/bmc/usageapi/client.properties +++ b/bmc-usageapi/src/main/resources/com/oracle/bmc/usageapi/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200107") \ No newline at end of file diff --git a/bmc-vault/src/main/resources/com/oracle/bmc/vault/client.properties b/bmc-vault/src/main/resources/com/oracle/bmc/vault/client.properties index 991538a5793..6151f3fd471 100644 --- a/bmc-vault/src/main/resources/com/oracle/bmc/vault/client.properties +++ b/bmc-vault/src/main/resources/com/oracle/bmc/vault/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180608") \ No newline at end of file diff --git a/bmc-vbsinst/src/main/resources/com/oracle/bmc/vbsinst/client.properties b/bmc-vbsinst/src/main/resources/com/oracle/bmc/vbsinst/client.properties index 422d75b703a..4d3343497ed 100644 --- a/bmc-vbsinst/src/main/resources/com/oracle/bmc/vbsinst/client.properties +++ b/bmc-vbsinst/src/main/resources/com/oracle/bmc/vbsinst/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") \ No newline at end of file diff --git a/bmc-visualbuilder/src/main/resources/com/oracle/bmc/visualbuilder/client.properties b/bmc-visualbuilder/src/main/resources/com/oracle/bmc/visualbuilder/client.properties index 6dcccdf025a..9511574d4be 100644 --- a/bmc-visualbuilder/src/main/resources/com/oracle/bmc/visualbuilder/client.properties +++ b/bmc-visualbuilder/src/main/resources/com/oracle/bmc/visualbuilder/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210601") \ No newline at end of file diff --git a/bmc-vnmonitoring/src/main/resources/com/oracle/bmc/vnmonitoring/client.properties b/bmc-vnmonitoring/src/main/resources/com/oracle/bmc/vnmonitoring/client.properties index 57fa7f4b072..80d9875bfaf 100644 --- a/bmc-vnmonitoring/src/main/resources/com/oracle/bmc/vnmonitoring/client.properties +++ b/bmc-vnmonitoring/src/main/resources/com/oracle/bmc/vnmonitoring/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/src/main/resources/com/oracle/bmc/vulnerabilityscanning/client.properties b/bmc-vulnerabilityscanning/src/main/resources/com/oracle/bmc/vulnerabilityscanning/client.properties index 5252b75be05..4859d01f08e 100644 --- a/bmc-vulnerabilityscanning/src/main/resources/com/oracle/bmc/vulnerabilityscanning/client.properties +++ b/bmc-vulnerabilityscanning/src/main/resources/com/oracle/bmc/vulnerabilityscanning/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210215") \ No newline at end of file diff --git a/bmc-waa/src/main/resources/com/oracle/bmc/waa/client.properties b/bmc-waa/src/main/resources/com/oracle/bmc/waa/client.properties index 25951511085..99ed85b5810 100644 --- a/bmc-waa/src/main/resources/com/oracle/bmc/waa/client.properties +++ b/bmc-waa/src/main/resources/com/oracle/bmc/waa/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211230") \ No newline at end of file diff --git a/bmc-waas/src/main/resources/com/oracle/bmc/waas/client.properties b/bmc-waas/src/main/resources/com/oracle/bmc/waas/client.properties index f73ea5bbeda..39a9888a519 100644 --- a/bmc-waas/src/main/resources/com/oracle/bmc/waas/client.properties +++ b/bmc-waas/src/main/resources/com/oracle/bmc/waas/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181116") \ No newline at end of file diff --git a/bmc-waf/src/main/resources/com/oracle/bmc/waf/client.properties b/bmc-waf/src/main/resources/com/oracle/bmc/waf/client.properties index e0665b931b5..300a3d68932 100644 --- a/bmc-waf/src/main/resources/com/oracle/bmc/waf/client.properties +++ b/bmc-waf/src/main/resources/com/oracle/bmc/waf/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210930") \ No newline at end of file diff --git a/bmc-wlms/src/main/resources/com/oracle/bmc/wlms/client.properties b/bmc-wlms/src/main/resources/com/oracle/bmc/wlms/client.properties index 09c0655d933..bdd05d0bb73 100644 --- a/bmc-wlms/src/main/resources/com/oracle/bmc/wlms/client.properties +++ b/bmc-wlms/src/main/resources/com/oracle/bmc/wlms/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241101") \ No newline at end of file diff --git a/bmc-workrequests/src/main/resources/com/oracle/bmc/workrequests/client.properties b/bmc-workrequests/src/main/resources/com/oracle/bmc/workrequests/client.properties index 57fa7f4b072..80d9875bfaf 100644 --- a/bmc-workrequests/src/main/resources/com/oracle/bmc/workrequests/client.properties +++ b/bmc-workrequests/src/main/resources/com/oracle/bmc/workrequests/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-zpr/src/main/resources/com/oracle/bmc/zpr/client.properties b/bmc-zpr/src/main/resources/com/oracle/bmc/zpr/client.properties index 822b0d52d0c..ce576b8cd62 100644 --- a/bmc-zpr/src/main/resources/com/oracle/bmc/zpr/client.properties +++ b/bmc-zpr/src/main/resources/com/oracle/bmc/zpr/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.147 +java.client.codegen.version = 2.163 java.minimum.client.codegen.version.from.client = 2.145 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240301") \ No newline at end of file diff --git a/pom.xml b/pom.xml index bb632ad5869..96a43c93f1a 100644 --- a/pom.xml +++ b/pom.xml @@ -63,7 +63,7 @@ true com.acme.Undefined 10.5 - 2.147 + 2.163